From 6bf3cd8495e5221892af5dddbec1ee62185753ca Mon Sep 17 00:00:00 2001 From: AnhMTV Date: Wed, 31 May 2023 14:51:39 +0700 Subject: [PATCH] [Issue-722] Update web-runner to fix issue 722 --- html/Web.bundle/site/index.html | 2 +- ...bc87d11c524c6533.js => web-runner-3ce1f882f443610f79fd.js} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename html/Web.bundle/site/{web-runner-9dccbc87d11c524c6533.js => web-runner-3ce1f882f443610f79fd.js} (98%) diff --git a/html/Web.bundle/site/index.html b/html/Web.bundle/site/index.html index 43b05a899..557e22eda 100644 --- a/html/Web.bundle/site/index.html +++ b/html/Web.bundle/site/index.html @@ -1 +1 @@ -SubWallet
SubWallet
\ No newline at end of file +SubWallet
SubWallet
\ No newline at end of file diff --git a/html/Web.bundle/site/web-runner-9dccbc87d11c524c6533.js b/html/Web.bundle/site/web-runner-3ce1f882f443610f79fd.js similarity index 98% rename from html/Web.bundle/site/web-runner-9dccbc87d11c524c6533.js rename to html/Web.bundle/site/web-runner-3ce1f882f443610f79fd.js index 30df419fc..b5039857c 100644 --- a/html/Web.bundle/site/web-runner-9dccbc87d11c524c6533.js +++ b/html/Web.bundle/site/web-runner-3ce1f882f443610f79fd.js @@ -1,4 +1,4 @@ -/*! For license information please see web-runner-9dccbc87d11c524c6533.js.LICENSE.txt */ +/*! For license information please see web-runner-3ce1f882f443610f79fd.js.LICENSE.txt */ (()=>{var __webpack_modules__={94070:(e,t,a)=>{"use strict";t.__esModule=!0;var r=a(49164);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},49164:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.pool=function(e,t){return(0,i.memo)(e,((e,a)=>{const r=function(e,t){return[e,t].sort(((e,t)=>o[e.asToken.toString()]-o[t.asToken.toString()]))}(e,a);return t.query.dex.liquidityPool(r).pipe((0,n.map)((t=>{const[n,c]=t;return e.eq(r[0])&&a.eq(r[1])?[n,c]:[c,n]})))}))};var n=a(39002),c=r(a(43862)),i=a(22542);const o=c.default.types.TokenSymbol._enum},42522:(e,t,a)=>{"use strict";t.__esModule=!0;var r=a(48817);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},48817:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.stakingPool=function(e,t){return(0,o.memo)(e,(()=>{const e=function(e){return{defaultExchangeRate:e.consts.stakingPool.defaultExchangeRate,bondingDuration:e.consts.polkadotBridge.bondingDuration,eraLength:e.consts.polkadotBridge.eraLength,stakingCurrency:e.consts.stakingPool.stakingCurrencyId,liquidCurrency:e.consts.stakingPool.liquidCurrencyId}}(t);return(0,c.combineLatest)([t.query.stakingPool.currentEra(),t.query.stakingPool.stakingPoolLedger(),t.query.stakingPool.stakingPoolParams(),t.query.tokens.totalIssuance(e.liquidCurrency)]).pipe((0,i.map)((t=>{const[a,r,c,i]=t;return function(e){for(var t=1;t{"use strict";t.__esModule=!0;var r={derive:!0};t.derive=void 0;var n=d(a(75902)),c=d(a(94070)),i=d(a(42522)),o=a(67965);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(s=function(e){return e?a:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=s(t);if(a&&a.has(e))return a.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=n?Object.getOwnPropertyDescriptor(e,c):null;i&&(i.get||i.set)?Object.defineProperty(r,c,i):r[c]=e[c]}return r.default=e,a&&a.set(e,r),r}Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));const f={loan:n,dex:c,homa:i};t.derive=f},75902:(e,t,a)=>{"use strict";t.__esModule=!0;var r=a(58071);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var n=a(95947);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))}))},95947:(e,t,a)=>{"use strict";t.__esModule=!0,t.allLoanOverviews=function(e,t){return(0,c.memo)(e,(()=>{const a=s(e,t);return(0,i.getAllCollateralCurrencyIds)(t).pipe((0,n.switchMap)((e=>(0,r.combineLatest)(e.map((e=>a(e)))))))}))},t.allLoanTypes=function(e,t){return(0,c.memo)(e,(()=>{const a=o(e,t);return(0,i.getAllCollateralCurrencyIds)(t).pipe((0,n.switchMap)((e=>(0,r.combineLatest)(e.map((e=>a(e)))))))}))},t.loanOverview=s,t.loanType=o;var r=a(80977),n=a(39002),c=a(22542),i=a(99213);function o(e,t){return(0,c.memo)(e,(e=>(0,r.combineLatest)([t.query.cdpEngine.debitExchangeRate(e),t.query.cdpEngine.collateralParams(e)]).pipe((0,n.map)((a=>{const r=function(e){return{minimumDebitValue:e.consts.cdpEngine.minimumDebitValue,defaultDebitExchangeRate:e.consts.cdpEngine.defaultDebitExchangeRate,defaultLiquidationRatio:e.consts.cdpEngine.defaultLiquidationRatio,defaultLiquidationPenalty:e.consts.cdpEngine.defaultLiquidationPenalty}}(t),[n]=a,c=Reflect.has(a[1],"unwrapOrDefault")?a[1].unwrapOrDefault():a[1];return{currency:e,debitExchangeRate:n.isEmpty?r.defaultDebitExchangeRate:n,liquidationPenalty:c.liquidationPenalty.isEmpty?r.defaultLiquidationPenalty:c.liquidationPenalty,liquidationRatio:c.liquidationRatio.isEmpty?r.defaultLiquidationRatio:c.liquidationRatio,requiredCollateralRatio:c.requiredCollateralRatio,interestRatePerSec:c.interestRatePerSec,maximumTotalDebitValue:c.maximumTotalDebitValue,minimumDebitValue:r.minimumDebitValue}})))))}function s(e,t){return(0,c.memo)(e,(e=>t.query.loans.totalPositions(e).pipe((0,n.map)((t=>{const{collateral:a,debit:r}=t;return{currency:e,totalDebit:r,totalCollateral:a}})))))}},58071:(e,t,a)=>{"use strict";t.__esModule=!0,t.allLoans=function(e,t){return(0,c.memo)(e,(a=>{const c=o(e,t);return(0,i.getAllCollateralCurrencyIds)(t).pipe((0,n.switchMap)((e=>(0,r.combineLatest)(e.map((e=>c(a,e)))))))}))},t.loan=o;var r=a(80977),n=a(39002),c=a(22542),i=a(99213);function o(e,t){return(0,c.memo)(e,((e,a)=>t.query.loans.positions(a,e).pipe((0,n.map)((t=>{const{debit:r,collateral:n}=t;return{account:e,currency:a,debit:r,collateral:n}})))))}},82832:()=>{},25506:()=>{},67965:(e,t,a)=>{"use strict";t.__esModule=!0;var r=a(82832);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var n=a(25506);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))}));var c=a(29053);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var i=a(28383);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}))},29053:()=>{},28383:()=>{},99213:(e,t,a)=>{"use strict";t.__esModule=!0,t.getAllCollateralCurrencyIds=function(e){return e.query.cdpEngine.collateralParams.keys().pipe((0,r.map)((e=>e.map((e=>e.args[0])))))};var r=a(39002)},81364:(e,t,a)=>{"use strict";var r=a(71600);t.YM=void 0;var n=r(a(26290)),c=r(a(24923)),i=a(37986),o=a(47649),s=a(93058),d=a(6871);const f=["types","rpc","typesAlias","typesBundle","runtime","signedExtensions"];function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t{"use strict";t.__esModule=!0,t.runtime=void 0,t.runtime={EVMRuntimeRPCApi:[{version:2,methods:{call:{description:"call evm contract",params:[{name:"from",type:"H160"},{name:"to",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"Balance"},{name:"gas_limit",type:"u64"},{name:"storage_limit",type:"u32"},{name:"access_list",type:"Option>"},{name:"estimate",type:"bool"}],type:"Result"},create:{description:"create evm contract",params:[{name:"from",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"Balance"},{name:"gas_limit",type:"u64"},{name:"storage_limit",type:"u32"},{name:"access_list",type:"Option>"},{name:"estimate",type:"bool"}],type:"Result"}}}]}},25697:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PalletBalanceOf:"Balance"}}},47889:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"}}}},88593:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"}}}},20973:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CandidateInfoOf:"CandidateInfo"}}},78718:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getSupplyAmount:{description:"Get supply amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"targetCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper"},getTargetAmount:{description:"Get target amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"supplyCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper"}},types:{TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}}}}},77790:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{call:{description:"eth call",params:[{name:"data",type:"CallRequest"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Raw"},estimateResources:{description:"eth estimateResources",params:[{name:"from",type:"H160"},{name:"unsignedExtrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"EstimateResourcesResponse"}},typesAlias:{evm:{AccountInfo:"EvmAccountInfo",ContractInfo:"EvmContractInfo"}},types:{Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"EvmCoreErrorExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"EvmCoreErrorExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},EvmCoreErrorExitReason:{_enum:{Succeed:"EvmCoreErrorExitSucceed",Error:"EvmCoreErrorExitError",Revert:"EvmCoreErrorExitRevert",Fatal:"EvmCoreErrorExitFatal"}},EvmCoreErrorExitSucceed:{_enum:["Stopped","Returned","Suicided"]},EvmCoreErrorExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"Null"}},EvmCoreErrorExitRevert:{_enum:["Reverted"]},EvmCoreErrorExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"EvmCoreErrorExitError",Other:"Text"}}}}},73951:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"}}}},23032:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"}}}},1408:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}}}}},10196:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.typesBundleForPolkadot=t.typesBundle=t.typesAlias=t.types=t.signedExtensions=t.rpc=void 0;var n=r(a(26290)),c=a(48183),i=a(95870),o=r(a(25697)),s=r(a(47889)),d=r(a(88593)),f=r(a(78718)),u=r(a(77790)),b=r(a(73951)),l=r(a(20973)),h=r(a(23032)),p=r(a(1408)),m=r(a(16610)),y=r(a(80552)),g=r(a(64048)),x=r(a(43862)),v=r(a(12626)),w=r(a(2709)),A=a(26719),k=r(a(23310)),S=r(a(91158)),E=r(a(77763)),I=r(a(79849)),M=r(a(62894)),C=r(a(25612));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t({minmax:e.minmax,types:T(T({},N),e.types)}))),alias:B}}t.typesAlias=B;const V={spec:{acala:D(I.default),mandala:D(M.default),karura:D(C.default)}};t.typesBundle=V;const L={spec:{acala:D(I.default),mandala:D(M.default),karura:D(C.default)}};t.typesBundleForPolkadot=L;const j=A.signedExtensions;t.signedExtensions=j},16610:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{Position:{collateral:"Balance",debit:"Balance"}}}},80552:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"}},typesAligns:{nft:{ClassId:"NFTClassId",BalanceOf:"NFTBalanceOf"}}}},64048:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"}},typesAlias:{nomineesElection:{UnlockChunk:"HomaUnlockChunk"}}}},43862:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128"},typesAlias:{rewards:{OrmlCurrencyId:"CurrencyId"},oracle:{DataProviderId:"AcalaDataProviderId"},chainBridge:{ChainId:"ChainBridgeChainId"}}}},12626:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PublicKey:"[u8; 20]",DestAddress:"Vec"}}},2709:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber"}}},26719:(e,t)=>{"use strict";t.__esModule=!0,t.signedExtensions=void 0,t.signedExtensions={SetEvmOrigin:{extrinsic:{},payload:{}}}},79849:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=void 0;var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}};var l=[{minmax:[600,699],types:i(i(i(i(i({},o),s),u),{Address:"LookupSource",LookupSource:"IndicesLookupSource"}),{},{TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]}})},{minmax:[700,719],types:i(i(i(i(i({},o),s),u),d),{},{TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]}})},{minmax:[720,722],types:i(i(i(i(i(i({},o),d),s),u),f),{},{TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,XBTC:4,RENBTC:5,POLKABTC:6,PLM:7,PHA:8,HDT:9,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}}})},{minmax:[723,729],types:i(i(i(i(i(i({},o),d),s),b),f),{},{TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,XBTC:4,RENBTC:5,POLKABTC:6,PLM:7,PHA:8,HDT:9,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}}})},{minmax:[730,1007],types:i(i(i(i(i({},o),d),s),b),{},{TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:4,KAR:128,KUSD:129,KSM:130,LKSM:131,CASH:140}}})},{minmax:[1008,1008],types:i(i(i(i(i({},o),d),s),b),{},{TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131}}})},{minmax:[1008,1009],types:i(i(i(i({},o),d),s),b)},{minmax:[1010,1013],types:i(i(i({},o),d),s)},{minmax:[1014,1018],types:i(i(i({},o),d),{MultiLocation:"MultiLocationV1",MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1",XcmError:"XcmErrorV1",Response:"ResponseV1"})},{minmax:[1019,void 0],types:i({},d)}];t.default=l},25612:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=void 0;var n=r(a(79849)).default;t.default=n},62894:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=void 0;var n=r(a(79849)).default;t.default=n},23310:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PoolTokenIndex:"u32",AssetId:"CurrencyId"}}},91158:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getAvailableUnbonded:{description:"Get Available Unbonded",params:[{name:"account",type:"AccountId"}],type:"BalanceInfo"},getLiquidStakingExchangeRate:{description:"get liquid staking exchange rate",params:[],type:"ExchangeRate"}},types:{SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},Ledger:{bonded:"Balance",unbondingToFree:"Balance",freePool:"Balance",toUnbondNextEra:"(Balance, Balance)"},ChangeRate:{_enum:{NoChange:"Null",NewValue:"Rate"}},ChangeRatio:{_enum:{NoChange:"Null",NewValue:"Ratio"}},BalanceInfo:{amount:"Balance"},PolkadotAccountId:"AccountId",PolkadotAccountIdOf:"PolkadotAccountId"},typesAlias:{stakingPool:{Phase:"StakingPoolPhase"}}}},77763:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{ExchangeRate:"FixedU128",Rate:"FixedU128",Ratio:"FixedU128",Price:"FixedU128"}}},67813:(e,t,a)=>{"use strict";a(51235)},67570:(e,t,a)=>{"use strict";a(10571)},17256:(e,t,a)=>{"use strict";a(98664)},61564:(e,t,a)=>{"use strict";a(54357)},39791:(e,t,a)=>{"use strict";a(74465)},98070:(e,t,a)=>{"use strict";a(6740)},71793:(e,t,a)=>{"use strict";a(10747)},34113:(e,t,a)=>{"use strict";a(67813),a(67570),a(17256),a(61564),a(71793),a(39791),a(98070)},93058:(e,t,a)=>{"use strict";t.__esModule=!0,t.typesBundle=t.typesAlias=t.types=t.signedExtensions=t.rpc=t.lookupTypes=void 0;var r=a(10196);a(34113),a(46513);var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=c(t);if(a&&a.has(e))return a.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,a&&a.set(e,r),r}(a(782));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:t})(e)}t.lookupTypes=n;const i=r.types;t.types=i;const o=r.rpc;t.rpc=o;const s=r.typesAlias;t.typesAlias=s;const d=r.typesBundle;t.typesBundle=d;const f=r.signedExtensions;t.signedExtensions=f},35842:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={FrameSystemAccountInfo:{nonce:"u32",consumers:"u32",providers:"u32",sufficients:"u32",data:"PalletBalancesAccountData"},PalletBalancesAccountData:{free:"u128",reserved:"u128",miscFrozen:"u128",feeFrozen:"u128"},FrameSupportWeightsPerDispatchClassU64:{normal:"u64",operational:"u64",mandatory:"u64"},SpRuntimeDigest:{logs:"Vec"},SpRuntimeDigestDigestItem:{_enum:{Other:"Bytes",__Unused1:"Null",__Unused2:"Null",__Unused3:"Null",Consensus:"([u8;4],Bytes)",Seal:"([u8;4],Bytes)",PreRuntime:"([u8;4],Bytes)",__Unused7:"Null",RuntimeEnvironmentUpdated:"Null"}},FrameSystemEventRecord:{phase:"FrameSystemPhase",event:"Event",topics:"Vec"},FrameSystemEvent:{_enum:{ExtrinsicSuccess:{dispatchInfo:"FrameSupportWeightsDispatchInfo"},ExtrinsicFailed:{dispatchError:"SpRuntimeDispatchError",dispatchInfo:"FrameSupportWeightsDispatchInfo"},CodeUpdated:"Null",NewAccount:{account:"AccountId32"},KilledAccount:{account:"AccountId32"},Remarked:{_alias:{hash_:"hash"},sender:"AccountId32",hash_:"H256"}}},FrameSupportWeightsDispatchInfo:{weight:"u64",class:"FrameSupportWeightsDispatchClass",paysFee:"FrameSupportWeightsPays"},FrameSupportWeightsDispatchClass:{_enum:["Normal","Operational","Mandatory"]},FrameSupportWeightsPays:{_enum:["Yes","No"]},SpRuntimeDispatchError:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"SpRuntimeModuleError",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"SpRuntimeTokenError",Arithmetic:"SpRuntimeArithmeticError",Transactional:"SpRuntimeTransactionalError"}},SpRuntimeModuleError:{index:"u8",error:"[u8;4]"},SpRuntimeTokenError:{_enum:["NoFunds","WouldDie","BelowMinimum","CannotCreate","UnknownAsset","Frozen","Unsupported"]},SpRuntimeArithmeticError:{_enum:["Underflow","Overflow","DivisionByZero"]},SpRuntimeTransactionalError:{_enum:["LimitReached","NoLayer"]},PalletSchedulerEvent:{_enum:{Scheduled:{when:"u32",index:"u32"},Canceled:{when:"u32",index:"u32"},Dispatched:{task:"(u32,u32)",id:"Option",result:"Result"},CallLookupFailed:{task:"(u32,u32)",id:"Option",error:"FrameSupportScheduleLookupError"}}},FrameSupportScheduleLookupError:{_enum:["Unknown","BadFormat"]},PalletUtilityEvent:{_enum:{BatchInterrupted:{index:"u32",error:"SpRuntimeDispatchError"},BatchCompleted:"Null",BatchCompletedWithErrors:"Null",ItemCompleted:"Null",ItemFailed:{error:"SpRuntimeDispatchError"},DispatchedAs:{result:"Result"}}},PalletMultisigEvent:{_enum:{NewMultisig:{approving:"AccountId32",multisig:"AccountId32",callHash:"[u8;32]"},MultisigApproval:{approving:"AccountId32",timepoint:"PalletMultisigTimepoint",multisig:"AccountId32",callHash:"[u8;32]"},MultisigExecuted:{approving:"AccountId32",timepoint:"PalletMultisigTimepoint",multisig:"AccountId32",callHash:"[u8;32]",result:"Result"},MultisigCancelled:{cancelling:"AccountId32",timepoint:"PalletMultisigTimepoint",multisig:"AccountId32",callHash:"[u8;32]"}}},PalletMultisigTimepoint:{height:"u32",index:"u32"},PalletProxyEvent:{_enum:{ProxyExecuted:{result:"Result"},AnonymousCreated:{anonymous:"AccountId32",who:"AccountId32",proxyType:"RuntimeCommonProxyType",disambiguationIndex:"u16"},Announced:{real:"AccountId32",proxy:"AccountId32",callHash:"H256"},ProxyAdded:{delegator:"AccountId32",delegatee:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"},ProxyRemoved:{delegator:"AccountId32",delegatee:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"}}},RuntimeCommonProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan","DexLiquidity","StableAssetSwap","StableAssetLiquidity","Homa"]},ModuleTransactionPauseModuleEvent:{_enum:{TransactionPaused:{palletNameBytes:"Bytes",functionNameBytes:"Bytes"},TransactionUnpaused:{palletNameBytes:"Bytes",functionNameBytes:"Bytes"},EvmPrecompilePaused:{address:"H160"},EvmPrecompileUnpaused:{address:"H160"}}},ModuleIdleSchedulerModuleEvent:{_enum:{TaskDispatched:{taskId:"u32",result:"Result"},TaskAdded:{taskId:"u32",task:"AcalaRuntimeScheduledTasks"}}},AcalaRuntimeScheduledTasks:{_enum:{EvmTask:"ModuleEvmEvmTask"}},ModuleEvmEvmTask:{_enum:{Schedule:{from:"H160",target:"H160",input:"Bytes",value:"u128",gasLimit:"u64",storageLimit:"u32"},Remove:{caller:"H160",contract:"H160",maintainer:"H160"}}},AcalaRuntimeRuntime:"Null",PalletPreimageEvent:{_enum:{Noted:{_alias:{hash_:"hash"},hash_:"H256"},Requested:{_alias:{hash_:"hash"},hash_:"H256"},Cleared:{_alias:{hash_:"hash"},hash_:"H256"}}},PalletBalancesEvent:{_enum:{Endowed:{account:"AccountId32",freeBalance:"u128"},DustLost:{account:"AccountId32",amount:"u128"},Transfer:{from:"AccountId32",to:"AccountId32",amount:"u128"},BalanceSet:{who:"AccountId32",free:"u128",reserved:"u128"},Reserved:{who:"AccountId32",amount:"u128"},Unreserved:{who:"AccountId32",amount:"u128"},ReserveRepatriated:{from:"AccountId32",to:"AccountId32",amount:"u128",destinationStatus:"FrameSupportTokensMiscBalanceStatus"},Deposit:{who:"AccountId32",amount:"u128"},Withdraw:{who:"AccountId32",amount:"u128"},Slashed:{who:"AccountId32",amount:"u128"}}},FrameSupportTokensMiscBalanceStatus:{_enum:["Free","Reserved"]},OrmlTokensModuleEvent:{_enum:{Endowed:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},DustLost:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},Transfer:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",from:"AccountId32",to:"AccountId32",amount:"u128"},Reserved:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},Unreserved:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},ReserveRepatriated:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",from:"AccountId32",to:"AccountId32",amount:"u128",status:"FrameSupportTokensMiscBalanceStatus"},BalanceSet:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",free:"u128",reserved:"u128"},TotalIssuanceSet:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"u128"},Withdrawn:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},Slashed:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",freeAmount:"u128",reservedAmount:"u128"},Deposited:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},LockSet:{lockId:"[u8;8]",currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},LockRemoved:{lockId:"[u8;8]",currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32"}}},AcalaPrimitivesCurrencyCurrencyId:{_enum:{Token:"AcalaPrimitivesCurrencyTokenSymbol",DexShare:"(AcalaPrimitivesCurrencyDexShare,AcalaPrimitivesCurrencyDexShare)",Erc20:"H160",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u16"}},AcalaPrimitivesCurrencyTokenSymbol:{_enum:["ACA","AUSD","DOT","LDOT","TAP","__Unused5","__Unused6","__Unused7","__Unused8","__Unused9","__Unused10","__Unused11","__Unused12","__Unused13","__Unused14","__Unused15","__Unused16","__Unused17","__Unused18","__Unused19","RENBTC","CASH","__Unused22","__Unused23","__Unused24","__Unused25","__Unused26","__Unused27","__Unused28","__Unused29","__Unused30","__Unused31","__Unused32","__Unused33","__Unused34","__Unused35","__Unused36","__Unused37","__Unused38","__Unused39","__Unused40","__Unused41","__Unused42","__Unused43","__Unused44","__Unused45","__Unused46","__Unused47","__Unused48","__Unused49","__Unused50","__Unused51","__Unused52","__Unused53","__Unused54","__Unused55","__Unused56","__Unused57","__Unused58","__Unused59","__Unused60","__Unused61","__Unused62","__Unused63","__Unused64","__Unused65","__Unused66","__Unused67","__Unused68","__Unused69","__Unused70","__Unused71","__Unused72","__Unused73","__Unused74","__Unused75","__Unused76","__Unused77","__Unused78","__Unused79","__Unused80","__Unused81","__Unused82","__Unused83","__Unused84","__Unused85","__Unused86","__Unused87","__Unused88","__Unused89","__Unused90","__Unused91","__Unused92","__Unused93","__Unused94","__Unused95","__Unused96","__Unused97","__Unused98","__Unused99","__Unused100","__Unused101","__Unused102","__Unused103","__Unused104","__Unused105","__Unused106","__Unused107","__Unused108","__Unused109","__Unused110","__Unused111","__Unused112","__Unused113","__Unused114","__Unused115","__Unused116","__Unused117","__Unused118","__Unused119","__Unused120","__Unused121","__Unused122","__Unused123","__Unused124","__Unused125","__Unused126","__Unused127","KAR","KUSD","KSM","LKSM","TAI","__Unused133","__Unused134","__Unused135","__Unused136","__Unused137","__Unused138","__Unused139","__Unused140","__Unused141","__Unused142","__Unused143","__Unused144","__Unused145","__Unused146","__Unused147","__Unused148","__Unused149","__Unused150","__Unused151","__Unused152","__Unused153","__Unused154","__Unused155","__Unused156","__Unused157","__Unused158","__Unused159","__Unused160","__Unused161","__Unused162","__Unused163","__Unused164","__Unused165","__Unused166","__Unused167","BNC","VSKSM","PHA","KINT","KBTC"]},AcalaPrimitivesCurrencyDexShare:{_enum:{Token:"AcalaPrimitivesCurrencyTokenSymbol",Erc20:"H160",LiquidCrowdloan:"u32",ForeignAsset:"u16",StableAssetPoolToken:"u32"}},ModuleCurrenciesModuleEvent:{_enum:{Transferred:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",from:"AccountId32",to:"AccountId32",amount:"u128"},Withdrawn:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},Deposited:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},DustSwept:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"}}},OrmlVestingModuleEvent:{_enum:{VestingScheduleAdded:{from:"AccountId32",to:"AccountId32",vestingSchedule:"OrmlVestingVestingSchedule"},Claimed:{who:"AccountId32",amount:"u128"},VestingSchedulesUpdated:{who:"AccountId32"}}},OrmlVestingVestingSchedule:{start:"u32",period:"u32",periodCount:"u32",perPeriod:"Compact"},ModuleTransactionPaymentModuleEvent:{_enum:{ChargeFeePoolEnabled:{subAccount:"AccountId32",currencyId:"AcalaPrimitivesCurrencyCurrencyId",exchangeRate:"u128",poolSize:"u128",swapThreshold:"u128"},ChargeFeePoolSwapped:{subAccount:"AccountId32",supplyCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",oldExchangeRate:"u128",swapExchangeRate:"u128",newExchangeRate:"u128",newPoolSize:"u128"},ChargeFeePoolDisabled:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",foreignAmount:"u128",nativeAmount:"u128"},TransactionFeePaid:{who:"AccountId32",actualFee:"u128",actualTip:"u128",actualSurplus:"u128"}}},PalletTreasuryEvent:{_enum:{Proposed:{proposalIndex:"u32"},Spending:{budgetRemaining:"u128"},Awarded:{proposalIndex:"u32",award:"u128",account:"AccountId32"},Rejected:{proposalIndex:"u32",slashed:"u128"},Burnt:{burntFunds:"u128"},Rollover:{rolloverBalance:"u128"},Deposit:{value:"u128"},SpendApproved:{proposalIndex:"u32",amount:"u128",beneficiary:"AccountId32"}}},PalletBountiesEvent:{_enum:{BountyProposed:{index:"u32"},BountyRejected:{index:"u32",bond:"u128"},BountyBecameActive:{index:"u32"},BountyAwarded:{index:"u32",beneficiary:"AccountId32"},BountyClaimed:{index:"u32",payout:"u128",beneficiary:"AccountId32"},BountyCanceled:{index:"u32"},BountyExtended:{index:"u32"}}},PalletTipsEvent:{_enum:{NewTip:{tipHash:"H256"},TipClosing:{tipHash:"H256"},TipClosed:{tipHash:"H256",who:"AccountId32",payout:"u128"},TipRetracted:{tipHash:"H256"},TipSlashed:{tipHash:"H256",finder:"AccountId32",deposit:"u128"}}},ModuleCollatorSelectionEvent:{_enum:{NewInvulnerables:{newInvulnerables:"Vec"},NewDesiredCandidates:{newDesiredCandidates:"u32"},NewCandidacyBond:{newCandidacyBond:"u128"},CandidateAdded:{who:"AccountId32",bond:"u128"},CandidateRemoved:{who:"AccountId32"}}},PalletSessionEvent:{_enum:{NewSession:{sessionIndex:"u32"}}},ModuleSessionManagerModuleEvent:{_enum:{ScheduledSessionDuration:{blockNumber:"u32",sessionIndex:"u32",sessionDuration:"u32"}}},CumulusPalletXcmpQueueEvent:{_enum:{Success:{messageHash:"Option",weight:"u64"},Fail:{messageHash:"Option",error:"XcmV2TraitsError",weight:"u64"},BadVersion:{messageHash:"Option"},BadFormat:{messageHash:"Option"},UpwardMessageSent:{messageHash:"Option"},XcmpMessageSent:{messageHash:"Option"},OverweightEnqueued:{sender:"u32",sentAt:"u32",index:"u64",required:"u64"},OverweightServiced:{index:"u64",used:"u64"}}},XcmV2TraitsError:{_enum:{Overflow:"Null",Unimplemented:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",MultiLocationFull:"Null",MultiLocationNotInvertible:"Null",BadOrigin:"Null",InvalidLocation:"Null",AssetNotFound:"Null",FailedToTransactAsset:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",ExceedsMaxMessageSize:"Null",DestinationUnsupported:"Null",Transport:"Null",Unroutable:"Null",UnknownClaim:"Null",FailedToDecode:"Null",MaxWeightInvalid:"Null",NotHoldingFees:"Null",TooExpensive:"Null",Trap:"u64",UnhandledXcmVersion:"Null",WeightLimitReached:"u64",Barrier:"Null",WeightNotComputable:"Null"}},PalletXcmEvent:{_enum:{Attempted:"XcmV2TraitsOutcome",Sent:"(XcmV1MultiLocation,XcmV1MultiLocation,XcmV2Xcm)",UnexpectedResponse:"(XcmV1MultiLocation,u64)",ResponseReady:"(u64,XcmV2Response)",Notified:"(u64,u8,u8)",NotifyOverweight:"(u64,u8,u8,u64,u64)",NotifyDispatchError:"(u64,u8,u8)",NotifyDecodeFailed:"(u64,u8,u8)",InvalidResponder:"(XcmV1MultiLocation,u64,Option)",InvalidResponderVersion:"(XcmV1MultiLocation,u64)",ResponseTaken:"u64",AssetsTrapped:"(H256,XcmV1MultiLocation,XcmVersionedMultiAssets)",VersionChangeNotified:"(XcmV1MultiLocation,u32)",SupportedVersionChanged:"(XcmV1MultiLocation,u32)",NotifyTargetSendFail:"(XcmV1MultiLocation,u64,XcmV2TraitsError)",NotifyTargetMigrationFail:"(XcmVersionedMultiLocation,u64)"}},XcmV2TraitsOutcome:{_enum:{Complete:"u64",Incomplete:"(u64,XcmV2TraitsError)",Error:"XcmV2TraitsError"}},XcmV1MultiLocation:{parents:"u8",interior:"XcmV1MultilocationJunctions"},XcmV1MultilocationJunctions:{_enum:{Here:"Null",X1:"XcmV1Junction",X2:"(XcmV1Junction,XcmV1Junction)",X3:"(XcmV1Junction,XcmV1Junction,XcmV1Junction)",X4:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X5:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X6:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X7:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X8:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)"}},XcmV1Junction:{_enum:{Parachain:"Compact",AccountId32:{network:"XcmV0JunctionNetworkId",id:"[u8;32]"},AccountIndex64:{network:"XcmV0JunctionNetworkId",index:"Compact"},AccountKey20:{network:"XcmV0JunctionNetworkId",key:"[u8;20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Bytes",OnlyChild:"Null",Plurality:{id:"XcmV0JunctionBodyId",part:"XcmV0JunctionBodyPart"}}},XcmV0JunctionNetworkId:{_enum:{Any:"Null",Named:"Bytes",Polkadot:"Null",Kusama:"Null"}},XcmV0JunctionBodyId:{_enum:{Unit:"Null",Named:"Bytes",Index:"Compact",Executive:"Null",Technical:"Null",Legislative:"Null",Judicial:"Null"}},XcmV0JunctionBodyPart:{_enum:{Voice:"Null",Members:{count:"Compact"},Fraction:{nom:"Compact",denom:"Compact"},AtLeastProportion:{nom:"Compact",denom:"Compact"},MoreThanProportion:{nom:"Compact",denom:"Compact"}}},XcmV2Xcm:"Vec",XcmV2Instruction:{_enum:{WithdrawAsset:"XcmV1MultiassetMultiAssets",ReserveAssetDeposited:"XcmV1MultiassetMultiAssets",ReceiveTeleportedAsset:"XcmV1MultiassetMultiAssets",QueryResponse:{queryId:"Compact",response:"XcmV2Response",maxWeight:"Compact"},TransferAsset:{assets:"XcmV1MultiassetMultiAssets",beneficiary:"XcmV1MultiLocation"},TransferReserveAsset:{assets:"XcmV1MultiassetMultiAssets",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"Compact",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},ClearOrigin:"Null",DescendOrigin:"XcmV1MultilocationJunctions",ReportError:{queryId:"Compact",dest:"XcmV1MultiLocation",maxResponseWeight:"Compact"},DepositAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"Compact",beneficiary:"XcmV1MultiLocation"},DepositReserveAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"Compact",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},ExchangeAsset:{give:"XcmV1MultiassetMultiAssetFilter",receive:"XcmV1MultiassetMultiAssets"},InitiateReserveWithdraw:{assets:"XcmV1MultiassetMultiAssetFilter",reserve:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},InitiateTeleport:{assets:"XcmV1MultiassetMultiAssetFilter",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},QueryHolding:{queryId:"Compact",dest:"XcmV1MultiLocation",assets:"XcmV1MultiassetMultiAssetFilter",maxResponseWeight:"Compact"},BuyExecution:{fees:"XcmV1MultiAsset",weightLimit:"XcmV2WeightLimit"},RefundSurplus:"Null",SetErrorHandler:"XcmV2Xcm",SetAppendix:"XcmV2Xcm",ClearError:"Null",ClaimAsset:{assets:"XcmV1MultiassetMultiAssets",ticket:"XcmV1MultiLocation"},Trap:"Compact",SubscribeVersion:{queryId:"Compact",maxResponseWeight:"Compact"},UnsubscribeVersion:"Null"}},XcmV1MultiassetMultiAssets:"Vec",XcmV1MultiAsset:{id:"XcmV1MultiassetAssetId",fun:"XcmV1MultiassetFungibility"},XcmV1MultiassetAssetId:{_enum:{Concrete:"XcmV1MultiLocation",Abstract:"Bytes"}},XcmV1MultiassetFungibility:{_enum:{Fungible:"Compact",NonFungible:"XcmV1MultiassetAssetInstance"}},XcmV1MultiassetAssetInstance:{_enum:{Undefined:"Null",Index:"Compact",Array4:"[u8;4]",Array8:"[u8;8]",Array16:"[u8;16]",Array32:"[u8;32]",Blob:"Bytes"}},XcmV2Response:{_enum:{Null:"Null",Assets:"XcmV1MultiassetMultiAssets",ExecutionResult:"Option<(u32,XcmV2TraitsError)>",Version:"u32"}},XcmV0OriginKind:{_enum:["Native","SovereignAccount","Superuser","Xcm"]},XcmDoubleEncoded:{encoded:"Bytes"},XcmV1MultiassetMultiAssetFilter:{_enum:{Definite:"XcmV1MultiassetMultiAssets",Wild:"XcmV1MultiassetWildMultiAsset"}},XcmV1MultiassetWildMultiAsset:{_enum:{All:"Null",AllOf:{id:"XcmV1MultiassetAssetId",fun:"XcmV1MultiassetWildFungibility"}}},XcmV1MultiassetWildFungibility:{_enum:["Fungible","NonFungible"]},XcmV2WeightLimit:{_enum:{Unlimited:"Null",Limited:"Compact"}},XcmVersionedMultiAssets:{_enum:{V0:"Vec",V1:"XcmV1MultiassetMultiAssets"}},XcmV0MultiAsset:{_enum:{None:"Null",All:"Null",AllFungible:"Null",AllNonFungible:"Null",AllAbstractFungible:{id:"Bytes"},AllAbstractNonFungible:{class:"Bytes"},AllConcreteFungible:{id:"XcmV0MultiLocation"},AllConcreteNonFungible:{class:"XcmV0MultiLocation"},AbstractFungible:{id:"Bytes",amount:"Compact"},AbstractNonFungible:{class:"Bytes",instance:"XcmV1MultiassetAssetInstance"},ConcreteFungible:{id:"XcmV0MultiLocation",amount:"Compact"},ConcreteNonFungible:{class:"XcmV0MultiLocation",instance:"XcmV1MultiassetAssetInstance"}}},XcmV0MultiLocation:{_enum:{Null:"Null",X1:"XcmV0Junction",X2:"(XcmV0Junction,XcmV0Junction)",X3:"(XcmV0Junction,XcmV0Junction,XcmV0Junction)",X4:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X5:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X6:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X7:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X8:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)"}},XcmV0Junction:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:{network:"XcmV0JunctionNetworkId",id:"[u8;32]"},AccountIndex64:{network:"XcmV0JunctionNetworkId",index:"Compact"},AccountKey20:{network:"XcmV0JunctionNetworkId",key:"[u8;20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Bytes",OnlyChild:"Null",Plurality:{id:"XcmV0JunctionBodyId",part:"XcmV0JunctionBodyPart"}}},XcmVersionedMultiLocation:{_enum:{V0:"XcmV0MultiLocation",V1:"XcmV1MultiLocation"}},CumulusPalletXcmEvent:{_enum:{InvalidFormat:"[u8;8]",UnsupportedVersion:"[u8;8]",ExecutedDownward:"([u8;8],XcmV2TraitsOutcome)"}},CumulusPalletDmpQueueEvent:{_enum:{InvalidFormat:{messageId:"[u8;32]"},UnsupportedVersion:{messageId:"[u8;32]"},ExecutedDownward:{messageId:"[u8;32]",outcome:"XcmV2TraitsOutcome"},WeightExhausted:{messageId:"[u8;32]",remainingWeight:"u64",requiredWeight:"u64"},OverweightEnqueued:{messageId:"[u8;32]",overweightIndex:"u64",requiredWeight:"u64"},OverweightServiced:{overweightIndex:"u64",weightUsed:"u64"}}},OrmlXtokensModuleEvent:{_enum:{TransferredMultiAssets:{sender:"AccountId32",assets:"XcmV1MultiassetMultiAssets",fee:"XcmV1MultiAsset",dest:"XcmV1MultiLocation"}}},OrmlUnknownTokensModuleEvent:{_enum:{Deposited:{asset:"XcmV1MultiAsset",who:"XcmV1MultiLocation"},Withdrawn:{asset:"XcmV1MultiAsset",who:"XcmV1MultiLocation"}}},OrmlXcmModuleEvent:{_enum:{Sent:{to:"XcmV1MultiLocation",message:"XcmV2Xcm"}}},OrmlAuthorityModuleEvent:{_enum:{Dispatched:{result:"Result"},Scheduled:{origin:"AcalaRuntimeOriginCaller",index:"u32"},FastTracked:{origin:"AcalaRuntimeOriginCaller",index:"u32",when:"u32"},Delayed:{origin:"AcalaRuntimeOriginCaller",index:"u32",when:"u32"},Cancelled:{origin:"AcalaRuntimeOriginCaller",index:"u32"},AuthorizedCall:{_alias:{hash_:"hash"},hash_:"H256",caller:"Option"},RemovedAuthorizedCall:{_alias:{hash_:"hash"},hash_:"H256"},TriggeredCallBy:{_alias:{hash_:"hash"},hash_:"H256",caller:"AccountId32"}}},AcalaRuntimeOriginCaller:{_enum:{system:"FrameSupportDispatchRawOrigin",__Unused1:"Null",__Unused2:"Null",__Unused3:"Null",__Unused4:"Null",__Unused5:"Null",__Unused6:"Null",__Unused7:"Null",Void:"SpCoreVoid",__Unused9:"Null",__Unused10:"Null",__Unused11:"Null",__Unused12:"Null",__Unused13:"Null",__Unused14:"Null",__Unused15:"Null",__Unused16:"Null",__Unused17:"Null",__Unused18:"Null",__Unused19:"Null",__Unused20:"Null",__Unused21:"Null",__Unused22:"Null",__Unused23:"Null",__Unused24:"Null",__Unused25:"Null",__Unused26:"Null",__Unused27:"Null",__Unused28:"Null",__Unused29:"Null",__Unused30:"Null",__Unused31:"Null",__Unused32:"Null",__Unused33:"Null",__Unused34:"Null",__Unused35:"Null",__Unused36:"Null",__Unused37:"Null",__Unused38:"Null",__Unused39:"Null",__Unused40:"Null",__Unused41:"Null",__Unused42:"Null",__Unused43:"Null",__Unused44:"Null",__Unused45:"Null",__Unused46:"Null",__Unused47:"Null",__Unused48:"Null",__Unused49:"Null",__Unused50:"Null",PolkadotXcm:"PalletXcmOrigin",CumulusXcm:"CumulusPalletXcmOrigin",__Unused53:"Null",__Unused54:"Null",__Unused55:"Null",__Unused56:"Null",__Unused57:"Null",__Unused58:"Null",__Unused59:"Null",Authority:"OrmlAuthorityDelayedOrigin",GeneralCouncil:"PalletCollectiveRawOrigin",__Unused62:"Null",FinancialCouncil:"PalletCollectiveRawOrigin",__Unused64:"Null",HomaCouncil:"PalletCollectiveRawOrigin",__Unused66:"Null",TechnicalCommittee:"PalletCollectiveRawOrigin"}},FrameSupportDispatchRawOrigin:{_enum:{Root:"Null",Signed:"AccountId32",None:"Null"}},PalletXcmOrigin:{_enum:{Xcm:"XcmV1MultiLocation",Response:"XcmV1MultiLocation"}},CumulusPalletXcmOrigin:{_enum:{Relay:"Null",SiblingParachain:"u32"}},OrmlAuthorityDelayedOrigin:{delay:"u32",origin:"AcalaRuntimeOriginCaller"},PalletCollectiveRawOrigin:{_enum:{Members:"(u32,u32)",Member:"AccountId32",_Phantom:"Null"}},SpCoreVoid:"Null",PalletCollectiveEvent:{_enum:{Proposed:{account:"AccountId32",proposalIndex:"u32",proposalHash:"H256",threshold:"u32"},Voted:{account:"AccountId32",proposalHash:"H256",voted:"bool",yes:"u32",no:"u32"},Approved:{proposalHash:"H256"},Disapproved:{proposalHash:"H256"},Executed:{proposalHash:"H256",result:"Result"},MemberExecuted:{proposalHash:"H256",result:"Result"},Closed:{proposalHash:"H256",yes:"u32",no:"u32"}}},PalletMembershipEvent:{_enum:["MemberAdded","MemberRemoved","MembersSwapped","MembersReset","KeyChanged","Dummy"]},PalletDemocracyEvent:{_enum:{Proposed:{proposalIndex:"u32",deposit:"u128"},Tabled:{proposalIndex:"u32",deposit:"u128",depositors:"Vec"},ExternalTabled:"Null",Started:{refIndex:"u32",threshold:"PalletDemocracyVoteThreshold"},Passed:{refIndex:"u32"},NotPassed:{refIndex:"u32"},Cancelled:{refIndex:"u32"},Executed:{refIndex:"u32",result:"Result"},Delegated:{who:"AccountId32",target:"AccountId32"},Undelegated:{account:"AccountId32"},Vetoed:{who:"AccountId32",proposalHash:"H256",until:"u32"},PreimageNoted:{proposalHash:"H256",who:"AccountId32",deposit:"u128"},PreimageUsed:{proposalHash:"H256",provider:"AccountId32",deposit:"u128"},PreimageInvalid:{proposalHash:"H256",refIndex:"u32"},PreimageMissing:{proposalHash:"H256",refIndex:"u32"},PreimageReaped:{proposalHash:"H256",provider:"AccountId32",deposit:"u128",reaper:"AccountId32"},Blacklisted:{proposalHash:"H256"},Voted:{voter:"AccountId32",refIndex:"u32",vote:"PalletDemocracyVoteAccountVote"},Seconded:{seconder:"AccountId32",propIndex:"u32"},ProposalCanceled:{propIndex:"u32"}}},PalletDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},PalletDemocracyVoteAccountVote:{_enum:{Standard:{vote:"Vote",balance:"u128"},Split:{aye:"u128",nay:"u128"}}},OrmlOracleModuleEvent:{_enum:{NewFeedData:{sender:"AccountId32",values:"Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>"}}},OrmlAuctionModuleEvent:{_enum:{Bid:{auctionId:"u32",bidder:"AccountId32",amount:"u128"}}},ModulePricesModuleEvent:{_enum:{LockPrice:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",lockedPrice:"u128"},UnlockPrice:{currencyId:"AcalaPrimitivesCurrencyCurrencyId"}}},ModuleDexModuleEvent:{_enum:{AddProvision:{who:"AccountId32",currency0:"AcalaPrimitivesCurrencyCurrencyId",contribution0:"u128",currency1:"AcalaPrimitivesCurrencyCurrencyId",contribution1:"u128"},AddLiquidity:{who:"AccountId32",currency0:"AcalaPrimitivesCurrencyCurrencyId",pool0:"u128",currency1:"AcalaPrimitivesCurrencyCurrencyId",pool1:"u128",shareIncrement:"u128"},RemoveLiquidity:{who:"AccountId32",currency0:"AcalaPrimitivesCurrencyCurrencyId",pool0:"u128",currency1:"AcalaPrimitivesCurrencyCurrencyId",pool1:"u128",shareDecrement:"u128"},Swap:{trader:"AccountId32",path:"Vec",liquidityChanges:"Vec"},EnableTradingPair:{tradingPair:"AcalaPrimitivesTradingPair"},ListProvisioning:{tradingPair:"AcalaPrimitivesTradingPair"},DisableTradingPair:{tradingPair:"AcalaPrimitivesTradingPair"},ProvisioningToEnabled:{tradingPair:"AcalaPrimitivesTradingPair",pool0:"u128",pool1:"u128",shareAmount:"u128"},RefundProvision:{who:"AccountId32",currency0:"AcalaPrimitivesCurrencyCurrencyId",contribution0:"u128",currency1:"AcalaPrimitivesCurrencyCurrencyId",contribution1:"u128"},ProvisioningAborted:{tradingPair:"AcalaPrimitivesTradingPair",accumulatedProvision0:"u128",accumulatedProvision1:"u128"}}},AcalaPrimitivesTradingPair:"(AcalaPrimitivesCurrencyCurrencyId,AcalaPrimitivesCurrencyCurrencyId)",ModuleAuctionManagerModuleEvent:{_enum:{NewCollateralAuction:{auctionId:"u32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAmount:"u128",targetBidPrice:"u128"},CancelAuction:{auctionId:"u32"},CollateralAuctionDealt:{auctionId:"u32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAmount:"u128",winner:"AccountId32",paymentAmount:"u128"},DEXTakeCollateralAuction:{auctionId:"u32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAmount:"u128",supplyCollateralAmount:"u128",targetStableAmount:"u128"},CollateralAuctionAborted:{auctionId:"u32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAmount:"u128",targetStableAmount:"u128",refundRecipient:"AccountId32"}}},ModuleLoansModuleEvent:{_enum:{PositionUpdated:{owner:"AccountId32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAdjustment:"i128",debitAdjustment:"i128"},ConfiscateCollateralAndDebit:{owner:"AccountId32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",confiscatedCollateralAmount:"u128",deductDebitAmount:"u128"},TransferLoan:{from:"AccountId32",to:"AccountId32",currencyId:"AcalaPrimitivesCurrencyCurrencyId"}}},ModuleHonzonModuleEvent:{_enum:{Authorization:{authorizer:"AccountId32",authorizee:"AccountId32",collateralType:"AcalaPrimitivesCurrencyCurrencyId"},UnAuthorization:{authorizer:"AccountId32",authorizee:"AccountId32",collateralType:"AcalaPrimitivesCurrencyCurrencyId"},UnAuthorizationAll:{authorizer:"AccountId32"},TransferDebit:{fromCurrency:"AcalaPrimitivesCurrencyCurrencyId",toCurrency:"AcalaPrimitivesCurrencyCurrencyId",amount:"u128"}}},ModuleCdpTreasuryModuleEvent:{_enum:{ExpectedCollateralAuctionSizeUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newSize:"u128"}}},ModuleCdpEngineModuleEvent:{_enum:{LiquidateUnsafeCDP:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",owner:"AccountId32",collateralAmount:"u128",badDebtValue:"u128",targetAmount:"u128"},SettleCDPInDebit:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",owner:"AccountId32"},CloseCDPInDebitByDEX:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",owner:"AccountId32",soldCollateralAmount:"u128",refundCollateralAmount:"u128",debitValue:"u128"},InterestRatePerSecUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newInterestRatePerSec:"Option"},LiquidationRatioUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newLiquidationRatio:"Option"},LiquidationPenaltyUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newLiquidationPenalty:"Option"},RequiredCollateralRatioUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newRequiredCollateralRatio:"Option"},MaximumTotalDebitValueUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newTotalDebitValue:"u128"},LiquidationContractRegistered:{address:"H160"},LiquidationContractDeregistered:{address:"H160"}}},ModuleEmergencyShutdownModuleEvent:{_enum:{Shutdown:{blockNumber:"u32"},OpenRefund:{blockNumber:"u32"},Refund:{who:"AccountId32",stableCoinAmount:"u128",refundList:"Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>"}}},ModuleHomaModuleEvent:{_enum:{Minted:{minter:"AccountId32",stakingCurrencyAmount:"u128",liquidAmountReceived:"u128",liquidAmountAddedToVoid:"u128"},RequestedRedeem:{redeemer:"AccountId32",liquidAmount:"u128",allowFastMatch:"bool"},RedeemRequestCancelled:{redeemer:"AccountId32",cancelledLiquidAmount:"u128"},RedeemedByFastMatch:{redeemer:"AccountId32",matchedLiquidAmount:"u128",feeInLiquid:"u128",redeemedStakingAmount:"u128"},RedeemedByUnbond:{redeemer:"AccountId32",eraIndexWhenUnbond:"u32",liquidAmount:"u128",unbondingStakingAmount:"u128"},WithdrawRedemption:{redeemer:"AccountId32",redemptionAmount:"u128"},CurrentEraBumped:{newEraIndex:"u32"},CurrentEraReset:{newEraIndex:"u32"},LedgerBondedReset:{subAccountIndex:"u16",newBondedAmount:"u128"},LedgerUnlockingReset:{subAccountIndex:"u16",newUnlocking:"Vec"},SoftBondedCapPerSubAccountUpdated:{capAmount:"u128"},EstimatedRewardRatePerEraUpdated:{rewardRate:"u128"},CommissionRateUpdated:{commissionRate:"u128"},FastMatchFeeRateUpdated:{fastMatchFeeRate:"u128"},LastEraBumpedBlockUpdated:{lastEraBumpedBlock:"u32"},BumpEraFrequencyUpdated:{frequency:"u32"}}},ModuleHomaModuleUnlockChunk:{value:"Compact",era:"Compact"},ModuleXcmInterfaceModuleEvent:{_enum:{XcmDestWeightUpdated:{xcmOperation:"ModuleXcmInterfaceModuleXcmInterfaceOperation",newXcmDestWeight:"u64"},XcmFeeUpdated:{xcmOperation:"ModuleXcmInterfaceModuleXcmInterfaceOperation",newXcmDestWeight:"u128"}}},ModuleXcmInterfaceModuleXcmInterfaceOperation:{_enum:{XtokensTransfer:"Null",HomaWithdrawUnbonded:"Null",HomaBondExtra:"Null",HomaUnbond:"Null",ParachainFee:"XcmV1MultiLocation"}},ModuleIncentivesModuleEvent:{_enum:{DepositDexShare:{who:"AccountId32",dexShareType:"AcalaPrimitivesCurrencyCurrencyId",deposit:"u128"},WithdrawDexShare:{who:"AccountId32",dexShareType:"AcalaPrimitivesCurrencyCurrencyId",withdraw:"u128"},ClaimRewards:{who:"AccountId32",pool:"ModuleSupportIncentivesPoolId",rewardCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",actualAmount:"u128",deductionAmount:"u128"},IncentiveRewardAmountUpdated:{pool:"ModuleSupportIncentivesPoolId",rewardCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",rewardAmountPerPeriod:"u128"},ClaimRewardDeductionRateUpdated:{pool:"ModuleSupportIncentivesPoolId",deductionRate:"u128"}}},ModuleSupportIncentivesPoolId:{_enum:{Loans:"AcalaPrimitivesCurrencyCurrencyId",Dex:"AcalaPrimitivesCurrencyCurrencyId"}},ModuleNftModuleEvent:{_enum:{CreatedClass:{owner:"AccountId32",classId:"u32"},MintedToken:{from:"AccountId32",to:"AccountId32",classId:"u32",quantity:"u32"},TransferredToken:{from:"AccountId32",to:"AccountId32",classId:"u32",tokenId:"u64"},BurnedToken:{owner:"AccountId32",classId:"u32",tokenId:"u64"},BurnedTokenWithRemark:{owner:"AccountId32",classId:"u32",tokenId:"u64",remarkHash:"H256"},DestroyedClass:{owner:"AccountId32",classId:"u32"}}},ModuleAssetRegistryModuleEvent:{_enum:{ForeignAssetRegistered:{assetId:"u16",assetAddress:"XcmV1MultiLocation",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},ForeignAssetUpdated:{assetId:"u16",assetAddress:"XcmV1MultiLocation",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},AssetRegistered:{assetId:"AcalaPrimitivesCurrencyAssetIds",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},AssetUpdated:{assetId:"AcalaPrimitivesCurrencyAssetIds",metadata:"AcalaPrimitivesCurrencyAssetMetadata"}}},AcalaPrimitivesCurrencyAssetMetadata:{name:"Bytes",symbol:"Bytes",decimals:"u8",minimalBalance:"u128"},AcalaPrimitivesCurrencyAssetIds:{_enum:{Erc20:"H160",StableAssetId:"u32",ForeignAssetId:"u16",NativeAssetId:"AcalaPrimitivesCurrencyCurrencyId"}},ModuleEvmModuleEvent:{_enum:{Created:{from:"H160",contract:"H160",logs:"Vec",usedGas:"u64",usedStorage:"i32"},CreatedFailed:{from:"H160",contract:"H160",exitReason:"EvmCoreErrorExitReason",logs:"Vec",usedGas:"u64",usedStorage:"i32"},Executed:{from:"H160",contract:"H160",logs:"Vec",usedGas:"u64",usedStorage:"i32"},ExecutedFailed:{from:"H160",contract:"H160",exitReason:"EvmCoreErrorExitReason",output:"Bytes",logs:"Vec",usedGas:"u64",usedStorage:"i32"},TransferredMaintainer:{contract:"H160",newMaintainer:"H160"},ContractDevelopmentEnabled:{who:"AccountId32"},ContractDevelopmentDisabled:{who:"AccountId32"},ContractPublished:{contract:"H160"},ContractSetCode:{contract:"H160"},ContractSelfdestructed:{contract:"H160"}}},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},EvmCoreErrorExitReason:{_enum:{Succeed:"EvmCoreErrorExitSucceed",Error:"EvmCoreErrorExitError",Revert:"EvmCoreErrorExitRevert",Fatal:"EvmCoreErrorExitFatal"}},EvmCoreErrorExitSucceed:{_enum:["Stopped","Returned","Suicided"]},EvmCoreErrorExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"Null"}},EvmCoreErrorExitRevert:{_enum:["Reverted"]},EvmCoreErrorExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"EvmCoreErrorExitError",Other:"Text"}},ModuleEvmAccountsModuleEvent:{_enum:{ClaimAccount:{accountId:"AccountId32",evmAddress:"H160"}}},NutsfinanceStableAssetEvent:{_enum:{CreatePool:{poolId:"u32",a:"u128",swapId:"AccountId32",palletId:"AccountId32"},Minted:{minter:"AccountId32",poolId:"u32",a:"u128",inputAmounts:"Vec",minOutputAmount:"u128",balances:"Vec",totalSupply:"u128",feeAmount:"u128",outputAmount:"u128"},TokenSwapped:{swapper:"AccountId32",poolId:"u32",a:"u128",inputAsset:"AcalaPrimitivesCurrencyCurrencyId",outputAsset:"AcalaPrimitivesCurrencyCurrencyId",inputAmount:"u128",minOutputAmount:"u128",balances:"Vec",totalSupply:"u128",outputAmount:"u128"},RedeemedProportion:{redeemer:"AccountId32",poolId:"u32",a:"u128",inputAmount:"u128",minOutputAmounts:"Vec",balances:"Vec",totalSupply:"u128",feeAmount:"u128",outputAmounts:"Vec"},RedeemedSingle:{redeemer:"AccountId32",poolId:"u32",a:"u128",inputAmount:"u128",outputAsset:"AcalaPrimitivesCurrencyCurrencyId",minOutputAmount:"u128",balances:"Vec",totalSupply:"u128",feeAmount:"u128",outputAmount:"u128"},RedeemedMulti:{redeemer:"AccountId32",poolId:"u32",a:"u128",outputAmounts:"Vec",maxInputAmount:"u128",balances:"Vec",totalSupply:"u128",feeAmount:"u128",inputAmount:"u128"},BalanceUpdated:{poolId:"u32",oldBalances:"Vec",newBalances:"Vec"},YieldCollected:{poolId:"u32",a:"u128",oldTotalSupply:"u128",newTotalSupply:"u128",who:"AccountId32",amount:"u128"},FeeCollected:{poolId:"u32",a:"u128",oldBalances:"Vec",newBalances:"Vec",oldTotalSupply:"u128",newTotalSupply:"u128",who:"AccountId32",amount:"u128"},AModified:{poolId:"u32",value:"u128",time:"u32"},FeeModified:{poolId:"u32",mintFee:"u128",swapFee:"u128",redeemFee:"u128"},RecipientModified:{poolId:"u32",feeRecipient:"AccountId32",yieldRecipient:"AccountId32"}}},CumulusPalletParachainSystemEvent:{_enum:{ValidationFunctionStored:"Null",ValidationFunctionApplied:{relayChainBlockNum:"u32"},ValidationFunctionDiscarded:"Null",UpgradeAuthorized:{codeHash:"H256"},DownwardMessagesReceived:{count:"u32"},DownwardMessagesProcessed:{weightUsed:"u64",dmqHead:"H256"}}},PalletSudoEvent:{_enum:{Sudid:{sudoResult:"Result"},KeyChanged:{oldSudoer:"Option"},SudoAsDone:{sudoResult:"Result"}}},FrameSystemPhase:{_enum:{ApplyExtrinsic:"u32",Finalization:"Null",Initialization:"Null"}},FrameSystemLastRuntimeUpgradeInfo:{specVersion:"Compact",specName:"Text"},FrameSystemCall:{_enum:{fill_block:{ratio:"Perbill"},remark:{remark:"Bytes"},set_heap_pages:{pages:"u64"},set_code:{code:"Bytes"},set_code_without_checks:{code:"Bytes"},set_storage:{items:"Vec<(Bytes,Bytes)>"},kill_storage:{_alias:{keys_:"keys"},keys_:"Vec"},kill_prefix:{prefix:"Bytes",subkeys:"u32"},remark_with_event:{remark:"Bytes"}}},FrameSystemLimitsBlockWeights:{baseBlock:"u64",maxBlock:"u64",perClass:"FrameSupportWeightsPerDispatchClassWeightsPerClass"},FrameSupportWeightsPerDispatchClassWeightsPerClass:{normal:"FrameSystemLimitsWeightsPerClass",operational:"FrameSystemLimitsWeightsPerClass",mandatory:"FrameSystemLimitsWeightsPerClass"},FrameSystemLimitsWeightsPerClass:{baseExtrinsic:"u64",maxExtrinsic:"Option",maxTotal:"Option",reserved:"Option"},FrameSystemLimitsBlockLength:{max:"FrameSupportWeightsPerDispatchClassU32"},FrameSupportWeightsPerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},FrameSupportWeightsRuntimeDbWeight:{read:"u64",write:"u64"},SpVersionRuntimeVersion:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec<([u8;8],u32)>",transactionVersion:"u32",stateVersion:"u8"},FrameSystemError:{_enum:["InvalidSpecName","SpecVersionNeedsToIncrease","FailedToExtractRuntimeVersion","NonDefaultComposite","NonZeroRefCount","CallFiltered"]},PalletTimestampCall:{_enum:{set:{now:"Compact"}}},PalletSchedulerScheduledV3:{maybeId:"Option",priority:"u8",call:"FrameSupportScheduleMaybeHashed",maybePeriodic:"Option<(u32,u32)>",origin:"AcalaRuntimeOriginCaller"},FrameSupportScheduleMaybeHashed:{_enum:{Value:"Call",Hash:"H256"}},PalletSchedulerCall:{_enum:{schedule:{when:"u32",maybePeriodic:"Option<(u32,u32)>",priority:"u8",call:"FrameSupportScheduleMaybeHashed"},cancel:{when:"u32",index:"u32"},schedule_named:{id:"Bytes",when:"u32",maybePeriodic:"Option<(u32,u32)>",priority:"u8",call:"FrameSupportScheduleMaybeHashed"},cancel_named:{id:"Bytes"},schedule_after:{after:"u32",maybePeriodic:"Option<(u32,u32)>",priority:"u8",call:"FrameSupportScheduleMaybeHashed"},schedule_named_after:{id:"Bytes",after:"u32",maybePeriodic:"Option<(u32,u32)>",priority:"u8",call:"FrameSupportScheduleMaybeHashed"}}},PalletUtilityCall:{_enum:{batch:{calls:"Vec"},as_derivative:{index:"u16",call:"Call"},batch_all:{calls:"Vec"},dispatch_as:{asOrigin:"AcalaRuntimeOriginCaller",call:"Call"},force_batch:{calls:"Vec"}}},PalletMultisigCall:{_enum:{as_multi_threshold_1:{otherSignatories:"Vec",call:"Call"},as_multi:{threshold:"u16",otherSignatories:"Vec",maybeTimepoint:"Option",call:"WrapperKeepOpaque",storeCall:"bool",maxWeight:"u64"},approve_as_multi:{threshold:"u16",otherSignatories:"Vec",maybeTimepoint:"Option",callHash:"[u8;32]",maxWeight:"u64"},cancel_as_multi:{threshold:"u16",otherSignatories:"Vec",timepoint:"PalletMultisigTimepoint",callHash:"[u8;32]"}}},PalletProxyCall:{_enum:{proxy:{real:"AccountId32",forceProxyType:"Option",call:"Call"},add_proxy:{delegate:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"},remove_proxy:{delegate:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"},remove_proxies:"Null",anonymous:{proxyType:"RuntimeCommonProxyType",delay:"u32",index:"u16"},kill_anonymous:{spawner:"AccountId32",proxyType:"RuntimeCommonProxyType",index:"u16",height:"Compact",extIndex:"Compact"},announce:{real:"AccountId32",callHash:"H256"},remove_announcement:{real:"AccountId32",callHash:"H256"},reject_announcement:{delegate:"AccountId32",callHash:"H256"},proxy_announced:{delegate:"AccountId32",real:"AccountId32",forceProxyType:"Option",call:"Call"}}},ModuleTransactionPauseModuleCall:{_enum:{pause_transaction:{palletName:"Bytes",functionName:"Bytes"},unpause_transaction:{palletName:"Bytes",functionName:"Bytes"},pause_evm_precompile:{address:"H160"},unpause_evm_precompile:{address:"H160"}}},ModuleIdleSchedulerModuleCall:{_enum:{schedule_task:{task:"AcalaRuntimeScheduledTasks"}}},PalletPreimageCall:{_enum:{note_preimage:{bytes:"Bytes"},unnote_preimage:{_alias:{hash_:"hash"},hash_:"H256"},request_preimage:{_alias:{hash_:"hash"},hash_:"H256"},unrequest_preimage:{_alias:{hash_:"hash"},hash_:"H256"}}},PalletBalancesCall:{_enum:{transfer:{dest:"MultiAddress",value:"Compact"},set_balance:{who:"MultiAddress",newFree:"Compact",newReserved:"Compact"},force_transfer:{source:"MultiAddress",dest:"MultiAddress",value:"Compact"},transfer_keep_alive:{dest:"MultiAddress",value:"Compact"},transfer_all:{dest:"MultiAddress",keepAlive:"bool"},force_unreserve:{who:"MultiAddress",amount:"u128"}}},ModuleCurrenciesModuleCall:{_enum:{transfer:{dest:"MultiAddress",currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact"},transfer_native_currency:{dest:"MultiAddress",amount:"Compact"},update_balance:{who:"MultiAddress",currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"i128"},sweep_dust:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",accounts:"Vec"},force_set_lock:{who:"MultiAddress",currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact",lockId:"[u8;8]"},force_remove_lock:{who:"MultiAddress",currencyId:"AcalaPrimitivesCurrencyCurrencyId",lockId:"[u8;8]"}}},OrmlVestingModuleCall:{_enum:{claim:"Null",vested_transfer:{dest:"MultiAddress",schedule:"OrmlVestingVestingSchedule"},update_vesting_schedules:{who:"MultiAddress",vestingSchedules:"Vec"},claim_for:{dest:"MultiAddress"}}},ModuleTransactionPaymentModuleCall:{_enum:{set_alternative_fee_swap_path:{feeSwapPath:"Option>"},enable_charge_fee_pool:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",poolSize:"u128",swapThreshold:"u128"},disable_charge_fee_pool:{currencyId:"AcalaPrimitivesCurrencyCurrencyId"},with_fee_path:{feeSwapPath:"Vec",call:"Call"},with_fee_currency:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",call:"Call"},with_fee_paid_by:{call:"Call",payerAddr:"AccountId32",payerSig:"SpRuntimeMultiSignature"},with_fee_aggregated_path:{feeAggregatedPath:"Vec",call:"Call"}}},SpRuntimeMultiSignature:{_enum:{Ed25519:"SpCoreEd25519Signature",Sr25519:"SpCoreSr25519Signature",Ecdsa:"SpCoreEcdsaSignature"}},SpCoreEd25519Signature:"[u8;64]",SpCoreSr25519Signature:"[u8;64]",SpCoreEcdsaSignature:"[u8;65]",ModuleSupportDexAggregatedSwapPath:{_enum:{Dex:"Vec",Taiga:"(u32,u32,u32)"}},PalletTreasuryCall:{_enum:{propose_spend:{value:"Compact",beneficiary:"MultiAddress"},reject_proposal:{proposalId:"Compact"},approve_proposal:{proposalId:"Compact"},spend:{amount:"Compact",beneficiary:"MultiAddress"},remove_approval:{proposalId:"Compact"}}},PalletBountiesCall:{_enum:{propose_bounty:{value:"Compact",description:"Bytes"},approve_bounty:{bountyId:"Compact"},propose_curator:{bountyId:"Compact",curator:"MultiAddress",fee:"Compact"},unassign_curator:{bountyId:"Compact"},accept_curator:{bountyId:"Compact"},award_bounty:{bountyId:"Compact",beneficiary:"MultiAddress"},claim_bounty:{bountyId:"Compact"},close_bounty:{bountyId:"Compact"},extend_bounty_expiry:{bountyId:"Compact",remark:"Bytes"}}},PalletTipsCall:{_enum:{report_awesome:{reason:"Bytes",who:"AccountId32"},retract_tip:{_alias:{hash_:"hash"},hash_:"H256"},tip_new:{reason:"Bytes",who:"AccountId32",tipValue:"Compact"},tip:{_alias:{hash_:"hash"},hash_:"H256",tipValue:"Compact"},close_tip:{_alias:{hash_:"hash"},hash_:"H256"},slash_tip:{_alias:{hash_:"hash"},hash_:"H256"}}},PalletAuthorshipCall:{_enum:{set_uncles:{newUncles:"Vec"}}},SpRuntimeHeader:{parentHash:"H256",number:"Compact",stateRoot:"H256",extrinsicsRoot:"H256",digest:"SpRuntimeDigest"},SpRuntimeBlakeTwo256:"Null",ModuleCollatorSelectionCall:{_enum:{set_invulnerables:{_alias:{new_:"new"},new_:"Vec"},set_desired_candidates:{max:"Compact"},set_candidacy_bond:{bond:"Compact"},register_as_candidate:"Null",register_candidate:{newCandidate:"AccountId32"},leave_intent:"Null",withdraw_bond:"Null"}},PalletSessionCall:{_enum:{set_keys:{_alias:{keys_:"keys"},keys_:"AcalaRuntimeSessionKeys",proof:"Bytes"},purge_keys:"Null"}},AcalaRuntimeSessionKeys:{aura:"SpConsensusAuraSr25519AppSr25519Public"},SpConsensusAuraSr25519AppSr25519Public:"SpCoreSr25519Public",SpCoreSr25519Public:"[u8;32]",ModuleSessionManagerModuleCall:{_enum:{schedule_session_duration:{startSession:"Compact",duration:"Compact"}}},CumulusPalletXcmpQueueCall:{_enum:{service_overweight:{index:"u64",weightLimit:"u64"},suspend_xcm_execution:"Null",resume_xcm_execution:"Null",update_suspend_threshold:{_alias:{new_:"new"},new_:"u32"},update_drop_threshold:{_alias:{new_:"new"},new_:"u32"},update_resume_threshold:{_alias:{new_:"new"},new_:"u32"},update_threshold_weight:{_alias:{new_:"new"},new_:"u64"},update_weight_restrict_decay:{_alias:{new_:"new"},new_:"u64"},update_xcmp_max_individual_weight:{_alias:{new_:"new"},new_:"u64"}}},PalletXcmCall:{_enum:{send:{dest:"XcmVersionedMultiLocation",message:"XcmVersionedXcm"},teleport_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32"},reserve_transfer_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32"},execute:{message:"XcmVersionedXcm",maxWeight:"u64"},force_xcm_version:{location:"XcmV1MultiLocation",xcmVersion:"u32"},force_default_xcm_version:{maybeXcmVersion:"Option"},force_subscribe_version_notify:{location:"XcmVersionedMultiLocation"},force_unsubscribe_version_notify:{location:"XcmVersionedMultiLocation"},limited_reserve_transfer_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32",weightLimit:"XcmV2WeightLimit"},limited_teleport_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32",weightLimit:"XcmV2WeightLimit"}}},XcmVersionedXcm:{_enum:{V0:"XcmV0Xcm",V1:"XcmV1Xcm",V2:"XcmV2Xcm"}},XcmV0Xcm:{_enum:{WithdrawAsset:{assets:"Vec",effects:"Vec"},ReserveAssetDeposit:{assets:"Vec",effects:"Vec"},TeleportAsset:{assets:"Vec",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"XcmV0Response"},TransferAsset:{assets:"Vec",dest:"XcmV0MultiLocation"},TransferReserveAsset:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"u64",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},RelayedFrom:{who:"XcmV0MultiLocation",message:"XcmV0Xcm"}}},XcmV0Order:{_enum:{Null:"Null",DepositAsset:{assets:"Vec",dest:"XcmV0MultiLocation"},DepositReserveAsset:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},ExchangeAsset:{give:"Vec",receive:"Vec"},InitiateReserveWithdraw:{assets:"Vec",reserve:"XcmV0MultiLocation",effects:"Vec"},InitiateTeleport:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"XcmV0MultiLocation",assets:"Vec"},BuyExecution:{fees:"XcmV0MultiAsset",weight:"u64",debt:"u64",haltOnError:"bool",xcm:"Vec"}}},XcmV0Response:{_enum:{Assets:"Vec"}},XcmV1Xcm:{_enum:{WithdrawAsset:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},ReserveAssetDeposited:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},ReceiveTeleportedAsset:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"XcmV1Response"},TransferAsset:{assets:"XcmV1MultiassetMultiAssets",beneficiary:"XcmV1MultiLocation"},TransferReserveAsset:{assets:"XcmV1MultiassetMultiAssets",dest:"XcmV1MultiLocation",effects:"Vec"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"u64",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},RelayedFrom:{who:"XcmV1MultilocationJunctions",message:"XcmV1Xcm"},SubscribeVersion:{queryId:"Compact",maxResponseWeight:"Compact"},UnsubscribeVersion:"Null"}},XcmV1Order:{_enum:{Noop:"Null",DepositAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"u32",beneficiary:"XcmV1MultiLocation"},DepositReserveAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"u32",dest:"XcmV1MultiLocation",effects:"Vec"},ExchangeAsset:{give:"XcmV1MultiassetMultiAssetFilter",receive:"XcmV1MultiassetMultiAssets"},InitiateReserveWithdraw:{assets:"XcmV1MultiassetMultiAssetFilter",reserve:"XcmV1MultiLocation",effects:"Vec"},InitiateTeleport:{assets:"XcmV1MultiassetMultiAssetFilter",dest:"XcmV1MultiLocation",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"XcmV1MultiLocation",assets:"XcmV1MultiassetMultiAssetFilter"},BuyExecution:{fees:"XcmV1MultiAsset",weight:"u64",debt:"u64",haltOnError:"bool",instructions:"Vec"}}},XcmV1Response:{_enum:{Assets:"XcmV1MultiassetMultiAssets",Version:"u32"}},CumulusPalletDmpQueueCall:{_enum:{service_overweight:{index:"u64",weightLimit:"u64"}}},OrmlXtokensModuleCall:{_enum:{transfer:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"u128",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_multiasset:{asset:"XcmVersionedMultiAsset",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_with_fee:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"u128",fee:"u128",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_multiasset_with_fee:{asset:"XcmVersionedMultiAsset",fee:"XcmVersionedMultiAsset",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_multicurrencies:{currencies:"Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>",feeItem:"u32",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_multiassets:{assets:"XcmVersionedMultiAssets",feeItem:"u32",dest:"XcmVersionedMultiLocation",destWeight:"u64"}}},XcmVersionedMultiAsset:{_enum:{V0:"XcmV0MultiAsset",V1:"XcmV1MultiAsset"}},OrmlXcmModuleCall:{_enum:{send_as_sovereign:{dest:"XcmVersionedMultiLocation",message:"XcmVersionedXcm"}}},OrmlAuthorityModuleCall:{_enum:{dispatch_as:{asOrigin:"AcalaPrimitivesAuthoritysOriginId",call:"Call"},schedule_dispatch:{when:"FrameSupportScheduleDispatchTime",priority:"u8",withDelayedOrigin:"bool",call:"Call"},fast_track_scheduled_dispatch:{initialOrigin:"AcalaRuntimeOriginCaller",taskId:"u32",when:"FrameSupportScheduleDispatchTime"},delay_scheduled_dispatch:{initialOrigin:"AcalaRuntimeOriginCaller",taskId:"u32",additionalDelay:"u32"},cancel_scheduled_dispatch:{initialOrigin:"AcalaRuntimeOriginCaller",taskId:"u32"},authorize_call:{call:"Call",caller:"Option"},remove_authorized_call:{_alias:{hash_:"hash"},hash_:"H256"},trigger_call:{_alias:{hash_:"hash"},hash_:"H256",callWeightBound:"Compact"}}},AcalaPrimitivesAuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},FrameSupportScheduleDispatchTime:{_enum:{At:"u32",After:"u32"}},PalletCollectiveCall:{_enum:{set_members:{newMembers:"Vec",prime:"Option",oldCount:"u32"},execute:{proposal:"Call",lengthBound:"Compact"},propose:{threshold:"Compact",proposal:"Call",lengthBound:"Compact"},vote:{proposal:"H256",index:"Compact",approve:"bool"},close:{proposalHash:"H256",index:"Compact",proposalWeightBound:"Compact",lengthBound:"Compact"},disapprove_proposal:{proposalHash:"H256"}}},PalletMembershipCall:{_enum:{add_member:{who:"AccountId32"},remove_member:{who:"AccountId32"},swap_member:{remove:"AccountId32",add:"AccountId32"},reset_members:{members:"Vec"},change_key:{_alias:{new_:"new"},new_:"AccountId32"},set_prime:{who:"AccountId32"},clear_prime:"Null"}},PalletDemocracyCall:{_enum:{propose:{proposalHash:"H256",value:"Compact"},second:{proposal:"Compact",secondsUpperBound:"Compact"},vote:{refIndex:"Compact",vote:"PalletDemocracyVoteAccountVote"},emergency_cancel:{refIndex:"u32"},external_propose:{proposalHash:"H256"},external_propose_majority:{proposalHash:"H256"},external_propose_default:{proposalHash:"H256"},fast_track:{proposalHash:"H256",votingPeriod:"u32",delay:"u32"},veto_external:{proposalHash:"H256"},cancel_referendum:{refIndex:"Compact"},cancel_queued:{which:"u32"},delegate:{to:"AccountId32",conviction:"PalletDemocracyConviction",balance:"u128"},undelegate:"Null",clear_public_proposals:"Null",note_preimage:{encodedProposal:"Bytes"},note_preimage_operational:{encodedProposal:"Bytes"},note_imminent_preimage:{encodedProposal:"Bytes"},note_imminent_preimage_operational:{encodedProposal:"Bytes"},reap_preimage:{proposalHash:"H256",proposalLenUpperBound:"Compact"},unlock:{target:"AccountId32"},remove_vote:{index:"u32"},remove_other_vote:{target:"AccountId32",index:"u32"},enact_proposal:{proposalHash:"H256",index:"u32"},blacklist:{proposalHash:"H256",maybeRefIndex:"Option"},cancel_proposal:{propIndex:"Compact"}}},PalletDemocracyConviction:{_enum:["None","Locked1x","Locked2x","Locked3x","Locked4x","Locked5x","Locked6x"]},OrmlOracleModuleCall:{_enum:{feed_values:{values:"Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>"}}},OrmlAuctionModuleCall:{_enum:{bid:{id:"u32",value:"Compact"}}},OrmlRewardsModuleCall:"Null",ModulePricesModuleCall:{_enum:{lock_price:{currencyId:"AcalaPrimitivesCurrencyCurrencyId"},unlock_price:{currencyId:"AcalaPrimitivesCurrencyCurrencyId"}}},ModuleDexModuleCall:{_enum:{swap_with_exact_supply:{path:"Vec",supplyAmount:"Compact",minTargetAmount:"Compact"},swap_with_exact_target:{path:"Vec",targetAmount:"Compact",maxSupplyAmount:"Compact"},add_liquidity:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",maxAmountA:"Compact",maxAmountB:"Compact",minShareIncrement:"Compact",stakeIncrementShare:"bool"},add_provision:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",amountA:"Compact",amountB:"Compact"},claim_dex_share:{owner:"AccountId32",currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},remove_liquidity:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",removeShare:"Compact",minWithdrawnA:"Compact",minWithdrawnB:"Compact",byUnstake:"bool"},list_provisioning:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",minContributionA:"Compact",minContributionB:"Compact",targetProvisionA:"Compact",targetProvisionB:"Compact",notBefore:"Compact"},update_provisioning_parameters:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",minContributionA:"Compact",minContributionB:"Compact",targetProvisionA:"Compact",targetProvisionB:"Compact",notBefore:"Compact"},end_provisioning:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},enable_trading_pair:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},disable_trading_pair:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},refund_provision:{owner:"AccountId32",currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},abort_provisioning:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"}}},ModuleDexOracleModuleCall:{_enum:{enable_average_price:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",interval:"u64"},disable_average_price:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},update_average_price_interval:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",newInterval:"u64"}}},ModuleAggregatedDexModuleCall:{_enum:{swap_with_exact_supply:{paths:"Vec",supplyAmount:"Compact",minTargetAmount:"Compact"},swap_with_exact_target:{paths:"Vec",targetAmount:"Compact",maxSupplyAmount:"Compact"},update_aggregated_swap_paths:{updates:"Vec<((AcalaPrimitivesCurrencyCurrencyId,AcalaPrimitivesCurrencyCurrencyId),Option>)>"}}},ModuleAuctionManagerModuleCall:{_enum:{cancel:{id:"u32"}}},ModuleLoansModuleCall:"Null",ModuleHonzonModuleCall:{_enum:{adjust_loan:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",collateralAdjustment:"i128",debitAdjustment:"i128"},close_loan_has_debit_by_dex:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",maxCollateralAmount:"Compact"},transfer_loan_from:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",from:"MultiAddress"},authorize:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",to:"MultiAddress"},unauthorize:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",to:"MultiAddress"},unauthorize_all:"Null",expand_position_collateral:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",increaseDebitValue:"u128",minIncreaseCollateral:"u128"},shrink_position_debit:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",decreaseCollateral:"u128",minDecreaseDebitValue:"u128"},adjust_loan_by_debit_value:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",collateralAdjustment:"i128",debitValueAdjustment:"i128"},transfer_debit:{fromCurrency:"AcalaPrimitivesCurrencyCurrencyId",toCurrency:"AcalaPrimitivesCurrencyCurrencyId",debitTransfer:"u128"}}},ModuleCdpTreasuryModuleCall:{_enum:{extract_surplus_to_treasury:{amount:"Compact"},auction_collateral:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact",target:"Compact",splited:"bool"},exchange_collateral_to_stable:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",swapLimit:"ModuleSupportDexSwapLimit"},set_expected_collateral_auction_size:{_alias:{size_:"size"},currencyId:"AcalaPrimitivesCurrencyCurrencyId",size_:"Compact"}}},ModuleSupportDexSwapLimit:{_enum:{ExactSupply:"(u128,u128)",ExactTarget:"(u128,u128)"}},ModuleCdpEngineModuleCall:{_enum:{liquidate:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"MultiAddress"},settle:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"MultiAddress"},set_collateral_params:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",interestRatePerSec:"OrmlTraitsChangeOption",liquidationRatio:"OrmlTraitsChangeOption",liquidationPenalty:"OrmlTraitsChangeOption",requiredCollateralRatio:"OrmlTraitsChangeOption",maximumTotalDebitValue:"OrmlTraitsChangeU128"},register_liquidation_contract:{address:"H160"},deregister_liquidation_contract:{address:"H160"}}},OrmlTraitsChangeOption:{_enum:{NoChange:"Null",NewValue:"Option"}},OrmlTraitsChangeU128:{_enum:{NoChange:"Null",NewValue:"u128"}},ModuleEmergencyShutdownModuleCall:{_enum:{emergency_shutdown:"Null",open_collateral_refund:"Null",refund_collaterals:{amount:"Compact"}}},ModuleHomaModuleCall:{_enum:{mint:{amount:"Compact"},request_redeem:{amount:"Compact",allowFastMatch:"bool"},fast_match_redeems:{redeemerList:"Vec"},claim_redemption:{redeemer:"AccountId32"},update_homa_params:{softBondedCapPerSubAccount:"Option",estimatedRewardRatePerEra:"Option",commissionRate:"Option",fastMatchFeeRate:"Option"},update_bump_era_params:{lastEraBumpedBlock:"Option",frequency:"Option"},reset_ledgers:{updates:"Vec<(u16,Option,Option>)>"},reset_current_era:{eraIndex:"u32"},force_bump_current_era:{bumpAmount:"u32"},fast_match_redeems_completely:{redeemerList:"Vec"}}},ModuleXcmInterfaceModuleCall:{_enum:{update_xcm_dest_weight_and_fee:{updates:"Vec<(ModuleXcmInterfaceModuleXcmInterfaceOperation,Option,Option)>"}}},ModuleIncentivesModuleCall:{_enum:{deposit_dex_share:{lpCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact"},withdraw_dex_share:{lpCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact"},claim_rewards:{poolId:"ModuleSupportIncentivesPoolId"},update_incentive_rewards:{updates:"Vec<(ModuleSupportIncentivesPoolId,Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>)>"},update_claim_reward_deduction_rates:{updates:"Vec<(ModuleSupportIncentivesPoolId,u128)>"}}},ModuleNftModuleCall:{_enum:{create_class:{metadata:"Bytes",properties:"u8",attributes:"BTreeMap"},mint:{to:"MultiAddress",classId:"u32",metadata:"Bytes",attributes:"BTreeMap",quantity:"Compact"},transfer:{to:"MultiAddress",token:"(u32,u64)"},burn:{token:"(u32,u64)"},burn_with_remark:{token:"(u32,u64)",remark:"Bytes"},destroy_class:{classId:"u32",dest:"MultiAddress"},update_class_properties:{classId:"u32",properties:"u8"}}},AcalaPrimitivesNftClassProperty:{_enum:["__Unused0","Transferable","Burnable","__Unused3","Mintable","__Unused5","__Unused6","__Unused7","ClassPropertiesMutable"]},ModuleAssetRegistryModuleCall:{_enum:{register_foreign_asset:{location:"XcmVersionedMultiLocation",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},update_foreign_asset:{foreignAssetId:"u16",location:"XcmVersionedMultiLocation",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},register_stable_asset:{metadata:"AcalaPrimitivesCurrencyAssetMetadata"},update_stable_asset:{stableAssetId:"u32",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},register_erc20_asset:{contract:"H160",minimalBalance:"u128"},update_erc20_asset:{contract:"H160",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},register_native_asset:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},update_native_asset:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",metadata:"AcalaPrimitivesCurrencyAssetMetadata"}}},ModuleEvmModuleCall:{_enum:{eth_call:{action:"EthereumTransactionTransactionAction",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec",validUntil:"Compact"},call:{target:"H160",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},scheduled_call:{from:"H160",target:"H160",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},create:{input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},create2:{input:"Bytes",salt:"H256",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},create_nft_contract:{input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},create_predeploy_contract:{target:"H160",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},transfer_maintainer:{contract:"H160",newMaintainer:"H160"},publish_contract:{contract:"H160"},publish_free:{contract:"H160"},enable_contract_development:"Null",disable_contract_development:"Null",set_code:{contract:"H160",code:"Bytes"},selfdestruct:{contract:"H160"},strict_call:{target:"H160",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"}}},EthereumTransactionTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthereumTransactionAccessListItem:{address:"H160",storageKeys:"Vec"},ModuleEvmAccountsModuleCall:{_enum:{claim_account:{ethAddress:"H160",ethSignature:"[u8;65]"},claim_default_account:"Null"}},NutsfinanceStableAssetCall:{_enum:{create_pool:{poolAsset:"AcalaPrimitivesCurrencyCurrencyId",assets:"Vec",precisions:"Vec",mintFee:"u128",swapFee:"u128",redeemFee:"u128",initialA:"u128",feeRecipient:"AccountId32",yieldRecipient:"AccountId32",precision:"u128"},mint:{poolId:"u32",amounts:"Vec",minMintAmount:"u128"},swap:{poolId:"u32",i:"u32",j:"u32",dx:"u128",minDy:"u128",assetLength:"u32"},redeem_proportion:{poolId:"u32",amount:"u128",minRedeemAmounts:"Vec"},redeem_single:{poolId:"u32",amount:"u128",i:"u32",minRedeemAmount:"u128",assetLength:"u32"},redeem_multi:{poolId:"u32",amounts:"Vec",maxRedeemAmount:"u128"},modify_a:{poolId:"u32",a:"u128",futureABlock:"u32"},modify_fees:{poolId:"u32",mintFee:"Option",swapFee:"Option",redeemFee:"Option"},modify_recipients:{poolId:"u32",feeRecipient:"Option",yieldRecipient:"Option"}}},CumulusPalletParachainSystemCall:{_enum:{set_validation_data:{data:"CumulusPrimitivesParachainInherentParachainInherentData"},sudo_send_upward_message:{message:"Bytes"},authorize_upgrade:{codeHash:"H256"},enact_authorized_upgrade:{code:"Bytes"}}},CumulusPrimitivesParachainInherentParachainInherentData:{validationData:"PolkadotPrimitivesV2PersistedValidationData",relayChainState:"SpTrieStorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},PolkadotPrimitivesV2PersistedValidationData:{parentHead:"Bytes",relayParentNumber:"u32",relayParentStorageRoot:"H256",maxPovSize:"u32"},SpTrieStorageProof:{trieNodes:"BTreeSet"},PolkadotCorePrimitivesInboundDownwardMessage:{sentAt:"u32",msg:"Bytes"},PolkadotCorePrimitivesInboundHrmpMessage:{sentAt:"u32",data:"Bytes"},PalletSudoCall:{_enum:{sudo:{call:"Call"},sudo_unchecked_weight:{call:"Call",weight:"u64"},set_key:{_alias:{new_:"new"},new_:"MultiAddress"},sudo_as:{who:"MultiAddress",call:"Call"}}},PalletSchedulerError:{_enum:["FailedToSchedule","NotFound","TargetBlockNumberInPast","RescheduleNoChange"]},PalletUtilityError:{_enum:["TooManyCalls"]},PalletMultisigMultisig:{when:"PalletMultisigTimepoint",deposit:"u128",depositor:"AccountId32",approvals:"Vec"},PalletMultisigError:{_enum:["MinimumThreshold","AlreadyApproved","NoApprovalsNeeded","TooFewSignatories","TooManySignatories","SignatoriesOutOfOrder","SenderInSignatories","NotFound","NotOwner","NoTimepoint","WrongTimepoint","UnexpectedTimepoint","MaxWeightTooLow","AlreadyStored"]},PalletProxyProxyDefinition:{delegate:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"},PalletProxyAnnouncement:{real:"AccountId32",callHash:"H256",height:"u32"},PalletProxyError:{_enum:["TooMany","NotFound","NotProxy","Unproxyable","Duplicate","NoPermission","Unannounced","NoSelfProxy"]},ModuleTransactionPauseModuleError:{_enum:["CannotPause","InvalidCharacter"]},PalletPreimageRequestStatus:{_enum:{Unrequested:"Option<(AccountId32,u128)>",Requested:"u32"}},PalletPreimageError:{_enum:["TooLarge","AlreadyNoted","NotAuthorized","NotNoted","Requested","NotRequested"]},PalletBalancesBalanceLock:{id:"[u8;8]",amount:"u128",reasons:"PalletBalancesReasons"},PalletBalancesReasons:{_enum:["Fee","Misc","All"]},PalletBalancesReserveData:{id:"AcalaPrimitivesReserveIdentifier",amount:"u128"},AcalaPrimitivesReserveIdentifier:{_enum:["CollatorSelection","EvmStorageDeposit","EvmDeveloperDeposit","Honzon","Nft","TransactionPayment","TransactionPaymentDeposit","Count"]},PalletBalancesReleases:{_enum:["V1_0_0","V2_0_0"]},PalletBalancesError:{_enum:["VestingBalance","LiquidityRestrictions","InsufficientBalance","ExistentialDeposit","KeepAlive","ExistingVestingSchedule","DeadAccount","TooManyReserves"]},OrmlTokensBalanceLock:{id:"[u8;8]",amount:"u128"},OrmlTokensAccountData:{free:"u128",reserved:"u128",frozen:"u128"},OrmlTokensReserveData:{id:"AcalaPrimitivesReserveIdentifier",amount:"u128"},OrmlTokensModuleError:{_enum:["BalanceTooLow","AmountIntoBalanceFailed","LiquidityRestrictions","MaxLocksExceeded","KeepAlive","ExistentialDeposit","DeadAccount","TooManyReserves"]},ModuleCurrenciesModuleError:{_enum:["AmountIntoBalanceFailed","BalanceTooLow","Erc20InvalidOperation","EvmAccountNotFound","RealOriginNotFound","DepositFailed"]},OrmlVestingModuleError:{_enum:["ZeroVestingPeriod","ZeroVestingPeriodCount","InsufficientBalanceToLock","TooManyVestingSchedules","AmountLow","MaxVestingSchedulesExceeded"]},FrameSupportPalletId:"[u8;8]",ModuleTransactionPaymentModuleError:{_enum:["InvalidSwapPath","InvalidBalance","InvalidRate","InvalidToken","DexNotAvailable","ChargeFeePoolAlreadyExisted"]},PalletTreasuryProposal:{proposer:"AccountId32",value:"u128",beneficiary:"AccountId32",bond:"u128"},PalletTreasuryError:{_enum:["InsufficientProposersBalance","InvalidIndex","TooManyApprovals","InsufficientPermission","ProposalNotApproved"]},PalletBountiesBounty:{proposer:"AccountId32",value:"u128",fee:"u128",curatorDeposit:"u128",bond:"u128",status:"PalletBountiesBountyStatus"},PalletBountiesBountyStatus:{_enum:{Proposed:"Null",Approved:"Null",Funded:"Null",CuratorProposed:{curator:"AccountId32"},Active:{curator:"AccountId32",updateDue:"u32"},PendingPayout:{curator:"AccountId32",beneficiary:"AccountId32",unlockAt:"u32"}}},PalletBountiesError:{_enum:["InsufficientProposersBalance","InvalidIndex","ReasonTooBig","UnexpectedStatus","RequireCurator","InvalidValue","InvalidFee","PendingPayout","Premature","HasActiveChildBounty","TooManyQueued"]},PalletTipsOpenTip:{reason:"H256",who:"AccountId32",finder:"AccountId32",deposit:"u128",closes:"Option",tips:"Vec<(AccountId32,u128)>",findersFee:"bool"},PalletTipsError:{_enum:["ReasonTooBig","AlreadyKnown","UnknownTip","NotFinder","StillOpen","Premature"]},PalletAuthorshipUncleEntryItem:{_enum:{InclusionHeight:"u32",Uncle:"(H256,Option)"}},PalletAuthorshipError:{_enum:["InvalidUncleParent","UnclesAlreadySet","TooManyUncles","GenesisUncle","TooHighUncle","UncleAlreadyIncluded","OldUncle"]},ModuleCollatorSelectionError:{_enum:["MaxCandidatesExceeded","BelowCandidatesMin","StillLocked","Unknown","Permission","AlreadyCandidate","NotCandidate","NotNonCandidate","NothingToWithdraw","RequireSessionKey","AlreadyInvulnerable","InvalidProof","MaxInvulnerablesExceeded"]},SpCoreCryptoKeyTypeId:"[u8;4]",PalletSessionError:{_enum:["InvalidProof","NoAssociatedValidatorId","DuplicatedKey","NoKeys","NoAccount"]},ModuleSessionManagerModuleError:{_enum:["InvalidSession","InvalidDuration","EstimateNextSessionFailed"]},CumulusPalletXcmpQueueInboundChannelDetails:{sender:"u32",state:"CumulusPalletXcmpQueueInboundState",messageMetadata:"Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>"},CumulusPalletXcmpQueueInboundState:{_enum:["Ok","Suspended"]},PolkadotParachainPrimitivesXcmpMessageFormat:{_enum:["ConcatenatedVersionedXcm","ConcatenatedEncodedBlob","Signals"]},CumulusPalletXcmpQueueOutboundChannelDetails:{recipient:"u32",state:"CumulusPalletXcmpQueueOutboundState",signalsExist:"bool",firstIndex:"u16",lastIndex:"u16"},CumulusPalletXcmpQueueOutboundState:{_enum:["Ok","Suspended"]},CumulusPalletXcmpQueueQueueConfigData:{suspendThreshold:"u32",dropThreshold:"u32",resumeThreshold:"u32",thresholdWeight:"u64",weightRestrictDecay:"u64",xcmpMaxIndividualWeight:"u64"},CumulusPalletXcmpQueueError:{_enum:["FailedToSend","BadXcmOrigin","BadXcm","BadOverweightIndex","WeightOverLimit"]},PalletXcmQueryStatus:{_enum:{Pending:{responder:"XcmVersionedMultiLocation",maybeNotify:"Option<(u8,u8)>",timeout:"u32"},VersionNotifier:{origin:"XcmVersionedMultiLocation",isActive:"bool"},Ready:{response:"XcmVersionedResponse",at:"u32"}}},XcmVersionedResponse:{_enum:{V0:"XcmV0Response",V1:"XcmV1Response",V2:"XcmV2Response"}},PalletXcmVersionMigrationStage:{_enum:{MigrateSupportedVersion:"Null",MigrateVersionNotifiers:"Null",NotifyCurrentTargets:"Option",MigrateAndNotifyOldTargets:"Null"}},PalletXcmError:{_enum:["Unreachable","SendFailure","Filtered","UnweighableMessage","DestinationNotInvertible","Empty","CannotReanchor","TooManyAssets","InvalidOrigin","BadVersion","BadLocation","NoSubscription","AlreadySubscribed"]},CumulusPalletXcmError:"Null",CumulusPalletDmpQueueConfigData:{maxIndividual:"u64"},CumulusPalletDmpQueuePageIndexData:{beginUsed:"u32",endUsed:"u32",overweightCount:"u64"},CumulusPalletDmpQueueError:{_enum:["Unknown","OverLimit"]},OrmlXtokensModuleError:{_enum:["AssetHasNoReserve","NotCrossChainTransfer","InvalidDest","NotCrossChainTransferableCurrency","UnweighableMessage","XcmExecutionFailed","CannotReanchor","InvalidAncestry","InvalidAsset","DestinationNotInvertible","BadVersion","DistinctReserveForAssetAndFee","ZeroFee","ZeroAmount","TooManyAssetsBeingSent","AssetIndexNonExistent","FeeNotEnough","NotSupportedMultiLocation","MinXcmFeeNotDefined"]},OrmlUnknownTokensModuleError:{_enum:["BalanceTooLow","BalanceOverflow","UnhandledAsset"]},OrmlXcmModuleError:{_enum:["Unreachable","SendFailure","BadVersion"]},OrmlAuthorityModuleError:{_enum:["FailedToSchedule","FailedToCancel","FailedToFastTrack","FailedToDelay","CallNotAuthorized","TriggerCallNotPermitted","WrongCallWeightBound"]},PalletCollectiveVotes:{index:"u32",threshold:"u32",ayes:"Vec",nays:"Vec",end:"u32"},PalletCollectiveError:{_enum:["NotMember","DuplicateProposal","ProposalMissing","WrongIndex","DuplicateVote","AlreadyInitialized","TooEarly","TooManyProposals","WrongProposalWeight","WrongProposalLength"]},PalletMembershipError:{_enum:["AlreadyMember","NotMember","TooManyMembers"]},PalletDemocracyPreimageStatus:{_enum:{Missing:"u32",Available:{data:"Bytes",provider:"AccountId32",deposit:"u128",since:"u32",expiry:"Option"}}},PalletDemocracyReferendumInfo:{_enum:{Ongoing:"PalletDemocracyReferendumStatus",Finished:{approved:"bool",end:"u32"}}},PalletDemocracyReferendumStatus:{end:"u32",proposalHash:"H256",threshold:"PalletDemocracyVoteThreshold",delay:"u32",tally:"PalletDemocracyTally"},PalletDemocracyTally:{ayes:"u128",nays:"u128",turnout:"u128"},PalletDemocracyVoteVoting:{_enum:{Direct:{votes:"Vec<(u32,PalletDemocracyVoteAccountVote)>",delegations:"PalletDemocracyDelegations",prior:"PalletDemocracyVotePriorLock"},Delegating:{balance:"u128",target:"AccountId32",conviction:"PalletDemocracyConviction",delegations:"PalletDemocracyDelegations",prior:"PalletDemocracyVotePriorLock"}}},PalletDemocracyDelegations:{votes:"u128",capital:"u128"},PalletDemocracyVotePriorLock:"(u32,u128)",PalletDemocracyReleases:{_enum:["V1"]},PalletDemocracyError:{_enum:["ValueLow","ProposalMissing","AlreadyCanceled","DuplicateProposal","ProposalBlacklisted","NotSimpleMajority","InvalidHash","NoProposal","AlreadyVetoed","DuplicatePreimage","NotImminent","TooEarly","Imminent","PreimageMissing","ReferendumInvalid","PreimageInvalid","NoneWaiting","NotVoter","NoPermission","AlreadyDelegating","InsufficientFunds","NotDelegating","VotesExist","InstantNotAllowed","Nonsense","WrongUpperBound","MaxVotesReached","TooManyProposals","VotingPeriodLow"]},OrmlOracleModuleTimestampedValue:{value:"u128",timestamp:"u64"},OrmlUtilitiesOrderedSet:"Vec",OrmlOracleModuleError:{_enum:["NoPermission","AlreadyFeeded"]},OrmlTraitsAuctionAuctionInfo:{bid:"Option<(AccountId32,u128)>",start:"u32",end:"Option"},OrmlAuctionModuleError:{_enum:["AuctionNotExist","AuctionNotStarted","BidNotAccepted","InvalidBidPrice","NoAvailableAuctionId"]},OrmlRewardsPoolInfo:{totalShares:"u128",rewards:"BTreeMap"},OrmlRewardsModuleError:{_enum:["PoolDoesNotExist","ShareDoesNotExist","CanSplitOnlyLessThanShare"]},OrmlNftClassInfo:{metadata:"Bytes",totalIssuance:"u64",owner:"AccountId32",data:"ModuleNftClassData"},ModuleNftClassData:{deposit:"u128",properties:"u8",attributes:"BTreeMap"},OrmlNftTokenInfo:{metadata:"Bytes",owner:"AccountId32",data:"ModuleNftTokenData"},ModuleNftTokenData:{deposit:"u128",attributes:"BTreeMap"},OrmlNftModuleError:{_enum:["NoAvailableClassId","NoAvailableTokenId","TokenNotFound","ClassNotFound","NoPermission","CannotDestroyClass","MaxMetadataExceeded"]},ModulePricesModuleError:{_enum:["AccessPriceFailed","NoLockedPrice"]},ModuleDexTradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"ModuleDexProvisioningParameters",Enabled:"Null"}},ModuleDexProvisioningParameters:{minContribution:"(u128,u128)",targetProvision:"(u128,u128)",accumulatedProvision:"(u128,u128)",notBefore:"u32"},ModuleDexModuleError:{_enum:["AlreadyEnabled","MustBeEnabled","MustBeProvisioning","MustBeDisabled","NotAllowedList","InvalidContributionIncrement","InvalidLiquidityIncrement","InvalidCurrencyId","InvalidTradingPathLength","InsufficientTargetAmount","ExcessiveSupplyAmount","InsufficientLiquidity","ZeroSupplyAmount","ZeroTargetAmount","UnacceptableShareIncrement","UnacceptableLiquidityWithdrawn","InvariantCheckFailed","UnqualifiedProvision","StillProvisioning","AssetUnregistered","InvalidTradingPath","NotAllowedRefund","CannotSwap"]},ModuleDexOracleModuleError:{_enum:["AveragePriceAlreadyEnabled","AveragePriceMustBeEnabled","InvalidPool","InvalidCurrencyId","IntervalIsZero"]},ModuleAggregatedDexModuleError:{_enum:["CannotSwap","InvalidPoolId","InvalidTokenIndex","InvalidSwapPath"]},ModuleAuctionManagerCollateralAuctionItem:{refundRecipient:"AccountId32",currencyId:"AcalaPrimitivesCurrencyCurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"u32"},ModuleAuctionManagerModuleError:{_enum:["AuctionNotExists","InReverseStage","InvalidFeedPrice","MustAfterShutdown","InvalidBidPrice","InvalidAmount"]},AcalaPrimitivesPosition:{collateral:"u128",debit:"u128"},ModuleLoansModuleError:{_enum:["AmountConvertFailed"]},ModuleHonzonModuleError:{_enum:["NoPermission","AlreadyShutdown","AuthorizationNotExists","AlreadyAuthorized"]},ModuleCdpTreasuryModuleError:{_enum:["CollateralNotEnough","SurplusPoolNotEnough","DebitPoolNotEnough","CannotSwap","NotDexShare"]},ModuleCdpEngineRiskManagementParams:{maximumTotalDebitValue:"u128",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},ModuleCdpEngineModuleError:{_enum:["ExceedDebitValueHardCap","BelowRequiredCollateralRatio","BelowLiquidationRatio","MustBeUnsafe","MustBeSafe","InvalidCollateralType","RemainDebitValueTooSmall","CollateralAmountBelowMinimum","InvalidFeedPrice","NoDebitValue","AlreadyShutdown","MustAfterShutdown","CollateralNotEnough","NotEnoughDebitDecrement","ConvertDebitBalanceFailed","LiquidationFailed","TooManyLiquidationContracts","CollateralContractNotFound"]},ModuleEmergencyShutdownModuleError:{_enum:["AlreadyShutdown","MustAfterShutdown","CanNotRefund","ExistPotentialSurplus","ExistUnhandledDebit"]},ModuleHomaModuleStakingLedger:{bonded:"Compact",unlocking:"Vec"},ModuleHomaModuleError:{_enum:["BelowMintThreshold","BelowRedeemThreshold","ExceededStakingCurrencySoftCap","InsufficientUnclaimedRedemption","OutdatedEraIndex","FastMatchIsNotAllowed","CannotCompletelyFastMatch","InvalidLastEraBumpedBlock"]},ModuleXcmInterfaceModuleError:{_enum:["XcmFailed"]},ModuleIncentivesModuleError:{_enum:["NotEnough","InvalidCurrencyId","InvalidPoolId","InvalidRate"]},ModuleNftModuleError:{_enum:["ClassIdNotFound","TokenIdNotFound","NoPermission","InvalidQuantity","NonTransferable","NonBurnable","NonMintable","CannotDestroyClass","Immutable","AttributesTooLarge","IncorrectTokenId"]},ModuleAssetRegistryModuleError:{_enum:["BadLocation","MultiLocationExisted","AssetIdNotExists","AssetIdExisted"]},ModuleEvmModuleAccountInfo:{nonce:"u32",contractInfo:"Option"},ModuleEvmModuleContractInfo:{codeHash:"H256",maintainer:"H160",published:"bool"},ModuleEvmModuleCodeInfo:{codeSize:"u32",refCount:"u32"},ModuleEvmModuleError:{_enum:["AddressNotMapped","ContractNotFound","NoPermission","ContractDevelopmentNotEnabled","ContractDevelopmentAlreadyEnabled","ContractAlreadyPublished","ContractExceedsMaxCodeSize","ContractAlreadyExisted","OutOfStorage","ChargeFeeFailed","CannotKillContract","ReserveStorageFailed","UnreserveStorageFailed","ChargeStorageFailed","InvalidDecimals","StrictCallFailed"]},ModuleEvmBridgeModuleError:{_enum:["ExecutionFail","ExecutionRevert","ExecutionFatal","ExecutionError","InvalidReturnValue"]},ModuleEvmAccountsModuleError:{_enum:["AccountIdHasMapped","EthAddressHasMapped","BadSignature","InvalidSignature","NonZeroRefCount"]},NutsfinanceStableAssetStableAssetPoolInfo:{poolAsset:"AcalaPrimitivesCurrencyCurrencyId",assets:"Vec",precisions:"Vec",mintFee:"u128",swapFee:"u128",redeemFee:"u128",totalSupply:"u128",a:"u128",aBlock:"u32",futureA:"u128",futureABlock:"u32",balances:"Vec",feeRecipient:"AccountId32",accountId:"AccountId32",yieldRecipient:"AccountId32",precision:"u128"},NutsfinanceStableAssetError:{_enum:["InconsistentStorage","InvalidPoolAsset","ArgumentsMismatch","ArgumentsError","PoolNotFound","Math","InvalidPoolValue","MintUnderMin","SwapUnderMin","RedeemUnderMin","RedeemOverMax"]},PolkadotPrimitivesV2UpgradeRestriction:{_enum:["Present"]},CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot:{dmqMqcHead:"H256",relayDispatchQueueSize:"(u32,u32)",ingressChannels:"Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>",egressChannels:"Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>"},PolkadotPrimitivesV2AbridgedHrmpChannel:{maxCapacity:"u32",maxTotalSize:"u32",maxMessageSize:"u32",msgCount:"u32",totalSize:"u32",mqcHead:"Option"},PolkadotPrimitivesV2AbridgedHostConfiguration:{maxCodeSize:"u32",maxHeadDataSize:"u32",maxUpwardQueueCount:"u32",maxUpwardQueueSize:"u32",maxUpwardMessageSize:"u32",maxUpwardMessageNumPerCandidate:"u32",hrmpMaxMessageNumPerCandidate:"u32",validationUpgradeCooldown:"u32",validationUpgradeDelay:"u32"},PolkadotCorePrimitivesOutboundHrmpMessage:{recipient:"u32",data:"Bytes"},CumulusPalletParachainSystemError:{_enum:["OverlappingUpgrades","ProhibitedByPolkadot","TooBig","ValidationDataNotAvailable","HostConfigurationNotAvailable","NotScheduled","NothingAuthorized","Unauthorized"]},PalletSudoError:{_enum:["RequireSudo"]},FrameSystemExtensionsCheckNonZeroSender:"Null",FrameSystemExtensionsCheckSpecVersion:"Null",FrameSystemExtensionsCheckTxVersion:"Null",FrameSystemExtensionsCheckGenesis:"Null",RuntimeCommonCheckNonce:{nonce:"Compact"},FrameSystemExtensionsCheckWeight:"Null",ModuleEvmSetEvmOrigin:"Null",ModuleTransactionPaymentChargeTransactionPayment:"Compact",AcalaRuntimeStorageDepositPerByte:"Null",AcalaRuntimeTxFeePerGas:"Null",AcalaPrimitivesSignatureAcalaMultiSignature:{_enum:{Ed25519:"SpCoreEd25519Signature",Sr25519:"SpCoreSr25519Signature",Ecdsa:"SpCoreEcdsaSignature",Ethereum:"[u8;65]",Eip1559:"[u8;65]",AcalaEip712:"[u8;65]"}}}},782:(e,t,a)=>{"use strict";t.__esModule=!0;var r=a(46513);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},46513:(e,t,a)=>{"use strict";t.__esModule=!0;var r=a(35842);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},62906:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{BancorPool:{currency_id:"CurrencyId",token_pool:"Balance",vstoken_pool:"Balance",token_ceiling:"Balance",token_base_supply:"Balance",vstoken_base_supply:"Balance"}}}},24841:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{BiddingOrderId:"u64",EraId:"u32",BiddingOrderUnit:{bidder_id:"AccountId",token_id:"AssetId",block_num:"BlockNumber",votes:"Balance",annual_roi:"Permill",validator:"AccountId"},BiddingOrderUnitOf:"BiddingOrderUnit"}}},21389:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{VersionId:"u32",PermissionName:"u64",PermissionLevel:{actor:"AccountName",permission:"PermissionName"},Action:{account:"AccountName",name:"ActionName",authorization:"Vec",data:"Vec"},AccountName:"u64",Checksum256:"([u8;32])",ActionName:"u64",FlatMap:{map:"Vec<(ActionName, u64)>"},UnsignedInt:"u32",ActionReceipt:{receiver:"AccountName",act_digest:"Checksum256",global_sequence:"u64",recv_sequence:"u64",auth_sequence:"FlatMap",code_sequence:"UnsignedInt",abi_sequence:"UnsignedInt"},BlockchainType:{_enum:["BIFROST","EOS","IOST"]},Precision:"u32",BridgeAssetSymbol:{blockchain:"BlockchainType",symbol:"Vec",precision:"Precision"},PublicKey:{type_:"UnsignedInt",data:"[u8;33]"},ProducerKey:{producer_name:"AccountName",block_signing_key:"PublicKey"},ProducerSchedule:{version:"u32",producers:"Vec"},bridgeEosSignature:{type_:"UnsignedInt",data:"[u8;65]"},BlockTimestamp:"(u32)",Extension:"(u16, Vec)",BlockHeader:{timestamp:"BlockTimestamp",producer:"AccountName",confirmed:"u16",previous:"Checksum256",transaction_mroot:"Checksum256",action_mroot:"Checksum256",schedule_version:"u32",new_producers:"Option",header_extensions:"Vec"},SignedBlockHeader:{block_header:"BlockHeader",producer_signature:"bridgeEosSignature"},Checksum256Array:"Vec",IncrementalMerkle:{_node_count:"u64",_active_nodes:"Checksum256Array"},TxSig:{signature:"Vec",author:"AccountId"},MultiSig:{signatures:"Vec",threshold:"u8"},MultiSigTx:{chain_id:"Vec",raw_tx:"Vec",multi_sig:"MultiSig",action:"Action",from:"AccountId",asset_id:"AssetId"},Sent:{tx_id:"Vec",from:"AccountId",asset_id:"AssetId"},Succeeded:{tx_id:"Vec"},Failed:{tx_id:"Vec",reason:"Vec"},TxOut:{_enum:{Initialized:"MultiSigTx",Created:"MultiSigTx",SignComplete:"MultiSigTx",Sent:"Sent",Succeeded:"Succeeded",Failed:"Failed"}},TransactionStatus:{_enum:["Initialized","Created","SignComplete","Sent","Succeeded","Failed"]},ProducerAuthoritySchedule:{version:"u32",producers:"Vec"},ProducerAuthority:{producer_name:"ActionName",authority:"BlockSigningAuthority"},BlockSigningAuthority:"(UnsignedInt, BlockSigningAuthorityV0)",BlockSigningAuthorityV0:{threshold:"u32",keyWeights:"Vec"},KeyWeight:{key:"PublicKey",weight:"u16"}}}},16489:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{IostAction:{contract:"Vec",action_name:"Vec",data:"Vec"},IostMultiSigTx:{chain_id:"i32",raw_tx:"Vec",multi_sig:"MultiSig",action:"IostAction",from:"AccountId",asset_id:"AssetId"},Processing:{tx_id:"Vec",multi_sig_tx:"IostMultiSigTx"},IostTxOut:{_enum:{Initial:"IostMultiSigTx",Generated:"IostMultiSigTx",Signed:"IostMultiSigTx",Processing:"Processing",Success:"Vec",Fail:"Failed"}}}}},8722:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getFarmingRewards:{description:"Get farming rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>"},getGaugeRewards:{description:"Get gauge rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>"}},types:{}}},51686:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getFeeTokenAndAmount:{description:"Get charging token type and amount in terms of flexible transaction fee.",params:[{name:"who",type:"AccountId"},{name:"extrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(CurrencyId, U256)"}},types:{PalletBalanceOf:"Balance",ExtraFeeName:{_enum:["SalpContribute","NoExtraFee"]}}}},82130:(e,t,a)=>{"use strict";var r=a(71600);t.bC=void 0;var n=r(a(26290)),c=a(73751),i=a(29938),o=a(69744),s=r(a(10304)),d=r(a(24841)),f=r(a(21389)),u=r(a(62906)),b=r(a(16489)),l=r(a(51686)),h=r(a(3575)),p=r(a(97360)),m=r(a(96584)),y=r(a(45260)),g=r(a(13130)),x=r(a(85450)),v=r(a(94918)),w=r(a(69692)),A=r(a(19561)),k=r(a(77467)),S=r(a(82768)),E=r(a(33598)),I=r(a(41643)),M=r(a(8722)),C=r(a(92984)),P=r(a(48007));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t({minmax:e.minmax,types:O(O({},R),e.types)}))),alias:D}}V(C.default),V(P.default);const L={spec:{bifrost:V(C.default),asgard:V(P.default)}};t.bC=L,o.signedExtensions},41643:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getRewards:{description:"Get the rewards users deserve",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"pallet_instance",type:"U32"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>"}},types:{PoolId:"u32",PoolInfo:{pool_id:"PoolId",keeper:"AccountId",investor:"Option",trading_pair:"(CurrencyId, CurrencyId)",duration:"BlockNumber",type:"PoolType",min_deposit_to_start:"Balance",after_block_to_start:"BlockNumber",deposit:"Balance",rewards:"BTreeMap",update_b:"BlockNumber",state:"PoolState",block_startup:"Option",redeem_limit_time:"BlockNumber",unlock_limit_nums:"u32",pending_unlock_nums:"u32"},PoolType:{_enum:{Mining:0,Farming:1,EBFarming:2}},PoolState:{_enum:{UnCharged:0,Charged:1,Ongoing:2,Retired:3,Dead:4}},DepositData:{deposit:"Balance",gain_avgs:"BTreeMap",update_b:"BlockNumber",pending_unlocks:"Vec<(BlockNumber, Balance)>"},RewardData:{total:"Balance",per_block:"Balance",claimed:"Balance",gain_avg:"FixedU128"}}}},3575:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{IsExtended:"bool",SystemPalletId:"PalletId"}}},80093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin"}}},87357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec"}}},73751:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.typesAlias=t.rpc=t.types=void 0;var n=r(a(80093)),c=r(a(87357)),i=r(a(70650)),o=r(a(81973)),s=r(a(99346)),d=r(a(2659)),f=r(a(82213)),u=a(29938),b=r(a(38408));const l={authority:n.default,graduallyUpdates:c.default,oracle:i.default,tokens:d.default,traits:f.default,vesting:b.default,rewards:o.default,runtime:s.default},h=(0,u.typesFromDefs)(l);t.types=h;const p=(0,u.jsonrpcFromDefs)(l);t.rpc=p;const m=(0,u.typesAliasFromDefs)(l);t.typesAlias=m},70650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>"}},types:{RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec"}}},81973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{OrmlCurrencyId:"u8",PoolInfo:{totalShares:"Share",rewards:"BTreeMap"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128"}}},99346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{OracleValue:"FixedU128"}}},2659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"}},typesAlias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}}},82213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128"}}},29938:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"jsonrpcFromDefs",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"typesAliasFromDefs",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"typesFromDefs",{enumerable:!0,get:function(){return i.default}});var n=r(a(75696)),c=r(a(11947)),i=r(a(72001))},75696:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.keys(e).filter((t=>{var a;return 0!==Object.keys((null===(a=e[t])||void 0===a?void 0:a.rpc)||{}).length})).forEach((a=>{t[a]={},Object.entries(e[a].rpc).forEach((([e,r])=>{const n=!!r.pubsub;t[a][e]=i(i({},r),{},{isSubscription:n,jsonrpc:`${a}_${e}`,method:e,section:a})}))})),t};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.values(e).reduce(((e,{typesAlias:t})=>(0,n.default)({},t,e)),t)};var n=r(a(51344))},72001:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.values(e).reduce(((e,{types:t})=>i(i({},e),t)),t)};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule"}}},10304:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{TokenSymbol:{_enum:{ASG:0,BNC:1,KUSD:2,DOT:3,KSM:4,ETH:5,KAR:6,ZLK:7,PHA:8,RMRK:9,MOVR:10,GLMR:11}},CurrencyId:{_enum:{Native:"TokenSymbol",VToken:"TokenSymbol",Token:"TokenSymbol",Stable:"TokenSymbol",VSToken:"TokenSymbol",VSBond:"(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)",LPToken:"(TokenSymbol, u8, TokenSymbol, u8)",ForeignAsset:"u32",Token2:"u8",VToken2:"u8",VSToken2:"u8",VSBond2:"u8",StableLpToken:"u32"}},CurrencyIdOf:"CurrencyId",TAssetBalance:"Balance",AmountOf:"Balance",StorageVersion:"Releases",ShareWeight:"Balance",Currency:"CurrencyIdOf",Amount:"AmountOf",NodePrimitivesCurrencyCurrencyId:"CurrencyId",OrmlTokensBalanceLock:"BalanceLock",OrmlTokensAccountData:"OrmlAccountData",OrmlTokensReserveData:"(Currency, u8, Amount, u128)",TransferOriginType:{_enum:{FromSelf:0,FromRelayChain:1,FromSiblingParaChain:2}},TimeUnit:{Era:"u32",SlashingSpan:"u32",Round:"u32",Kblock:"u32"},MinimumsMaximums:{delegator_bonded_minimum:"Balance",bond_extra_minimum:"Balance",unbond_minimum:"Balance",rebond_minimum:"Balance",unbond_record_maximum:"u32",validators_back_maximum:"u32",delegator_active_staking_maximum:"Balance",validators_reward_maximum:"u32",delegation_amount_minimum:"Balance",delegators_maximum:"u16",validators_maximum:"u16"}}}},33598:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OracleKey:"CurrencyId",OracleValue:"Price",BlockNumberFor:"BlockNumber"}}},96584:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getContribution:{description:"salp getContribution",params:[{name:"index",type:"ParaId"},{name:"who",type:"AccountIdOf"}],type:"(Balance, ContributionStatus)"},getLiteContribution:{description:"salp getLiteContribution",params:[{name:"index",type:"ParaId"},{name:"who",type:"AccountIdOf"}],type:"(Balance, ContributionStatus)"}},types:{TrieIndex:"u32",FundInfo:{raised:"Balance",cap:"Balance",first_slot:"LeasePeriod",last_slot:"LeasePeriod",trie_index:"TrieIndex",status:"FundStatus"},RedeemStatus:"BalanceOf",FundStatus:{_enum:{Ongoing:0,Retired:1,Success:2,Failed:3,RefundWithdrew:4,RedeemWithdrew:5,End:6}},ContributionStatus:{_enum:["Idle","Refunded","Redeemed","Unlocked","MigratedIdle","Contributing"]},CrowdloanContributeCall:{_enum:{CrowdloanContribute:"ContributeCall"}},ContributeCall:{_enum:{Contribute:"Contribution"}},Contribution:{index:"ParaId",value:"BalanceOf",signature:"Option"},Withdraw:{who:"AccountIdOf",index:"ParaId"},WithdrawCall:{_enum:{Withdraw:"Withdraw"}},ParachainTransactProxyType:{_enum:{Primary:0,Derived:1}},ParachainDerivedProxyAccountType:{_enum:{Salp:0,Staking:1}},Keys:"SessionKeys1",ParachainTransactType:{_enum:{Xcm:0,Proxy:1}},RpcContributionStatus:{_enum:{Idle:0,Contributing:1,Refunded:2,Unlocked:3,Redeemed:4}}}}},69744:(e,t)=>{"use strict";t.__esModule=!0,t.signedExtensions=void 0,t.signedExtensions={SetEvmOrigin:{extrinsic:{},payload:{}}}},97360:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{ledger:{Substrate:"SubstrateLedger"},SubstrateLedger:{account:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec"},UnlockChunk:{value:"Balance",unlock_time:"TimeUnit"},FilecoinLedger:{account:"MultiLocationV1",initial_pledge:"Balance"},FilecoinOwnerByMinerEntry:{currency_id:"AccountId",miner_id:"MultiLocationV1",owner_id:"MultiLocationV1"}}}},48007:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=void 0;var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";var r=a(71600);t.__esModule=!0,t.default=void 0;var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{RewardRecord:{account_id:"AccountId",record_amount:"Balance"}}}},13130:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PoolId:"u32",SwapFee:"u128",PoolDetails:{owner:"AccountId",swap_fee_rate:"SwapFee",active:"bool"},PoolWeight:"Balance",PoolToken:"u128",PoolCreateTokenDetails:{token_id:"AssetId",token_balance:"Balance",token_weight:"PoolWeight"}}}},85450:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"}},typesAlias:{tokens:{AccountData:"OrmlAccountData"}}}},94918:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{MaxLocksOf:"u32",BifrostVestingInfo:{locked:"Balance",per_block:"Balance",starting_block:"BlockNumber"}}}},69692:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OrderInfo:{owner:"AccountIdOf",vsbond:"CurrencyId",amount:"BalanceOf",remain:"BalanceOf",total_price:"BalanceOf",order_id:"OrderId",order_type:"OrderType",remain_price:"BalanceOf"},OrderId:"u64",OrderType:{_enum:{Sell:0,Buy:1}}}}},19561:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getVtokenMintRate:{description:"Get current vtoken mint rate.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"String"}},types:{}}},77467:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{UnlockId:"U32"}}},82768:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getAllAssets:{description:"zenlinkProtocol getAllAssets",params:[{name:"at",type:"Hash",isOptional:!0}],type:"Vec"},getBalance:{description:"zenlinkProtocol getBalance",params:[{name:"asset_id",type:"ZenlinkAssetId"},{name:"account",type:"AccountId"},{name:"at",type:"Hash",isOptional:!0}],type:"String"},getSovereignsInfo:{description:"Get the ownership of a certain currency for each parachain.",params:[{name:"asset_id",type:"ZenlinkAssetId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(u32, AccountId, String)"},getPairByAssetId:{description:"Get the detailed information of a particular exchange pair.",params:[{name:"asset_0",type:"ZenlinkAssetId"},{name:"asset_1",type:"ZenlinkAssetId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"PairInfo"},getAmountInPrice:{description:"Get the output token amount for an exact input token amount.",params:[{name:"supply",type:"ZenlinkAssetBalance"},{name:"path",type:"Vec"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128"},getAmountOutPrice:{description:"Get the input token amount for an exact output token amount.",params:[{name:"supply",type:"ZenlinkAssetBalance"},{name:"path",type:"Vec"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128"},getEstimateLptoken:{description:"Get the estimated number of LP token acquired given the desired and minimum amount for both in-token and out-token.",params:[{name:"asset_0",type:"ZenlinkAssetId"},{name:"asset_1",type:"ZenlinkAssetId"},{name:"amount_0_desired",type:"ZenlinkAssetBalance"},{name:"amount_1_desired",type:"ZenlinkAssetBalance"},{name:"amount_0_min",type:"ZenlinkAssetBalance"},{name:"amount_1_min",type:"ZenlinkAssetBalance"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128"}},types:{ZenlinkAssetId:{chain_id:"u32",asset_type:"u8",asset_index:"u64"},ZenlinkAssetBalance:"u128",PairInfo:{asset0:"ZenlinkAssetId",asset1:"ZenlinkAssetId",account:"AccountId",totalLiquidity:"ZenlinkAssetBalance",holdingLiquidity:"ZenlinkAssetBalance",reserve0:"ZenlinkAssetBalance",reserve1:"ZenlinkAssetBalance",lpAssetId:"ZenlinkAssetId"},PairMetadata:{pair_account:"AccountId",target_supply:"ZenlinkAssetBalance"},BootstrapParamter:{min_contribution:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",target_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",accumulated_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",end_block_number:"BlockNumber",pair_account:"AccountId"},PairStatus:{_enum:{Trading:"PairMetadata",Bootstrap:"BootstrapParamter",Disable:null}}}}},88804:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"jsonrpcFromDefs",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"typesAliasFromDefs",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"typesFromDefs",{enumerable:!0,get:function(){return i.default}});var n=r(a(93655)),c=r(a(85615)),i=r(a(73172))},93655:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.keys(e).filter((t=>{var a;return 0!==Object.keys((null===(a=e[t])||void 0===a?void 0:a.rpc)||{}).length})).forEach((a=>{t[a]={},Object.entries(e[a].rpc).forEach((([e,r])=>{const n=!!r.pubsub;t[a][e]=i(i({},r),{},{isSubscription:n,jsonrpc:`${a}_${e}`,method:e,section:a})}))})),t};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.values(e).reduce(((e,{typesAlias:t})=>(0,n.default)({},t,e)),t)};var n=r(a(51344))},73172:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.values(e).reduce(((e,{types:t})=>i(i({},e),t)),t)};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{AccountInfo:"AccountInfoWithProviders",Address:"AccountId",AddressInfo:"Vec",LookupSource:"AccountId"}}},50456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{EraBenefits:{total_fee_reduction_quota:"Compact",total_market_active_funds:"Compact",used_fee_reduction_quota:"Compact",active_era:"Compact"},FundsType:{_enum:["SWORK","MARKET"]},FundsUnlockChunk:{value:"Compact",era:"Compact"},MarketBenefit:{total_funds:"Compact",active_funds:"Compact",used_fee_reduction_quota:"Compact",file_reward:"Compact",refreshed_at:"Compact",unlocking_funds:"Vec>"},SworkBenefit:{total_funds:"Compact",active_funds:"Compact",total_fee_reduction_count:"u32",used_fee_reduction_count:"u32",refreshed_at:"Compact",unlocking_funds:"Vec>"}}}},73402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{BridgeChainId:"u8",ChainId:"u8",ResourceId:"H256",DepositNonce:"u64",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},Erc721Token:{id:"TokenId",metadata:"Vec"},TokenId:"U256"}}},28290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{ETHAddress:"Vec",EthereumTxHash:"H256"}}},68381:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.typesBundleForPolkadot=t.typesAlias=t.rpc=t.types=t.crustTypes=void 0;const n=r(a(27490)),c=r(a(50456)),i=r(a(73402)),o=r(a(28290)),s=a(88804),d=r(a(75307)),f=r(a(46768)),u=r(a(53770)),b=r(a(97127));t.crustTypes={base:n.default,benefit:c.default,bridge:i.default,claims:o.default,locks:d.default,market:f.default,staking:u.default,swork:b.default},t.types=Object.assign({},s.typesFromDefs(t.crustTypes)),t.rpc=s.jsonrpcFromDefs(t.crustTypes),t.typesAlias=s.typesAliasFromDefs(t.crustTypes);const l={rpc:t.rpc,types:[{minmax:[void 0,void 0],types:Object.assign({},t.types)}],alias:t.typesAlias};t.typesBundleForPolkadot={spec:{crust:l}}},75307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{Lock:{total:"Compact",last_unlock_at:"BlockNumber",lock_type:"LockType"},LockType:{delay:"BlockNumber",lock_period:"u32"}}}},46768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{FileInfo:{file_size:"u64",spower:"u64",expired_at:"BlockNumber",calculated_at:"BlockNumber",amount:"Compact",prepaid:"Compact",reported_replica_count:"u32",replicas:"Vec>"},FileInfoV2:{file_size:"u64",spower:"u64",expired_at:"BlockNumber",calculated_at:"BlockNumber",amount:"Compact",prepaid:"Compact",reported_replica_count:"u32",remaining_paid_count:"u32",replicas:"BTreeMap>"},Replica:{who:"AccountId",valid_at:"BlockNumber",anchor:"SworkerAnchor",is_reported:"bool",created_at:"Option"}}}},53770:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{Guarantee:{targets:"Vec>",total:"Compact",submitted_in:"EraIndex",suppressed:"bool"},ValidatorPrefs:{guarantee_fee:"Compact"}}}},97127:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{Group:{members:"BTreeSet",allowlist:"BTreeSet"},IASSig:"Vec",Identity:{anchor:"SworkerAnchor",punishment_deadline:"u64",group:"Option"},ISVBody:"Vec",MerkleRoot:"Vec",ReportSlot:"u64",PKInfo:{code:"SworkerCode",anchor:"Option"},SworkerAnchor:"Vec",SworkerCert:"Vec",SworkerCode:"Vec",SworkerPubKey:"Vec",SworkerSignature:"Vec",WorkReport:{report_slot:"u64",spower:"u64",free:"u64",reported_files_size:"u64",reported_srd_root:"MerkleRoot",reported_files_root:"MerkleRoot"}}}},78173:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[{minmax:[0,5210],types:(0,a(66961).objectSpread)({},{})}];t.default=r},30897:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(66961);const n={CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16",Keys:"SessionKeys6",ProxyType:{_enum:{Any:0,NonTransfer:1,Governance:2,Staking:3,UnusedSudoBalances:4,IdentityJudgement:5,CancelProxy:6,Auction:7}}},c={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",Keys:"SessionKeys5",LookupSource:"AccountId",ValidatorPrefs:"ValidatorPrefsWithCommission"};var i=[{minmax:[0,0],types:(0,r.objectSpread)({},n,c,{StakingBalanceT:{_enum:{RingBalance:"Balance",KtonBalance:"Balance"}},Signature:"H512",Keys:"SessionKeys4",NominatorIndexCompact:"u32",ValidatorIndexCompact:"u16",OffchainAccuracyCompact:"PerU16",PerU16:"UInt<16, PerU16>",EthHeader:{parent_hash:"H256",timestamp:"u64",number:"EthBlockNumber",author:"EthAddress",transaction_root:"H256",uncles_hash:"H256",extra_data:"Bytes",state_root:"H256",receipts_root:"H256",log_bloom:"Bloom",gas_used:"U256",gas_limit:"U256",difficulty:"U256",seal:"Vec",hash:"Option"},EthBlockNumber:"u64",DoubleNodeWithMerkleProof:{dag_nodes:"[H512;2]",proof:"Vec"},OtherSignature:{_enum:{Eth:"EcdsaSignature",Tron:"EcdsaSignature"}}})},{minmax:[1,41],types:(0,r.objectSpread)({},n,c,{StakingBalanceT:{_enum:{RingBalance:"Balance",KtonBalance:"Balance"}},Signature:"H512",Keys:"SessionKeys4",EthereumRelayHeaderParcel:{header:"EthereumHeader",mmrRoot:"H256"},OtherSignature:{_enum:{Eth:"EcdsaSignature",Tron:"EcdsaSignature"}},EthereumReceiptProofThing:"(EthereumHeader, EthereumReceiptProof, MMRProof)",EthereumHeader:{parentHash:"H256",timestamp:"u64",number:"EthereumBlockNumber",author:"EthereumAddress",transactionsRoot:"H256",unclesHash:"H256",extraData:"Bytes",stateRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",gasUsed:"U256",gasLimit:"U256",difficulty:"U256",seal:"Vec",hash:"Option"},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},NominatorIndexCompact:"u32",ValidatorIndexCompact:"u16",OffchainAccuracyCompact:"PerU16",PerU16:"UInt<16, PerU16>",DoubleNodeWithMerkleProof:{dag_nodes:"[H512;2]",proof:"Vec"},EthHeader:{parent_hash:"H256",timestamp:"u64",number:"EthBlockNumber",author:"EthAddress",transaction_root:"H256",uncles_hash:"H256",extra_data:"Bytes",state_root:"H256",receipts_root:"H256",log_bloom:"Bloom",gas_used:"U256",gas_limit:"U256",difficulty:"U256",seal:"Vec",hash:"Option"},EthBlockNumber:"u64",TcBlockNumber:"u64",GameId:"TcBlockNumber",EthereumHeaderThingWithProof:{header:"EthereumHeader",ethashProof:"Vec",mmrRoot:"H256",mmrProof:"Vec"},EthereumHeaderThing:{header:"EthereumHeader",mmrRoot:"H256"},RawHeaderThing:"Vec",OtherAddress:{_enum:{Eth:"EthereumAddress",Tron:"EthereumAddress"}}})},{minmax:[42,43],types:(0,r.objectSpread)({},n,{AccountInfo:"AccountInfoWithTripleRefCount",AccountInfoWithTripleRefCount:{nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"},Keys:"SessionKeys4",StakingBalanceT:{_enum:{RingBalance:"Balance",KtonBalance:"Balance"}},Signature:"H512",Address:"MultiAddress",LookupSource:"MultiAddress",OtherSignature:{_enum:{Eth:"EcdsaSignature",Tron:"EcdsaSignature"}}})},{minmax:[44,1210],types:(0,r.objectSpread)({},n)},{minmax:[1211,void 0],types:{}}];t.default=i},74904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const a={};var r=[{minmax:[0,22],types:{...a}},{minmax:[23,24],types:{...a,AccountInfo:"AccountInfoWithTripleRefCount",AccountInfoWithTripleRefCount:{nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"}}},{minmax:[25,1150],types:{...a,Address:"MultiAddress",LookupSource:"MultiAddress",MultiAddress:"GenericMultiAddress",AccountData:{feeFrozen:"Balance",free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance",miscFrozen:"Balance"},BalanceInfo:"{}",BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",reasons:"Reasons"},EcdsaMessage:"H256",EthashProof:{dagNodes:"(H512, H512)",proof:"Vec"},EthereumReceipt:{gasUsed:"U256",logBloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},Order:{lane:"LaneId",message:"MessageNonce",sent_time:"BlockNumber",confirm_time:"BlockNumber",assigned_relayers:"Vec"},RelayAffirmationId:{relayHeaderId:"EthereumBlockNumber",round:"u32",index:"u32"},RelayAuthorityT:{accountId:"AccountId",signer:"EthereumAddress",stake:"Balance",term:"BlockNumber"},Term:"BlockNumber",Unbonding:{amount:"Balance",moment:"BlockNumber"}}},{minmax:[1160,1200],types:{...a}},{minmax:[1210,void 0],types:{...a}}];t.default=r},12257:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30897)),c=r(a(78173)),i=r(a(74904)),o=r(a(82921)),s=r(a(84445)),d=r(a(35134)),f={Crab:n.default,CrabParachain:c.default,Darwinia:i.default,Pangolin:o.default,PangolinParachain:s.default,Pangoro:d.default};t.default=f},84445:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[{minmax:[0,5210],types:(0,a(66961).objectSpread)({},{})}];t.default=r},82921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{minmax:[0,28110],types:{}},{minmax:[28140,void 0],types:{}}]},35134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{minmax:[0,28110],types:{}},{minmax:[28140,void 0],types:{}}]},11150:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]"}}},53530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8"}}},41329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"}}}},12129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={types:{BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",reasons:"Reasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EcdsaAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}}},rpc:{}}},59012:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]}}}},38175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"}}}},23769:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}}}}},83429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"}}}},14432:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"}}}},50293:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={types:{ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]}},rpc:{}}},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"}}}},28422:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{}}},3145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)"}}},45743:(e,t,a)=>{"use strict";var r=a(71600);t.Zl=void 0;var n=r(a(12257)),c=r(a(11150)),i=r(a(53530)),o=r(a(41329)),s=r(a(12129)),d=r(a(59012)),f=r(a(38175)),u=r(a(23769)),b=r(a(83429)),l=r(a(14432)),h=r(a(50293)),p=r(a(901)),m=r(a(28422)),y=r(a(3145)),g=a(94108);const x={AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},RelayAuthoritySigner:"EthereumAddress",StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}},v={balances:c.default,bridges:i.default,bsc:o.default,darwiniaInject:s.default,democracy:d.default,eth:f.default,evm:u.default,fee:b.default,headerMMR:l.default,proxy:h.default,relayerGame:p.default,session:m.default,staking:y.default},w={...(0,g.typesFromDefinitions)(v)},A=(0,g.jsonrpcFromDefinitions)(v);function k(e,t){return{alias:{},rpc:A,types:[...n.default[e]].map((e=>({minmax:e.minmax,types:{...w,...e.types,...t?x:[]}})))}}const S={spec:{Crab:k("Crab",!0),CrabParachain:k("CrabParachain",!0),Darwinia:k("Darwinia",!0),Pangolin:k("Pangolin",!0),PangolinParachain:k("PangolinParachain",!0),Pangoro:k("Pangoro",!0)}};t.Zl=S,k("Crab",!0),k("CrabParachain",!0),k("Darwinia",!0),k("Pangolin",!0),k("PangolinParachain",!0),k("Pangoro",!0),k("Crab",!1),k("CrabParachain",!1),k("Darwinia",!1),k("Pangolin",!1),k("PangolinParachain",!1),k("Pangoro",!1)},94108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonrpcFromDefinitions=function(e){const t={};return Object.keys(e).filter((t=>0!==Object.keys(e[t].rpc||{}).length)).forEach((a=>{var r;t[a]||(t[a]={}),Object.entries(null!==(r=e[a].rpc)&&void 0!==r?r:{}).forEach((e=>{let[r,n]=e;const c=!!n.pubsub;t[a][r]={...n,isSubscription:c,jsonrpc:`${a}_${r}`,method:r,section:a}}))})),t},t.typesFromDefinitions=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.values(e).reduce(((e,t)=>{let{types:a}=t;return{...e,...a}}),t)}},83359:e=>{e.exports={types:[{minmax:[0,void 0],types:{AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",LookupSource:"MultiAddress",Account:{nonce:"U256",balance:"U256"},Transaction:{nonce:"U256",action:"String",gas_price:"u64",gas_limit:"u64",value:"U256",input:"Vec",signature:"Signature"},Signature:{v:"u64",r:"H256",s:"H256"},XCurrencyId:{chain_id:"ChainId",currency_id:"Bytes"},CurrencyIdOf:"CurrencyId",CurrencyId:{_enum:{Token:"TokenSymbol"}},TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC","SDN","PLM"]},AmountOf:"Amount",Amount:"i128",DataVersion:"u64",RequestIdentifier:"u64",SpecIndex:"Vec",CDP:{liquidation_fee:"Balance",max_collateraization_rate:"U256",stability_fee:"Balance"},SocketIndex:"i32",Currency:"Balances",BridgeChainId:"u8",ResourceId:"[u8; 32]",DepositNonce:"u64",ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"enum"},Erc721Token:{id:"TokenId",metadata:"Vec"},TokenId:"U256"}}]}},87095:e=>{e.exports={types:[{minmax:[0,void 0],types:{AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",LookupSource:"MultiAddress",Account:{nonce:"U256",balance:"U256"},Transaction:{nonce:"U256",action:"String",gas_price:"u64",gas_limit:"u64",value:"U256",input:"Vec",signature:"Signature"},Signature:{v:"u64",r:"H256",s:"H256"},XCurrencyId:{chain_id:"ChainId",currency_id:"Bytes"},CurrencyIdOf:"CurrencyId",CurrencyId:{_enum:{Token:"TokenSymbol"}},TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC","SDN","PLM"]},AmountOf:"Amount",Amount:"i128",DataVersion:"u64",RequestIdentifier:"u64",SpecIndex:"Vec",CDP:{liquidation_fee:"Balance",max_collateraization_rate:"U256",stability_fee:"Balance"},SocketIndex:"i32",Currency:"Balances",BridgeChainId:"u8",ResourceId:"[u8; 32]",DepositNonce:"u64",ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"enum"},Erc721Token:{id:"TokenId",metadata:"Vec"},TokenId:"U256"}}]}},39635:(e,t,a)=>{"use strict";a.r(t),a.d(t,{PoAChainTypes:()=>f,default:()=>b,spec:()=>u});const r={Address:"MultiAddress",LookupSource:"MultiAddress",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Keys:"SessionKeys4",Did:"[u8;32]",Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33"}},DidSignature:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},KeyDetail:{controller:"Did",public_key:"PublicKey"},KeyUpdate:{did:"Did",public_key:"PublicKey",controller:"Option",last_modified_in_block:"BlockNumber"},DidRemoval:{did:"Did",last_modified_in_block:"BlockNumber"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},Revoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},UnRevoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},RemoveRegistry:{registry_id:"RegistryId",last_modified:"BlockNumber"},PAuth:"BTreeMap",Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec",author:"Did"},EpochNo:"u32",EpochLen:"u32",SlotNo:"u64",Balance:"u64",EpochDetail:{validator_count:"u8",starting_slot:"SlotNo",expected_ending_slot:"SlotNo",ending_slot:"Option",emission_for_validators:"Option",emission_for_treasury:"Option"},ValidatorStatsPerEpoch:{block_count:"EpochLen",locked_reward:"Option",unlocked_reward:"Option"},Payload:{proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},PMAuth:"BTreeMap",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},Attestation:{priority:"Compact",iri:"Option>"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",query_aggregator_call_encoded:"Vec",query_price_abi_encoded:"Vec",return_val_abi:"Vec"},StateChange:{_enum:{KeyUpdate:"KeyUpdate",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",Blob:"Blob",MasterVote:"Payload",Attestation:"(Did, Attestation)"}}},n={Address:"MultiAddress",LookupSource:"MultiAddress",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Keys:"SessionKeys4",Did:"[u8;32]",Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33"}},DidSignature:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},KeyDetail:{controller:"Did",public_key:"PublicKey"},KeyUpdate:{did:"Did",public_key:"PublicKey",controller:"Option",last_modified_in_block:"BlockNumber"},DidRemoval:{did:"Did",last_modified_in_block:"BlockNumber"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},Revoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},UnRevoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},RemoveRegistry:{registry_id:"RegistryId",last_modified:"BlockNumber"},PAuth:"BTreeMap",Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec",author:"Did"},EpochNo:"u32",EpochLen:"u32",SlotNo:"u64",Balance:"u64",EpochDetail:{validator_count:"u8",starting_slot:"SlotNo",expected_ending_slot:"SlotNo",ending_slot:"Option",emission_for_validators:"Option",emission_for_treasury:"Option"},ValidatorStatsPerEpoch:{block_count:"EpochLen",locked_reward:"Option",unlocked_reward:"Option"},Payload:{proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},PMAuth:"BTreeMap",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},Attestation:{priority:"Compact",iri:"Option>"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",query_aggregator_call_encoded:"Vec",query_price_abi_encoded:"Vec",return_val_abi:"Vec"},CurveType:{_enum:{Bls12381:null}},ParametersStorageKey:"(Did, u32)",PublicKeyStorageKey:"(Did, u32)",BbsPlusParameters:{label:"Option>",curve_type:"CurveType",bytes:"Vec"},BbsPlusPublicKey:{curve_type:"CurveType",bytes:"Vec",params_ref:"Option"},BbsPlusPublicKeyWithParams:"(BbsPlusPublicKey, Option)",AccumulatorId:"[u8;32]",AccumulatorParameters:{label:"Option>",curve_type:"CurveType",bytes:"Vec"},AccumulatorPublicKey:{curve_type:"CurveType",bytes:"Vec",params_ref:"Option"},AccumulatorPublicKeyWithParams:"(AccumulatorPublicKey, Option)",AccumulatorCommon:{accumulated:"Vec",key_ref:"PublicKeyStorageKey"},UniversalAccumulator:{common:"AccumulatorCommon",max_size:"u64"},Accumulator:{_enum:{Positive:"AccumulatorCommon",Universal:"UniversalAccumulator"}},AddAccumulator:{id:"AccumulatorId",accumulator:"Accumulator"},RemoveAccumulator:{id:"AccumulatorId",created_at:"BlockNumber",nonce:"u32"},AccumulatorUpdate:{id:"AccumulatorId",new_accumulated:"Vec",additions:"Option>>",removals:"Option>>",witness_update_info:"Option>",created_at:"BlockNumber",nonce:"u32"},StateChange:{_enum:{KeyUpdate:"KeyUpdate",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",Blob:"Blob",MasterVote:"Payload",Attestation:"(Did, Attestation)",AddBBSPlusParams:"BbsPlusParameters",AddBBSPlusPublicKey:"BbsPlusPublicKey",RemoveBBSPlusParams:"ParametersStorageKey",RemoveBBSPlusPublicKey:"PublicKeyStorageKey",AddAccumulatorParams:"AccumulatorParameters",AddAccumulatorPublicKey:"AccumulatorPublicKey",RemoveAccumulatorParams:"ParametersStorageKey",RemoveAccumulatorPublicKey:"PublicKeyStorageKey",AddAccumulator:"AddAccumulator",UpdateAccumulator:"AccumulatorUpdate",RemoveAccumulator:"RemoveAccumulator"}}},c={Address:"MultiAddress",LookupSource:"MultiAddress",Keys:"SessionKeys4",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},WrappedBytes:"Vec",IncId:"u32",RawDid:"[u8;32]",Did:"RawDid",Attester:"Did",BlobOwner:"Did",Controller:"Did",BBSPlusParamsOwner:"Did",AccumulatorOwner:"Did",PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33",X25519:"Bytes32"}},SigValue:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},DidSignature:{did:"Did",keyId:"IncId",sig:"SigValue"},OffChainDidDocRef:{_enum:{CID:"WrappedBytes",URL:"WrappedBytes",Custom:"WrappedBytes"}},OffChainDidDetails:{accountId:"AccountId",docRef:"OffChainDidDocRef"},OnChainDidDetails:{lastKeyId:"IncId",activeControllerKeys:"u32",activeControllers:"u32"},StoredOnChainDidDetails:{nonce:"BlockNumber",lastKeyId:"IncId",activeControllerKeys:"u32",activeControllers:"u32"},StoredDidDetails:{_enum:{OffChain:"OffChainDidDetails",OnChain:"StoredOnChainDidDetails"}},VerRelType:"u16",ServiceEndpointType:"u16",ServiceEndpoint:{types:"ServiceEndpointType",origins:"Vec"},DidKey:{publicKey:"PublicKey",verRels:"VerRelType"},AddKeys:{did:"Did",keys:"Vec",nonce:"BlockNumber"},RemoveKeys:{did:"Did",keys:"BTreeSet",nonce:"BlockNumber"},AddControllers:{did:"Did",controllers:"BTreeSet",nonce:"BlockNumber"},RemoveControllers:{did:"Did",controllers:"BTreeSet",nonce:"BlockNumber"},AddServiceEndpoint:{did:"Did",id:"WrappedBytes",endpoint:"ServiceEndpoint",nonce:"BlockNumber"},RemoveServiceEndpoint:{did:"Did",id:"WrappedBytes",nonce:"BlockNumber"},DidRemoval:{did:"Did",nonce:"BlockNumber"},AggregatedDidDetailsRequestParams:"u8",DidKeyWithId:{id:"IncId",key:"DidKey"},ServiceEndpointWithId:{id:"WrappedBytes",endpoint:"ServiceEndpoint"},AggregatedDidDetailsResponse:{id:"Did",details:"StoredDidDetails",keys:"Option>",controllers:"Option>",serviceEndpoints:"Option>"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},AddRegistry:{id:"RegistryId",registry:"Registry"},RevokeRaw:{registry_id:"RegistryId",revoke_ids:"BTreeSet"},UnRevokeRaw:{registry_id:"RegistryId",revoke_ids:"BTreeSet"},RemoveRegistryRaw:{registry_id:"RegistryId"},Revoke:{nonce:"BlockNumber",registry_id:"RegistryId",revoke_ids:"BTreeSet"},UnRevoke:{nonce:"BlockNumber",registry_id:"RegistryId",revoke_ids:"BTreeSet"},RemoveRegistry:{nonce:"BlockNumber",registry_id:"RegistryId"},DidSigs:{sig:"DidSignature",nonce:"BlockNumber"},Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec"},AddBlob:{blob:"Blob",nonce:"BlockNumber"},Balance:"u64",BlockNumber:"u32",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},MasterVote:{nonce:"BlockNumber",proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},Attestation:{priority:"Compact",iri:"Option>"},SetAttestationClaim:{attest:"Attestation",nonce:"BlockNumber"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",query_aggregator_call_encoded:"Vec",query_price_abi_encoded:"Vec",return_val_abi:"Vec"},CurveType:{_enum:{Bls12381:null}},BBSPlusParametersStorageKey:"(BBSPlusParamsOwner, IncId)",BBSPlusPublicKeyStorageKey:"(Controller, IncId)",BbsPlusParameters:{label:"Option>",curve_type:"CurveType",bytes:"Vec"},BbsPlusPublicKey:{curve_type:"CurveType",bytes:"Vec",params_ref:"Option"},BbsPlusPublicKeyWithParams:"(BbsPlusPublicKey, Option)",AddBBSPlusParams:{params:"BbsPlusParameters",nonce:"BlockNumber"},AddBBSPlusPublicKey:{key:"BbsPlusPublicKey",did:"Controller",nonce:"BlockNumber"},RemoveBBSPlusParams:{params_ref:"BBSPlusParametersStorageKey",nonce:"BlockNumber"},RemoveBBSPlusPublicKey:{key_ref:"BBSPlusPublicKeyStorageKey",did:"Controller",nonce:"BlockNumber"},AccumulatorId:"[u8;32]",AccumParametersStorageKey:"(AccumulatorOwner, IncId)",AccumPublicKeyStorageKey:"(AccumulatorOwner, IncId)",AccumulatorParameters:{label:"Option>",curve_type:"CurveType",bytes:"Vec"},AccumulatorPublicKey:{curve_type:"CurveType",bytes:"Vec",params_ref:"Option"},AccumPublicKeyWithParams:"(AccumulatorPublicKey, Option)",AccumulatorCommon:{accumulated:"Vec",key_ref:"AccumPublicKeyStorageKey"},UniversalAccumulator:{common:"AccumulatorCommon",max_size:"u64"},Accumulator:{_enum:{Positive:"AccumulatorCommon",Universal:"UniversalAccumulator"}},StoredAccumulatorOwnerCounters:{params_counter:"IncId",key_counter:"IncId"},AddAccumulatorParams:{params:"AccumulatorParameters",nonce:"BlockNumber"},AddAccumulatorPublicKey:{public_key:"AccumulatorPublicKey",nonce:"BlockNumber"},RemoveAccumulatorParams:{params_ref:"AccumParametersStorageKey",nonce:"BlockNumber"},RemoveAccumulatorPublicKey:{key_ref:"AccumPublicKeyStorageKey",nonce:"BlockNumber"},AddAccumulator:{id:"AccumulatorId",accumulator:"Accumulator",nonce:"BlockNumber"},RemoveAccumulator:{id:"AccumulatorId",nonce:"BlockNumber"},AccumulatorWithUpdateInfo:{created_at:"BlockNumber",last_updated_at:"BlockNumber",accumulator:"Accumulator"},UpdateAccumulator:{id:"AccumulatorId",new_accumulated:"Vec",additions:"Option>>",removals:"Option>>",witness_update_info:"Option>",nonce:"BlockNumber"},StateChange:{_enum:{AddKeys:"AddKeys",AddControllers:"AddControllers",RemoveKeys:"RemoveKeys",RemoveControllers:"RemoveControllers",AddServiceEndpoint:"AddServiceEndpoint",RemoveServiceEndpoint:"RemoveServiceEndpoint",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",AddBlob:"AddBlob",MasterVote:"MasterVote",SetAttestationClaim:"SetAttestationClaim",AddBBSPlusParams:"AddBBSPlusParams",AddBBSPlusPublicKey:"AddBBSPlusPublicKey",RemoveBBSPlusParams:"RemoveBBSPlusParams",RemoveBBSPlusPublicKey:"RemoveBBSPlusPublicKey",AddAccumulatorParams:"AddAccumulatorParams",AddAccumulatorPublicKey:"AddAccumulatorPublicKey",RemoveAccumulatorParams:"RemoveAccumulatorParams",RemoveAccumulatorPublicKey:"RemoveAccumulatorPublicKey",AddAccumulator:"AddAccumulator",UpdateAccumulator:"UpdateAccumulator",RemoveAccumulator:"RemoveAccumulator"}}},i={Address:"MultiAddress",LookupSource:"MultiAddress",Keys:"SessionKeys4",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},WrappedBytes:"Vec",IncId:"u32",RawDid:"[u8;32]",Did:"RawDid",Attester:"Did",BlobOwner:"Did",Controller:"Did",BBSPlusParamsOwner:"Did",AccumulatorOwner:"Did",PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33",X25519:"Bytes32"}},SigValue:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},DidSignature:{did:"Did",keyId:"IncId",sig:"SigValue"},OffChainDidDocRef:{_enum:{CID:"WrappedBytes",URL:"WrappedBytes",Custom:"WrappedBytes"}},OffChainDidDetails:{accountId:"AccountId",docRef:"OffChainDidDocRef"},OnChainDidDetails:{lastKeyId:"IncId",activeControllerKeys:"u32",activeControllers:"u32"},StoredOnChainDidDetails:{nonce:"BlockNumber",lastKeyId:"IncId",activeControllerKeys:"u32",activeControllers:"u32"},StoredDidDetails:{_enum:{OffChain:"OffChainDidDetails",OnChain:"StoredOnChainDidDetails"}},VerRelType:"u16",ServiceEndpointType:"u16",ServiceEndpoint:{types:"ServiceEndpointType",origins:"Vec"},DidKey:{publicKey:"PublicKey",verRels:"VerRelType"},AddKeys:{did:"Did",keys:"Vec",nonce:"BlockNumber"},RemoveKeys:{did:"Did",keys:"BTreeSet",nonce:"BlockNumber"},AddControllers:{did:"Did",controllers:"BTreeSet",nonce:"BlockNumber"},RemoveControllers:{did:"Did",controllers:"BTreeSet",nonce:"BlockNumber"},AddServiceEndpoint:{did:"Did",id:"WrappedBytes",endpoint:"ServiceEndpoint",nonce:"BlockNumber"},RemoveServiceEndpoint:{did:"Did",id:"WrappedBytes",nonce:"BlockNumber"},DidRemoval:{did:"Did",nonce:"BlockNumber"},AggregatedDidDetailsRequestParams:"u8",DidKeyWithId:{id:"IncId",key:"DidKey"},ServiceEndpointWithId:{id:"WrappedBytes",endpoint:"ServiceEndpoint"},AggregatedDidDetailsResponse:{did:"Did",details:"StoredDidDetails",keys:"Option>",controllers:"Option>",serviceEndpoints:"Option>",attestation:"Option"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},AddRegistry:{id:"RegistryId",registry:"Registry"},RevokeRaw:{registry_id:"RegistryId",revoke_ids:"BTreeSet"},UnRevokeRaw:{registry_id:"RegistryId",revoke_ids:"BTreeSet"},RemoveRegistryRaw:{registry_id:"RegistryId"},Revoke:{nonce:"BlockNumber",registry_id:"RegistryId",revoke_ids:"BTreeSet"},UnRevoke:{nonce:"BlockNumber",registry_id:"RegistryId",revoke_ids:"BTreeSet"},RemoveRegistry:{nonce:"BlockNumber",registry_id:"RegistryId"},DidSigs:{sig:"DidSignature",nonce:"BlockNumber"},Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec"},AddBlob:{blob:"Blob",nonce:"BlockNumber"},Balance:"u64",BlockNumber:"u32",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},MasterVote:{nonce:"BlockNumber",proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},Attestation:{priority:"Compact",iri:"Option>"},SetAttestationClaim:{attest:"Attestation",nonce:"BlockNumber"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",query_aggregator_call_encoded:"Vec",query_price_abi_encoded:"Vec",return_val_abi:"Vec"},CurveType:{_enum:{Bls12381:null}},BBSPlusParametersStorageKey:"(BBSPlusParamsOwner, IncId)",BBSPlusPublicKeyStorageKey:"(Controller, IncId)",BBSPlusParameters:{label:"Option>",curve_type:"CurveType",bytes:"Vec"},BBSPlusPublicKey:{curve_type:"CurveType",bytes:"Vec",params_ref:"Option"},BBSPlusPublicKeyWithParams:"(BBSPlusPublicKey, Option)",AddBBSPlusParams:{params:"BBSPlusParameters",nonce:"BlockNumber"},AddBBSPlusPublicKey:{key:"BBSPlusPublicKey",did:"Controller",nonce:"BlockNumber"},RemoveBBSPlusParams:{params_ref:"BBSPlusParametersStorageKey",nonce:"BlockNumber"},RemoveBBSPlusPublicKey:{key_ref:"BBSPlusPublicKeyStorageKey",did:"Controller",nonce:"BlockNumber"},AccumulatorId:"[u8;32]",AccumParametersStorageKey:"(AccumulatorOwner, IncId)",AccumPublicKeyStorageKey:"(AccumulatorOwner, IncId)",AccumulatorParameters:{label:"Option>",curve_type:"CurveType",bytes:"Vec"},AccumulatorPublicKey:{curve_type:"CurveType",bytes:"Vec",params_ref:"Option"},AccumPublicKeyWithParams:"(AccumulatorPublicKey, Option)",AccumulatorCommon:{accumulated:"Vec",key_ref:"AccumPublicKeyStorageKey"},UniversalAccumulator:{common:"AccumulatorCommon",max_size:"u64"},Accumulator:{_enum:{Positive:"AccumulatorCommon",Universal:"UniversalAccumulator"}},StoredAccumulatorOwnerCounters:{params_counter:"IncId",key_counter:"IncId"},AddAccumulatorParams:{params:"AccumulatorParameters",nonce:"BlockNumber"},AddAccumulatorPublicKey:{public_key:"AccumulatorPublicKey",nonce:"BlockNumber"},RemoveAccumulatorParams:{params_ref:"AccumParametersStorageKey",nonce:"BlockNumber"},RemoveAccumulatorPublicKey:{key_ref:"AccumPublicKeyStorageKey",nonce:"BlockNumber"},AddAccumulator:{id:"AccumulatorId",accumulator:"Accumulator",nonce:"BlockNumber"},RemoveAccumulator:{id:"AccumulatorId",nonce:"BlockNumber"},AccumulatorWithUpdateInfo:{created_at:"BlockNumber",last_updated_at:"BlockNumber",accumulator:"Accumulator"},UpdateAccumulator:{id:"AccumulatorId",new_accumulated:"Vec",additions:"Option>>",removals:"Option>>",witness_update_info:"Option>",nonce:"BlockNumber"},StorageVersion:{_enum:{SingleKey:null,MultiKey:null}},StateChange:{_enum:{AddKeys:"AddKeys",AddControllers:"AddControllers",RemoveKeys:"RemoveKeys",RemoveControllers:"RemoveControllers",AddServiceEndpoint:"AddServiceEndpoint",RemoveServiceEndpoint:"RemoveServiceEndpoint",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",AddBlob:"AddBlob",MasterVote:"MasterVote",SetAttestationClaim:"SetAttestationClaim",AddBBSPlusParams:"AddBBSPlusParams",AddBBSPlusPublicKey:"AddBBSPlusPublicKey",RemoveBBSPlusParams:"RemoveBBSPlusParams",RemoveBBSPlusPublicKey:"RemoveBBSPlusPublicKey",AddAccumulatorParams:"AddAccumulatorParams",AddAccumulatorPublicKey:"AddAccumulatorPublicKey",RemoveAccumulatorParams:"RemoveAccumulatorParams",RemoveAccumulatorPublicKey:"RemoveAccumulatorPublicKey",AddAccumulator:"AddAccumulator",UpdateAccumulator:"UpdateAccumulator",RemoveAccumulator:"RemoveAccumulator"}}},o={Address:"MultiAddress",LookupSource:"MultiAddress",Keys:"SessionKeys4",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},WrappedBytes:"Vec",IncId:"u32",RawDid:"[u8;32]",Did:"RawDid",Attester:"Did",BlobOwner:"Did",Controller:"Did",BBSPlusParamsOwner:"Did",AccumulatorOwner:"Did",PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33",X25519:"Bytes32"}},DispatchError:"DispatchErrorPre6",SigValue:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},DidSignature:{did:"Did",keyId:"IncId",sig:"SigValue"},OffChainDidDocRef:{_enum:{CID:"WrappedBytes",URL:"WrappedBytes",Custom:"WrappedBytes"}},OffChainDidDetails:{accountId:"AccountId",docRef:"OffChainDidDocRef"},StoredOnChainDidDetails:{nonce:"BlockNumber",lastKeyId:"IncId",activeControllerKeys:"u32",activeControllers:"u32"},StoredDidDetails:{_enum:{OffChain:"OffChainDidDetails",OnChain:"StoredOnChainDidDetails"}},VerRelType:"u16",ServiceEndpointType:"u16",ServiceEndpoint:{types:"ServiceEndpointType",origins:"Vec"},DidKey:{publicKey:"PublicKey",verRels:"VerRelType"},AddKeys:{did:"Did",keys:"Vec",nonce:"BlockNumber"},RemoveKeys:{did:"Did",keys:"BTreeSet",nonce:"BlockNumber"},AddControllers:{did:"Did",controllers:"BTreeSet",nonce:"BlockNumber"},RemoveControllers:{did:"Did",controllers:"BTreeSet",nonce:"BlockNumber"},AddServiceEndpoint:{did:"Did",id:"WrappedBytes",endpoint:"ServiceEndpoint",nonce:"BlockNumber"},RemoveServiceEndpoint:{did:"Did",id:"WrappedBytes",nonce:"BlockNumber"},DidRemoval:{did:"Did",nonce:"BlockNumber"},AggregatedDidDetailsRequestParams:"u8",DidKeyWithId:{id:"IncId",key:"DidKey"},ServiceEndpointWithId:{id:"WrappedBytes",endpoint:"ServiceEndpoint"},AggregatedDidDetailsResponse:{id:"Did",details:"StoredDidDetails",keys:"Option>",controllers:"Option>",attestation:"Option",serviceEndpoints:"Option>"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",addOnly:"bool"},AddRegistry:{id:"RegistryId",newRegistry:"Registry"},RevokeRaw:{registryId:"RegistryId",revokeIds:"BTreeSet"},UnRevokeRaw:{registryId:"RegistryId",revokeIds:"BTreeSet"},RemoveRegistryRaw:{registryId:"RegistryId"},RevokeRaw:{registryId:"RegistryId",revokeIds:"BTreeSet"},Revoke:{nonce:"BlockNumber",data:"RevokeRaw"},UnrevokeRaw:{registryId:"RegistryId",revokeIds:"BTreeSet"},UnRevoke:{nonce:"BlockNumber",data:"UnrevokeRaw"},RemoveRegistryRaw:{registryId:"RegistryId"},RemoveRegistry:{nonce:"BlockNumber",data:"RemoveRegistryRaw"},DidSigs:{sig:"DidSignature",nonce:"BlockNumber"},Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec"},AddBlob:{blob:"Blob",nonce:"BlockNumber"},Balance:"u64",BlockNumber:"u32",Bonus:{swapBonuses:"Vec<(Balance, BlockNumber)>",vestingBonuses:"Vec<(Balance, Balance, BlockNumber)>"},MasterVoteRaw:{proposal:"Vec",roundNo:"u64"},MasterVote:{nonce:"BlockNumber",data:"MasterVoteRaw"},Membership:{members:"BTreeSet",voteRequirement:"u64"},Attestation:{priority:"Compact",iri:"Option>"},SetAttestationClaim:{attest:"Attestation",nonce:"BlockNumber"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",queryAggregatorCallEncoded:"Vec",queryPriceAbiEncoded:"Vec",returnValAbi:"Vec"},CurveType:{_enum:{Bls12381:null}},BBSPlusParametersStorageKey:"(BBSPlusParamsOwner, IncId)",BBSPlusPublicKeyStorageKey:"(Controller, IncId)",BBSPlusParameters:{label:"Option>",curveType:"CurveType",bytes:"Vec"},BBSPlusPublicKey:{curveType:"CurveType",bytes:"Vec",paramsRef:"Option"},BBSPlusPublicKeyWithParams:"(BBSPlusPublicKey, Option)",AddBBSPlusParams:{params:"BBSPlusParameters",nonce:"BlockNumber"},AddBBSPlusPublicKey:{key:"BBSPlusPublicKey",did:"Controller",nonce:"BlockNumber"},RemoveBBSPlusParams:{paramsRef:"BBSPlusParametersStorageKey",nonce:"BlockNumber"},RemoveBBSPlusPublicKey:{keyRef:"BBSPlusPublicKeyStorageKey",did:"Controller",nonce:"BlockNumber"},AccumulatorId:"[u8;32]",AccumParametersStorageKey:"(AccumulatorOwner, IncId)",AccumPublicKeyStorageKey:"(AccumulatorOwner, IncId)",AccumulatorParameters:{label:"Option>",curveType:"CurveType",bytes:"Vec"},AccumulatorPublicKey:{curveType:"CurveType",bytes:"Vec",paramsRef:"Option"},AccumPublicKeyWithParams:"(AccumulatorPublicKey, Option)",AccumulatorCommon:{accumulated:"Vec",keyRef:"AccumPublicKeyStorageKey"},UniversalAccumulator:{common:"AccumulatorCommon",maxSize:"u64"},Accumulator:{_enum:{Positive:"AccumulatorCommon",Universal:"UniversalAccumulator"}},StoredAccumulatorOwnerCounters:{paramsCounter:"IncId",keyCounter:"IncId"},AddAccumulatorParams:{params:"AccumulatorParameters",nonce:"BlockNumber"},AddAccumulatorPublicKey:{publicKey:"AccumulatorPublicKey",nonce:"BlockNumber"},RemoveAccumulatorParams:{paramsRef:"AccumParametersStorageKey",nonce:"BlockNumber"},RemoveAccumulatorPublicKey:{keyRef:"AccumPublicKeyStorageKey",nonce:"BlockNumber"},AddAccumulator:{id:"AccumulatorId",accumulator:"Accumulator",nonce:"BlockNumber"},RemoveAccumulator:{id:"AccumulatorId",nonce:"BlockNumber"},AccumulatorWithUpdateInfo:{createdAt:"BlockNumber",lastUpdatedAt:"BlockNumber",accumulator:"Accumulator"},UpdateAccumulator:{id:"AccumulatorId",newAccumulated:"Vec",additions:"Option>>",removals:"Option>>",witnessUpdateInfo:"Option>",nonce:"BlockNumber"},StateChange:{_enum:{AddKeys:"AddKeys",AddControllers:"AddControllers",RemoveKeys:"RemoveKeys",RemoveControllers:"RemoveControllers",AddServiceEndpoint:"AddServiceEndpoint",RemoveServiceEndpoint:"RemoveServiceEndpoint",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",AddBlob:"AddBlob",MasterVote:"MasterVote",SetAttestationClaim:"SetAttestationClaim",AddBBSPlusParams:"AddBBSPlusParams",AddBBSPlusPublicKey:"AddBBSPlusPublicKey",RemoveBBSPlusParams:"RemoveBBSPlusParams",RemoveBBSPlusPublicKey:"RemoveBBSPlusPublicKey",AddAccumulatorParams:"AddAccumulatorParams",AddAccumulatorPublicKey:"AddAccumulatorPublicKey",RemoveAccumulatorParams:"RemoveAccumulatorParams",RemoveAccumulatorPublicKey:"RemoveAccumulatorPublicKey",AddAccumulator:"AddAccumulator",UpdateAccumulator:"UpdateAccumulator",RemoveAccumulator:"RemoveAccumulator"}}},s={Address:"MultiAddress",LookupSource:"MultiAddress",Keys:"SessionKeys4",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},WrappedBytes:"Vec",IncId:"u32",RawDid:"[u8;32]",Did:"RawDid",Attester:"Did",BlobOwner:"Did",Controller:"Did",BBSPlusParamsOwner:"Did",AccumulatorOwner:"Did",PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33",X25519:"Bytes32"}},DispatchError:"DispatchErrorPre6",SigValue:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},DidSignature:{did:"Did",keyId:"IncId",sig:"SigValue"},OffChainDidDocRef:{_enum:{CID:"WrappedBytes",URL:"WrappedBytes",Custom:"WrappedBytes"}},OffChainDidDetails:{accountId:"AccountId",docRef:"OffChainDidDocRef"},StoredOnChainDidDetails:{nonce:"BlockNumber",lastKeyId:"IncId",activeControllerKeys:"u32",activeControllers:"u32"},StoredDidDetails:{_enum:{OffChain:"OffChainDidDetails",OnChain:"StoredOnChainDidDetails"}},HighRateRewardsState:{_enum:{None:null,StartingInNextEra:"HighRateRewardsStartingInNextEra",Active:"HighRateRewardsActive"}},HighRateRewardsStartingInNextEra:{duration:"u16"},HighRateRewardsActive:{endsAfter:"u16"},VerRelType:"u16",ServiceEndpointType:"u16",ServiceEndpoint:{types:"ServiceEndpointType",origins:"Vec"},DidKey:{publicKey:"PublicKey",verRels:"VerRelType"},AddKeys:{did:"Did",keys:"Vec",nonce:"BlockNumber"},RemoveKeys:{did:"Did",keys:"BTreeSet",nonce:"BlockNumber"},AddControllers:{did:"Did",controllers:"BTreeSet",nonce:"BlockNumber"},RemoveControllers:{did:"Did",controllers:"BTreeSet",nonce:"BlockNumber"},AddServiceEndpoint:{did:"Did",id:"WrappedBytes",endpoint:"ServiceEndpoint",nonce:"BlockNumber"},RemoveServiceEndpoint:{did:"Did",id:"WrappedBytes",nonce:"BlockNumber"},DidRemoval:{did:"Did",nonce:"BlockNumber"},AggregatedDidDetailsRequestParams:"u8",DidKeyWithId:{id:"IncId",key:"DidKey"},ServiceEndpointWithId:{id:"WrappedBytes",endpoint:"ServiceEndpoint"},AggregatedDidDetailsResponse:{id:"Did",details:"StoredDidDetails",keys:"Option>",controllers:"Option>",attestation:"Option",serviceEndpoints:"Option>"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",addOnly:"bool"},AddRegistry:{id:"RegistryId",newRegistry:"Registry"},RevokeRaw:{registryId:"RegistryId",revokeIds:"BTreeSet"},UnRevokeRaw:{registryId:"RegistryId",revokeIds:"BTreeSet"},RemoveRegistryRaw:{registryId:"RegistryId"},RevokeRaw:{registryId:"RegistryId",revokeIds:"BTreeSet"},Revoke:{nonce:"BlockNumber",data:"RevokeRaw"},UnrevokeRaw:{registryId:"RegistryId",revokeIds:"BTreeSet"},UnRevoke:{nonce:"BlockNumber",data:"UnrevokeRaw"},RemoveRegistryRaw:{registryId:"RegistryId"},RemoveRegistry:{nonce:"BlockNumber",data:"RemoveRegistryRaw"},DidSigs:{sig:"DidSignature",nonce:"BlockNumber"},Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec"},AddBlob:{blob:"Blob",nonce:"BlockNumber"},Balance:"u64",BlockNumber:"u32",Bonus:{swapBonuses:"Vec<(Balance, BlockNumber)>",vestingBonuses:"Vec<(Balance, Balance, BlockNumber)>"},MasterVoteRaw:{proposal:"Vec",roundNo:"u64"},MasterVote:{nonce:"BlockNumber",data:"MasterVoteRaw"},Membership:{members:"BTreeSet",voteRequirement:"u64"},Attestation:{priority:"Compact",iri:"Option>"},SetAttestationClaim:{attest:"Attestation",nonce:"BlockNumber"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",queryAggregatorCallEncoded:"Vec",queryPriceAbiEncoded:"Vec",returnValAbi:"Vec"},CurveType:{_enum:{Bls12381:null}},BBSPlusParametersStorageKey:"(BBSPlusParamsOwner, IncId)",BBSPlusPublicKeyStorageKey:"(Controller, IncId)",BBSPlusParameters:{label:"Option>",curveType:"CurveType",bytes:"Vec"},BBSPlusPublicKey:{curveType:"CurveType",bytes:"Vec",paramsRef:"Option"},BBSPlusPublicKeyWithParams:"(BBSPlusPublicKey, Option)",AddBBSPlusParams:{params:"BBSPlusParameters",nonce:"BlockNumber"},AddBBSPlusPublicKey:{key:"BBSPlusPublicKey",did:"Controller",nonce:"BlockNumber"},RemoveBBSPlusParams:{paramsRef:"BBSPlusParametersStorageKey",nonce:"BlockNumber"},RemoveBBSPlusPublicKey:{keyRef:"BBSPlusPublicKeyStorageKey",did:"Controller",nonce:"BlockNumber"},AccumulatorId:"[u8;32]",AccumParametersStorageKey:"(AccumulatorOwner, IncId)",AccumPublicKeyStorageKey:"(AccumulatorOwner, IncId)",AccumulatorParameters:{label:"Option>",curveType:"CurveType",bytes:"Vec"},AccumulatorPublicKey:{curveType:"CurveType",bytes:"Vec",paramsRef:"Option"},AccumPublicKeyWithParams:"(AccumulatorPublicKey, Option)",AccumulatorCommon:{accumulated:"Vec",keyRef:"AccumPublicKeyStorageKey"},UniversalAccumulator:{common:"AccumulatorCommon",maxSize:"u64"},Accumulator:{_enum:{Positive:"AccumulatorCommon",Universal:"UniversalAccumulator"}},StoredAccumulatorOwnerCounters:{paramsCounter:"IncId",keyCounter:"IncId"},AddAccumulatorParams:{params:"AccumulatorParameters",nonce:"BlockNumber"},AddAccumulatorPublicKey:{publicKey:"AccumulatorPublicKey",nonce:"BlockNumber"},RemoveAccumulatorParams:{paramsRef:"AccumParametersStorageKey",nonce:"BlockNumber"},RemoveAccumulatorPublicKey:{keyRef:"AccumPublicKeyStorageKey",nonce:"BlockNumber"},AddAccumulator:{id:"AccumulatorId",accumulator:"Accumulator",nonce:"BlockNumber"},RemoveAccumulator:{id:"AccumulatorId",nonce:"BlockNumber"},AccumulatorWithUpdateInfo:{createdAt:"BlockNumber",lastUpdatedAt:"BlockNumber",accumulator:"Accumulator"},UpdateAccumulator:{id:"AccumulatorId",newAccumulated:"Vec",additions:"Option>>",removals:"Option>>",witnessUpdateInfo:"Option>",nonce:"BlockNumber"},StateChange:{_enum:{AddKeys:"AddKeys",AddControllers:"AddControllers",RemoveKeys:"RemoveKeys",RemoveControllers:"RemoveControllers",AddServiceEndpoint:"AddServiceEndpoint",RemoveServiceEndpoint:"RemoveServiceEndpoint",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",AddBlob:"AddBlob",MasterVote:"MasterVote",SetAttestationClaim:"SetAttestationClaim",AddBBSPlusParams:"AddBBSPlusParams",AddBBSPlusPublicKey:"AddBBSPlusPublicKey",RemoveBBSPlusParams:"RemoveBBSPlusParams",RemoveBBSPlusPublicKey:"RemoveBBSPlusPublicKey",AddAccumulatorParams:"AddAccumulatorParams",AddAccumulatorPublicKey:"AddAccumulatorPublicKey",RemoveAccumulatorParams:"RemoveAccumulatorParams",RemoveAccumulatorPublicKey:"RemoveAccumulatorPublicKey",AddAccumulator:"AddAccumulator",UpdateAccumulator:"UpdateAccumulator",RemoveAccumulator:"RemoveAccumulator"}}};var d={poa:{treasuryAccount:{description:"Return account address of treasury. The account address can then be used to query the chain for balance",params:[],type:"AccountId"},treasuryBalance:{description:"Return free balance of treasury account. In the context of PoA, only free balance makes sense for treasury. But just in case, to check all kinds of balance (locked, reserved, etc), get the account address with above call and query the chain.",params:[],type:"Balance"},getTotalEmissionInEpoch:{description:"Return total (validators + treasury) emission rewards for given epoch",params:["EpochNo"],type:"Balance"}},price_feed:{tokenUsdPrice:{description:"Gets the price of Dock/USD from pallet's storage",params:[],type:"Option"},tokenUsdPriceFromContract:{description:"Gets the price of Dock/USD from EVM contract",params:[],type:"Option"}},fiat_filter:{getCallFeeDock:{description:"Accepts a scale-encoded extrinsic, returns fee in µDOCK as Balance (u64)",params:["Bytes"],type:"Balance"}},core_mods:{bbsPlusPublicKeyWithParams:{description:"Return BBS+ public key with params",params:[{name:"id",type:"BBSPlusPublicKeyStorageKey"}],type:"Option"},bbsPlusParamsByDid:{description:"Return all BBS+ params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap"},bbsPlusPublicKeysByDid:{description:"Return all BBS+ key with params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap"},accumulatorPublicKeyWithParams:{description:"Return Accumulator public key with params",params:[{name:"id",type:"AccumPublicKeyStorageKey"}],type:"Option"},accumulatorWithPublicKeyAndParams:{description:"Return Accumulator public key with params",params:[{name:"id",type:"AccumulatorId"}],type:"Option<(Vec, Option)>"},didDetails:{description:"Get all keys, controllers and service endpoints of the DID",params:[{name:"did",type:"Did"},{name:"params",type:"u8",isOptional:!0}],type:"Option"},didListDetails:{description:"Get all keys, controllers and service endpoints of the DID",params:[{name:"dids",type:"Vec"},{name:"params",type:"u8",isOptional:!0}],type:"Vec>"}},staking_rewards:{yearlyEmission:{description:"",params:[{name:"total_staked",type:"Balance"},{name:"total_issuance",type:"Balance"}],type:"Balance"},maxYearlyEmission:{description:"",params:[],type:"Balance"}}};const f=[{minmax:[0,23],types:{Address:"AccountId",LookupSource:"AccountId",Keys:"SessionKeys2",Did:"[u8;32]",Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33"}},DidSignature:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},KeyDetail:{controller:"Did",public_key:"PublicKey"},KeyUpdate:{did:"Did",public_key:"PublicKey",controller:"Option",last_modified_in_block:"BlockNumber"},DidRemoval:{did:"Did",last_modified_in_block:"BlockNumber"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},Revoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},UnRevoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},RemoveRegistry:{registry_id:"RegistryId",last_modified:"BlockNumber"},PAuth:"BTreeMap",Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec",author:"Did"},EpochNo:"u32",EpochLen:"u32",SlotNo:"u64",Balance:"u64",EpochDetail:{validator_count:"u8",starting_slot:"SlotNo",expected_ending_slot:"SlotNo",ending_slot:"Option",emission_for_validators:"Option",emission_for_treasury:"Option"},ValidatorStatsPerEpoch:{block_count:"EpochLen",locked_reward:"Option",unlocked_reward:"Option"},Payload:{proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},PMAuth:"BTreeMap",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},Attestation:{priority:"Compact",iri:"Option>"},StateChange:{_enum:{KeyUpdate:"KeyUpdate",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",Blob:"Blob",MasterVote:"Payload",Attestation:"(Did, Attestation)"}}}},{minmax:[23],types:{Address:"MultiAddress",LookupSource:"MultiAddress",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Keys:"SessionKeys2",Did:"[u8;32]",Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33"}},DidSignature:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},KeyDetail:{controller:"Did",public_key:"PublicKey"},KeyUpdate:{did:"Did",public_key:"PublicKey",controller:"Option",last_modified_in_block:"BlockNumber"},DidRemoval:{did:"Did",last_modified_in_block:"BlockNumber"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},Revoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},UnRevoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},RemoveRegistry:{registry_id:"RegistryId",last_modified:"BlockNumber"},PAuth:"BTreeMap",Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec",author:"Did"},EpochNo:"u32",EpochLen:"u32",SlotNo:"u64",Balance:"u64",EpochDetail:{validator_count:"u8",starting_slot:"SlotNo",expected_ending_slot:"SlotNo",ending_slot:"Option",emission_for_validators:"Option",emission_for_treasury:"Option"},ValidatorStatsPerEpoch:{block_count:"EpochLen",locked_reward:"Option",unlocked_reward:"Option"},Payload:{proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},PMAuth:"BTreeMap",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},Attestation:{priority:"Compact",iri:"Option>"},Account:{nonce:"U256",balance:"U256"},Transaction:{nonce:"U256",action:"String",gas_price:"u64",gas_limit:"u64",value:"U256",input:"Vec",signature:"Signature"},Signature:{v:"u64",r:"H256",s:"H256"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",query_aggregator_call_encoded:"Vec",query_price_abi_encoded:"Vec",return_val_abi:"Vec"},StateChange:{_enum:{KeyUpdate:"KeyUpdate",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",Blob:"Blob",MasterVote:"Payload",Attestation:"(Did, Attestation)"}}}}],u={"dock-main-runtime":{types:f,rpc:d},"dock-test-runtime":{types:f,rpc:d},"dock-dev-runtime":{types:f,rpc:d},"dock-pos-main-runtime":{types:[{minmax:[0,32],types:r},{minmax:[33,35],types:n},{minmax:[36,36],types:c},{minmax:[37,37],types:i},{minmax:[38,38],types:o},{minmax:[39,43],types:s}],rpc:d},"dock-pos-test-runtime":{types:[{minmax:[0,32],types:r},{minmax:[33,35],types:n},{minmax:[36,36],types:c},{minmax:[37,37],types:i},{minmax:[38,38],types:o},{minmax:[39,43],types:s}],rpc:d},"dock-pos-dev-runtime":{types:[{minmax:[0,32],types:r},{minmax:[33,35],types:n},{minmax:[36,36],types:c},{minmax:[37,37],types:i},{minmax:[38,38],types:o},{minmax:[39,43],types:s}],rpc:d}},b={spec:u}},42475:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.spec=void 0;var i=a(29912);Object.defineProperty(t,"spec",{enumerable:!0,get:function(){return c(i).default}}),n(a(59741),t)},46264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{DepositNonce:"u64",ResourceId:"[u8; 32]",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",staus:"ProposalStatus",expiry:"BlockNumber"}}}},11903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81819:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.frontier=t.webb=t.nft=t.signaling=t.voting=t.chainBridge=t.treasuryRewards=void 0;var n=a(49120);Object.defineProperty(t,"treasuryRewards",{enumerable:!0,get:function(){return r(n).default}});var c=a(46264);Object.defineProperty(t,"chainBridge",{enumerable:!0,get:function(){return r(c).default}});var i=a(32197);Object.defineProperty(t,"voting",{enumerable:!0,get:function(){return r(i).default}});var o=a(89176);Object.defineProperty(t,"signaling",{enumerable:!0,get:function(){return r(o).default}});var s=a(30691);Object.defineProperty(t,"nft",{enumerable:!0,get:function(){return r(s).default}});var d=a(7039);Object.defineProperty(t,"webb",{enumerable:!0,get:function(){return r(d).default}});var f=a(43062);Object.defineProperty(t,"frontier",{enumerable:!0,get:function(){return r(f).default}})},43062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{ETHBlock:{inner:"Block"},ETHReceipts:{inner:"Vec"},ETHTxStatuses:{inner:"Vec"}}}},51954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},59741:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(13457),t)},30691:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{CID:"Vec",Properties:{_set:{Transferable:1,Burnable:2}},ClassData:{deposit:"Balance",properties:"Properties"},TokenData:{deposit:"Balance"},ClassInfo:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",data:"ClassData"},ClassInfoOf:"ClassInfo",TokenInfo:{metadata:"Vec",owner:"AccountId",data:"TokenData"},TokenInfoOf:"TokenInfo",TokenId:"u64",ClassIdOf:"ClassId",TokenIdOf:"TokenId"}}},98579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89176:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes"}}},58861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},49120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{Balance2:"u128"}}},46022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},13457:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(46022),t),n(a(11903),t),n(a(59738),t),n(a(58861),t),n(a(98579),t),n(a(26246),t),n(a(51954),t)},32197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"}}}},59738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{treeLeaves:{description:"Query for the tree leaves",params:[{name:"tree_id",type:"u32",isOptional:!1},{name:"from",type:"u32",isOptional:!1},{name:"to",type:"u32",isOptional:!1},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<[u8; 32]>"}},types:{Amount:"i128",AmountOf:"Amount",Approval:{amount:"Balance",deposit:"Balance"},ApprovalKey:{owner:"AccountId",delegate:"AccountId"},Commitment:"ScalarData",CurrencyId:"u64",CurrencyIdOf:"CurrencyId",DustHandlerType:{_enum:{Burn:"Null",Transfer:"AccountId"}},HashFunction:{_enum:["PoseidonDefault","PoseidonExp3","PoseidonExp5","PoseidonExp17","MiMC","Blake2","Sha256"]},Manager:{accountId:"AccountId",required:"bool"},MerkleTree:{leaf_count:"u32",max_leaves:"u32",depth:"u8",root_hash:"ScalarData",edge_nodes:"Vec",hasher:"HashFunction",should_store_leaves:"bool"},MixerInfo:{minimum_deposit_length_for_reward:"BlockNumber",fixed_deposit_size:"Balance",currency_id:"CurrencyIdOf"},Nullifier:"ScalarData",ScalarData:"[u8; 32]",TokenDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"Balance",deposit:"Balance",min_balance:"Balance",approvals:"u32",is_frozen:"bool",dust_type:"DustHandlerType"},TokenMetadata:{deposit:"Balance",name:"Vec",symbol:"Vec",decimals:"u8",is_frozen:"bool"},TreeId:"u32",WithdrawProof:{mixer_id:"TreeId",cached_block:"BlockNumber",cached_root:"ScalarData",comms:"Vec",nullifier_hash:"ScalarData",proof_bytes:"Vec",leaf_index_commitments:"Vec",proof_commitments:"Vec",recipient:"Option",relayer:"Option"}}}},26246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29912:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(48739)),c=r(a(41692)),i=r(a(47523)),o=r(a(41685)),s=r(a(93161)),d={spec:{beresheet:{types:[{minmax:[10047,void 0],types:s.default.types}]},edgeware:{alias:{voting:{Tally:"VotingTally"}},types:[{minmax:[0,31],types:n.default.types},{minmax:[32,38],types:c.default.types},{minmax:[39,41],types:i.default.types},{minmax:[42,46],types:o.default.types},{minmax:[47,void 0],types:s.default.types}]}}};t.default={typesBundle:d}},48739:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",Keys:"SessionKeys4",StakingLedger:"StakingLedgerTo240",Votes:"VotesTo230",ReferendumInfo:"ReferendumInfoTo239",Weight:"u32",DispatchInfo:"DispatchInfoTo244",OpenTip:"OpenTipTo225",ContractExecResult:"ContractExecResultTo255",CompactAssignments:"CompactAssignmentsTo257",RewardDestination:"RewardDestinationTo257",RefCount:"RefCountTo259",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"},typesAlias:{voting:{Tally:"VotingTally"}}}},41692:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",CompactAssignments:"CompactAssignmentsTo257",ContractExecResult:"ContractExecResultTo255",RewardDestination:"RewardDestinationTo257",RefCount:"u32",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"},typesAlias:{voting:{Tally:"VotingTally"}}}},47523:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",RefCount:"u32",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"},typesAlias:{voting:{Tally:"VotingTally"}}}},41685:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={types:{Balance2:"u128",ChainId:"u8",DepositNonce:"u64",ResourceId:"[u8; 32]",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",staus:"ProposalStatus",expiry:"BlockNumber"},VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",AccountInfo:"AccountInfoWithRefCount",Address:"MultiAddress",LookupSource:"MultiAddress"}}},93161:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const i=c(a(81819)),o=Object.values(i).reduce(((e,{types:t})=>({...e,...t})),{}),s={...o,AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",LookupSource:"MultiAddress"};t.default={types:s}},59895:function(e,t,a){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.chains=t._getInitializedChains=void 0;var c=n(a(53890)),i=n(a(27785)),o=n(a(48216)),s=n(a(91095)),d=n(a(72487)),f=n(a(96412));function u(e){var t,a,n={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli",11155111:"sepolia"},u={mainnet:c.default,ropsten:i.default,rinkeby:o.default,kovan:s.default,goerli:d.default,sepolia:f.default};if(e)try{for(var b=r(e),l=b.next();!l.done;l=b.next()){var h=l.value,p=h.name;n[h.chainId.toString()]=p,u[p]=h}}catch(e){t={error:e}}finally{try{l&&!l.done&&(a=b.return)&&a.call(b)}finally{if(t)throw t.error}}return u.names=n,u}t._getInitializedChains=u,t.chains=u()},85745:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIPs=void 0,t.EIPs={1153:a(89486),1559:a(90805),2315:a(76568),2537:a(88175),2565:a(92946),2718:a(66426),2929:a(10588),2930:a(30600),3198:a(3729),3529:a(71121),3540:a(48704),3541:a(76198),3554:a(66702),3607:a(32017),3651:a(5982),3670:a(28474),3675:a(74272),3855:a(84114),3860:a(5220),4345:a(47764),4399:a(73505),5133:a(9813)}},65576:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardforks=void 0,t.hardforks=[["chainstart",a(95049)],["homestead",a(89850)],["dao",a(94976)],["tangerineWhistle",a(36908)],["spuriousDragon",a(3340)],["byzantium",a(85727)],["constantinople",a(52938)],["petersburg",a(6989)],["istanbul",a(60279)],["muirGlacier",a(79895)],["berlin",a(63156)],["london",a(99570)],["shanghai",a(93172)],["arrowGlacier",a(2124)],["grayGlacier",a(70130)],["mergeForkIdTransition",a(62912)],["merge",a(23374)]]},46446:function(e,t,a){"use strict";var r,n=a(48834).Buffer,c=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,a=1,r=arguments.length;a=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsensusAlgorithm=t.ConsensusType=t.Hardfork=t.Chain=t.CustomChain=void 0;var s,d,f,u,b,l=a(22699),h=a(97108),p=a(47144),m=a(59895),y=a(65576),g=a(85745);!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(s=t.CustomChain||(t.CustomChain={})),(b=t.Chain||(t.Chain={}))[b.Mainnet=1]="Mainnet",b[b.Ropsten=3]="Ropsten",b[b.Rinkeby=4]="Rinkeby",b[b.Kovan=42]="Kovan",b[b.Goerli=5]="Goerli",b[b.Sepolia=11155111]="Sepolia",function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.GrayGlacier="grayGlacier",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge",e.Shanghai="shanghai"}(d=t.Hardfork||(t.Hardfork={})),(u=t.ConsensusType||(t.ConsensusType={})).ProofOfStake="pos",u.ProofOfWork="pow",u.ProofOfAuthority="poa",(f=t.ConsensusAlgorithm||(t.ConsensusAlgorithm={})).Ethash="ethash",f.Clique="clique",f.Casper="casper";var x=function(e){function t(t){var a,r,n,c,i=this;(i=e.call(this)||this)._supportedHardforks=[],i._eips=[],i._customChains=null!==(n=t.customChains)&&void 0!==n?n:[],i._chainParams=i.setChain(t.chain),i.DEFAULT_HARDFORK=null!==(c=i._chainParams.defaultHardfork)&&void 0!==c?c:d.Istanbul;try{for(var s=o(i._chainParams.hardforks),f=s.next();!f.done;f=s.next()){var u=f.value;u.forkHash||(u.forkHash=i._calcForkHash(u.name))}}catch(e){a={error:e}}finally{try{f&&!f.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}return i._hardfork=i.DEFAULT_HARDFORK,t.supportedHardforks&&(i._supportedHardforks=t.supportedHardforks),t.hardfork&&i.setHardfork(t.hardfork),t.eips&&i.setEIPs(t.eips),i}return c(t,e),t.custom=function(e,a){var r;void 0===a&&(a={});var n=null!==(r=a.baseChain)&&void 0!==r?r:"mainnet",c=i({},t._getChainParams(n));if(c.name="custom-chain","string"!=typeof e)return new t(i({chain:i(i({},c),e)},a));if(e===s.PolygonMainnet)return t.custom({name:s.PolygonMainnet,chainId:137,networkId:137},a);if(e===s.PolygonMumbai)return t.custom({name:s.PolygonMumbai,chainId:80001,networkId:80001},a);if(e===s.ArbitrumRinkebyTestnet)return t.custom({name:s.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},a);if(e===s.xDaiChain)return t.custom({name:s.xDaiChain,chainId:100,networkId:100},a);if(e===s.OptimisticKovan)return t.custom({name:s.OptimisticKovan,chainId:69,networkId:69},i({hardfork:d.Berlin},a));if(e===s.OptimisticEthereum)return t.custom({name:s.OptimisticEthereum,chainId:10,networkId:10},i({hardfork:d.Berlin},a));throw new Error("Custom chain ".concat(e," not supported"))},t.forCustomChain=function(e,a,r,n){var c=t._getChainParams(e);return new t({chain:i(i({},c),a),hardfork:r,supportedHardforks:n})},t.isSupportedChainId=function(e){var t=(0,m._getInitializedChains)();return Boolean(t.names[e.toString()])},t._getChainParams=function(e,t){var a=(0,m._getInitializedChains)(t);if("number"==typeof e||p.BN.isBN(e)){if(e=e.toString(),a.names[e])return a[a.names[e]];throw new Error("Chain with ID ".concat(e," not supported"))}if(a[e])return a[e];throw new Error("Chain with name ".concat(e," not supported"))},t.prototype.setChain=function(e){var a,r;if("number"==typeof e||"string"==typeof e||p.BN.isBN(e)){var n;n=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=t._getChainParams(e,n)}else{if("object"!=typeof e)throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var c=o(["networkId","genesis","hardforks","bootstrapNodes"]),i=c.next();!i.done;i=c.next()){var s=i.value;if(void 0===e[s])throw new Error("Missing required chain parameter: ".concat(s))}}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=c.return)&&r.call(c)}finally{if(a)throw a.error}}this._chainParams=e}return this._chainParams},t.prototype.setHardfork=function(e){var t,a;if(!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"));var r=!1;try{for(var n=o(y.hardforks),c=n.next();!c.done;c=n.next())c.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),r=!0)}catch(e){t={error:e}}finally{try{c&&!c.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}if(!r)throw new Error("Hardfork with name ".concat(e," not supported"))},t.prototype.getHardforkByBlockNumber=function(e,t){var a,r;e=(0,p.toType)(e,p.TypeOutput.BN),t=(0,p.toType)(t,p.TypeOutput.BN);var n,c,i,s=d.Chainstart;try{for(var f=o(this.hardforks()),u=f.next();!u.done;u=f.next()){var b=u.value;if(null!==b.block)e.gte(new p.BN(b.block))&&(s=b.name),t&&b.td&&(t.gte(new p.BN(b.td))?n=b.name:c=i),i=b.name;else if(null!=t&&void 0!==b.td&&null!==b.td&&t.gte(new p.BN(b.td)))return b.name}}catch(e){a={error:e}}finally{try{u&&!u.done&&(r=f.return)&&r.call(f)}finally{if(a)throw a.error}}if(t){var l="block number: ".concat(e," (-> ").concat(s,"), ");if(n&&!this.hardforkGteHardfork(s,n)){var h="HF determined by block number is lower than the minimum total difficulty HF";throw l+="total difficulty: ".concat(t," (-> ").concat(n,")"),new Error("".concat(h,": ").concat(l))}if(c&&!this.hardforkGteHardfork(c,s))throw h="Maximum HF determined by total difficulty is lower than the block number HF",l+="total difficulty: ".concat(t," (-> ").concat(c,")"),new Error("".concat(h,": ").concat(l))}return s},t.prototype.setHardforkByBlockNumber=function(e,t){var a=this.getHardforkByBlockNumber(e,t);return this.setHardfork(a),a},t.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"))}else e=this._hardfork;return e},t.prototype._getHardfork=function(e){var t,a,r=this.hardforks();try{for(var n=o(r),c=n.next();!c.done;c=n.next()){var i=c.value;if(i.name===e)return i}}catch(e){t={error:e}}finally{try{c&&!c.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}throw new Error("Hardfork ".concat(e," not defined for chain ").concat(this.chainName()))},t.prototype._isSupportedHardfork=function(e){var t,a;if(!(this._supportedHardforks.length>0))return!0;try{for(var r=o(this._supportedHardforks),n=r.next();!n.done;n=r.next())if(e===n.value)return!0}catch(e){t={error:e}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(t)throw t.error}}return!1},t.prototype.setEIPs=function(e){var t,a,r=this;void 0===e&&(e=[]);var n=function(t){if(!(t in g.EIPs))throw new Error("".concat(t," not supported"));var a=c.gteHardfork(g.EIPs[t].minimumHardfork);if(!a)throw new Error("".concat(t," cannot be activated on hardfork ").concat(c.hardfork(),", minimumHardfork: ").concat(a));g.EIPs[t].requiredEIPs&&g.EIPs[t].requiredEIPs.forEach((function(a){if(!e.includes(a)&&!r.isActivatedEIP(a))throw new Error("".concat(t," requires EIP ").concat(a,", but is not included in the EIP list"))}))},c=this;try{for(var i=o(e),s=i.next();!s.done;s=i.next())n(s.value)}catch(e){t={error:e}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(t)throw t.error}}this._eips=e},t.prototype.param=function(e,t){var a,r,n=null;try{for(var c=o(this._eips),i=c.next();!i.done;i=c.next()){var s=i.value;if(null!==(n=this.paramByEIP(e,t,s)))return n}}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=c.return)&&r.call(c)}finally{if(a)throw a.error}}return this.paramByHardfork(e,t,this._hardfork)},t.prototype.paramByHardfork=function(e,t,a){var r,n,c,i;a=this._chooseHardfork(a);var s=null;try{for(var d=o(y.hardforks),f=d.next();!f.done;f=d.next()){var u=f.value;if("eips"in u[1]){var b=u[1].eips;try{for(var l=(c=void 0,o(b)),h=l.next();!h.done;h=l.next()){var p=h.value,m=this.paramByEIP(e,t,p);s=null!==m?m:s}}catch(e){c={error:e}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(c)throw c.error}}}else{if(!u[1][e])throw new Error("Topic ".concat(e," not defined"));void 0!==u[1][e][t]&&(s=u[1][e][t].v)}if(u[0]===a)break}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}return s},t.prototype.paramByEIP=function(e,t,a){if(!(a in g.EIPs))throw new Error("".concat(a," not supported"));var r=g.EIPs[a];if(!(e in r))throw new Error("Topic ".concat(e," not defined"));return void 0===r[e][t]?null:r[e][t].v},t.prototype.paramByBlock=function(e,t,a){var r=this.activeHardforks(a),n=r[r.length-1].name;return this.paramByHardfork(e,t,n)},t.prototype.isActivatedEIP=function(e){var t,a;if(this.eips().includes(e))return!0;try{for(var r=o(y.hardforks),n=r.next();!n.done;n=r.next()){var c=n.value[1];if(this.gteHardfork(c.name)&&"eips"in c&&c.eips.includes(e))return!0}}catch(e){t={error:e}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(t)throw t.error}}return!1},t.prototype.hardforkIsActiveOnBlock=function(e,t,a){var r;void 0===a&&(a={}),t=(0,p.toType)(t,p.TypeOutput.BN);var n=null!==(r=a.onlySupported)&&void 0!==r&&r;e=this._chooseHardfork(e,n);var c=this.hardforkBlockBN(e);return!(!c||!t.gte(c))},t.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},t.prototype.hardforkGteHardfork=function(e,t,a){var r,n;void 0===a&&(a={});var c,i=void 0!==a.onlyActive&&a.onlyActive;e=this._chooseHardfork(e,a.onlySupported),c=i?this.activeHardforks(null,a):this.hardforks();var s=-1,d=-1,f=0;try{for(var u=o(c),b=u.next();!b.done;b=u.next()){var l=b.value;l.name===e&&(s=f),l.name===t&&(d=f),f+=1}}catch(e){r={error:e}}finally{try{b&&!b.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return s>=d&&-1!==d},t.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},t.prototype.hardforkIsActiveOnChain=function(e,t){var a,r,n;void 0===t&&(t={});var c=null!==(n=t.onlySupported)&&void 0!==n&&n;e=this._chooseHardfork(e,c);try{for(var i=o(this.hardforks()),s=i.next();!s.done;s=i.next()){var d=s.value;if(d.name===e&&null!==d.block)return!0}}catch(e){a={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return!1},t.prototype.activeHardforks=function(e,t){var a,r;void 0===t&&(t={});var n=[],c=this.hardforks();try{for(var i=o(c),s=i.next();!s.done;s=i.next()){var d=s.value;if(null!==d.block){if(null!=e&&e0)return a[a.length-1].name;throw new Error("No (supported) active hardfork found")},t.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return(0,p.toType)(t,p.TypeOutput.Number)},t.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return null==t?null:new p.BN(t)},t.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return null==t?null:new p.BN(t)},t.prototype.isHardforkBlock=function(e,t){e=(0,p.toType)(e,p.TypeOutput.BN),t=this._chooseHardfork(t,!1);var a=this.hardforkBlockBN(t);return!!a&&a.eq(e)},t.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return(0,p.toType)(t,p.TypeOutput.Number)},t.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,a){var r=new p.BN(a.block);return r.gt(t)&&null===e?r:e}),null)},t.prototype.isNextHardforkBlock=function(e,t){e=(0,p.toType)(e,p.TypeOutput.BN),t=this._chooseHardfork(t,!1);var a=this.nextHardforkBlockBN(t);return null!==a&&a.eq(e)},t.prototype._calcForkHash=function(e){var t,a,r=n.from(this.genesis().hash.substr(2),"hex"),c=n.alloc(0),i=0;try{for(var s=o(this.hardforks()),d=s.next();!d.done;d=s.next()){var f=d.value,u=f.block;if(0!==u&&null!==u&&u!==i){var b=n.from(u.toString(16).padStart(16,"0"),"hex");c=n.concat([c,b])}if(f.name===e)break;null!==u&&(i=u)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(a=s.return)&&a.call(s)}finally{if(t)throw t.error}}var l=n.concat([r,c]),m=(0,p.intToBuffer)((0,h.buf)(l)>>>0).toString("hex");return"0x".concat(m)},t.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block&&void 0===t.td)throw new Error("No fork hash calculation possible for future hardfork");return void 0!==t.forkHash?t.forkHash:this._calcForkHash(e)},t.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},t.prototype.genesis=function(){return this._chainParams.genesis},t.prototype.genesisState=function(){var e,t;switch(this.chainName()){case"mainnet":return a(2816);case"ropsten":return a(68332);case"rinkeby":return a(76270);case"kovan":return a(95943);case"goerli":return a(62734);case"sepolia":return a(99411)}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var r=o(this._customChains),n=r.next();!n.done;n=r.next()){var c=n.value;if(c[0].name===this.chainName())return c[1]}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return{}},t.prototype.hardforks=function(){return this._chainParams.hardforks},t.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},t.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},t.prototype.hardfork=function(){return this._hardfork},t.prototype.chainId=function(){return(0,p.toType)(this.chainIdBN(),p.TypeOutput.Number)},t.prototype.chainIdBN=function(){return new p.BN(this._chainParams.chainId)},t.prototype.chainName=function(){return this._chainParams.name},t.prototype.networkId=function(){return(0,p.toType)(this.networkIdBN(),p.TypeOutput.Number)},t.prototype.networkIdBN=function(){return new p.BN(this._chainParams.networkId)},t.prototype.eips=function(){return this._eips},t.prototype.consensusType=function(){var e,t,a,r=this.hardfork();try{for(var n=o(y.hardforks),c=n.next();!c.done;c=n.next()){var i=c.value;if("consensus"in i[1]&&(a=i[1].consensus.type),i[0]===r)break}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return a||this._chainParams.consensus.type},t.prototype.consensusAlgorithm=function(){var e,t,a,r=this.hardfork();try{for(var n=o(y.hardforks),c=n.next();!c.done;c=n.next()){var i=c.value;if("consensus"in i[1]&&(a=i[1].consensus.algorithm),i[0]===r)break}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return a||this._chainParams.consensus.algorithm},t.prototype.consensusConfig=function(){var e,t,a,r=this.hardfork();try{for(var n=o(y.hardforks),c=n.next();!c.done;c=n.next()){var i=c.value;if("consensus"in i[1]&&(a=i[1].consensus[i[1].consensus.algorithm]),i[0]===r)break}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}if(a)return a;var s=this.consensusAlgorithm();return this._chainParams.consensus[s]},t.prototype.copy=function(){var e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e},t}(l.EventEmitter);t.default=x},7569:function(e){e.exports=(()=>{"use strict";var e={d:(t,a)=>{for(var r in a)e.o(a,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:a[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};return((e,t,a)=>{a.r(t),a.d(t,{default:()=>r});const r=JSON.parse('{"types":[{"minmax":[0,null],"types":{"BalanceWrapper":{"amount":"String"},"CurrencyId":{"_enum":{"Token":"TokenSymbol","ForeignAsset":"ForeignAssetId","LendToken":"LendTokenId","LpToken":"(LpToken, LpToken)","StableLpToken":"StablePoolId"}},"LpToken":{"_enum":{"Token":"TokenSymbol","ForeignAsset":"ForeignAssetId","StableLpToken":"StablePoolId"}},"InterbtcPrimitivesCurrencyId":{"_enum":{"Token":"InterbtcPrimitivesTokenSymbol","ForeignAsset":"InterbtcForeignAssetId","LendToken":"InterbtcLendTokenId","LpToken":"(InterbtcLpToken, InterbtcLpToken)","StableLpToken":"InterbtcStablePoolId"}},"InterbtcLpToken":{"_enum":{"Token":"InterbtcPrimitivesTokenSymbol","ForeignAsset":"InterbtcForeignAssetId","StableLpToken":"InterbtcStablePoolId"}},"InterbtcForeignAssetId":"u32","ForeignAssetId":"u32","InterbtcLendTokenId":"u32","InterbtcStablePoolId":"u32","LendTokenId":"u32","StablePoolId":"u32","NumberOrHex":{"_enum":{"Number":"u64","Hex":"U256"}},"Rate":"FixedU128","Ratio":"Permill","Liquidity":"FixedU128","Shortfall":"FixedU128","FundAccountJsonRpcRequest":{"account_id":"AccountId","currency_id":"InterbtcPrimitivesCurrencyId"},"H256Le":"H256","SignedFixedPoint":"FixedU128","TokenSymbol":{"_enum":{"DOT":0,"IBTC":1,"INTR":2,"KSM":10,"KBTC":11,"KINT":12}},"InterbtcPrimitivesTokenSymbol":{"_enum":{"DOT":0,"IBTC":1,"INTR":2,"KSM":10,"KBTC":11,"KINT":12}},"UnsignedFixedPoint":"FixedU128","VaultCurrencyPair":{"collateral":"CurrencyId","wrapped":"CurrencyId"},"VaultId":{"account_id":"AccountId","currencies":"VaultCurrencyPair"}}}],"rpc":{"btcRelay":{"verifyBlockHeaderInclusion":{"description":"Verify that the block with the given hash is included","params":[{"name":"block_hash","type":"H256Le"}],"type":"void"}},"escrow":{"balanceAt":{"description":"Get a given user\'s escrowed balance","params":[{"name":"account_id","type":"AccountId"},{"name":"height","type":"Option"}],"type":"BalanceWrapper"},"totalSupply":{"description":"Get the total voting supply in the system","params":[{"name":"height","type":"Option"}],"type":"BalanceWrapper"}},"loans":{"getCollateralLiquidity":{"description":"Retrieves collateral liquidity for the given user.","params":[{"name":"account","type":"AccountId"},{"name":"at","type":"BlockHash","isHistoric":true,"isOptional":true}],"type":"(Liquidity, Shortfall)","isSubscription":false,"jsonrpc":"loans_getCollateralLiquidity","method":"getCollateralLiquidity","section":"loans"},"getLiquidationThresholdLiquidity":{"description":"Retrieves liquidation threshold liquidity for the given user.","params":[{"name":"account","type":"AccountId"},{"name":"at","type":"BlockHash","isHistoric":true,"isOptional":true}],"type":"(Liquidity, Shortfall)","isSubscription":false,"jsonrpc":"loans_getLiquidationThresholdLiquidity","method":"getLiquidationThresholdLiquidity","section":"loans"},"getMarketStatus":{"description":"Retrieves market status data for a given asset id.","params":[{"name":"asset_id","type":"CurrencyId"},{"name":"at","type":"BlockHash","isHistoric":true,"isOptional":true}],"type":"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)","isSubscription":false,"jsonrpc":"loans_getMarketStatus","method":"getMarketStatus","section":"loans"}},"issue":{"getIssueRequests":{"description":"Get all issue request IDs for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getVaultIssueRequests":{"description":"Get all issue request IDs for a particular vault","params":[{"name":"vault_id","type":"AccountId"}],"type":"Vec"}},"oracle":{"collateralToWrapped":{"description":"Collateral to Wrapped exchange rate","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"wrappedToCollateral":{"description":"Wrapped to Collateral exchange rate","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"}},"redeem":{"getRedeemRequests":{"description":"Get all redeem request IDs for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getVaultRedeemRequests":{"description":"Get all redeem request IDs for a particular vault","params":[{"name":"vault_id","type":"AccountId"}],"type":"Vec"}},"refund":{"getRefundRequests":{"description":"Get all refund request IDs for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getRefundRequestsByIssueId":{"description":"Get all refund request IDs for a particular issue ID","params":[{"name":"issue_id","type":"H256"}],"type":"H256"},"getVaultRefundRequests":{"description":"Get all refund request IDs for a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"}},"replace":{"getNewVaultReplaceRequests":{"description":"Get all replace request IDs to a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getOldVaultReplaceRequests":{"description":"Get all replace request IDs from a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"}},"reward":{"estimateEscrowRewardRate":{"description":"Estimate the escrow reward rate for a given account","params":[{"name":"account_id","type":"AccountId"},{"name":"amount","type":"Option"},{"name":"lock_time","type":"Option"}],"type":"UnsignedFixedPoint"},"estimateVaultRewardRate":{"description":"Estimate the vault reward rate a given vault id","params":[{"name":"vault_id","type":"VaultId"}],"type":"UnsignedFixedPoint"},"computeEscrowReward":{"description":"Get a given user\'s rewards due","params":[{"name":"account_id","type":"AccountId"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"computeFarmingReward":{"description":"Get a given user\'s farming rewards due","params":[{"name":"account_id","type":"AccountId"},{"name":"pool_currency_id","type":"CurrencyId"},{"name":"reward_currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"computeVaultReward":{"description":"Get a given vault\'s rewards due","params":[{"name":"vault_id","type":"VaultId"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"}},"vaultRegistry":{"getCollateralizationFromVault":{"description":"Returns the collateralization of a specific vault","params":[{"name":"vault","type":"VaultId"},{"name":"only_issued","type":"bool"}],"type":"UnsignedFixedPoint"},"getCollateralizationFromVaultAndCollateral":{"description":"Returns the collateralization of a specific vault and collateral","params":[{"name":"vault","type":"VaultId"},{"name":"collateral","type":"BalanceWrapper"},{"name":"only_issued","type":"bool"}],"type":"UnsignedFixedPoint"},"getIssueableTokensFromVault":{"description":"Get the amount of tokens a vault can issue","params":[{"name":"vault","type":"VaultId"}],"type":"BalanceWrapper"},"getPremiumRedeemVaults":{"description":"Get all vaults below the premium redeem threshold.","params":[],"type":"Vec<(VaultId, BalanceWrapper)>"},"getRequiredCollateralForVault":{"description":"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate","params":[{"name":"vault_id","type":"VaultId"}],"type":"BalanceWrapper"},"getRequiredCollateralForWrapped":{"description":"Get the amount of collateral required to issue an amount of InterBTC","params":[{"name":"amount_btc","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"getVaultCollateral":{"description":"Get the vault\'s collateral (excluding nomination)","params":[{"name":"vault_id","type":"VaultId"}],"type":"BalanceWrapper"},"getVaultTotalCollateral":{"description":"Get the vault\'s collateral (including nomination)","params":[{"name":"vault_id","type":"VaultId"}],"type":"BalanceWrapper"},"getVaultsByAccountId":{"description":"Get all vaults that are registered using the given account _id","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getVaultsWithIssuableTokens":{"description":"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount","params":[],"type":"Vec<(VaultId, BalanceWrapper)>"},"getVaultsWithRedeemableTokens":{"description":"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount","params":[],"type":"Vec<(VaultId, BalanceWrapper)>"}},"dexStable":{"getA":{"description":"Get amplification coefficient of pool","params":[{"name":"pool_id","type":"StablePoolId"},{"name":"at","type":"BlockHash","isHistoric":true,"isOptional":true}],"type":"NumberOrHex"}}},"alias":{"tokens":{"AccountData":"OrmlAccountData","BalanceLock":"OrmlBalanceLock"}},"instances":{"balances":["ksm","kbtc","kint","dot","ibtc","intr"]}}')})(0,t,e),t})()},98647:(e,t,a)=>{"use strict";var r=a(71600);t.bC=void 0;var n=r(a(26290)),c=a(67542),i=a(42370),o=r(a(16241)),s=r(a(94473)),d=r(a(94222)),f=r(a(9042));function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t({minmax:e.minmax,types:b(b({},h),e.types)})))}}};t.bC=p},16241:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{poolState:{description:"",params:[{name:"pool_id",type:"u32"},{name:"at",type:"BlockHash",isOptional:!0}],type:"MarginPoolState"},traderState:{description:"",params:[{name:"who",type:"AccountId"},{name:"pool_id",type:"LiquidityPoolId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"MarginTraderState"}},types:{MarginPoolState:{enp:"FixedI128",ell:"FixedI128",required_deposit:"FixedI128"},MarginTraderState:{equity:"FixedI128",margin_held:"FixedI128",margin_level:"FixedI128",free_margin:"FixedI128",unrealized_pl:"FixedI128"}}}},597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"}}}},19716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec"}}},67542:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.typesAlias=t.rpc=t.types=void 0;var n=r(a(597)),c=r(a(19716)),i=r(a(17832)),o=r(a(42649)),s=r(a(57438)),d=r(a(240)),f=r(a(95936)),u=r(a(82617)),b=a(42370),l=r(a(61585));const h={authority:n.default,graduallyUpdates:c.default,oracle:i.default,tokens:d.default,traits:f.default,vesting:l.default,rewards:o.default,xTokens:u.default,runtime:s.default},p=(0,b.typesFromDefs)(h);t.types=p;const m=(0,b.jsonrpcFromDefs)(h);t.rpc=m;const y=(0,b.typesAliasFromDefs)(h);t.typesAlias=y},17832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"}],type:"Option"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"}],type:"Vec<(OracleKey, Option)>"}},types:{RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec"}}},42649:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"},Share:"u128"}}},57438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{OracleValue:"FixedU128"}}},240:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"}},typesAlias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}}},95936:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128"}}},42370:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"jsonrpcFromDefs",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"typesAliasFromDefs",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"typesFromDefs",{enumerable:!0,get:function(){return i.default}});var n=r(a(66096)),c=r(a(55686)),i=r(a(74809))},66096:(e,t,a)=>{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.keys(e).filter((t=>{var a;return 0!==Object.keys((null===(a=e[t])||void 0===a?void 0:a.rpc)||{}).length})).forEach((a=>{t[a]={},Object.entries(e[a].rpc).forEach((([e,r])=>{const n=!!r.pubsub;t[a][e]=i(i({},r),{},{isSubscription:n,jsonrpc:`${a}_${e}`,method:e,section:a})}))})),t};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.values(e).reduce(((e,{typesAlias:t})=>i(i({},e),t)),t)};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.values(e).reduce(((e,{types:t})=>i(i({},e),t)),t)};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule"}}},82617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},XCurrencyId:{chainId:"ChainId",currencyId:"Vec"}}}},94473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{CurrencyId:{_enum:["LAMI","AUSD","DOT","FEUR","FJPY","FBTC","FETH","FAUD","FCAD","FCHF","FXAU","FOIL","FGBP"]},Leverage:{_enum:["LongTwo","LongThree","LongFive","LongTen","LongTwenty","LongThirty","LongFifty","LongReserved","ShortTwo","ShortThree","ShortFive","ShortTen","ShortTwenty","ShortThirty","ShortFifty","ShortReserved"]},SwapRate:{long:"Rate",short:"Rate"},CurrencyIdOf:"CurrencyId",Amount:"FixedI128",AmountOf:"Amount",OracleKey:"CurrencyId",OracleValue:"Price",LiquidityPoolId:"u32",Leverages:{_set:{_bitLength:16,LongTwo:1,LongThree:2,LongFive:4,LongTen:8,LongTwenty:16,LongThirty:32,LongFifty:64,LongReserved:128,ShortTwo:256,ShortThree:512,ShortFive:1024,ShortTen:2048,ShortTwenty:4096,ShortThirty:8192,ShortFifty:16384,ShortReserved:32768}},TradingPair:{base:"CurrencyId",quote:"CurrencyId"},AccumulateConfig:{frequency:"Moment",offset:"Moment"},IdentityDepositBalanceOf:"Balance",Pool:{owner:"AccountId",balance:"Balance"},MarginTradingPairOption:{enabled:"bool",maxSpread:"Option",swapRate:"SwapRate",accumulateConfig:"Option"},MarginPoolOption:{additionalSwapRate:"FixedI128",minLeveragedAmount:"FixedU128"},MarginPoolTradingPairOption:{enabled:"bool",bidSpread:"Option",askSpread:"Option",enabledTrades:"Leverages"},SyntheticPoolCurrencyOption:{bidSpread:"Option",askSpread:"Option",additionalCollateralRatio:"Option",syntheticEnabled:"bool"},MarginPosition:{owner:"AccountId",poolId:"LiquidityPoolId",pair:"TradingPair",leverage:"Leverage",leveragedHeld:"FixedI128",leveragedDebits:"FixedI128",openAccumulatedSwapRate:"Rate",marginHeld:"FixedI128"},SyntheticPosition:{collateral:"FixedU128",synthetic:"FixedU128"},RiskThreshold:{marginCall:"Permill",stopOut:"Permill"},PositionId:"u64",Rate:"FixedI128",PoolTraderInfo:{positionNum:"PositionId",long:"PairInfo",short:"PairInfo"},PairInfo:{baseAmount:"FixedI128",quoteAmount:"FixedI128"},TradingPairRiskThreshold:{trader:"Option",enp:"Option",ell:"Option"},SyntheticTokensRatio:{extreme:"Option",liquidation:"Option",collateral:"Option"},PositionsSnapshot:{positionsCount:"PositionId",long:"LeveragedAmounts",short:"LeveragedAmounts"},LeveragedAmounts:{held:"FixedI128",debits:"FixedI128"},LiquidityPoolIdentityInfo:{legalName:"Vec",displayName:"Vec",web:"Vec",email:"Vec",image_url:"Vec"}},typesAlias:{marginProtocol:{Position:"MarginPosition"},baseLiquidityPoolsForMargin:{IdentityInfo:"LiquidityPoolIdentityInfo"},syntheticTokens:{Position:"SyntheticPosition"},baseLiquidityPoolsForSynthetic:{IdentityInfo:"LiquidityPoolIdentityInfo"}}}},94222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{poolState:{description:"",params:[{name:"pool_id",type:"u32"},{name:"currency_id",type:"CurrencyId"}],type:"SyntheticPoolState"}},types:{SyntheticPoolState:{collateral_ratio:"FixedI128",is_safe:"boolean"}}}},9042:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{minmax:[0,299],types:{RefCount:"RefCountTo259"}},{minmax:[300,399],types:{CurrencyId:{_enum:["LAMI","AUSD","FEUR","FJPY","FBTC","FETH","FAUD","FCAD","FCHF","FXAU","FOIL","FGBP"]}}},{minmax:[400,void 0],types:{}}]},31044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{ListingLevel:{_enum:{Global:"Null",Local:"MetaverseId"}},AuctionItem:{itemId:"ItemId",recipient:"AccountId",initialAmount:"Balance",amount:"Balance",startTime:"u32",endTime:"u32",auctionType:"AuctionType",listingLevel:"ListingLevel",currencyId:"FungibleTokenId"},AuctionInfo:{bid:"Option<(AccountId,Balance)>",start:"BlockNumber",end:"Option"},AuctionType:{_enum:["Auction","BuyNow"]}}}},59614:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},ValidatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}}},typesAlias:{staking:{Range:"RangeBalance"}}}},91179:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{PowerAmount:"u64",ElementId:"u32",GeneratorNftId:"(ClassId, TokenId)",DistributorNftId:"(ClassId, TokenId)"}}},7101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{EstateId:"u64",Coordinates:"Vec<(i32,i32)>",Coordinate:"(i32,i32)",NewBound:"(i32,i32)",UndeployedLandBlockId:"u128",LandUnits:"Vec<(i32, i32)>",UndeployedLandBlockType:{_enum:["Transferable","BoundToAddress"]}}}},86759:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{PreimageStatus:{_enum:{Missing:"BlockNumber",Available:{data:"Vec",provider:"AccountId",deposit:"Balance",since:"BlockNumber",expiry:"Option"}}},VoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","RelativeMajority"]},ProposalId:"u64",ReferendumId:"u64",MetaverseParameter:{_enum:{MaxProposals:"u8",SetReferendumJury:"AccountId"}},ReferendumParameters:{voting_threshold:"Option",min_proposal_launch_period:"BlockNumber",voting_period:"BlockNumber",enactment_period:"BlockNumber",local_vote_locking_period:"BlockNumber",max_proposals_per_metaverse:"u8"},Delegations:{votes:"Balance",capital:"Balance"},Conviction:{_enum:["None","Locked1x","Locked2x","Locked3x","Locked4x","Locked5x","Locked6x"]},PalletGovernanceVote:{aye:"bool",balance:"Balance",conviction:"Conviction"},Tally:{ayes:"Balance",nays:"Balance",turnout:"Balance"},PriorLock:"(BlockNumber, Balance)",VotingRecord:{votes:"Vec<(ReferendumId,Vote)>",prior:"PriorLock"},ProposalInfo:{proposed_by:"AccountId",hash:"Hash",description:"Vec",referendum_launch_block:"BlockNumber"},ReferendumStatus:{end:"BlockNumber",metaverse:"MetaverseId",proposal:"ProposalId",tally:"Tally",threshold:"Option"},ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:{passed:"bool",end:"BlockNumber"}}}}}},70020:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.typesAlias=t.rpc=t.types=void 0;const n=r(a(31044)),c=r(a(24473)),i=r(a(34625)),o=r(a(68088)),s=r(a(94784)),d=r(a(47038)),f=r(a(86759)),u=r(a(59614)),b=r(a(1820)),l=r(a(7101)),h=r(a(91179)),p=a(19117),m={primitives:i.default,nft:c.default,estate:l.default,auction:n.default,metaverse:s.default,tokens:o.default,vesting:d.default,collatorStaking:u.default,tokenization:b.default,governance:f.default,economy:h.default};t.types=(0,p.typesFromDefs)(m),t.rpc=(0,p.jsonrpcFromDefs)(m),t.typesAlias=(0,p.typesAliasFromDefs)(m)},94784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{MetaverseMetadata:"Vec",MetaverseInfo:{owner:"AccountId",metadata:"MetaverseMetadata",currencyId:"FungibleTokenId"}}}},24473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{CollectionId:"u64",NFTClassId:"u32",ClassIdOf:"ClassId",TokenIdOf:"TokenId",GroupCollectionId:"u64",Attributes:"BTreeMap,Vec>",ClassInfoOf:{metadata:"Vec",totalIssuance:"TokenId",owner:"AccountId",data:"NftClassData"},CollectionType:{_enum:["Collectable","Wearable","Executable"]},TokenInfoOf:{metadata:"Vec",owner:"AccountId",data:"NftAssetData"},NftAssetData:{deposit:"Balance",attributes:"Attributes"},NftClassData:{deposit:"Balance",attributes:"Attributes",tokenType:"TokenType",collectionType:"CollectionType",totalSupply:"u64",initialSupply:"u64"},NftCollectionData:{name:"Vec",owner:"AccountId",properties:"Vec"},TokenType:{_enum:["Transferable","BoundToAddress"]}},typesAligns:{nft:{ClassId:"NFTClassId"}}}},34625:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u64",AuctionIdOf:"AuctionId",BalanceIdOf:"Balance",MetaverseId:"u64",FungibleTokenId:{_enum:{NativeToken:"TokenId",FungibleToken:"TokenId",DEXShare:"(TokenId, TokenId)",MiningResource:"TokenId"}},CurrencyIdOf:"FungibleTokenId",TradingPairStatus:{_enum:["NotEnabled","Enabled"]},TradingPair:"(FungibleTokenId,FungibleTokenId)",TokenId:"u64",SpotId:"u32",ItemId:{_enum:{NFT:"AssetId",Spot:"(u64, MetaverseId)",Metaverse:"MetaverseId",Block:"u64"}},Address:"MultiAddress",LookupSource:"MultiAddress",AccountInfo:"AccountInfoWithTripleRefCount",AssetInfo:{owner:"AccountId",data:"AssetData"},AssetId:"u64",AssetData:{name:"Text",description:"Text",properties:"Text",supporters:"Vec"},AuctionItem:{itemId:"ItemId",recipient:"AccountId",initial_amount:"Balance",amount:"Balance",start_time:"u32",end_time:"u32",auction_type:"AuctionType"},AuctionInfo:{bid:"Option<(AccountId,Balance)>",start:"BlockNumber",end:"Option"},AuctionType:{_enum:["Auction","BuyNow"]},RentId:"u64",RentalInfo:{owner:"AccountId",start:"BlockNumber",end:"Option",price_per_block:"Balance"},CountryId:"u64",CollectionId:"u64",ClassId:"u32",ClassInfoOf:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",data:"NftClassData"},TokenInfoOf:{metadata:"Vec",owner:"AccountId",data:"NftAssetData"},NftCollectionData:{name:"Vec",owner:"AccountId",properties:"Vec"},NftGroupCollectionData:{name:"Vec",properties:"Vec"},NftAssetData:{deposit:"Balance",name:"Vec",description:"Vec",properties:"Vec"},NftClassData:{deposit:"Balance",properties:"Vec",token_type:"TokenType",collection_type:"CollectionType",total_supply:"u64",initial_supply:"u64"},NetworkId:{_enum:{Any:"Null",Named:"Vec",Polkadot:"Null",Kusama:"Null"}},CollectionType:{_enum:["Collectable","Wearable","Executable"]},CurrencyId:"SocialTokenCurrencyId",TokenSymbol:{_enum:["NUUM","AUSD","ACA","DOT"]},CountryCurrencyId:"u32",ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},XCurrencyId:{chain_id:"ChainId",currency_id:"CurrencyId"},GroupCollectionId:"u64",ClassIdOf:"ClassId",TokenIdOf:"TokenId",PoolId:"u32",SocialTokenCurrencyId:{_enum:{NativeToken:"TokenId",FungibleToken:"TokenId",DEXShare:"(TokenId, TokenId)",MiningResource:"TokenId"}},Country:{owner:"AccountId",metadata:"Text",currency_id:"SocialTokenCurrencyId"},Ticker:"Vec",Token:{ticker:"Ticker",total_supply:"Balance"},CountryFund:{vault:"AccountId",value:"u128",backing:"u128",currency_id:"SocialTokenCurrencyId"},LandId:"u64",BlindBoxId:"u64",BlindBoxType:{_enum:["KSM","NUUM","MainnetNFTHat","MainnetNFTJacket","MainnetNFTPants","MainnetNFTShoes","CollectableNFT"]},BlindBoxRewardItem:{recipient:"AccountId",amount:"u32",blindbox_type:"BlindBoxType"},TokenType:{_enum:["Transferable","BoundToAddress"]},ListingLevel:{_enum:{Global:"Null",Local:"CountryId"}},ResourceId:"[u8; 32]",VoteThreshold:{_enum:["StandardQualifiedMajority","TwoThirdsSupermajority","ThreeFifthsSupermajority","ReinforcedQualifiedMajority","RelativeMajority"]},ProposalId:"u64",ReferendumId:"u64",CountryParameter:{_enum:{MaxProposals:"u8",SetReferendumJury:"AccountId"}},PreimageStatus:{_enum:{Missing:"BlockNumber",Available:{data:"Vec",does_update_jury:"bool",provider:"AccountId",deposit:"Balance",since:"BlockNumber",expiry:"Option"}}},ReferendumParameters:{voting_threshold:"Option",min_proposal_launch_period:"BlockNumber",voting_period:"BlockNumber",enactment_period:"BlockNumber",max_proposals_per_country:"u8"},Vote:{aye:"bool"},Tally:{ayes:"u32",nays:"u32",turnout:"u32"},VotingRecord:{votes:"Vec<(ReferendumId,Vote)>"},ProposalInfo:{proposed_by:"AccountId",hash:"Hash",description:"Vec",referendum_launch_block:"BlockNumber"},ReferendumStatus:{end:"BlockNumber",country:"CountryId",proposal:"ProposalId",tally:"Tally",threshold:"Option"},RoundIndex:"u32",MetaverseMetadata:"Vec",VestingScheduleOf:"VestingSchedule",VestingSchedule:{token:"FungibleTokenId",start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"}},typesAlias:{auction:{CurrencyId:"FungibleTokenId"}}}},1820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{Ticker:"Vec",MetaverseToken:{ticker:"Ticker",totalSupply:"Balance"},VestingScheduleOf:"VestingSchedule",VestingSchedule:{token:"FungibleTokenId",start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"}},typesAlias:{tokenization:{Token:"MetaverseToken"}}}},68088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"}},typesAlias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}}},19117:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.typesFromDefs=t.typesAliasFromDefs=t.jsonrpcFromDefs=void 0;var n=a(76173);Object.defineProperty(t,"jsonrpcFromDefs",{enumerable:!0,get:function(){return r(n).default}});var c=a(86941);Object.defineProperty(t,"typesAliasFromDefs",{enumerable:!0,get:function(){return r(c).default}});var i=a(58915);Object.defineProperty(t,"typesFromDefs",{enumerable:!0,get:function(){return r(i).default}})},76173:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.keys(e).filter((t=>{var a;return 0!==Object.keys((null===(a=e[t])||void 0===a?void 0:a.rpc)||{}).length})).forEach((a=>{t[a]={},Object.entries(e[a].rpc).forEach((([e,r])=>{const n=!!r.pubsub;t[a][e]={...r,isSubscription:n,jsonrpc:`${a}_${e}`,method:e,section:a}}))})),t}},86941:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(51344));t.default=function(e,t={}){return Object.values(e).reduce(((e,{typesAlias:t})=>(0,n.default)({},t,e)),t)}},58915:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return Object.values(e).reduce(((e,{types:t})=>({...e,...t})),t)}},47038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{OrmlVestingSchedule:{token:"FungibleTokenId",start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Balance"},VestingScheduleOf:"OrmlVestingSchedule"}}},88053:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{generateTaskId:{description:"Getting task ID given account ID and provided ID",params:[{name:"accountId",type:"AccountId"},{name:"providedId",type:"Text"}],type:"Hash"},getTimeAutomationFees:{description:"Retrieve automation fees",params:[{name:"action",type:"AutomationAction"},{name:"executions",type:"u32"}],type:"Balance"},calculateOptimalAutostaking:{description:"Calculate the optimal period to restake",params:[{name:"principal",type:"i128"},{name:"collator",type:"AccountId"}],type:"AutostakingResult"},getAutoCompoundDelegatedStakeTaskIds:{description:"Return autocompounding tasks by account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},types:{AutomationAction:{_enum:["Notify","NativeTransfer","XCMP","AutoCompoundDelegatedStake"]},AutostakingResult:{period:"i32",apy:"f64"}}}},76690:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=t.types=t.definitions=void 0;const i=a(62699),o=c(a(88053)),s=c(a(59134));n(a(88053),t),n(a(59134),t),t.definitions={automationTime:o.default,xcmpHandler:s.default},t.types=(0,i.typesFromDefs)(t.definitions),t.rpc=(0,i.jsonrpcFromDefs)(t.definitions)},62699:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.typesFromDefs=t.typesAliasFromDefs=t.jsonrpcFromDefs=void 0;var n=r(a(41713));t.jsonrpcFromDefs=n.default;var c=r(a(90328));t.typesAliasFromDefs=c.default;var i=r(a(95490));t.typesFromDefs=i.default},41713:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.keys(e).filter((t=>{var a;return 0!==Object.keys((null===(a=e[t])||void 0===a?void 0:a.rpc)||{}).length})).forEach((a=>{t[a]={},Object.entries(e[a].rpc).forEach((e=>{let[r,n]=e;const c=!!n.pubsub;t[a][r]=i(i({},n),{},{isSubscription:c,jsonrpc:`${a}_${r}`,method:r,section:a})}))})),t};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{typesAlias:a}=t;return(0,n.default)({},a,e)}),t)};var n=r(a(51344))},95490:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{types:a}=t;return i(i({},e),a)}),t)};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{crossChainAccount:{description:"Find xcmp account id",params:[{name:"accountId",type:"AccountId32"}],type:"AccountId32"},fees:{description:"Determine fees for a scheduled xcmp task",params:[{name:"encodedXt",type:"Bytes"}],type:"u64"}},types:{}}},57718:(e,t,a)=>{"use strict";t.__esModule=!0,t.balance=void 0;var r=a(22542),n=a(39002);t.balance=(e,t)=>(0,r.memo)(e,((e,a)=>t.rpc.system.properties().pipe((0,n.mergeMap)((r=>{const c=t.registry.createType("CurrencyId",a),i=r.tokenSymbol.unwrapOrDefault()[0].toString(),o=t.registry.createType("CurrencyId",(t.registry.getDefinition("CurrencyId")||"").includes('"Token":"TokenSymbol"')?{Token:i}:i);if(c.eq(o))return t.query.system.account(e).pipe((0,n.map)((e=>e.data.free)));const s=t.query.tokens.accounts.creator.meta.type.asMap.key,[d]=t.registry.lookup.getSiType(s).def.asTuple,f="CurrencyId"===t.registry.lookup.getTypeDef(d).type?[a,e]:[e,a];return t.query.tokens.accounts(...f).pipe((0,n.map)((e=>e.free)))})))))},7761:(e,t,a)=>{"use strict";t.__esModule=!0;var r=a(57718);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},37986:(e,t,a)=>{"use strict";t.__esModule=!0,t.derive=void 0;const r={currencies:{balance:a(7761).balance}};t.derive=r},21386:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin"}}},13915:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec"}}},48183:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.typesAlias=t.types=t.rpc=void 0;var n=r(a(21386)),c=r(a(13915)),i=r(a(61006)),o=r(a(41940)),s=r(a(46955)),d=r(a(62857)),f=r(a(91496)),u=a(95870),b=r(a(35621));const l={authority:n.default,graduallyUpdates:c.default,oracle:i.default,tokens:d.default,traits:f.default,vesting:b.default,rewards:o.default,runtime:s.default},h=(0,u.typesFromDefs)(l);t.types=h;const p=(0,u.jsonrpcFromDefs)(l);t.rpc=p;const m=(0,u.typesAliasFromDefs)(l);t.typesAlias=m},61006:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>"}},types:{RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec"}}},41940:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OrmlCurrencyId:"u8",PoolInfo:{totalShares:"Share",rewards:"BTreeMap"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128"}}},46955:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OracleValue:"FixedU128"}}},62857:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{queryExistentialDeposit:{description:"Query Existential Deposit for a given currency.",params:[{name:"currencyId",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex"}},types:{OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"}},typesAlias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}}},91496:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128"}}},95870:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.typesFromDefs=t.typesAliasFromDefs=t.jsonrpcFromDefs=void 0;var n=r(a(90640));t.jsonrpcFromDefs=n.default;var c=r(a(5195));t.typesAliasFromDefs=c.default;var i=r(a(19579));t.typesFromDefs=i.default},90640:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.keys(e).filter((t=>{var a;return 0!==Object.keys((null===(a=e[t])||void 0===a?void 0:a.rpc)||{}).length})).forEach((a=>{t[a]={},Object.entries(e[a].rpc).forEach((e=>{let[r,n]=e;const c=!!n.pubsub;t[a][r]=i(i({},n),{},{isSubscription:c,jsonrpc:`${a}_${r}`,method:r,section:a})}))})),t};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{typesAlias:a}=t;return(0,n.default)({},a,e)}),t)};var n=r(a(51344))},19579:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{types:a}=t;return i(i({},e),a)}),t)};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule"}}},77856:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{Pool:{baseAmount:"Balance",quoteAmount:"Balance",baseAmountLast:"Balance",quoteAmountLast:"Balance",lpTokenId:"AssetId",blockTimestampLast:"BlockNumber",price0CumulativeLast:"Balance",price1CumulativeLast:"Balance"}}}},78891:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{BridgeToken:{id:"CurrencyId",external:"bool",fee:"Balance"},ProposalStatus:{_enum:["Initiated","Approved","Rejected"]}}}},60540:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{VaultPhase:{_enum:["Pending","Contributing","Closed","Failed","Succeeded","Expired"]},ContributionStrategy:{_enum:["XCM","XCMPROXY"]},ChildStorageKind:{_enum:["Pending","Flying","Contributed"]},TrieIndex:"u32",LeasePeriod:"BlockNumber",Vault:{ctoken:"AssetId",phase:"VaultPhase",contributed:"Balance",pending:"Balance",flying:"Balance",contributionStrategy:"ContributionStrategy",cap:"Balance",endBlock:"BlockNumber",trieIndex:"TrieIndex",leaseStart:"LeasePeriod",leaseEnd:"LeasePeriod"}}}},55802:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{BoundedBalance:"BoundedVec<(Balance, BlockNumber), u32>",PoolInfo:{isActive:"bool",totalDeposited:"Balance",unlockHeight:"BlockNumber",coolDownDuration:"BlockNumber",rewardDuration:"BlockNumber",periodFinish:"BlockNumber",lastUpdateBlock:"BlockNumber",rewardRate:"Balance",rewardPerShareStored:"Balance"},UserPosition:{depositBalance:"Balance",lockBalanceItems:"BoundedBalance",rewardAmount:"Balance",rewardPerSharePaid:"Balance"}}}},91426:(e,t,a)=>{"use strict";var r=a(71600);t.bC=void 0;var n=r(a(26290)),c=a(89433),i=a(62147),o=a(42150),s=r(a(77856)),d=r(a(25695)),f=r(a(26168)),u=r(a(84552)),b=r(a(56702)),l=r(a(18202)),h=r(a(55802)),p=r(a(96067)),m=r(a(60540)),y=r(a(84320)),g=r(a(78891)),x=r(a(7502));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t({minmax:e.minmax,types:w(w({},k),e.types)}))),alias:E}}I(x.default);const M={spec:{parallel:I(x.default)}};t.bC=M,o.signedExtensions},25695:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{ReservableAmount:{total:"Balance",reserved:"Balance"},MatchingLedger:{totalStakeAmount:"ReservableAmount",totalUnstakeAmount:"ReservableAmount"},UnlockChunk:{value:"Balance",era:"EraIndex"},StakingLedger:{stash:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec",claimedRewards:"Vec"},DerivativeIndex:"u16"}}},26168:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getCollateralLiquidity:{description:"Retrieves collateral liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall, Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getCollateralLiquidity",method:"getCollateralLiquidity",section:"loans"},getLiquidationThresholdLiquidity:{description:"Retrieves liquidation threshold liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall, Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getLiquidationThresholdLiquidity",method:"getLiquidationThresholdLiquidity",section:"loans"},getMarketStatus:{description:"Retrieves market status data for a given asset id.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)",isSubscription:!1,jsonrpc:"loans_getMarketStatus",method:"getMarketStatus",section:"loans"}},types:{Deposits:{voucherBalance:"Balance",isCollateral:"bool"},BorrowSnapshot:{principal:"Balance",borrowIndex:"u128"},EarnedSnapshot:{totalEarnedPrior:"Balance",exchangeRatePrior:"u128"},JumpModel:{baseRate:"Rate",jumpRate:"Rate",fullRate:"Rate",jumpUtilization:"Ratio"},CurveModel:{baseRate:"Rate"},InterestRateModel:{_enum:{JumpModel:"JumpModel",CurveModel:"CurveModel"}},Market:{collateralFactor:"Ratio",liquidationThreshold:"Ratio",reserveFactor:"Ratio",closeFactor:"Ratio",liquidateIncentive:"Rate",liquidateIncentiveReservedFactor:"Ratio",rateModel:"InterestRateModel",state:"MarketState",supplyCap:"Balance",borrowCap:"Balance",ptokenId:"CurrencyId"},MarketState:{_enum:["Active","Pending","Supervision"]},RewardMarketState:{index:"Balance",block:"BlockNumber"},Liquidity:"FixedU128",Shortfall:"FixedU128"}}},53967:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin"}}},29890:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec"}}},89433:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.typesAlias=t.types=t.rpc=void 0;var n=r(a(53967)),c=r(a(29890)),i=r(a(71217)),o=r(a(6635)),s=r(a(52898)),d=r(a(60611)),f=r(a(59101)),u=a(62147),b=r(a(71954));const l={authority:n.default,graduallyUpdates:c.default,oracle:i.default,tokens:d.default,traits:f.default,vesting:b.default,rewards:o.default,runtime:s.default},h=(0,u.typesFromDefs)(l);t.types=h;const p=(0,u.jsonrpcFromDefs)(l);t.rpc=p;const m=(0,u.typesAliasFromDefs)(l);t.typesAlias=m},71217:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>"}},types:{RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec"}}},6635:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OrmlCurrencyId:"u8",PoolInfo:{totalShares:"Share",rewards:"BTreeMap"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128"}}},52898:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OracleValue:"FixedU128"}}},60611:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{queryExistentialDeposit:{description:"Query Existential Deposit for a given currency.",params:[{name:"currencyId",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex"}},types:{OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"}},typesAlias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}}},59101:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128"}}},62147:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.typesFromDefs=t.typesAliasFromDefs=t.jsonrpcFromDefs=void 0;var n=r(a(99227));t.jsonrpcFromDefs=n.default;var c=r(a(2533));t.typesAliasFromDefs=c.default;var i=r(a(47103));t.typesFromDefs=i.default},99227:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.keys(e).filter((t=>{var a;return 0!==Object.keys((null===(a=e[t])||void 0===a?void 0:a.rpc)||{}).length})).forEach((a=>{t[a]={},Object.entries(e[a].rpc).forEach((e=>{let[r,n]=e;const c=!!n.pubsub;t[a][r]=i(i({},n),{},{isSubscription:c,jsonrpc:`${a}_${r}`,method:r,section:a})}))})),t};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{typesAlias:a}=t;return(0,n.default)({},a,e)}),t)};var n=r(a(51344))},47103:(e,t,a)=>{"use strict";var r=a(71600);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{types:a}=t;return i(i({},e),a)}),t)};var n=r(a(26290));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule"}}},84552:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{}}},56702:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{Amount:"i128",AmountOf:"Amount",Rate:"FixedU128",Ratio:"Permill",Timestamp:"u64",PriceDetail:"(Price, Timestamp)",CurrencyId:"AssetId",CurrencyIdOf:"CurrencyId",Currency:"CurrencyId",AssetIdOf:"AssetId"}}},96067:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getBestRoute:{description:"Returns the route that results in the largest amount out for amount in",params:[{name:"amount",type:"Balance"},{name:"token_in",type:"CurrencyId"},{name:"token_out",type:"CurrencyId"},{name:"reversed",type:"bool"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Vec, FixedU128)",isSubscription:!1,jsonrpc:"router_getBestRoute",method:"getBestRoute",section:"router"}},types:{Route:"Vec<(AssetId, AssetId)>"}}},18202:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OracleKey:"AssetId",Price:"FixedU128",OracleValue:"Price"}}},42150:(e,t)=>{"use strict";t.__esModule=!0,t.signedExtensions=void 0,t.signedExtensions={SetEvmOrigin:{extrinsic:{},payload:{}}}},7502:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;t.default=[{minmax:[0,void 0],types:{Address:"MultiAddress",LookupSource:"MultiAddress",TAssetBalance:"u128"}}]},84320:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{XcmWeightFeeMisc:{weight:"Weight",fee:"Balance"},XcmCall:{_enum:["Bond","BondExtra","Unbond","Rebond","WithdrawUnbonded","Nominate","Contribute","Withdraw","AddMemo"]}}}},61338:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.typesBundle=t.versionedKhala=t.khalaDev=t.khala=t.phalaDev=t.typesChain=void 0;var n=r(a(93055));t.phalaDev=n.default;var c=r(a(97697));t.khala=c.default;var i=r(a(82385));t.khalaDev=i.default;var o=r(a(85660));t.versionedKhala=o.default,t.typesChain={Khala:c.default,"Khala Testnet":i.default,"Khala Local Testnet":i.default,"Phala PoC-Next":n.default,"Phala Local Testnet":n.default,"Phala Integration Test":n.default,"Phala Staging Testnet":n.default,"Phala Development":n.default},t.typesBundle={alias:{},rpc:{},types:o.default}},82385:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Address:"MultiAddress",LookupSource:"MultiAddress",DispatchErrorModule:"DispatchErrorModuleU8",Keys:"AccountId",BridgeChainId:"u8",BridgeEvent:{_enum:{FungibleTransfer:"FungibleTransfer",NonFungibleTransfer:"NonFungibleTransfer",GenericTransfer:"GenericTransfer"}},FungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",amount:"U256",recipient:"Vec"},NonFungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",tokenId:"Vec",recipient:"Vec",metadata:"Vec"},GenericTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",metadata:"Vec"},ResourceId:"[u8; 32]",TokenId:"U256",DepositNonce:"u64",ProposalStatus:{_enum:{Initiated:null,Approved:null,Rejected:null}},ProposalVotes:{votesFor:"Vec",votesAgainst:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},AssetInfo:{destId:"BridgeChainId",assetIdentity:"Vec"},ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Governance","Collator","StakePoolManager"]},Sr25519PublicKey:"[u8; 32]",MasterPublicKey:"Sr25519PublicKey",WorkerPublicKey:"Sr25519PublicKey",ContractPublicKey:"Sr25519PublicKey",EcdhPublicKey:"[u8; 32]",MessageOrigin:{_enum:{Pallet:"Vec",Contract:"H256",Worker:"Sr25519PublicKey",AccountId:"H256",MultiLocation:"Vec",Gatekeeper:null,Cluster:"H256"}},Attestation:{_enum:{SgxIas:"AttestationSgxIas"}},AttestationSgxIas:{raReport:"Vec",signature:"Vec",rawSigningCert:"Vec"},SenderId:"MessageOrigin",Path:"Vec",Topic:"Path",Message:{sender:"SenderId",destination:"Topic",payload:"Vec"},SignedMessage:{message:"Message",sequence:"u64",signature:"Vec"},WorkerRegistrationInfo:{version:"u32",machineId:"Vec",pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",genesisBlockHash:"H256",features:"Vec",operator:"Option"},PoolInfo:{pid:"u64",owner:"AccountId",payoutCommission:"Option",ownerReward:"Balance",cap:"Option",rewardAcc:"u128",totalShares:"Balance",totalStake:"Balance",freeStake:"Balance",releasingStake:"Balance",workers:"Vec",withdrawQueue:"Vec"},WithdrawInfo:{user:"AccountId",shares:"Balance",startTime:"u64"},WorkerInfo:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",runtimeVersion:"u32",lastUpdated:"u64",operator:"Option",confidenceLevel:"u8",initialScore:"Option",features:"Vec"},MinerInfo:{state:"MinerState",ve:"u128",v:"u128",vUpdatedAt:"u64",benchmark:"Benchmark",coolDownStart:"u64",stats:"MinerStats"},Benchmark:{pInit:"u32",pInstant:"u32",iterations:"u64",miningStartTime:"u64",challengeTimeLast:"u64"},MinerState:{_enum:{Ready:null,MiningIdle:null,MiningActive:null,MiningUnresponsive:null,MiningCoolingDown:null}},MinerStats:{totalReward:"Balance"},HeartbeatChallenge:{seed:"U256",onlineTarget:"U256"},KeyDistribution:{_enum:{MasterKeyDistribution:"DispatchMasterKeyEvent"}},GatekeeperLaunch:{_enum:{FirstGatekeeper:"NewGatekeeperEvent",MasterPubkeyOnChain:null}},GatekeeperChange:{_enum:{GatekeeperRegistered:"NewGatekeeperEvent"}},GatekeeperEvent:{_enum:{NewRandomNumber:"RandomNumberEvent",TokenomicParametersChanged:"TokenomicParameters"}},NewGatekeeperEvent:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey"},DispatchMasterKeyEvent:{dest:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",encryptedMasterKey:"Vec",iv:"[u8; 12]"},RandomNumberEvent:{blockNumber:"u32",randomNumber:"[u8; 32]",lastRandomNumber:"[u8; 32]"},TokenomicParameters:{phaRate:"U64F64Bits",rho:"U64F64Bits",budgetPerBlock:"U64F64Bits",vMax:"U64F64Bits",costK:"U64F64Bits",costB:"U64F64Bits",slashRate:"U64F64Bits",treasuryRatio:"U64F64Bits",heartbeatWindow:"u32",rigK:"U64F64Bits",rigB:"U64F64Bits",re:"U64F64Bits",k:"U64F64Bits",kappa:"U64F64Bits"},TokenomicParams:"TokenomicParameters",U64F64Bits:"u128",UserStakeInfo:{user:"AccountId",locked:"Balance",shares:"Balance",availableRewards:"Balance",rewardDebt:"Balance"}}},97697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Address:"MultiAddress",LookupSource:"MultiAddress",DispatchErrorModule:"DispatchErrorModuleU8",Keys:"AccountId",ChainId:"u8",BridgeChainId:"u8",BridgeEvent:{_enum:{FungibleTransfer:"FungibleTransfer",NonFungibleTransfer:"NonFungibleTransfer",GenericTransfer:"GenericTransfer"}},FungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",amount:"U256",recipient:"Vec"},NonFungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",tokenId:"Vec",recipient:"Vec",metadata:"Vec"},GenericTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",metadata:"Vec"},ResourceId:"[u8; 32]",TokenId:"U256",DepositNonce:"u64",ProposalStatus:{_enum:{Initiated:null,Approved:null,Rejected:null}},ProposalVotes:{votesFor:"Vec",votesAgainst:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},AssetInfo:{destId:"BridgeChainId",assetIdentity:"Vec"},ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Governance","Collator","StakePoolManager"]},Sr25519PublicKey:"[u8; 32]",MasterPublicKey:"Sr25519PublicKey",WorkerPublicKey:"Sr25519PublicKey",ContractPublicKey:"Sr25519PublicKey",EcdhPublicKey:"[u8; 32]",MessageOrigin:{_enum:{Pallet:"Vec",Contract:"H256",Worker:"Sr25519PublicKey",AccountId:"H256",MultiLocation:"Vec",Gatekeeper:null,Cluster:"H256"}},Attestation:{_enum:{SgxIas:"AttestationSgxIas"}},AttestationSgxIas:{raReport:"Vec",signature:"Vec",rawSigningCert:"Vec"},SenderId:"MessageOrigin",Path:"Vec",Topic:"Path",Message:{sender:"SenderId",destination:"Topic",payload:"Vec"},SignedMessage:{message:"Message",sequence:"u64",signature:"Vec"},WorkerRegistrationInfo:{version:"u32",machineId:"Vec",pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",genesisBlockHash:"H256",features:"Vec",operator:"Option"},PoolInfo:{pid:"u64",owner:"AccountId",payoutCommission:"Option",ownerReward:"Balance",cap:"Option",rewardAcc:"u128",totalShares:"Balance",totalStake:"Balance",freeStake:"Balance",releasingStake:"Balance",workers:"Vec",withdrawQueue:"Vec"},WithdrawInfo:{user:"AccountId",shares:"Balance",startTime:"u64"},WorkerInfo:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",runtimeVersion:"u32",lastUpdated:"u64",operator:"Option",confidenceLevel:"u8",initialScore:"Option",features:"Vec"},MinerInfo:{state:"MinerState",ve:"u128",v:"u128",vUpdatedAt:"u64",benchmark:"Benchmark",coolDownStart:"u64",stats:"MinerStats"},Benchmark:{pInit:"u32",pInstant:"u32",iterations:"u64",miningStartTime:"u64",challengeTimeLast:"u64"},MinerState:{_enum:{Ready:null,MiningIdle:null,MiningActive:null,MiningUnresponsive:null,MiningCoolingDown:null}},MinerStats:{totalReward:"Balance"},HeartbeatChallenge:{seed:"U256",onlineTarget:"U256"},KeyDistribution:{_enum:{MasterKeyDistribution:"DispatchMasterKeyEvent"}},GatekeeperLaunch:{_enum:{FirstGatekeeper:"NewGatekeeperEvent",MasterPubkeyOnChain:null}},GatekeeperChange:{_enum:{GatekeeperRegistered:"NewGatekeeperEvent"}},GatekeeperEvent:{_enum:{NewRandomNumber:"RandomNumberEvent",TokenomicParametersChanged:"TokenomicParameters"}},NewGatekeeperEvent:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey"},DispatchMasterKeyEvent:{dest:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",encryptedMasterKey:"Vec",iv:"[u8; 12]"},RandomNumberEvent:{blockNumber:"u32",randomNumber:"[u8; 32]",lastRandomNumber:"[u8; 32]"},TokenomicParameters:{phaRate:"U64F64Bits",rho:"U64F64Bits",budgetPerBlock:"U64F64Bits",vMax:"U64F64Bits",costK:"U64F64Bits",costB:"U64F64Bits",slashRate:"U64F64Bits",treasuryRatio:"U64F64Bits",heartbeatWindow:"u32",rigK:"U64F64Bits",rigB:"U64F64Bits",re:"U64F64Bits",k:"U64F64Bits",kappa:"U64F64Bits"},TokenomicParams:"TokenomicParameters",U64F64Bits:"u128",UserStakeInfo:{user:"AccountId",locked:"Balance",shares:"Balance",availableRewards:"Balance",rewardDebt:"Balance"}}},93055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Address:"MultiAddress",LookupSource:"MultiAddress",RawSolution:"RawSolutionWith24",BridgeChainId:"u8",BridgeEvent:{_enum:{FungibleTransfer:"FungibleTransfer",NonFungibleTransfer:"NonFungibleTransfer",GenericTransfer:"GenericTransfer"}},FungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",amount:"U256",recipient:"Vec"},NonFungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",tokenId:"Vec",recipient:"Vec",metadata:"Vec"},GenericTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",metadata:"Vec"},ResourceId:"[u8; 32]",TokenId:"u256",DepositNonce:"u64",ProposalStatus:{_enum:{Initiated:null,Approved:null,Rejected:null}},ProposalVotes:{votesFor:"Vec",votesAgainst:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},AssetInfo:{destId:"BridgeChainId",assetIdentity:"Vec"},Kitty:{id:"Hash",dna:"Hash",price:"Balance",gen:"u64"},Sr25519PublicKey:"[u8; 32]",MasterPublicKey:"Sr25519PublicKey",WorkerPublicKey:"Sr25519PublicKey",ContractPublicKey:"Sr25519PublicKey",EcdhPublicKey:"[u8; 32]",MessageOrigin:{_enum:{Pallet:"Vec",Contract:"H256",Worker:"Sr25519PublicKey",AccountId:"H256",MultiLocation:"Vec",Gatekeeper:null,Cluster:"H256"}},Attestation:{_enum:{SgxIas:"AttestationSgxIas"}},AttestationSgxIas:{raReport:"Vec",signature:"Vec",rawSigningCert:"Vec"},SenderId:"MessageOrigin",Path:"Vec",Topic:"Path",Message:{sender:"SenderId",destination:"Topic",payload:"Vec"},SignedMessage:{message:"Message",sequence:"u64",signature:"Vec"},WorkerRegistrationInfo:{version:"u32",machineId:"Vec",pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",genesisBlockHash:"H256",features:"Vec",operator:"Option"},PoolInfo:{pid:"u64",owner:"AccountId",payoutCommission:"Option",ownerReward:"Balance",cap:"Option",rewardAcc:"u128",totalShares:"Balance",totalStake:"Balance",freeStake:"Balance",releasingStake:"Balance",workers:"Vec",withdrawQueue:"Vec"},WithdrawInfo:{user:"AccountId",shares:"Balance",startTime:"u64"},WorkerInfo:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",runtimeVersion:"u32",lastUpdated:"u64",operator:"Option",confidenceLevel:"u8",initialScore:"Option",features:"Vec"},MinerInfo:{state:"MinerState",ve:"u128",v:"u128",vUpdatedAt:"u64",benchmark:"Benchmark",coolDownStart:"u64",stats:"MinerStats"},Benchmark:{pInit:"u32",pInstant:"u32",iterations:"u64",miningStartTime:"u64",challengeTimeLast:"u64"},MinerState:{_enum:{Ready:null,MiningIdle:null,MiningActive:null,MiningUnresponsive:null,MiningCoolingDown:null}},MinerStats:{totalReward:"Balance"},HeartbeatChallenge:{seed:"U256",onlineTarget:"U256"},KeyDistribution:{_enum:{MasterKeyDistribution:"DispatchMasterKeyEvent"}},GatekeeperLaunch:{_enum:{FirstGatekeeper:"NewGatekeeperEvent",MasterPubkeyOnChain:null}},GatekeeperChange:{_enum:{GatekeeperRegistered:"NewGatekeeperEvent"}},GatekeeperEvent:{_enum:{NewRandomNumber:"RandomNumberEvent",TokenomicParametersChanged:"TokenomicParameters"}},NewGatekeeperEvent:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey"},DispatchMasterKeyEvent:{dest:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",encryptedMasterKey:"Vec",iv:"[u8; 12]"},RandomNumberEvent:{blockNumber:"u32",randomNumber:"[u8; 32]",lastRandomNumber:"[u8; 32]"},TokenomicParameters:{phaRate:"U64F64Bits",rho:"U64F64Bits",budgetPerBlock:"U64F64Bits",vMax:"U64F64Bits",costK:"U64F64Bits",costB:"U64F64Bits",slashRate:"U64F64Bits",treasuryRatio:"U64F64Bits",heartbeatWindow:"u32",rigK:"U64F64Bits",rigB:"U64F64Bits",re:"U64F64Bits",k:"U64F64Bits",kappa:"U64F64Bits"},TokenomicParams:"TokenomicParameters",U64F64Bits:"u128",UserStakeInfo:{user:"AccountId",locked:"Balance",shares:"Balance",availableRewards:"Balance",rewardDebt:"Balance"}}},85660:function(e,t){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,a=1,r=arguments.length;a"},NonFungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",tokenId:"Vec",recipient:"Vec",metadata:"Vec"},GenericTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",metadata:"Vec"},ResourceId:"[u8; 32]",TokenId:"U256",DepositNonce:"u64",ProposalStatus:{_enum:{Initiated:null,Approved:null,Rejected:null}},ProposalVotes:{votesFor:"Vec",votesAgainst:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},AssetInfo:{destId:"BridgeChainId",assetIdentity:"Vec"},ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Governance","Collator","StakePoolManager"]},Sr25519PublicKey:"[u8; 32]",MasterPublicKey:"Sr25519PublicKey",WorkerPublicKey:"Sr25519PublicKey",ContractPublicKey:"Sr25519PublicKey",EcdhPublicKey:"[u8; 32]",MessageOrigin:{_enum:{Pallet:"Vec",Contract:"H256",Worker:"Sr25519PublicKey",AccountId:"H256",MultiLocation:"Vec",Gatekeeper:null,Cluster:"H256"}},Attestation:{_enum:{SgxIas:"AttestationSgxIas"}},AttestationSgxIas:{raReport:"Vec",signature:"Vec",rawSigningCert:"Vec"},SenderId:"MessageOrigin",Path:"Vec",Topic:"Path",Message:{sender:"SenderId",destination:"Topic",payload:"Vec"},SignedMessage:{message:"Message",sequence:"u64",signature:"Vec"},WorkerRegistrationInfo:{version:"u32",machineId:"Vec",pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",genesisBlockHash:"H256",features:"Vec",operator:"Option"},PoolInfo:{pid:"u64",owner:"AccountId",payoutCommission:"Option",ownerReward:"Balance",cap:"Option",rewardAcc:"u128",totalShares:"Balance",totalStake:"Balance",freeStake:"Balance",releasingStake:"Balance",workers:"Vec",withdrawQueue:"Vec"},WithdrawInfo:{user:"AccountId",shares:"Balance",startTime:"u64"},WorkerInfo:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",runtimeVersion:"u32",lastUpdated:"u64",operator:"Option",confidenceLevel:"u8",initialScore:"Option",features:"Vec"},MinerInfo:{state:"MinerState",ve:"u128",v:"u128",vUpdatedAt:"u64",benchmark:"Benchmark",coolDownStart:"u64",stats:"MinerStats"},Benchmark:{pInit:"u32",pInstant:"u32",iterations:"u64",miningStartTime:"u64",challengeTimeLast:"u64"},MinerState:{_enum:{Ready:null,MiningIdle:null,MiningActive:null,MiningUnresponsive:null,MiningCoolingDown:null}},MinerStats:{totalReward:"Balance"},HeartbeatChallenge:{seed:"U256",onlineTarget:"U256"},KeyDistribution:{_enum:{MasterKeyDistribution:"DispatchMasterKeyEvent"}},GatekeeperLaunch:{_enum:{FirstGatekeeper:"NewGatekeeperEvent",MasterPubkeyOnChain:null}},GatekeeperChange:{_enum:{GatekeeperRegistered:"NewGatekeeperEvent"}},GatekeeperEvent:{_enum:{NewRandomNumber:"RandomNumberEvent",TokenomicParametersChanged:"TokenomicParameters"}},NewGatekeeperEvent:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey"},DispatchMasterKeyEvent:{dest:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",encryptedMasterKey:"Vec",iv:"[u8; 12]"},RandomNumberEvent:{blockNumber:"u32",randomNumber:"[u8; 32]",lastRandomNumber:"[u8; 32]"},TokenomicParameters:{phaRate:"U64F64Bits",rho:"U64F64Bits",budgetPerBlock:"U64F64Bits",vMax:"U64F64Bits",costK:"U64F64Bits",costB:"U64F64Bits",slashRate:"U64F64Bits",treasuryRatio:"U64F64Bits",heartbeatWindow:"u32",rigK:"U64F64Bits",rigB:"U64F64Bits",re:"U64F64Bits",k:"U64F64Bits",kappa:"U64F64Bits"},TokenomicParams:"TokenomicParameters",U64F64Bits:"u128",UserStakeInfo:{user:"AccountId",locked:"Balance",shares:"Balance",availableRewards:"Balance",rewardDebt:"Balance"}},n=[{minmax:[0,10],types:a({ChainId:"u8"},r)},{minmax:[11,void 0],types:a({},r)}];t.default=n},40938:e=>{"use strict";var t=Object.prototype.hasOwnProperty,a="~";function r(){}function n(e,t,a){this.fn=e,this.context=t,this.once=a||!1}function c(e,t,r,c,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new n(r,c||e,i),s=a?a+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(a=!1)),o.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(a?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},o.prototype.listeners=function(e){var t=a?a+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,c=r.length,i=new Array(c);n{"use strict";var t=Object.prototype.hasOwnProperty,a="~";function r(){}function n(e,t,a){this.fn=e,this.context=t,this.once=a||!1}function c(e,t,r,c,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new n(r,c||e,i),s=a?a+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(a=!1)),o.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(a?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},o.prototype.listeners=function(e){var t=a?a+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,c=r.length,i=new Array(c);n{"use strict";var t=Object.prototype.hasOwnProperty,a="~";function r(){}function n(e,t,a){this.fn=e,this.context=t,this.once=a||!1}function c(e,t,r,c,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new n(r,c||e,i),s=a?a+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(a=!1)),o.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(a?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},o.prototype.listeners=function(e){var t=a?a+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,c=r.length,i=new Array(c);n{"use strict";var e={380:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});const r=JSON.parse('{"types":{"AccountInfo":"AccountInfoWithRefCount","Address":"IndicesLookupSource","LookupSource":"IndicesLookupSource","ValidatorPrefsWithBlocked":{"commission":"Compact"},"IdentityId":"[u8; 32]","EventDid":"IdentityId","InvestorUid":"[u8; 16]","Ticker":"[u8; 12]","CddId":"[u8; 32]","ScopeId":"[u8; 32]","PosRatio":"(u32, u32)","DocumentId":"u32","DocumentName":"Text","DocumentUri":"Text","DocumentHash":{"_enum":{"None":"","H512":"[u8; 64]","H384":"[u8; 48]","H320":"[u8; 40]","H256":"[u8; 32]","H224":"[u8; 28]","H192":"[u8; 24]","H160":"[u8; 20]","H128":"[u8; 16]"}},"DocumentType":"Text","Document":{"uri":"DocumentUri","content_hash":"DocumentHash","name":"DocumentName","doc_type":"Option","filing_date":"Option"},"Version":"u8","AssetType":{"_enum":{"EquityCommon":"","EquityPreferred":"","Commodity":"","FixedIncome":"","REIT":"","Fund":"","RevenueShareAgreement":"","StructuredProduct":"","Derivative":"","Custom":"Vec","StableCoin":""}},"AssetIdentifier":{"_enum":{"CUSIP":"[u8; 9]","CINS":"[u8; 9]","ISIN":"[u8; 12]","LEI":"[u8; 20]"}},"AssetOwnershipRelation":{"_enum":{"NotOwned":"","TickerOwned":"","AssetOwned":""}},"AssetName":"Text","FundingRoundName":"Text","VenueDetails":"Text","SecurityToken":{"name":"AssetName","total_supply":"Balance","owner_did":"IdentityId","divisible":"bool","asset_type":"AssetType","primary_issuance_agent":"Option"},"PalletName":"Text","DispatchableName":"Text","PalletPermissions":{"pallet_name":"PalletName","dispatchable_names":"Option>"},"Permissions":{"asset":"Option>","extrinsic":"Option>","portfolio":"Option>"},"LegacyPalletPermissions":{"pallet_name":"PalletName","total":"bool","dispatchable_names":"Vec"},"LegacyPermissions":{"asset":"Option>","extrinsic":"Option>","portfolio":"Option>"},"Signatory":{"_enum":{"Identity":"IdentityId","Account":"AccountId"}},"SecondaryKey":{"signer":"Signatory","permissions":"Permissions"},"SecondaryKeyWithAuth":{"secondary_key":"SecondaryKey","auth_signature":"Signature"},"IdentityRole":{"_enum":["Issuer","SimpleTokenIssuer","Validator","ClaimIssuer","Investor","NodeRunner","PM","CDDAMLClaimIssuer","AccreditedInvestorClaimIssuer","VerifiedIdentityClaimIssuer"]},"PreAuthorizedKeyInfo":{"target_id":"IdentityId","secondary_key":"SecondaryKey"},"DidRecord":{"primary_key":"AccountId","secondary_keys":"Vec"},"KeyIdentityData":{"identity":"IdentityId","permissions":"Option"},"CountryCode":{"_enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","VG","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","HK","MO","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","AN","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VI","WF","EH","YE","ZM","ZW","BQ","CW","SX"]},"Scope":{"_enum":{"Identity":"IdentityId","Ticker":"Ticker","Custom":"Vec"}},"InvestorZKProofData":"Signature","Scalar":"[u8; 32]","RistrettoPoint":"[u8; 32]","ZkProofData":{"challenge_responses":"[Scalar; 2]","subtract_expressions_res":"RistrettoPoint","blinded_scope_did_hash":"RistrettoPoint"},"ScopeClaimProof":{"proof_scope_id_wellformed":"Signature","proof_scope_id_cdd_id_match":"ZkProofData","scope_id":"RistrettoPoint"},"Claim":{"_enum":{"Accredited":"Scope","Affiliate":"Scope","BuyLockup":"Scope","SellLockup":"Scope","CustomerDueDiligence":"CddId","KnowYourCustomer":"Scope","Jurisdiction":"(CountryCode, Scope)","Exempted":"Scope","Blocked":"Scope","InvestorUniqueness":"(Scope, ScopeId, CddId)","NoData":"","InvestorUniquenessV2":"(CddId)"}},"ClaimType":{"_enum":{"Accredited":"","Affiliate":"","BuyLockup":"","SellLockup":"","CustomerDueDiligence":"","KnowYourCustomer":"","Jurisdiction":"","Exempted":"","Blocked":"","InvestorUniqueness":"","NoData":"","InvestorUniquenessV2":""}},"IdentityClaim":{"claim_issuer":"IdentityId","issuance_date":"Moment","last_update_date":"Moment","expiry":"Option","claim":"Claim"},"IdentityClaimKey":{"id":"IdentityId","claim_type":"ClaimType"},"ComplianceRequirement":{"sender_conditions":"Vec","receiver_conditions":"Vec","id":"u32"},"ComplianceRequirementResult":{"sender_conditions":"Vec","receiver_conditions":"Vec","id":"u32","result":"bool"},"ConditionType":{"_enum":{"IsPresent":"Claim","IsAbsent":"Claim","IsAnyOf":"Vec","IsNoneOf":"Vec","IsIdentity":"TargetIdentity"}},"TrustedFor":{"_enum":{"Any":"","Specific":"Vec"}},"TrustedIssuer":{"issuer":"IdentityId","trusted_for":"TrustedFor"},"Condition":{"condition_type":"ConditionType","issuers":"Vec"},"ConditionResult":{"condition":"Condition","result":"bool"},"SimpleTokenRecord":{"ticker":"Ticker","total_supply":"Balance","owner_did":"IdentityId"},"FeeOf":"Balance","TargetIdAuthorization":{"target_id":"IdentityId","nonce":"u64","expires_at":"Moment"},"TickerRegistration":{"owner":"IdentityId","expiry":"Option"},"TickerRegistrationConfig":{"max_ticker_length":"u8","registration_length":"Option"},"ClassicTickerRegistration":{"eth_owner":"EthereumAddress","is_created":"bool"},"ClassicTickerImport":{"eth_owner":"EthereumAddress","ticker":"Ticker","is_contract":"bool","is_created":"bool"},"EthereumAddress":"[u8; 20]","EcdsaSignature":"[u8; 65]","MotionTitle":"Text","MotionInfoLink":"Text","ChoiceTitle":"Text","Motion":{"title":"MotionTitle","info_link":"MotionInfoLink","choices":"Vec"},"BallotTitle":"Text","BallotMeta":{"title":"BallotTitle","motions":"Vec"},"BallotTimeRange":{"start":"Moment","end":"Moment"},"BallotVote":{"power":"Balance","fallback":"Option"},"MaybeBlock":{"_enum":{"Some":"BlockNumber","None":""}},"Url":"Text","PipDescription":"Text","PipsMetadata":{"id":"PipId","url":"Option","description":"Option","created_at":"BlockNumber","transaction_version":"u32","expiry":"MaybeBlock"},"Proposer":{"_enum":{"Community":"AccountId","Committee":"Committee"}},"Committee":{"_enum":{"Technical":"","Upgrade":""}},"SkippedCount":"u8","SnapshottedPip":{"id":"PipId","weight":"(bool, Balance)"},"SnapshotId":"u32","SnapshotMetadata":{"created_at":"BlockNumber","made_by":"AccountId","id":"SnapshotId"},"SnapshotResult":{"_enum":{"Approve":"","Reject":"","Skip":""}},"Beneficiary":{"id":"IdentityId","amount":"Balance"},"DepositInfo":{"owner":"AccountId","amount":"Balance"},"PolymeshVotes":{"index":"u32","ayes":"Vec<(IdentityId, Balance)>","nays":"Vec<(IdentityId, Balance)>","end":"BlockNumber","expiry":"MaybeBlock"},"PipId":"u32","ProposalState":{"_enum":["Pending","Rejected","Scheduled","Failed","Executed","Expired"]},"Pip":{"id":"PipId","proposal":"Call","state":"ProposalState","proposer":"Proposer"},"ProposalData":{"_enum":{"Hash":"Hash","Proposal":"Vec"}},"TickerTransferApproval":{"authorized_by":"IdentityId","next_ticker":"Option","previous_ticker":"Option"},"OffChainSignature":{"_enum":{"Ed25519":"H512","Sr25519":"H512","Ecdsa":"H512"}},"Authorization":{"authorization_data":"AuthorizationData","authorized_by":"IdentityId","expiry":"Option","auth_id":"u64"},"AuthorizationData":{"_enum":{"AttestPrimaryKeyRotation":"IdentityId","RotatePrimaryKey":"IdentityId","TransferTicker":"Ticker","TransferPrimaryIssuanceAgent":"Ticker","AddMultiSigSigner":"AccountId","TransferAssetOwnership":"Ticker","JoinIdentity":"Permissions","PortfolioCustody":"PortfolioId","Custom":"Ticker","NoData":"","TransferCorporateActionAgent":"Ticker"}},"AuthIdentifier":{"signatory":"Signatory","auth_id":"u64"},"SmartExtensionType":{"_enum":{"TransferManager":"","Offerings":"","SmartWallet":"","Custom":"Vec"}},"SmartExtensionName":"Text","SmartExtension":{"extension_type":"SmartExtensionType","extension_name":"SmartExtensionName","extension_id":"AccountId","is_archive":"bool"},"MetaUrl":"Text","MetaDescription":"Text","MetaVersion":"u32","ExtVersion":"u32","TemplateMetadata":{"url":"Option","se_type":"SmartExtensionType","usage_fee":"Balance","description":"MetaDescription","version":"MetaVersion"},"TemplateDetails":{"instantiation_fee":"Balance","owner":"IdentityId","frozen":"bool"},"ProportionMatch":{"_enum":["AtLeast","MoreThan"]},"AuthorizationNonce":"u64","Counter":"u64","Percentage":"Permill","TransferManager":{"_enum":{"CountTransferManager":"Counter","PercentageTransferManager":"Percentage"}},"RestrictionResult":{"_enum":["Valid","Invalid","ForceValid"]},"Memo":"[u8;32]","IssueRecipient":{"_enum":{"Account":"AccountId","Identity":"IdentityId"}},"BridgeTx":{"nonce":"u32","recipient":"AccountId","value":"Balance","tx_hash":"H256"},"PendingTx":{"did":"IdentityId","bridge_tx":"BridgeTx"},"AssetCompliance":{"is_paused":"bool","requirements":"Vec"},"AssetComplianceResult":{"paused":"bool","requirements":"Vec","result":"bool"},"Claim1stKey":{"target":"IdentityId","claim_type":"ClaimType"},"Claim2ndKey":{"issuer":"IdentityId","scope":"Option"},"BatchAddClaimItem":{"target":"IdentityId","claim":"Claim","expiry":"Option"},"BatchRevokeClaimItem":{"target":"IdentityId","claim":"Claim"},"InactiveMember":{"id":"IdentityId","deactivated_at":"Moment","expiry":"Option"},"VotingResult":{"ayes_count":"u32","ayes_stake":"Balance","nays_count":"u32","nays_stake":"Balance"},"ProtocolOp":{"_enum":["AssetRegisterTicker","AssetIssue","AssetAddDocument","AssetCreateAsset","AssetCreateCheckpointSchedule","DividendNew","ComplianceManagerAddComplianceRequirement","IdentityRegisterDid","IdentityCddRegisterDid","IdentityAddClaim","IdentitySetPrimaryKey","IdentityAddSecondaryKeysWithAuthorization","PipsPropose","VotingAddBallot","ContractsPutCode","BallotAttachBallot","DistributionDistribute"]},"CddStatus":{"_enum":{"Ok":"IdentityId","Err":"Vec"}},"AssetDidResult":{"_enum":{"Ok":"IdentityId","Err":"Vec"}},"DidRecordsSuccess":{"primary_key":"AccountId","secondary_key":"Vec"},"DidRecords":{"_enum":{"Success":"DidRecordsSuccess","IdNotFound":"Vec"}},"VoteCountProposalFound":{"ayes":"u64","nays":"u64"},"VoteCount":{"_enum":{"ProposalFound":"VoteCountProposalFound","ProposalNotFound":"Vec"}},"Vote":"(bool, Balance)","VoteByPip":{"pip":"PipId","vote":"Vote"},"BridgeTxDetail":{"amount":"Balance","status":"BridgeTxStatus","execution_block":"BlockNumber","tx_hash":"H256"},"BridgeTxStatus":{"_enum":{"Absent":"","Pending":"u8","Frozen":"","Timelocked":"","Handled":""}},"HandledTxStatus":{"_enum":{"Success":"","Error":"Text"}},"CappedFee":"u64","CanTransferResult":{"_enum":{"Ok":"u8","Err":"Vec"}},"AuthorizationType":{"_enum":{"AttestPrimaryKeyRotation":"","RotatePrimaryKey":"","TransferTicker":"","TransferPrimaryIssuanceAgent":"","AddMultiSigSigner":"","TransferAssetOwnership":"","JoinIdentity":"","PortfolioCustody":"","Custom":"","NoData":"","TransferCorporateActionAgent":""}},"ProposalDetails":{"approvals":"u64","rejections":"u64","status":"ProposalStatus","expiry":"Option","auto_close":"bool"},"ProposalStatus":{"_enum":{"Invalid":"","ActiveOrExpired":"","ExecutionSuccessful":"","ExecutionFailed":"","Rejected":""}},"DidStatus":{"_enum":{"Unknown":"","Exists":"","CddVerified":""}},"PortfolioName":"Text","PortfolioNumber":"u64","PortfolioKind":{"_enum":{"Default":"","User":"PortfolioNumber"}},"PortfolioId":{"did":"IdentityId","kind":"PortfolioKind"},"ProverTickerKey":{"prover":"IdentityId","ticker":"Ticker"},"TickerRangeProof":{"initial_message":"[u8; 32]","final_response":"Vec","max_two_exp":"u32"},"Moment":"u64","CalendarUnit":{"_enum":["Second","Minute","Hour","Day","Week","Month","Year"]},"CalendarPeriod":{"unit":"CalendarUnit","amount":"u64"},"CheckpointSchedule":{"start":"Moment","period":"CalendarPeriod"},"CheckpointId":"u64","ScheduleId":"u64","StoredSchedule":{"schedule":"CheckpointSchedule","id":"ScheduleId","at":"Moment","remaining":"u32"},"ScheduleSpec":{"start":"Option","period":"CalendarPeriod","remaining":"u32"},"InstructionStatus":{"_enum":{"Unknown":"","Pending":""}},"LegStatus":{"_enum":{"PendingTokenLock":"","ExecutionPending":"","ExecutionToBeSkipped":"(AccountId, u64)"}},"AffirmationStatus":{"_enum":{"Unknown":"","Pending":"","Affirmed":"","Rejected":""}},"SettlementType":{"_enum":{"SettleOnAffirmation":"","SettleOnBlock":"BlockNumber"}},"Instruction":{"instruction_id":"u64","venue_id":"u64","status":"InstructionStatus","settlement_type":"SettlementType","created_at":"Option","trade_date":"Option","value_date":"Option"},"Leg":{"from":"PortfolioId","to":"PortfolioId","asset":"Ticker","amount":"Balance"},"Venue":{"creator":"IdentityId","instructions":"Vec","details":"VenueDetails","venue_type":"VenueType"},"Receipt":{"receipt_uid":"u64","from":"PortfolioId","to":"PortfolioId","asset":"Ticker","amount":"Balance"},"ReceiptMetadata":"Text","ReceiptDetails":{"receipt_uid":"u64","leg_id":"u64","signer":"AccountId","signature":"OffChainSignature","metadata":"ReceiptMetadata"},"UniqueCall":{"nonce":"u64","call":"Call"},"MovePortfolioItem":{"ticker":"Ticker","amount":"Balance"},"WeightToFeeCoefficient":{"coeffInteger":"Balance","coeffFrac":"Perbill","negative":"bool","degree":"u8"},"TargetIdentity":{"_enum":{"PrimaryIssuanceAgent":"","Specific":"IdentityId"}},"FundraiserName":"Text","FundraiserStatus":{"_enum":["Live","Frozen","Closed","ClosedEarly"]},"FundraiserTier":{"total":"Balance","price":"Balance","remaining":"Balance"},"Fundraiser":{"creator":"IdentityId","offering_portfolio":"PortfolioId","offering_asset":"Ticker","raising_portfolio":"PortfolioId","raising_asset":"Ticker","tiers":"Vec","venue_id":"u64","start":"Moment","end":"Option","status":"FundraiserStatus","minimum_investment":"Balance"},"VenueType":{"_enum":["Other","Distribution","Sto","Exchange"]},"Payload":{"block_number":"BlockNumber","nominators":"Vec","public":"H256"},"ExtensionAttributes":{"usage_fee":"Balance","version":"MetaVersion"},"Tax":"Permill","TargetIdentities":{"identities":"Vec","treatment":"TargetTreatment"},"TargetTreatment":{"_enum":["Include","Exclude"]},"CAKind":{"_enum":["PredictableBenefit","UnpredictableBenefit","IssuerNotice","Reorganization","Other"]},"CADetails":"Text","CACheckpoint":{"_enum":{"Scheduled":"(ScheduleId, u64)","Existing":"CheckpointId"}},"RecordDate":{"date":"Moment","checkpoint":"CACheckpoint"},"RecordDateSpec":{"_enum":{"Scheduled":"Moment","ExistingSchedule":"ScheduleId","Existing":"CheckpointId"}},"CorporateAction":{"kind":"CAKind","decl_date":"Moment","record_date":"Option","details":"Text","targets":"TargetIdentities","default_withholding_tax":"Tax","withholding_tax":"Vec<(IdentityId, Tax)>"},"LocalCAId":"u32","CAId":{"ticker":"Ticker","local_id":"LocalCAId"},"Distribution":{"from":"PortfolioId","currency":"Ticker","per_share":"Balance","amount":"Balance","remaining":"Balance","reclaimed":"bool","payment_at":"Moment","expires_at":"Option"},"SlashingSwitch":{"_enum":["Validator","ValidatorAndNominator","None"]},"PriceTier":{"total":"Balance","price":"Balance"},"AssetMigrationError":{"_enum":{"AssetDocumentFail":"(Ticker, DocumentId)"}},"MigrationError":{"_enum":{"DecodeKey":"Vec","Map":"AssetMigrationError"}},"PermissionedIdentityPrefs":{"intended_count":"u32","running_count":"u32"},"GranularCanTransferResult":{"invalid_granularity":"bool","self_transfer":"bool","invalid_receiver_cdd":"bool","invalid_sender_cdd":"bool","missing_scope_claim":"bool","receiver_custodian_error":"bool","sender_custodian_error":"bool","sender_insufficient_balance":"bool","portfolio_validity_result":"PortfolioValidityResult","asset_frozen":"bool","statistics_result":"Vec","compliance_result":"AssetComplianceResult","result":"bool"},"PortfolioValidityResult":{"receiver_is_same_portfolio":"bool","sender_portfolio_does_not_exist":"bool","receiver_portfolio_does_not_exist":"bool","sender_insufficient_balance":"bool","result":"bool"},"TransferManagerResult":{"tm":"TransferManager","result":"bool"}},"rpc":{"compliance":{"canTransfer":{"description":"Checks whether a transaction with given parameters is compliant to the compliance manager conditions","params":[{"name":"ticker","type":"Ticker","isOptional":false},{"name":"from_did","type":"Option","isOptional":false},{"name":"to_did","type":"Option","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"AssetComplianceResult"}},"identity":{"isIdentityHasValidCdd":{"description":"use to tell whether the given did has valid cdd claim or not","params":[{"name":"did","type":"IdentityId","isOptional":false},{"name":"buffer_time","type":"u64","isOptional":true},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"CddStatus"},"getAssetDid":{"description":"function is used to query the given ticker DID","params":[{"name":"ticker","type":"Ticker","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"AssetDidResult"},"getDidRecords":{"description":"Used to get the did record values for a given DID","params":[{"name":"did","type":"IdentityId","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"DidRecords"},"getDidStatus":{"description":"Retrieve status of the DID","params":[{"name":"did","type":"Vec","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"Vec"},"getFilteredAuthorizations":{"description":"Retrieve authorizations data for a given signatory and filtered using the given authorization type","params":[{"name":"signatory","type":"Signatory","isOptional":false},{"name":"allow_expired","type":"bool","isOptional":false},{"name":"auth_type","type":"AuthorizationType","isOptional":true},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"Vec"},"getKeyIdentityData":{"description":"Query relation between a signing key and a DID","params":[{"name":"acc","type":"AccountId","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"Option"}},"pips":{"getVotes":{"description":"Summary of votes of a proposal given by index","params":[{"name":"index","type":"u32","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"VoteCount"},"proposedBy":{"description":"Retrieves proposal indices started by address","params":[{"name":"address","type":"AccountId","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"Vec"},"votedOn":{"description":"Retrieves proposal address indices voted on","params":[{"name":"address","type":"AccountId","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"Vec"}},"protocolFee":{"computeFee":{"description":"Gets the fee of a chargeable extrinsic operation","params":[{"name":"op","type":"ProtocolOp","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"CappedFee"}},"staking":{"getCurve":{"description":"Retrieves curves parameters","params":[{"name":"blockHash","type":"Hash","isOptional":true}],"type":"Vec<(Perbill, Perbill)>"}},"asset":{"canTransfer":{"description":"Checks whether a transaction with given parameters can take place or not","params":[{"name":"sender","type":"AccountId","isOptional":false},{"name":"from_custodian","type":"Option","isOptional":false},{"name":"from_portfolio","type":"PortfolioId","isOptional":false},{"name":"to_custodian","type":"Option","isOptional":false},{"name":"to_portfolio","type":"PortfolioId","isOptional":false},{"name":"ticker","type":"Ticker","isOptional":false},{"name":"value","type":"Balance","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"CanTransferResult"},"canTransferGranular":{"description":"Checks whether a transaction with given parameters can take place or not. The result is granular meaning each check is run and returned regardless of outcome.","params":[{"name":"from_custodian","type":"Option","isOptional":false},{"name":"from_portfolio","type":"PortfolioId","isOptional":false},{"name":"to_custodian","type":"Option","isOptional":false},{"name":"to_portfolio","type":"PortfolioId","isOptional":false},{"name":"ticker","type":"Ticker","isOptional":false},{"name":"value","type":"Balance","isOptional":false},{"name":"blockHash","type":"Hash","isOptional":true}],"type":"GranularCanTransferResult"}}}}')}},t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}return a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(380)})()},46781:e=>{"use strict";e.exports=function(e,t){for(var a=new Array(arguments.length-1),r=0,n=2,c=!0;n{"use strict";var a=t;a.length=function(e){var t=e.length;if(!t)return 0;for(var a=0;--t%4>1&&"="===e.charAt(t);)++a;return Math.ceil(3*e.length)/4-a};for(var r=new Array(64),n=new Array(123),c=0;c<64;)n[r[c]=c<26?c+65:c<52?c+71:c<62?c-4:c-59|43]=c++;a.encode=function(e,t,a){for(var n,c=null,i=[],o=0,s=0;t>2],n=(3&d)<<4,s=1;break;case 1:i[o++]=r[n|d>>4],n=(15&d)<<2,s=2;break;case 2:i[o++]=r[n|d>>6],i[o++]=r[63&d],s=0}o>8191&&((c||(c=[])).push(String.fromCharCode.apply(String,i)),o=0)}return s&&(i[o++]=r[n],i[o++]=61,1===s&&(i[o++]=61)),c?(o&&c.push(String.fromCharCode.apply(String,i.slice(0,o))),c.join("")):String.fromCharCode.apply(String,i.slice(0,o))};var i="invalid encoding";a.decode=function(e,t,a){for(var r,c=a,o=0,s=0;s1)break;if(void 0===(d=n[d]))throw Error(i);switch(o){case 0:r=d,o=1;break;case 1:t[a++]=r<<2|(48&d)>>4,r=d,o=2;break;case 2:t[a++]=(15&r)<<4|(60&d)>>2,r=d,o=3;break;case 3:t[a++]=(3&r)<<6|d,o=0}}if(1===o)throw Error(i);return a-c},a.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},1706:e=>{"use strict";function t(e,a){"string"==typeof e&&(a=e,e=void 0);var r=[];function n(e){if("string"!=typeof e){var a=c();if(t.verbose&&console.log("codegen: "+a),a="return "+a,e){for(var i=Object.keys(e),o=new Array(i.length+1),s=new Array(i.length),d=0;d{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,a){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:a||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var a=this._listeners[e],r=0;r{"use strict";e.exports=c;var r=a(46781),n=a(36116)("fs");function c(e,t,a){return"function"==typeof t?(a=t,t={}):t||(t={}),a?!t.xhr&&n&&n.readFile?n.readFile(e,(function(r,n){return r&&"undefined"!=typeof XMLHttpRequest?c.xhr(e,t,a):r?a(r):a(null,t.binary?n:n.toString("utf8"))})):c.xhr(e,t,a):r(c,this,e,t)}c.xhr=function(e,t,a){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState){if(0!==r.status&&200!==r.status)return a(Error("status "+r.status));if(t.binary){var e=r.response;if(!e){e=[];for(var n=0;n{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),a=new Uint8Array(t.buffer),r=128===a[3];function n(e,r,n){t[0]=e,r[n]=a[0],r[n+1]=a[1],r[n+2]=a[2],r[n+3]=a[3]}function c(e,r,n){t[0]=e,r[n]=a[3],r[n+1]=a[2],r[n+2]=a[1],r[n+3]=a[0]}function i(e,r){return a[0]=e[r],a[1]=e[r+1],a[2]=e[r+2],a[3]=e[r+3],t[0]}function o(e,r){return a[3]=e[r],a[2]=e[r+1],a[1]=e[r+2],a[0]=e[r+3],t[0]}e.writeFloatLE=r?n:c,e.writeFloatBE=r?c:n,e.readFloatLE=r?i:o,e.readFloatBE=r?o:i}():function(){function t(e,t,a,r){var n=t<0?1:0;if(n&&(t=-t),0===t)e(1/t>0?0:2147483648,a,r);else if(isNaN(t))e(2143289344,a,r);else if(t>34028234663852886e22)e((n<<31|2139095040)>>>0,a,r);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,a,r);else{var c=Math.floor(Math.log(t)/Math.LN2);e((n<<31|c+127<<23|8388607&Math.round(t*Math.pow(2,-c)*8388608))>>>0,a,r)}}function i(e,t,a){var r=e(t,a),n=2*(r>>31)+1,c=r>>>23&255,i=8388607&r;return 255===c?i?NaN:n*(1/0):0===c?1401298464324817e-60*n*i:n*Math.pow(2,c-150)*(i+8388608)}e.writeFloatLE=t.bind(null,a),e.writeFloatBE=t.bind(null,r),e.readFloatLE=i.bind(null,n),e.readFloatBE=i.bind(null,c)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),a=new Uint8Array(t.buffer),r=128===a[7];function n(e,r,n){t[0]=e,r[n]=a[0],r[n+1]=a[1],r[n+2]=a[2],r[n+3]=a[3],r[n+4]=a[4],r[n+5]=a[5],r[n+6]=a[6],r[n+7]=a[7]}function c(e,r,n){t[0]=e,r[n]=a[7],r[n+1]=a[6],r[n+2]=a[5],r[n+3]=a[4],r[n+4]=a[3],r[n+5]=a[2],r[n+6]=a[1],r[n+7]=a[0]}function i(e,r){return a[0]=e[r],a[1]=e[r+1],a[2]=e[r+2],a[3]=e[r+3],a[4]=e[r+4],a[5]=e[r+5],a[6]=e[r+6],a[7]=e[r+7],t[0]}function o(e,r){return a[7]=e[r],a[6]=e[r+1],a[5]=e[r+2],a[4]=e[r+3],a[3]=e[r+4],a[2]=e[r+5],a[1]=e[r+6],a[0]=e[r+7],t[0]}e.writeDoubleLE=r?n:c,e.writeDoubleBE=r?c:n,e.readDoubleLE=r?i:o,e.readDoubleBE=r?o:i}():function(){function t(e,t,a,r,n,c){var i=r<0?1:0;if(i&&(r=-r),0===r)e(0,n,c+t),e(1/r>0?0:2147483648,n,c+a);else if(isNaN(r))e(0,n,c+t),e(2146959360,n,c+a);else if(r>17976931348623157e292)e(0,n,c+t),e((i<<31|2146435072)>>>0,n,c+a);else{var o;if(r<22250738585072014e-324)e((o=r/5e-324)>>>0,n,c+t),e((i<<31|o/4294967296)>>>0,n,c+a);else{var s=Math.floor(Math.log(r)/Math.LN2);1024===s&&(s=1023),e(4503599627370496*(o=r*Math.pow(2,-s))>>>0,n,c+t),e((i<<31|s+1023<<20|1048576*o&1048575)>>>0,n,c+a)}}}function i(e,t,a,r,n){var c=e(r,n+t),i=e(r,n+a),o=2*(i>>31)+1,s=i>>>20&2047,d=4294967296*(1048575&i)+c;return 2047===s?d?NaN:o*(1/0):0===s?5e-324*o*d:o*Math.pow(2,s-1075)*(d+4503599627370496)}e.writeDoubleLE=t.bind(null,a,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=i.bind(null,n,0,4),e.readDoubleBE=i.bind(null,c,4,0)}(),e}function a(e,t,a){t[a]=255&e,t[a+1]=e>>>8&255,t[a+2]=e>>>16&255,t[a+3]=e>>>24}function r(e,t,a){t[a]=e>>>24,t[a+1]=e>>>16&255,t[a+2]=e>>>8&255,t[a+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function c(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},36116:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},82659:(e,t)=>{"use strict";var a=t,r=a.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=a.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),a=r(e),n="";a&&(n=t.shift()+"/");for(var c=0;c0&&".."!==t[c-1]?t.splice(--c,2):a?t.splice(c,1):++c:"."===t[c]?t.splice(c,1):++c;return n+t.join("/")};a.resolve=function(e,t,a){return a||(t=n(t)),r(t)?t:(a||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},90804:e=>{"use strict";e.exports=function(e,t,a){var r=a||8192,n=r>>>1,c=null,i=r;return function(a){if(a<1||a>n)return e(a);i+a>r&&(c=e(r),i=0);var o=t.call(c,i,i+=a);return 7&i&&(i=1+(7|i)),o}}},57958:(e,t)=>{"use strict";var a=t;a.length=function(e){for(var t=0,a=0,r=0;r191&&r<224?c[i++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,c[i++]=55296+(r>>10),c[i++]=56320+(1023&r)):c[i++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],i>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,c)),i=0);return n?(i&&n.push(String.fromCharCode.apply(String,c.slice(0,i))),n.join("")):String.fromCharCode.apply(String,c.slice(0,i))},a.write=function(e,t,a){for(var r,n,c=a,i=0;i>6|192,t[a++]=63&r|128):55296==(64512&r)&&56320==(64512&(n=e.charCodeAt(i+1)))?(r=65536+((1023&r)<<10)+(1023&n),++i,t[a++]=r>>18|240,t[a++]=r>>12&63|128,t[a++]=r>>6&63|128,t[a++]=63&r|128):(t[a++]=r>>12|224,t[a++]=r>>6&63|128,t[a++]=63&r|128);return a-c}},50450:(e,t,a)=>{"use strict";t.DF=void 0;const r=a(30803);t.DF={alias:r.alias,types:[{minmax:[0,void 0],types:r.types}]},t.DF},30803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.types=t.alias=void 0,t.alias={dispatch:{MessageId:"DispatchMessageId"}},t.types={Address:"MultiAddress",LookupSource:"MultiAddress",DispatchMessageId:{channelId:"ChannelId",nonce:"u64"},ChannelId:{_enum:["Basic","Incentivized"]},MessageNonce:"u64",Message:{data:"Vec",proof:"Proof"},Proof:{blockHash:"H256",txIndex:"u32",data:"(Vec>, Vec>)"},EthereumHeaderId:{number:"u64",hash:"H256"},EthereumHeader:{parentHash:"H256",timestamp:"u64",number:"u64",author:"H160",transactionsRoot:"H256",ommersHash:"H256",extraData:"Vec",stateRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",gasUsed:"U256",gasLimit:"U256",difficulty:"U256",seal:"Vec>",baseFee:"Option"},StoredHeader:{submitter:"Option",header:"EthereumHeader",totalDifficulty:"U256",finalized:"bool"},EthashProofData:{dagNodes:"[H512; 2]",proof:"Vec"},Bloom:"[u8; 256]",PruningRange:{oldestUnprunedBlock:"u64",oldestBlockToKeep:"u64"},EthereumDifficultyConfig:{byzantiumForkBlock:"u64",constantinopleForkBlock:"u64",muirGlacierForkBlock:"u64",londonForkBlock:"u64"},AssetId:{_enum:{ETH:null,Token:"H160"}},TokenId:"u128",TokenData:{tokenContract:"H160",tokenId:"U256"},TokenInfoOf:{owner:"AccountId",metadata:"Vec",data:"TokenData"}}},44639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{freeBalance:{description:"Get free balance of particular asset for account.",params:[{name:"accountId",type:"AccountId"},{name:"assetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"},usableBalance:{description:"Get usable (free and non-frozen, except for network fees) balance of particular asset for account.",params:[{name:"accountId",type:"AccountId"},{name:"assetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"},totalBalance:{description:"Get total balance (free + reserved) of particular asset for account.",params:[{name:"accountId",type:"AccountId"},{name:"assetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"},totalSupply:{description:"Get total supply of particular asset on chain.",params:[{name:"assetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"},listAssetIds:{description:"List Ids of all assets registered on chain.",params:[{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"},listAssetInfos:{description:"List Infos of all assets registered on chain.",params:[{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"},getAssetInfo:{description:"Get Info for particular asset on chain.",params:[{name:"assetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"}},types:{BalanceInfo:{balance:"Balance"},AssetInfo:{assetId:"AssetId",symbol:"AssetSymbolStr",name:"AssetNameStr",precision:"u8",isMintable:"bool"},AssetSymbolStr:"String",AssetNameStr:"String",AssetRecord:"Null"}}},57318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{commitment:{description:"Get basic channel messages.",params:[{name:"commitmentHash",type:"H256"}],type:"Option>"}},types:{BasicChannelMessage:{networkId:"EthNetworkId",target:"H160",nonce:"u64",payload:"Vec"}}}},73047:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{VotingInfo:{votingOption:"u32",numberOfVotes:"Balance",ceresWithdrawn:"bool"},PollInfo:{numberOfOptions:"u32",pollStartTimestamp:"Moment",pollEndTimestamp:"Moment"}}}},50334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{ContributorsVesting:{firstReleasePercent:"Balance",vestingPeriod:"Moment",vestingPercent:"Balance"},TeamVesting:{teamVestingTotalTokens:"Balance",teamVestingFirstReleasePercent:"Balance",teamVestingPeriod:"Moment",teamVestingPercent:"Balance"},ContributionInfo:{fundsContributed:"Balance",tokensBought:"Balance",tokensClaimed:"Balance",claimingFinished:"bool",numberOfClaims:"u32"},ILOInfo:{iloOrganizer:"AccountId",tokensForIlo:"Balance",tokensForLiquidity:"Balance",iloPrice:"Balance",softCap:"Balance",hardCap:"Balance",minContribution:"Balance",maxContribution:"Balance",refundType:"bool",liquidityPercent:"Balance",listingPrice:"Balance",lockupDays:"u32",startTimestamp:"Moment",endTimestamp:"Moment",contributorsVesting:"ContributorsVesting",teamVesting:"TeamVesting",soldTokens:"Balance",fundsRaised:"Balance",succeeded:"bool",failed:"bool",lpTokens:"Balance",claimedLpTokens:"bool",finishTimestamp:"Moment",baseAsset:"AssetId"}}}},65609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{LockInfo:{poolTokens:"Balance",unlockingTimestamp:"Moment",assetA:"AssetId",assetB:"AssetId"}}}},26003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{StakingInfo:{deposited:"Balance",rewards:"Balance"}}}},8347:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{TokenLockInfo:{tokens:"Balance",unlockingTimestamp:"Moment",assetId:"AssetId"}}}},39053:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{PoolData:{multiplier:"u32",depositFee:"Balance",isCore:"bool",isFarm:"bool",totalTokensInPool:"Balance",rewards:"Balance",rewardsToBeDistributed:"Balance",isRemoved:"bool",baseAsset:"AssetId"},TokenInfo:{farmsTotalMultiplier:"u32",stakingTotalMultiplier:"u32",tokenPerBlock:"Balance",farmsAllocation:"Balance",stakingAllocation:"Balance",teamAllocation:"Balance",teamAccount:"AccountId"},UserInfo:{poolAsset:"AssetId",rewardAsset:"AssetId",isFarm:"bool",pooledTokens:"Balance",rewards:"Balance",baseAsset:"AssetId"}}}},74576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{canExchange:{description:"Query capability to exchange particular tokens on DEX.",params:[{name:"dexId",type:"DEXId"},{name:"liquiditySourceType",type:"LiquiditySourceType"},{name:"inputAssetId",type:"AssetId"},{name:"outputAssetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"bool"},listSupportedSources:{description:"List liquidity source types enabled on chain.",params:[{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"},quote:{description:"Get price for a given input or output token amount.",params:[{name:"dexId",type:"DEXId"},{name:"liquiditySourceType",type:"LiquiditySourceType"},{name:"inputAssetId",type:"AssetId"},{name:"outputAssetId",type:"AssetId"},{name:"amount",type:"String"},{name:"swapVariant",type:"SwapVariant"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"}},types:{}}},60295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{listDEXIds:{description:"Enumerate available ids of DEXes",params:[{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"},testBalance:{description:"Test type of Balance",params:[{name:"at",type:"BlockHash",isOptional:!0}],type:"Fixed"}},types:{}}},12984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{getRequests:{description:"Get registered requests and their statuses.",params:[{name:"requestHashes",type:"Vec"},{name:"networkId",type:"BridgeNetworkId",isOptional:!0},{name:"redirectFinishedLoadRequests",type:"bool",isOptional:!0},{name:"at",type:"BlockHash",isOptional:!0}],type:"Result, DispatchError>"},getApprovedRequests:{description:"Get approved encoded requests and their approvals.",params:[{name:"requestHashes",type:"Vec"},{name:"networkId",type:"BridgeNetworkId",isOptional:!0},{name:"at",type:"BlockHash",isOptional:!0}],type:"Result)>, DispatchError>"},getApprovals:{description:"Get approvals of the given requests.",params:[{name:"requestHashes",type:"Vec"},{name:"networkId",type:"BridgeNetworkId",isOptional:!0},{name:"at",type:"BlockHash",isOptional:!0}],type:"Result>, DispatchError>"},getAccountRequests:{description:"Get account requests hashes.",params:[{name:"accountId",type:"AccountId"},{name:"statusFilter",type:"RequestStatus",isOptional:!0},{name:"at",type:"BlockHash",isOptional:!0}],type:"Result, DispatchError>"},getRegisteredAssets:{description:"Get registered assets and tokens.",params:[{name:"networkId",type:"BridgeNetworkId",isOptional:!0},{name:"at",type:"BlockHash",isOptional:!0}],type:"Result)>, DispatchError>"}},types:{MultiChainHeight:{_enum:{Thischain:"BlockNumber",Sidechain:"u64"}},BridgeTimepoint:{height:"MultiChainHeight",index:"u32"},EthPeersSync:{isBridgeReady:"bool",isXorReady:"bool",isValReady:"bool"},BridgeStatus:{_enum:["Initialized","Migrating"]},BridgeNetworkId:"u32",AssetKind:{_enum:["Thischain","Sidechain","SidechainOwned"]},RequestStatus:{_enum:["Pending","Frozen","ApprovalsReady","Failed","Done"]},SignatureParams:{r:"[u8; 32]",s:"[u8; 32]",v:"u8"},IncomingTransactionRequestKind:{_enum:["Transfer","AddAsset","AddPeer","RemovePeer","PrepareForMigration","Migrate","AddPeerCompat","RemovePeerCompat","TransferXOR"]},IncomingMetaRequestKind:{_enum:["CancelOutgoingRequest","MarkAsDone"]},IncomingRequestKind:{_enum:{Transaction:"IncomingTransactionRequestKind",Meta:"IncomingMetaRequestKind"}},ChangePeersContract:{_enum:["XOR","VAL"]},CurrencyIdEncoded:{_enum:{AssetId:"H256",TokenAddress:"H160"}},FixedBytes:"Vec",OutgoingTransfer:{from:"AccountId",to:"EthAddress",assetId:"AssetId",amount:"Balance",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingTransferEncoded:{currencyId:"CurrencyIdEncoded",amount:"U256",to:"EthAddress",from:"EthAddress",txHash:"H256",networkId:"H256",raw:"Vec"},OutgoingAddAsset:{author:"AccountId",assetId:"AssetId",supply:"Balance",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingAddAssetEncoded:{name:"String",symbol:"String",decimal:"u8",supply:"U256",sidechainAssetId:"FixedBytes",hash:"H256",networkId:"H256",raw:"Vec"},OutgoingAddToken:{author:"AccountId",tokenAddress:"EthAddress",ticker:"String",name:"String",decimals:"u8",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingAddTokenEncoded:{tokenAddress:"EthAddress",ticker:"String",name:"String",decimals:"u8",hash:"H256",networkId:"H256",raw:"Vec"},OutgoingAddPeer:{author:"AccountId",peerAddress:"EthAddress",peerAccountId:"AccountId",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingAddPeerCompat:{author:"AccountId",peerAddress:"EthAddress",peerAccountId:"AccountId",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingAddPeerEncoded:{peerAddress:"EthAddress",txHash:"H256",networkId:"H256",raw:"Vec"},OutgoingRemovePeer:{author:"AccountId",peerAccountId:"AccountId",peerAddress:"EthAddress",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingRemovePeerCompat:{author:"AccountId",peerAccountId:"AccountId",peerAddress:"EthAddress",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingRemovePeerEncoded:{peerAddress:"EthAddress",txHash:"H256",networkId:"H256",raw:"Vec"},OutgoingPrepareForMigration:{author:"AccountId",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingPrepareForMigrationEncoded:{thisContractAddress:"EthAddress",txHash:"H256",networkId:"H256",raw:"Vec"},OutgoingMigrate:{author:"AccountId",newContractAddress:"EthAddress",erc20NativeTokens:"Vec",nonce:"Index",networkId:"BridgeNetworkId",timepoint:"BridgeTimepoint"},OutgoingMigrateEncoded:{thisContractAddress:"EthAddress",txHash:"H256",newContractAddress:"EthAddress",erc20NativeTokens:"Vec",networkId:"H256",raw:"Vec"},OutgoingRequest:{_enum:{Transfer:"OutgoingTransfer",AddAsset:"OutgoingAddAsset",AddToken:"OutgoingAddToken",AddPeer:"OutgoingAddPeer",RemovePeer:"OutgoingRemovePeer",PrepareForMigration:"OutgoingPrepareForMigration",Migrate:"OutgoingMigrate"}},OutgoingRequestEncoded:{_enum:{Transfer:"OutgoingTransferEncoded",AddAsset:"OutgoingAddAssetEncoded",AddToken:"OutgoingAddTokenEncoded",AddPeer:"OutgoingAddPeerEncoded",RemovePeer:"OutgoingRemovePeerEncoded",PrepareForMigration:"OutgoingPrepareForMigrationEncoded",Migrate:"OutgoingMigrateEncoded"}},IncomingTransfer:{from:"EthAddress",to:"AccountId",assetId:"AssetId",assetKind:"AssetKind",amount:"Balance",author:"AccountId",txHash:"H256",atHeight:"u64",timepoint:"BridgeTimepoint",networkId:"BridgeNetworkId"},IncomingAddToken:{tokenAddress:"EthAddress",assetId:"AssetId",precision:"BalancePrecision",symbol:"AssetSymbol",name:"AssetName",author:"AccountId",txHash:"H256",atHeight:"u64",timepoint:"BridgeTimepoint",networkId:"BridgeNetworkId"},IncomingChangePeers:{peerAccountId:"AccountId",peerAddress:"EthAddress",added:"bool",author:"AccountId",txHash:"H256",atHeight:"u64",timepoint:"BridgeTimepoint",networkId:"BridgeNetworkId"},IncomingChangePeersCompat:{peerAccountId:"AccountId",peerAddress:"EthAddress",added:"bool",contract:"ChangePeersContract",author:"AccountId",txHash:"H256",atHeight:"u64",timepoint:"BridgeTimepoint",networkId:"BridgeNetworkId"},IncomingCancelOutgoingRequest:{outgoingRequest:"OutgoingRequest",outgoingRequestHash:"H256",initialRequestHash:"H256",txInput:"Vec",author:"AccountId",txHash:"H256",atHeight:"u64",timepoint:"BridgeTimepoint",networkId:"BridgeNetworkId"},IncomingMarkAsDoneRequest:{outgoingRequestHash:"H256",initialRequestHash:"H256",author:"AccountId",atHeight:"u64",timepoint:"BridgeTimepoint",networkId:"BridgeNetworkId"},IncomingPrepareForMigration:{author:"AccountId",txHash:"H256",atHeight:"u64",timepoint:"BridgeTimepoint",networkId:"BridgeNetworkId"},IncomingMigrate:{newContractAddress:"EthAddress",author:"AccountId",txHash:"H256",atHeight:"u64",timepoint:"BridgeTimepoint",networkId:"BridgeNetworkId"},IncomingRequest:{_enum:{Transfer:"IncomingTransfer",AddToken:"IncomingAddToken",ChangePeers:"IncomingChangePeers",CancelOutgoingRequest:"IncomingCancelOutgoingRequest",MarkAsDone:"IncomingMarkAsDoneRequest",PrepareForMigration:"IncomingPrepareForMigration",Migrate:"IncomingMigrate"}},LoadIncomingTransactionRequest:{author:"AccountId",hash:"H256",timepoint:"BridgeTimepoint",kind:"IncomingTransactionRequestKind",networkId:"BridgeNetworkId"},LoadIncomingMetaRequest:{author:"AccountId",hash:"H256",timepoint:"BridgeTimepoint",kind:"IncomingMetaRequestKind",networkId:"BridgeNetworkId"},LoadIncomingRequest:{_enum:{Transaction:"LoadIncomingTransactionRequest",Meta:"(LoadIncomingMetaRequest, H256)"}},OffchainRequest:{_enum:{Outgoing:"(OutgoingRequest, H256)",LoadIncoming:"LoadIncomingRequest",Incoming:"(IncomingRequest, H256)"}},EthBridgeStorageVersion:{_enum:["V1","V2RemovePendingTransfers"]},EthAddress:"H160",BridgeSignatureVersion:{_enum:["V1","V2"]}},typesAlias:{ethBridge:{StorageVersion:"EthBridgeStorageVersion"}}}},66663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{listApps:{description:"",params:[{name:"networkId",type:"EVMChainId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"},listSupportedAssets:{description:"",params:[{name:"networkId",type:"EVMChainId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec>"},listAppsWithSupportedAssets:{description:"",params:[{name:"networkId",type:"EVMChainId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"AppsWithSupportedAssets"}},types:{AppKind:{_enum:["EthApp","ERC20App","SidechainApp","SubstrateApp"]},AppsWithSupportedAssets:{apps:"Vec",assets:"Vec>"},BridgeAssetInfo:{assetId:"AssetId",evmAddress:"Option",appKind:"AppKind"},BridgeAppInfo:{evmAddress:"H160",appKind:"AppKind"},EVMChainId:"U256"}}},32082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{rewardDoublingAssets:{description:"Get list of double rewarding assets",params:[],type:"Vec"}},types:{PoolFarmer:{account:"AccountId",block:"BlockNumber",weight:"Balance"}}}},56156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{VotingOption:{_enum:["Yes","No"]},HermesVotingInfo:{votingOption:"VotingOption",numberOfHermes:"Balance",hermesWithdrawn:"bool"},HermesPollInfo:{creator:"AccountId",hermesLocked:"Balance",pollStartTimestamp:"Moment",pollEndTimestamp:"Moment",title:"String",description:"String",creatorHermesWithdrawn:"bool"}}}},36581:(e,t,a)=>{"use strict";var r=a(71600);t.$P=void 0;var n=r(a(26290)),c=a(48183),i=a(95870),o=r(a(92415)),s=r(a(74576)),d=r(a(60295)),f=r(a(19610)),u=r(a(45106)),b=r(a(44639)),l=r(a(87911)),h=r(a(99392)),p=r(a(12984)),m=r(a(66663)),y=r(a(80948)),g=r(a(93890)),x=r(a(32082)),v=r(a(26003)),w=r(a(65609)),A=r(a(8347)),k=r(a(73047)),S=r(a(50334)),E=r(a(39053)),I=r(a(56156)),M=r(a(75287)),C=r(a(89455)),P=r(a(57318)),T=r(a(23735)),O=r(a(72531));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t({minmax:e.minmax,types:R(R({},V),e.types)})));const U={spec:{sora:{alias:j,rpc:L,types:[...O.default].map((e=>({minmax:e.minmax,types:R(R({},V),e.types)})))}}};t.$P=U},23735:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{commitment:{description:"Get intentivized channel messages.",params:[{name:"commitmentHash",type:"H256"}],type:"Option>"}},types:{IntentivizedChannelMessage:{networkId:"EthNetworkId",target:"H160",nonce:"u64",fee:"U256",payload:"Vec"}}}},87911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{needsMigration:{description:"Check if the account needs migration",params:[{name:"irohaAddress",type:"String"},{name:"at",type:"BlockHash",isOptional:!0}],type:"bool"}},types:{PendingMultisigAccount:{approvingAccounts:"Vec",migrateAt:"Option"}}}},89455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{latestDigest:{description:"Get leaf provider logs.",params:[{name:"at",type:"BlockHash",isOptional:!0}],type:"AuxiliaryDigest"}},types:{AuxiliaryDigest:{logs:"Vec"},AuxiliaryDigestItem:{_enum:{Commitment:"(EthNetworkId, ChannelId, H256)"}},EthNetworkId:"U256",ChannelId:{_enum:{Basic:null,Incentivized:null}}}}},99392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{quote:{description:"Get price with indicated Asset amount and direction, filtered by selected_types",params:[{name:"dexId",type:"DEXId"},{name:"inputAssetId",type:"AssetId"},{name:"outputAssetId",type:"AssetId"},{name:"amount",type:"String"},{name:"swapVariant",type:"SwapVariant"},{name:"selectedSourceTypes",type:"Vec"},{name:"filterMode",type:"FilterMode"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"},isPathAvailable:{description:"Check if given two arbitrary tokens can be exchanged via any liquidity sources",params:[{name:"dexId",type:"DEXId"},{name:"inputAssetId",type:"AssetId"},{name:"outputAssetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"bool"},listEnabledSourcesForPath:{description:"Given two arbitrary tokens, list liquidity sources that can be used along the path.",params:[{name:"dexId",type:"DEXId"},{name:"inputAssetId",type:"AssetId"},{name:"outputAssetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"}},types:{LPSwapOutcomeInfo:{amount:"Balance",fee:"Balance",rewards:"Vec",route:"Vec"},LPRewardsInfo:{amount:"Balance",currency:"AssetId",reason:"RewardReason"},LiquiditySourceIdOf:{dexId:"DEXId",liquiditySourceIndex:"LiquiditySourceType"}}}},80948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{claimableAmount:{description:"Get amount of PSWAP claimable by user (liquidity provision reward).",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"BalanceInfo"}},types:{}}},93890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{claimables:{description:"Get claimable rewards",params:[{name:"ethAddress",type:"EthAddress"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"}},types:{}}},92415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{},types:{AssetIdOf:"AssetId",Amount:"i128",AmountOf:"Amount",CurrencyId:"AssetId",CurrencyIdOf:"AssetId",BasisPoints:"u16",Fixed:"FixedU128",FarmId:"u64",DEXId:"u32",DEXIdOf:"DEXId",DEXInfo:{baseAssetId:"AssetId",defaultFee:"BasisPoints",defaultProtocolFee:"BasisPoints"},BalancePrecision:"u8",AssetSymbol:"Text",AssetName:"Text",AssetId32:"[u8; 32]",SwapWithDesiredInput:{desiredAmountIn:"Balance",minAmountOut:"Balance"},SwapWithDesiredOutput:{desiredAmountOut:"Balance",maxAmountIn:"Balance"},SwapAmount:{_enum:{WithDesiredInput:"SwapWithDesiredInput",WithDesiredOutput:"SwapWithDesiredOutput"}},QuoteWithDesiredInput:{desiredAmountIn:"Balance"},QuoteWithDesiredOutput:{desiredAmountOut:"Balance"},QuoteAmount:{_enum:{WithDesiredInput:"QuoteWithDesiredInput",WithDesiredOutput:"QuoteWithDesiredOutput"}},SwapVariant:{_enum:["WithDesiredInput","WithDesiredOutput"]},TechAmount:"Amount",TechBalance:"Balance",SwapOutcome:{amount:"Balance",fee:"Balance"},LiquiditySourceType:{_enum:["XYKPool","BondingCurvePool","MulticollateralBondingCurvePool","MockPool","MockPool2","MockPool3","MockPool4","XSTPool"]},FilterMode:{_enum:["Disabled","ForbidSelected","AllowSelected"]},SwapOutcomeInfo:{amount:"Balance",fee:"Balance"},TradingPair:{baseAssetId:"AssetId",targetAssetId:"AssetId"},PermissionId:"u32",HolderId:"AccountId",OwnerId:"AccountId",Mode:{_enum:["Permit","Forbid"]},Scope:{_enum:{Limited:"H512",Unlimited:"Null"}},OracleKey:"AssetId",ChargeFeeInfo:{tip:"Compact",target_asset_id:"AssetId"},SwapAction:"Null",ValidationFunction:"Null",Permission:"Null",DistributionAccounts:"Null",MultisigAccount:{signatories:"Vec",threshold:"u8"},Farmer:"Null",Farm:"Null",SmoothPriceState:"Null",MultiCurrencyBalanceOf:"Null",Duration:"Null",PostDispatchInfo:{actualWeight:"Option",paysFee:"Pays"},DispatchErrorWithPostInfoTPostDispatchInfo:{postInfo:"PostDispatchInfo",error:"DispatchError"},DispatchResultWithPostInfo:"Result",Public:"[u8; 33]",RewardReason:{_enum:["Unspecified","BuyOnBondingCurve","LiquidityProvisionFarming","MarketMakerVolume"]},StorageVersion:"Null",MarketMakerInfo:{count:"u32",volume:"Balance"},CrowdloanReward:{id:"Vec",address:"Vec",contribution:"Fixed",xorReward:"Fixed",valReward:"Fixed",pswapReward:"Fixed",xstusdReward:"Fixed",percent:"Fixed"},PredefinedAssetId:{_enum:["XOR","DOT","KSM","USDT","VAL","PSWAP","DAI","ETH","XSTUSD","XST","TBCD"]},RewardInfo:{limit:"Balance",totalAvailable:"Balance",rewards:"BTreeMap"},TechTradingPair:{baseAssetId:"TechAssetId",targetAssetId:"TechAssetId"},TechAssetId:{_enum:{Wrapped:"PredefinedAssetId",Escaped:"AssetId"}},TechPurpose:{_enum:{FeeCollector:"Null",FeeCollectorForPair:"TechTradingPair",LiquidityKeeper:"TechTradingPair",Identifier:"Vec"}},TechAccountId:{_enum:{Pure:"(DEXId, TechPurpose)",Generic:"(Vec, Vec)",Wrapped:"AccountId",WrappedRepr:"AccountId"}},PriceInfo:{priceFailures:"u32",spotPrices:"Vec",averagePrice:"Balance",needsUpdate:"bool",lastSpotPrice:"Balance"},ContentSource:"Text",Description:"Text"}}},45106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{testMultiply2:{description:"Test type of Balance",params:[{name:"amount",type:"String"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"}},types:{CustomInfo:{amount:"Balance"}}}},19610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{listEnabledPairs:{description:"List enabled trading pairs for DEX.",params:[{name:"dexId",type:"DEXId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"},isPairEnabled:{description:"Query if particular trading pair is enabled for DEX.",params:[{name:"dexId",type:"DEXId"},{name:"inputAssetId",type:"AssetId"},{name:"outputAssetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"bool"},listEnabledSourcesForPair:{description:"List enabled liquidity sources for trading pair.",params:[{name:"dexId",type:"DEXId"},{name:"baseAssetId",type:"AssetId"},{name:"targetAssetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Vec"},isSourceEnabledForPair:{description:"Query if particular liquidity source is enabled for pair.",params:[{name:"dexId",type:"DEXId"},{name:"baseAssetId",type:"AssetId"},{name:"targetAssetId",type:"AssetId"},{name:"liquiditySourceType",type:"LiquiditySourceType"},{name:"at",type:"BlockHash",isOptional:!0}],type:"bool"}},types:{TP:"TradingPair"}}},72531:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{minmax:[2,void 0],types:{RewardReason:{_enum:["Unspecified","BuyOnBondingCurve","LiquidityProvisionFarming","MarketMakerVolume"]}}}]},75287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={rpc:{crowdloanClaimable:{description:"Get available crowdloan reward for a user.",params:[{name:"accountId",type:"AccountId"},{name:"assetId",type:"AssetId"},{name:"at",type:"BlockHash",isOptional:!0}],type:"Option"},crowdloanLease:{description:"Get crowdloan rewards lease period info.",params:[{name:"at",type:"BlockHash",isOptional:!0}],type:"CrowdloanLease"}},types:{CrowdloanLease:{startBlock:"String",totalDays:"String",blocksPerDay:"String"}}}},9947:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(84155),t)},83163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},84155:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(83163),t)},8143:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(9947),t)},22175:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(19023));t.default={types:n.default,rpc:{}}},75982:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.unique=void 0;var n=a(72365);Object.defineProperty(t,"unique",{enumerable:!0,get:function(){return r(n).default}});var c=a(22175);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(c).default}})},19023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={PolkadotPrimitivesV2PersistedValidationData:{parentHead:"Bytes",relayParentNumber:"u32",relayParentStorageRoot:"H256",maxPovSize:"u32"},PolkadotPrimitivesV2UpgradeRestriction:{_enum:["Present"]},SpTrieStorageProof:{trieNodes:"BTreeSet"},CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot:{dmqMqcHead:"H256",relayDispatchQueueSize:"(u32,u32)",ingressChannels:"Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>",egressChannels:"Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>"},PolkadotPrimitivesV2AbridgedHrmpChannel:{maxCapacity:"u32",maxTotalSize:"u32",maxMessageSize:"u32",msgCount:"u32",totalSize:"u32",mqcHead:"Option"},PolkadotPrimitivesV2AbridgedHostConfiguration:{maxCodeSize:"u32",maxHeadDataSize:"u32",maxUpwardQueueCount:"u32",maxUpwardQueueSize:"u32",maxUpwardMessageSize:"u32",maxUpwardMessageNumPerCandidate:"u32",hrmpMaxMessageNumPerCandidate:"u32",validationUpgradeCooldown:"u32",validationUpgradeDelay:"u32"},PolkadotCorePrimitivesOutboundHrmpMessage:{recipient:"u32",data:"Bytes"},CumulusPalletParachainSystemCall:{_enum:{set_validation_data:{data:"CumulusPrimitivesParachainInherentParachainInherentData"},sudo_send_upward_message:{message:"Bytes"},authorize_upgrade:{codeHash:"H256"},enact_authorized_upgrade:{code:"Bytes"}}},CumulusPrimitivesParachainInherentParachainInherentData:{validationData:"PolkadotPrimitivesV2PersistedValidationData",relayChainState:"SpTrieStorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},PolkadotCorePrimitivesInboundDownwardMessage:{sentAt:"u32",msg:"Bytes"},PolkadotCorePrimitivesInboundHrmpMessage:{sentAt:"u32",data:"Bytes"},CumulusPalletParachainSystemEvent:{_enum:{ValidationFunctionStored:"Null",ValidationFunctionApplied:"u32",ValidationFunctionDiscarded:"Null",UpgradeAuthorized:"H256",DownwardMessagesReceived:"u32",DownwardMessagesProcessed:"(u64,H256)"}},CumulusPalletParachainSystemError:{_enum:["OverlappingUpgrades","ProhibitedByPolkadot","TooBig","ValidationDataNotAvailable","HostConfigurationNotAvailable","NotScheduled","NothingAuthorized","Unauthorized"]},PalletBalancesAccountData:{free:"u128",reserved:"u128",miscFrozen:"u128",feeFrozen:"u128"},PalletBalancesBalanceLock:{id:"[u8;8]",amount:"u128",reasons:"PalletBalancesReasons"},PalletBalancesReasons:{_enum:["Fee","Misc","All"]},PalletBalancesReserveData:{id:"[u8;8]",amount:"u128"},PalletBalancesReleases:{_enum:["V1_0_0","V2_0_0"]},PalletBalancesCall:{_enum:{transfer:{dest:"MultiAddress",value:"Compact"},set_balance:{who:"MultiAddress",newFree:"Compact",newReserved:"Compact"},force_transfer:{source:"MultiAddress",dest:"MultiAddress",value:"Compact"},transfer_keep_alive:{dest:"MultiAddress",value:"Compact"},transfer_all:{dest:"MultiAddress",keepAlive:"bool"},force_unreserve:{who:"MultiAddress",amount:"u128"}}},PalletBalancesEvent:{_enum:{Endowed:{account:"AccountId32",freeBalance:"u128"},DustLost:{account:"AccountId32",amount:"u128"},Transfer:{from:"AccountId32",to:"AccountId32",amount:"u128"},BalanceSet:{who:"AccountId32",free:"u128",reserved:"u128"},Reserved:{who:"AccountId32",amount:"u128"},Unreserved:{who:"AccountId32",amount:"u128"},ReserveRepatriated:{from:"AccountId32",to:"AccountId32",amount:"u128",destinationStatus:"FrameSupportTokensMiscBalanceStatus"},Deposit:{who:"AccountId32",amount:"u128"},Withdraw:{who:"AccountId32",amount:"u128"},Slashed:{who:"AccountId32",amount:"u128"}}},FrameSupportTokensMiscBalanceStatus:{_enum:["Free","Reserved"]},PalletBalancesError:{_enum:["VestingBalance","LiquidityRestrictions","InsufficientBalance","ExistentialDeposit","KeepAlive","ExistingVestingSchedule","DeadAccount","TooManyReserves"]},PalletTimestampCall:{_enum:{set:{now:"Compact"}}},PalletTransactionPaymentReleases:{_enum:["V1Ancient","V2"]},FrameSupportWeightsWeightToFeeCoefficient:{coeffInteger:"u128",coeffFrac:"Perbill",negative:"bool",degree:"u8"},PalletTreasuryProposal:{proposer:"AccountId32",value:"u128",beneficiary:"AccountId32",bond:"u128"},PalletTreasuryCall:{_enum:{propose_spend:{value:"Compact",beneficiary:"MultiAddress"},reject_proposal:{proposalId:"Compact"},approve_proposal:{proposalId:"Compact"}}},PalletTreasuryEvent:{_enum:{Proposed:{proposalIndex:"u32"},Spending:{budgetRemaining:"u128"},Awarded:{proposalIndex:"u32",award:"u128",account:"AccountId32"},Rejected:{proposalIndex:"u32",slashed:"u128"},Burnt:{burntFunds:"u128"},Rollover:{rolloverBalance:"u128"},Deposit:{value:"u128"}}},FrameSupportPalletId:"[u8;8]",PalletTreasuryError:{_enum:["InsufficientProposersBalance","InvalidIndex","TooManyApprovals"]},PalletSudoCall:{_enum:{sudo:{call:"Call"},sudo_unchecked_weight:{call:"Call",weight:"u64"},set_key:{_alias:{new_:"new"},new_:"MultiAddress"},sudo_as:{who:"MultiAddress",call:"Call"}}},FrameSystemCall:{_enum:{fill_block:{ratio:"Perbill"},remark:{remark:"Bytes"},set_heap_pages:{pages:"u64"},set_code:{code:"Bytes"},set_code_without_checks:{code:"Bytes"},set_storage:{items:"Vec<(Bytes,Bytes)>"},kill_storage:{_alias:{keys_:"keys"},keys_:"Vec"},kill_prefix:{prefix:"Bytes",subkeys:"u32"},remark_with_event:{remark:"Bytes"}}},OrmlVestingModuleCall:{_enum:{claim:"Null",vested_transfer:{dest:"MultiAddress",schedule:"OrmlVestingVestingSchedule"},update_vesting_schedules:{who:"MultiAddress",vestingSchedules:"Vec"},claim_for:{dest:"MultiAddress"}}},OrmlVestingVestingSchedule:{start:"u32",period:"u32",periodCount:"u32",perPeriod:"Compact"},CumulusPalletXcmpQueueCall:{_enum:{service_overweight:{index:"u64",weightLimit:"u64"},suspend_xcm_execution:"Null",resume_xcm_execution:"Null",update_suspend_threshold:{_alias:{new_:"new"},new_:"u32"},update_drop_threshold:{_alias:{new_:"new"},new_:"u32"},update_resume_threshold:{_alias:{new_:"new"},new_:"u32"},update_threshold_weight:{_alias:{new_:"new"},new_:"u64"},update_weight_restrict_decay:{_alias:{new_:"new"},new_:"u64"},update_xcmp_max_individual_weight:{_alias:{new_:"new"},new_:"u64"}}},PalletXcmCall:{_enum:{send:{dest:"XcmVersionedMultiLocation",message:"XcmVersionedXcm"},teleport_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32"},reserve_transfer_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32"},execute:{message:"XcmVersionedXcm",maxWeight:"u64"},force_xcm_version:{location:"XcmV1MultiLocation",xcmVersion:"u32"},force_default_xcm_version:{maybeXcmVersion:"Option"},force_subscribe_version_notify:{location:"XcmVersionedMultiLocation"},force_unsubscribe_version_notify:{location:"XcmVersionedMultiLocation"},limited_reserve_transfer_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32",weightLimit:"XcmV2WeightLimit"},limited_teleport_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32",weightLimit:"XcmV2WeightLimit"}}},XcmVersionedMultiLocation:{_enum:{V0:"XcmV0MultiLocation",V1:"XcmV1MultiLocation"}},XcmV0MultiLocation:{_enum:{Null:"Null",X1:"XcmV0Junction",X2:"(XcmV0Junction,XcmV0Junction)",X3:"(XcmV0Junction,XcmV0Junction,XcmV0Junction)",X4:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X5:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X6:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X7:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X8:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)"}},XcmV0Junction:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:{network:"XcmV0JunctionNetworkId",id:"[u8;32]"},AccountIndex64:{network:"XcmV0JunctionNetworkId",index:"Compact"},AccountKey20:{network:"XcmV0JunctionNetworkId",key:"[u8;20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Bytes",OnlyChild:"Null",Plurality:{id:"XcmV0JunctionBodyId",part:"XcmV0JunctionBodyPart"}}},XcmV0JunctionNetworkId:{_enum:{Any:"Null",Named:"Bytes",Polkadot:"Null",Kusama:"Null"}},XcmV0JunctionBodyId:{_enum:{Unit:"Null",Named:"Bytes",Index:"Compact",Executive:"Null",Technical:"Null",Legislative:"Null",Judicial:"Null"}},XcmV0JunctionBodyPart:{_enum:{Voice:"Null",Members:{count:"Compact"},Fraction:{nom:"Compact",denom:"Compact"},AtLeastProportion:{nom:"Compact",denom:"Compact"},MoreThanProportion:{nom:"Compact",denom:"Compact"}}},XcmV1MultiLocation:{parents:"u8",interior:"XcmV1MultilocationJunctions"},XcmV1MultilocationJunctions:{_enum:{Here:"Null",X1:"XcmV1Junction",X2:"(XcmV1Junction,XcmV1Junction)",X3:"(XcmV1Junction,XcmV1Junction,XcmV1Junction)",X4:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X5:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X6:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X7:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X8:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)"}},XcmV1Junction:{_enum:{Parachain:"Compact",AccountId32:{network:"XcmV0JunctionNetworkId",id:"[u8;32]"},AccountIndex64:{network:"XcmV0JunctionNetworkId",index:"Compact"},AccountKey20:{network:"XcmV0JunctionNetworkId",key:"[u8;20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Bytes",OnlyChild:"Null",Plurality:{id:"XcmV0JunctionBodyId",part:"XcmV0JunctionBodyPart"}}},XcmVersionedXcm:{_enum:{V0:"XcmV0Xcm",V1:"XcmV1Xcm",V2:"XcmV2Xcm"}},XcmV0Xcm:{_enum:{WithdrawAsset:{assets:"Vec",effects:"Vec"},ReserveAssetDeposit:{assets:"Vec",effects:"Vec"},TeleportAsset:{assets:"Vec",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"XcmV0Response"},TransferAsset:{assets:"Vec",dest:"XcmV0MultiLocation"},TransferReserveAsset:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"u64",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},RelayedFrom:{who:"XcmV0MultiLocation",message:"XcmV0Xcm"}}},XcmV0MultiAsset:{_enum:{None:"Null",All:"Null",AllFungible:"Null",AllNonFungible:"Null",AllAbstractFungible:{id:"Bytes"},AllAbstractNonFungible:{class:"Bytes"},AllConcreteFungible:{id:"XcmV0MultiLocation"},AllConcreteNonFungible:{class:"XcmV0MultiLocation"},AbstractFungible:{id:"Bytes",amount:"Compact"},AbstractNonFungible:{class:"Bytes",instance:"XcmV1MultiassetAssetInstance"},ConcreteFungible:{id:"XcmV0MultiLocation",amount:"Compact"},ConcreteNonFungible:{class:"XcmV0MultiLocation",instance:"XcmV1MultiassetAssetInstance"}}},XcmV1MultiassetAssetInstance:{_enum:{Undefined:"Null",Index:"Compact",Array4:"[u8;4]",Array8:"[u8;8]",Array16:"[u8;16]",Array32:"[u8;32]",Blob:"Bytes"}},XcmV0Order:{_enum:{Null:"Null",DepositAsset:{assets:"Vec",dest:"XcmV0MultiLocation"},DepositReserveAsset:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},ExchangeAsset:{give:"Vec",receive:"Vec"},InitiateReserveWithdraw:{assets:"Vec",reserve:"XcmV0MultiLocation",effects:"Vec"},InitiateTeleport:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"XcmV0MultiLocation",assets:"Vec"},BuyExecution:{fees:"XcmV0MultiAsset",weight:"u64",debt:"u64",haltOnError:"bool",xcm:"Vec"}}},XcmV0Response:{_enum:{Assets:"Vec"}},XcmV0OriginKind:{_enum:["Native","SovereignAccount","Superuser","Xcm"]},XcmDoubleEncoded:{encoded:"Bytes"},XcmV1Xcm:{_enum:{WithdrawAsset:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},ReserveAssetDeposited:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},ReceiveTeleportedAsset:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"XcmV1Response"},TransferAsset:{assets:"XcmV1MultiassetMultiAssets",beneficiary:"XcmV1MultiLocation"},TransferReserveAsset:{assets:"XcmV1MultiassetMultiAssets",dest:"XcmV1MultiLocation",effects:"Vec"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"u64",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},RelayedFrom:{who:"XcmV1MultilocationJunctions",message:"XcmV1Xcm"},SubscribeVersion:{queryId:"Compact",maxResponseWeight:"Compact"},UnsubscribeVersion:"Null"}},XcmV1MultiassetMultiAssets:"Vec",XcmV1MultiAsset:{id:"XcmV1MultiassetAssetId",fun:"XcmV1MultiassetFungibility"},XcmV1MultiassetAssetId:{_enum:{Concrete:"XcmV1MultiLocation",Abstract:"Bytes"}},XcmV1MultiassetFungibility:{_enum:{Fungible:"Compact",NonFungible:"XcmV1MultiassetAssetInstance"}},XcmV1Order:{_enum:{Noop:"Null",DepositAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"u32",beneficiary:"XcmV1MultiLocation"},DepositReserveAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"u32",dest:"XcmV1MultiLocation",effects:"Vec"},ExchangeAsset:{give:"XcmV1MultiassetMultiAssetFilter",receive:"XcmV1MultiassetMultiAssets"},InitiateReserveWithdraw:{assets:"XcmV1MultiassetMultiAssetFilter",reserve:"XcmV1MultiLocation",effects:"Vec"},InitiateTeleport:{assets:"XcmV1MultiassetMultiAssetFilter",dest:"XcmV1MultiLocation",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"XcmV1MultiLocation",assets:"XcmV1MultiassetMultiAssetFilter"},BuyExecution:{fees:"XcmV1MultiAsset",weight:"u64",debt:"u64",haltOnError:"bool",instructions:"Vec"}}},XcmV1MultiassetMultiAssetFilter:{_enum:{Definite:"XcmV1MultiassetMultiAssets",Wild:"XcmV1MultiassetWildMultiAsset"}},XcmV1MultiassetWildMultiAsset:{_enum:{All:"Null",AllOf:{id:"XcmV1MultiassetAssetId",fun:"XcmV1MultiassetWildFungibility"}}},XcmV1MultiassetWildFungibility:{_enum:["Fungible","NonFungible"]},XcmV1Response:{_enum:{Assets:"XcmV1MultiassetMultiAssets",Version:"u32"}},XcmV2Xcm:"Vec",XcmV2Instruction:{_enum:{WithdrawAsset:"XcmV1MultiassetMultiAssets",ReserveAssetDeposited:"XcmV1MultiassetMultiAssets",ReceiveTeleportedAsset:"XcmV1MultiassetMultiAssets",QueryResponse:{queryId:"Compact",response:"XcmV2Response",maxWeight:"Compact"},TransferAsset:{assets:"XcmV1MultiassetMultiAssets",beneficiary:"XcmV1MultiLocation"},TransferReserveAsset:{assets:"XcmV1MultiassetMultiAssets",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"Compact",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},ClearOrigin:"Null",DescendOrigin:"XcmV1MultilocationJunctions",ReportError:{queryId:"Compact",dest:"XcmV1MultiLocation",maxResponseWeight:"Compact"},DepositAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"Compact",beneficiary:"XcmV1MultiLocation"},DepositReserveAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"Compact",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},ExchangeAsset:{give:"XcmV1MultiassetMultiAssetFilter",receive:"XcmV1MultiassetMultiAssets"},InitiateReserveWithdraw:{assets:"XcmV1MultiassetMultiAssetFilter",reserve:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},InitiateTeleport:{assets:"XcmV1MultiassetMultiAssetFilter",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},QueryHolding:{queryId:"Compact",dest:"XcmV1MultiLocation",assets:"XcmV1MultiassetMultiAssetFilter",maxResponseWeight:"Compact"},BuyExecution:{fees:"XcmV1MultiAsset",weightLimit:"XcmV2WeightLimit"},RefundSurplus:"Null",SetErrorHandler:"XcmV2Xcm",SetAppendix:"XcmV2Xcm",ClearError:"Null",ClaimAsset:{assets:"XcmV1MultiassetMultiAssets",ticket:"XcmV1MultiLocation"},Trap:"Compact",SubscribeVersion:{queryId:"Compact",maxResponseWeight:"Compact"},UnsubscribeVersion:"Null"}},XcmV2Response:{_enum:{Null:"Null",Assets:"XcmV1MultiassetMultiAssets",ExecutionResult:"Option<(u32,XcmV2TraitsError)>",Version:"u32"}},XcmV2TraitsError:{_enum:{Overflow:"Null",Unimplemented:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",MultiLocationFull:"Null",MultiLocationNotInvertible:"Null",BadOrigin:"Null",InvalidLocation:"Null",AssetNotFound:"Null",FailedToTransactAsset:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",ExceedsMaxMessageSize:"Null",DestinationUnsupported:"Null",Transport:"Null",Unroutable:"Null",UnknownClaim:"Null",FailedToDecode:"Null",MaxWeightInvalid:"Null",NotHoldingFees:"Null",TooExpensive:"Null",Trap:"u64",UnhandledXcmVersion:"Null",WeightLimitReached:"u64",Barrier:"Null",WeightNotComputable:"Null"}},XcmV2WeightLimit:{_enum:{Unlimited:"Null",Limited:"Compact"}},XcmVersionedMultiAssets:{_enum:{V0:"Vec",V1:"XcmV1MultiassetMultiAssets"}},CumulusPalletXcmCall:"Null",CumulusPalletDmpQueueCall:{_enum:{service_overweight:{index:"u64",weightLimit:"u64"}}},PalletInflationCall:{_enum:{start_inflation:{inflationStartRelayBlock:"u32"}}},PalletUniqueCall:{_enum:{create_collection:{collectionName:"Vec",collectionDescription:"Vec",tokenPrefix:"Bytes",mode:"UpDataStructsCollectionMode"},create_collection_ex:{data:"UpDataStructsCreateCollectionData"},destroy_collection:{collectionId:"u32"},add_to_allow_list:{collectionId:"u32",address:"PalletEvmAccountBasicCrossAccountIdRepr"},remove_from_allow_list:{collectionId:"u32",address:"PalletEvmAccountBasicCrossAccountIdRepr"},change_collection_owner:{collectionId:"u32",newOwner:"AccountId32"},add_collection_admin:{collectionId:"u32",newAdminId:"PalletEvmAccountBasicCrossAccountIdRepr"},remove_collection_admin:{collectionId:"u32",accountId:"PalletEvmAccountBasicCrossAccountIdRepr"},set_collection_sponsor:{collectionId:"u32",newSponsor:"AccountId32"},confirm_sponsorship:{collectionId:"u32"},remove_collection_sponsor:{collectionId:"u32"},create_item:{collectionId:"u32",owner:"PalletEvmAccountBasicCrossAccountIdRepr",data:"UpDataStructsCreateItemData"},create_multiple_items:{collectionId:"u32",owner:"PalletEvmAccountBasicCrossAccountIdRepr",itemsData:"Vec"},set_collection_properties:{collectionId:"u32",properties:"Vec"},delete_collection_properties:{collectionId:"u32",propertyKeys:"Vec"},set_token_properties:{collectionId:"u32",tokenId:"u32",properties:"Vec"},delete_token_properties:{collectionId:"u32",tokenId:"u32",propertyKeys:"Vec"},set_property_permissions:{collectionId:"u32",propertyPermissions:"Vec"},create_multiple_items_ex:{collectionId:"u32",data:"UpDataStructsCreateItemExData"},set_transfers_enabled_flag:{collectionId:"u32",value:"bool"},burn_item:{collectionId:"u32",itemId:"u32",value:"u128"},burn_from:{collectionId:"u32",from:"PalletEvmAccountBasicCrossAccountIdRepr",itemId:"u32",value:"u128"},transfer:{recipient:"PalletEvmAccountBasicCrossAccountIdRepr",collectionId:"u32",itemId:"u32",value:"u128"},approve:{spender:"PalletEvmAccountBasicCrossAccountIdRepr",collectionId:"u32",itemId:"u32",amount:"u128"},transfer_from:{from:"PalletEvmAccountBasicCrossAccountIdRepr",recipient:"PalletEvmAccountBasicCrossAccountIdRepr",collectionId:"u32",itemId:"u32",value:"u128"},set_collection_limits:{collectionId:"u32",newLimit:"UpDataStructsCollectionLimits"},set_collection_permissions:{collectionId:"u32",newLimit:"UpDataStructsCollectionPermissions"}}},UpDataStructsCollectionMode:{_enum:{NFT:"Null",Fungible:"u8",ReFungible:"Null"}},UpDataStructsCreateCollectionData:{mode:"UpDataStructsCollectionMode",access:"Option",name:"Vec",description:"Vec",tokenPrefix:"Bytes",pendingSponsor:"Option",limits:"Option",permissions:"Option",tokenPropertyPermissions:"Vec",properties:"Vec"},UpDataStructsAccessMode:{_enum:["Normal","AllowList"]},UpDataStructsCollectionLimits:{accountTokenOwnershipLimit:"Option",sponsoredDataSize:"Option",sponsoredDataRateLimit:"Option",tokenLimit:"Option",sponsorTransferTimeout:"Option",sponsorApproveTimeout:"Option",ownerCanTransfer:"OptionBool",ownerCanDestroy:"OptionBool",transfersEnabled:"OptionBool"},UpDataStructsSponsoringRateLimit:{_enum:{SponsoringDisabled:"Null",Blocks:"u32"}},UpDataStructsCollectionPermissions:{access:"Option",mintMode:"OptionBool",nesting:"Option"},UpDataStructsNestingRule:{_enum:{Disabled:"Null",Owner:"Null",OwnerRestricted:"BTreeSet"}},UpDataStructsPropertyKeyPermission:{key:"Bytes",permission:"UpDataStructsPropertyPermission"},UpDataStructsPropertyPermission:{mutable:"bool",collectionAdmin:"bool",tokenOwner:"bool"},UpDataStructsProperty:{key:"Bytes",value:"Bytes"},PalletEvmAccountBasicCrossAccountIdRepr:{_enum:{Substrate:"AccountId32",Ethereum:"H160"}},UpDataStructsCreateItemData:{_enum:{NFT:"UpDataStructsCreateNftData",Fungible:"UpDataStructsCreateFungibleData",ReFungible:"UpDataStructsCreateReFungibleData"}},UpDataStructsCreateNftData:{constData:"Bytes",properties:"Vec"},UpDataStructsCreateFungibleData:{value:"u128"},UpDataStructsCreateReFungibleData:{constData:"Bytes",pieces:"u128"},UpDataStructsCreateItemExData:{_enum:{NFT:"Vec",Fungible:"BTreeMap",RefungibleMultipleItems:"Vec",RefungibleMultipleOwners:"UpDataStructsCreateRefungibleExData"}},UpDataStructsCreateNftExData:{properties:"Vec",owner:"PalletEvmAccountBasicCrossAccountIdRepr"},UpDataStructsCreateRefungibleExData:{constData:"Bytes",users:"BTreeMap"},PalletTemplateTransactionPaymentCall:"Null",PalletStructureCall:"Null",PalletEvmCall:{_enum:{withdraw:{address:"H160",value:"u128"},call:{source:"H160",target:"H160",input:"Bytes",value:"U256",gasLimit:"u64",maxFeePerGas:"U256",maxPriorityFeePerGas:"Option",nonce:"Option",accessList:"Vec<(H160,Vec)>"},create:{source:"H160",init:"Bytes",value:"U256",gasLimit:"u64",maxFeePerGas:"U256",maxPriorityFeePerGas:"Option",nonce:"Option",accessList:"Vec<(H160,Vec)>"},create2:{source:"H160",init:"Bytes",salt:"H256",value:"U256",gasLimit:"u64",maxFeePerGas:"U256",maxPriorityFeePerGas:"Option",nonce:"Option",accessList:"Vec<(H160,Vec)>"}}},PalletEthereumCall:{_enum:{transact:{transaction:"EthereumTransactionTransactionV2"}}},EthereumTransactionTransactionV2:{_enum:{Legacy:"EthereumTransactionLegacyTransaction",EIP2930:"EthereumTransactionEip2930Transaction",EIP1559:"EthereumTransactionEip1559Transaction"}},EthereumTransactionLegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthereumTransactionTransactionAction",value:"U256",input:"Bytes",signature:"EthereumTransactionTransactionSignature"},EthereumTransactionTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthereumTransactionTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthereumTransactionEip2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthereumTransactionTransactionAction",value:"U256",input:"Bytes",accessList:"Vec",oddYParity:"bool",r:"H256",s:"H256"},EthereumTransactionAccessListItem:{address:"H160",storageKeys:"Vec"},EthereumTransactionEip1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthereumTransactionTransactionAction",value:"U256",input:"Bytes",accessList:"Vec",oddYParity:"bool",r:"H256",s:"H256"},PalletEvmMigrationCall:{_enum:{begin:{address:"H160"},set_data:{address:"H160",data:"Vec<(H256,H256)>"},finish:{address:"H160",code:"Bytes"}}},PalletSudoEvent:{_enum:{Sudid:{sudoResult:"Result"},KeyChanged:{oldSudoer:"Option"},SudoAsDone:{sudoResult:"Result"}}},SpRuntimeDispatchError:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"SpRuntimeModuleError",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"SpRuntimeTokenError",Arithmetic:"SpRuntimeArithmeticError",Transactional:"SpRuntimeTransactionalError"}},SpRuntimeModuleError:{index:"u8",error:"[u8;4]"},SpRuntimeTokenError:{_enum:["NoFunds","WouldDie","BelowMinimum","CannotCreate","UnknownAsset","Frozen","Unsupported"]},SpRuntimeArithmeticError:{_enum:["Underflow","Overflow","DivisionByZero"]},SpRuntimeTransactionalError:{_enum:["LimitReached","NoLayer"]},PalletSudoError:{_enum:["RequireSudo"]},FrameSystemAccountInfo:{nonce:"u32",consumers:"u32",providers:"u32",sufficients:"u32",data:"PalletBalancesAccountData"},FrameSupportWeightsPerDispatchClassU64:{normal:"u64",operational:"u64",mandatory:"u64"},SpRuntimeDigest:{logs:"Vec"},SpRuntimeDigestDigestItem:{_enum:{Other:"Bytes",__Unused1:"Null",__Unused2:"Null",__Unused3:"Null",Consensus:"([u8;4],Bytes)",Seal:"([u8;4],Bytes)",PreRuntime:"([u8;4],Bytes)",__Unused7:"Null",RuntimeEnvironmentUpdated:"Null"}},FrameSystemEventRecord:{phase:"FrameSystemPhase",event:"Event",topics:"Vec"},FrameSystemEvent:{_enum:{ExtrinsicSuccess:{dispatchInfo:"FrameSupportWeightsDispatchInfo"},ExtrinsicFailed:{dispatchError:"SpRuntimeDispatchError",dispatchInfo:"FrameSupportWeightsDispatchInfo"},CodeUpdated:"Null",NewAccount:{account:"AccountId32"},KilledAccount:{account:"AccountId32"},Remarked:{_alias:{hash_:"hash"},sender:"AccountId32",hash_:"H256"}}},FrameSupportWeightsDispatchInfo:{weight:"u64",class:"FrameSupportWeightsDispatchClass",paysFee:"FrameSupportWeightsPays"},FrameSupportWeightsDispatchClass:{_enum:["Normal","Operational","Mandatory"]},FrameSupportWeightsPays:{_enum:["Yes","No"]},OrmlVestingModuleEvent:{_enum:{VestingScheduleAdded:{from:"AccountId32",to:"AccountId32",vestingSchedule:"OrmlVestingVestingSchedule"},Claimed:{who:"AccountId32",amount:"u128"},VestingSchedulesUpdated:{who:"AccountId32"}}},CumulusPalletXcmpQueueEvent:{_enum:{Success:"Option",Fail:"(Option,XcmV2TraitsError)",BadVersion:"Option",BadFormat:"Option",UpwardMessageSent:"Option",XcmpMessageSent:"Option",OverweightEnqueued:"(u32,u32,u64,u64)",OverweightServiced:"(u64,u64)"}},PalletXcmEvent:{_enum:{Attempted:"XcmV2TraitsOutcome",Sent:"(XcmV1MultiLocation,XcmV1MultiLocation,XcmV2Xcm)",UnexpectedResponse:"(XcmV1MultiLocation,u64)",ResponseReady:"(u64,XcmV2Response)",Notified:"(u64,u8,u8)",NotifyOverweight:"(u64,u8,u8,u64,u64)",NotifyDispatchError:"(u64,u8,u8)",NotifyDecodeFailed:"(u64,u8,u8)",InvalidResponder:"(XcmV1MultiLocation,u64,Option)",InvalidResponderVersion:"(XcmV1MultiLocation,u64)",ResponseTaken:"u64",AssetsTrapped:"(H256,XcmV1MultiLocation,XcmVersionedMultiAssets)",VersionChangeNotified:"(XcmV1MultiLocation,u32)",SupportedVersionChanged:"(XcmV1MultiLocation,u32)",NotifyTargetSendFail:"(XcmV1MultiLocation,u64,XcmV2TraitsError)",NotifyTargetMigrationFail:"(XcmVersionedMultiLocation,u64)"}},XcmV2TraitsOutcome:{_enum:{Complete:"u64",Incomplete:"(u64,XcmV2TraitsError)",Error:"XcmV2TraitsError"}},CumulusPalletXcmEvent:{_enum:{InvalidFormat:"[u8;8]",UnsupportedVersion:"[u8;8]",ExecutedDownward:"([u8;8],XcmV2TraitsOutcome)"}},CumulusPalletDmpQueueEvent:{_enum:{InvalidFormat:"[u8;32]",UnsupportedVersion:"[u8;32]",ExecutedDownward:"([u8;32],XcmV2TraitsOutcome)",WeightExhausted:"([u8;32],u64,u64)",OverweightEnqueued:"([u8;32],u64,u64)",OverweightServiced:"(u64,u64)"}},PalletUniqueRawEvent:{_enum:{CollectionSponsorRemoved:"u32",CollectionAdminAdded:"(u32,PalletEvmAccountBasicCrossAccountIdRepr)",CollectionOwnedChanged:"(u32,AccountId32)",CollectionSponsorSet:"(u32,AccountId32)",SponsorshipConfirmed:"(u32,AccountId32)",CollectionAdminRemoved:"(u32,PalletEvmAccountBasicCrossAccountIdRepr)",AllowListAddressRemoved:"(u32,PalletEvmAccountBasicCrossAccountIdRepr)",AllowListAddressAdded:"(u32,PalletEvmAccountBasicCrossAccountIdRepr)",CollectionLimitSet:"u32",CollectionPermissionSet:"u32"}},PalletCommonEvent:{_enum:{CollectionCreated:"(u32,u8,AccountId32)",CollectionDestroyed:"u32",ItemCreated:"(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)",ItemDestroyed:"(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)",Transfer:"(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)",Approved:"(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)",CollectionPropertySet:"(u32,Bytes)",CollectionPropertyDeleted:"(u32,Bytes)",TokenPropertySet:"(u32,u32,Bytes)",TokenPropertyDeleted:"(u32,u32,Bytes)",PropertyPermissionSet:"(u32,Bytes)"}},PalletStructureEvent:{_enum:{Executed:"Result"}},PalletEvmEvent:{_enum:{Log:"EthereumLog",Created:"H160",CreatedFailed:"H160",Executed:"H160",ExecutedFailed:"H160",BalanceDeposit:"(AccountId32,H160,U256)",BalanceWithdraw:"(AccountId32,H160,U256)"}},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},PalletEthereumEvent:{_enum:{Executed:"(H160,H160,H256,EvmCoreErrorExitReason)"}},EvmCoreErrorExitReason:{_enum:{Succeed:"EvmCoreErrorExitSucceed",Error:"EvmCoreErrorExitError",Revert:"EvmCoreErrorExitRevert",Fatal:"EvmCoreErrorExitFatal"}},EvmCoreErrorExitSucceed:{_enum:["Stopped","Returned","Suicided"]},EvmCoreErrorExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"Null"}},EvmCoreErrorExitRevert:{_enum:["Reverted"]},EvmCoreErrorExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"EvmCoreErrorExitError",Other:"Text"}},FrameSystemPhase:{_enum:{ApplyExtrinsic:"u32",Finalization:"Null",Initialization:"Null"}},FrameSystemLastRuntimeUpgradeInfo:{specVersion:"Compact",specName:"Text"},FrameSystemLimitsBlockWeights:{baseBlock:"u64",maxBlock:"u64",perClass:"FrameSupportWeightsPerDispatchClassWeightsPerClass"},FrameSupportWeightsPerDispatchClassWeightsPerClass:{normal:"FrameSystemLimitsWeightsPerClass",operational:"FrameSystemLimitsWeightsPerClass",mandatory:"FrameSystemLimitsWeightsPerClass"},FrameSystemLimitsWeightsPerClass:{baseExtrinsic:"u64",maxExtrinsic:"Option",maxTotal:"Option",reserved:"Option"},FrameSystemLimitsBlockLength:{max:"FrameSupportWeightsPerDispatchClassU32"},FrameSupportWeightsPerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},FrameSupportWeightsRuntimeDbWeight:{read:"u64",write:"u64"},SpVersionRuntimeVersion:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec<([u8;8],u32)>",transactionVersion:"u32",stateVersion:"u8"},FrameSystemError:{_enum:["InvalidSpecName","SpecVersionNeedsToIncrease","FailedToExtractRuntimeVersion","NonDefaultComposite","NonZeroRefCount","CallFiltered"]},OrmlVestingModuleError:{_enum:["ZeroVestingPeriod","ZeroVestingPeriodCount","InsufficientBalanceToLock","TooManyVestingSchedules","AmountLow","MaxVestingSchedulesExceeded"]},CumulusPalletXcmpQueueInboundChannelDetails:{sender:"u32",state:"CumulusPalletXcmpQueueInboundState",messageMetadata:"Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>"},CumulusPalletXcmpQueueInboundState:{_enum:["Ok","Suspended"]},PolkadotParachainPrimitivesXcmpMessageFormat:{_enum:["ConcatenatedVersionedXcm","ConcatenatedEncodedBlob","Signals"]},CumulusPalletXcmpQueueOutboundChannelDetails:{recipient:"u32",state:"CumulusPalletXcmpQueueOutboundState",signalsExist:"bool",firstIndex:"u16",lastIndex:"u16"},CumulusPalletXcmpQueueOutboundState:{_enum:["Ok","Suspended"]},CumulusPalletXcmpQueueQueueConfigData:{suspendThreshold:"u32",dropThreshold:"u32",resumeThreshold:"u32",thresholdWeight:"u64",weightRestrictDecay:"u64",xcmpMaxIndividualWeight:"u64"},CumulusPalletXcmpQueueError:{_enum:["FailedToSend","BadXcmOrigin","BadXcm","BadOverweightIndex","WeightOverLimit"]},PalletXcmError:{_enum:["Unreachable","SendFailure","Filtered","UnweighableMessage","DestinationNotInvertible","Empty","CannotReanchor","TooManyAssets","InvalidOrigin","BadVersion","BadLocation","NoSubscription","AlreadySubscribed"]},CumulusPalletXcmError:"Null",CumulusPalletDmpQueueConfigData:{maxIndividual:"u64"},CumulusPalletDmpQueuePageIndexData:{beginUsed:"u32",endUsed:"u32",overweightCount:"u64"},CumulusPalletDmpQueueError:{_enum:["Unknown","OverLimit"]},PalletUniqueError:{_enum:["CollectionDecimalPointLimitExceeded","ConfirmUnsetSponsorFail","EmptyArgument"]},UpDataStructsCollection:{owner:"AccountId32",mode:"UpDataStructsCollectionMode",name:"Vec",description:"Vec",tokenPrefix:"Bytes",sponsorship:"UpDataStructsSponsorshipState",limits:"UpDataStructsCollectionLimits",permissions:"UpDataStructsCollectionPermissions"},UpDataStructsSponsorshipState:{_enum:{Disabled:"Null",Unconfirmed:"AccountId32",Confirmed:"AccountId32"}},UpDataStructsProperties:{map:"UpDataStructsPropertiesMapBoundedVec",consumedSpace:"u32",spaceLimit:"u32"},UpDataStructsPropertiesMapBoundedVec:"BTreeMap",UpDataStructsPropertiesMapPropertyPermission:"BTreeMap",UpDataStructsCollectionStats:{created:"u32",destroyed:"u32",alive:"u32"},PhantomTypeUpDataStructs:"[(UpDataStructsTokenData,UpDataStructsRpcCollection,UpDataStructsRmrkCollectionInfo,UpDataStructsRmrkNftInfo,UpDataStructsRmrkResourceInfo,UpDataStructsRmrkPropertyInfo,UpDataStructsRmrkBaseInfo,UpDataStructsRmrkPartType,UpDataStructsRmrkTheme,UpDataStructsRmrkNftChild);0]",UpDataStructsTokenData:{properties:"Vec",owner:"Option"},UpDataStructsRpcCollection:{owner:"AccountId32",mode:"UpDataStructsCollectionMode",name:"Vec",description:"Vec",tokenPrefix:"Bytes",sponsorship:"UpDataStructsSponsorshipState",limits:"UpDataStructsCollectionLimits",permissions:"UpDataStructsCollectionPermissions",tokenPropertyPermissions:"Vec",properties:"Vec"},UpDataStructsRmrkCollectionInfo:{issuer:"AccountId32",metadata:"Bytes",max:"Option",symbol:"Bytes",nftsCount:"u32"},UpDataStructsRmrkNftInfo:{owner:"UpDataStructsRmrkAccountIdOrCollectionNftTuple",royalty:"Option",metadata:"Bytes",equipped:"bool",pending:"bool"},UpDataStructsRmrkAccountIdOrCollectionNftTuple:{_enum:{AccountId:"AccountId32",CollectionAndNftTuple:"(u32,u32)"}},UpDataStructsRmrkRoyaltyInfo:{recipient:"AccountId32",amount:"Permill"},UpDataStructsRmrkResourceInfo:{id:"Bytes",resource:"UpDataStructsRmrkResourceTypes",pending:"bool",pendingRemoval:"bool"},UpDataStructsRmrkResourceTypes:{_enum:{Basic:"UpDataStructsRmrkBasicResource",Composable:"UpDataStructsRmrkComposableResource",Slot:"UpDataStructsRmrkSlotResource"}},UpDataStructsRmrkBasicResource:{src:"Option",metadata:"Option",license:"Option",thumb:"Option"},UpDataStructsRmrkComposableResource:{parts:"Vec",base:"u32",src:"Option",metadata:"Option",license:"Option",thumb:"Option"},UpDataStructsRmrkSlotResource:{base:"u32",src:"Option",metadata:"Option",slot:"u32",license:"Option",thumb:"Option"},UpDataStructsRmrkPropertyInfo:{key:"Bytes",value:"Bytes"},UpDataStructsRmrkBaseInfo:{issuer:"AccountId32",baseType:"Bytes",symbol:"Bytes"},UpDataStructsRmrkPartType:{_enum:{FixedPart:"UpDataStructsRmrkFixedPart",SlotPart:"UpDataStructsRmrkSlotPart"}},UpDataStructsRmrkFixedPart:{id:"u32",z:"u32",src:"Bytes"},UpDataStructsRmrkSlotPart:{id:"u32",equippable:"UpDataStructsRmrkEquippableList",src:"Bytes",z:"u32"},UpDataStructsRmrkEquippableList:{_enum:{All:"Null",Empty:"Null",Custom:"Vec"}},UpDataStructsRmrkTheme:{name:"Bytes",properties:"Vec",inherit:"bool"},UpDataStructsRmrkThemeProperty:{key:"Bytes",value:"Bytes"},UpDataStructsRmrkNftChild:{collectionId:"u32",nftId:"u32"},PalletCommonError:{_enum:["CollectionNotFound","MustBeTokenOwner","NoPermission","CantDestroyNotEmptyCollection","PublicMintingNotAllowed","AddressNotInAllowlist","CollectionNameLimitExceeded","CollectionDescriptionLimitExceeded","CollectionTokenPrefixLimitExceeded","TotalCollectionsLimitExceeded","CollectionAdminCountExceeded","CollectionLimitBoundsExceeded","OwnerPermissionsCantBeReverted","TransferNotAllowed","AccountTokenLimitExceeded","CollectionTokenLimitExceeded","MetadataFlagFrozen","TokenNotFound","TokenValueTooLow","ApprovedValueTooLow","CantApproveMoreThanOwned","AddressIsZero","UnsupportedOperation","NotSufficientFounds","NestingIsDisabled","OnlyOwnerAllowedToNest","SourceCollectionIsNotAllowedToNest","CollectionFieldSizeExceeded","NoSpaceForProperty","PropertyLimitReached","PropertyKeyIsTooLong","InvalidCharacterInPropertyKey","EmptyPropertyKey"]},PalletFungibleError:{_enum:["NotFungibleDataUsedToMintFungibleCollectionToken","FungibleItemsHaveNoId","FungibleItemsDontHaveData","FungibleDisallowsNesting","SettingPropertiesNotAllowed"]},PalletRefungibleItemData:{constData:"Bytes"},PalletRefungibleError:{_enum:["NotRefungibleDataUsedToMintFungibleCollectionToken","WrongRefungiblePieces","RefungibleDisallowsNesting","SettingPropertiesNotAllowed"]},PalletNonfungibleItemData:{owner:"PalletEvmAccountBasicCrossAccountIdRepr"},PalletNonfungibleError:{_enum:["NotNonfungibleDataUsedToMintFungibleCollectionToken","NonfungibleItemsHaveNoAmount","CantBurnNftWithChildren"]},PalletStructureError:{_enum:["OuroborosDetected","DepthLimit","TokenNotFound"]},PalletEvmError:{_enum:["BalanceLow","FeeOverflow","PaymentOverflow","WithdrawFailed","GasPriceTooLow","InvalidNonce"]},FpRpcTransactionStatus:{transactionHash:"H256",transactionIndex:"u32",from:"H160",to:"Option",contractAddress:"Option",logs:"Vec",logsBloom:"EthbloomBloom"},EthbloomBloom:"[u8;256]",EthereumReceiptReceiptV3:{_enum:{Legacy:"EthereumReceiptEip658ReceiptData",EIP2930:"EthereumReceiptEip658ReceiptData",EIP1559:"EthereumReceiptEip658ReceiptData"}},EthereumReceiptEip658ReceiptData:{statusCode:"u8",usedGas:"U256",logsBloom:"EthbloomBloom",logs:"Vec"},EthereumBlock:{header:"EthereumHeader",transactions:"Vec",ommers:"Vec"},EthereumHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"H160",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthbloomBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixHash:"H256",nonce:"EthereumTypesHashH64"},EthereumTypesHashH64:"[u8;8]",PalletEthereumError:{_enum:["InvalidSignature","PreLogExists"]},PalletEvmCoderSubstrateError:{_enum:["OutOfGas","OutOfFund"]},PalletEvmContractHelpersSponsoringModeT:{_enum:["Disabled","Allowlisted","Generous"]},PalletEvmContractHelpersError:{_enum:["NoPermission"]},PalletEvmMigrationError:{_enum:["AccountNotEmpty","AccountIsNotMigrating"]},SpRuntimeMultiSignature:{_enum:{Ed25519:"SpCoreEd25519Signature",Sr25519:"SpCoreSr25519Signature",Ecdsa:"SpCoreEcdsaSignature"}},SpCoreEd25519Signature:"[u8;64]",SpCoreSr25519Signature:"[u8;64]",SpCoreEcdsaSignature:"[u8;65]",FrameSystemExtensionsCheckSpecVersion:"Null",FrameSystemExtensionsCheckGenesis:"Null",FrameSystemExtensionsCheckNonce:"Compact",FrameSystemExtensionsCheckWeight:"Null",PalletTemplateTransactionPaymentChargeTransactionPayment:"Compact",OpalRuntimeRuntime:"Null",PalletEthereumFakeTransactionFinalizer:"Null"}},72365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a="PalletEvmAccountBasicCrossAccountIdRepr",r={name:"collection",type:"u32"},n={name:"tokenId",type:"u32"},c={name:"propertyKeys",type:"Vec",isOptional:!0},i=(e="account")=>({name:e,type:a}),o={name:"at",type:"Hash",isOptional:!0},s=(e,t,a)=>({description:e,params:[...t,o],type:a});t.default={types:{},rpc:{adminlist:s("Get admin list",[r],"Vec"),allowlist:s("Get allowlist",[r],"Vec"),accountTokens:s("Get tokens owned by account",[r,i()],"Vec"),collectionTokens:s("Get tokens contained in collection",[r],"Vec"),lastTokenId:s("Get last token id",[r],"u32"),totalSupply:s("Get amount of unique collection tokens",[r],"u32"),accountBalance:s("Get amount of different user tokens",[r,i()],"u32"),balance:s("Get amount of specific account token",[r,i(),n],"u128"),allowance:s("Get allowed amount",[r,i("sender"),i("spender"),n],"u128"),tokenOwner:s("Get token owner",[r,n],`Option<${a}>`),topmostTokenOwner:s("Get token owner, in case of nested token - find parent recursive",[r,n],`Option<${a}>`),constMetadata:s("Get token constant metadata",[r,n],"Vec"),variableMetadata:s("Get token variable metadata",[r,n],"Vec"),collectionProperties:s("Get collection properties",[r,c],"Vec"),tokenProperties:s("Get token properties",[r,n,c],"Vec"),propertyPermissions:s("Get property permissions",[r,c],"Vec"),tokenData:s("Get token data",[r,n,c],"UpDataStructsTokenData"),tokenExists:s("Check if token exists",[r,n],"bool"),collectionById:s("Get collection by specified id",[r],"Option"),collectionStats:s("Get collection stats",[],"UpDataStructsCollectionStats"),allowed:s("Check if user is allowed to use collection",[r,i()],"bool"),nextSponsored:s("Get number of blocks when sponsored transaction is available",[r,i(),n],"Option"),effectiveCollectionLimits:s("Get effective collection limits",[r],"Option")}}},99653:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{Juror:{status:"JurorStatus"},JurorStatus:{_enum:["OK","Tardy"]}}}},19420:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.index=t.swaps=t.rikkido=t.predictionMarkets=t.orderbook=t.court=void 0;var n=a(99653);Object.defineProperty(t,"court",{enumerable:!0,get:function(){return r(n).default}});var c=a(33726);Object.defineProperty(t,"orderbook",{enumerable:!0,get:function(){return r(c).default}});var i=a(31811);Object.defineProperty(t,"predictionMarkets",{enumerable:!0,get:function(){return r(i).default}});var o=a(74262);Object.defineProperty(t,"rikkido",{enumerable:!0,get:function(){return r(o).default}});var s=a(4036);Object.defineProperty(t,"swaps",{enumerable:!0,get:function(){return r(s).default}}),t.index={rpc:{},typesAlias:{tokens:{AccountData:{free:"Balance",reserved:"Balance",miscFrozen:"Balance",feeFrozen:"Balance"}}},types:{Address:"MultiAddress",Amount:"i128",AmountOf:"i128",Asset:{_enum:{CategoricalOutcome:"(MarketId, CategoryIndex)",ScalarOutcome:"(MarketId, ScalarPosition)",CombinatorialOutcome:null,PoolShare:"u128",Ztg:null}},AuthorId:"AccountId",SerdeWrapper:"Balance",BlockNumber:"u64",Bond:{owner:"AccountId",amount:"Balance"},CategoryIndex:"u16",Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",delegations:"Vec",total:"Balance"},CollatorStatus:{_enum:{Active:null,Idle:null,Leaving:"RoundIndex"}},Currency:"Asset",CurrencyIdOf:"Asset",CurrencyId:"Asset",DelegatorStatus:{_enum:{Active:null,Leaving:"RoundIndex"}},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},Index:"u64",InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},Lookup:"MultiAddress",MarketIdOf:"u128",MaxRuntimeUsize:"u64",Moment:"u64",MultiHash:{_enum:{Sha3_384:"[u8; 50]"}},Nominator2:{delegations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"DelegatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:null}},OrderedSet:"Vec",OwnedValuesParams:{participatedBlocks:"BlockNumber",perpetualIncentives:"Balance",totalIncentives:"Balance",totalShares:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},RoundIndex:"u32",RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},ScalarPosition:{_enum:["Long","Short"]},VestingBlockNumber:"u32"}}},33726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{OrderSide:{_enum:["Bid","Ask"]},Order:{side:"OrderSide",maker:"AccountId",taker:"Option",asset:"Asset",total:"Balance",price:"Balance",filled:"Balance"}}}},31811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{predictionMarkets:{marketOutcomeShareId:{description:"Get the market outcome share identifier.",params:[{name:"market_id",type:"MarketId"},{name:"outcome",type:"u16"},{name:"at",type:"Hash",isOptional:!0}],type:"Hash"}}},types:{MarketCreation:{_enum:["Permissionless","Advised"]},MarketPeriod:{_enum:{Block:"Range",Timestamp:"Range"}},MarketId:"u128",MarketType:{_enum:{Categorical:"u16",Scalar:"RangeInclusive"}},MarketStatus:{_enum:["Proposed","Active","Suspended","Closed","CollectingSubsidy","InsufficientSubsidy","Reported","Disputed","Resolved"]},Market:{creator:"AccountId",creation:"MarketCreation",creatorFee:"u8",oracle:"AccountId",metadata:"Vec",marketType:"MarketType",period:"MarketPeriod",scoringRule:"ScoringRule",status:"MarketStatus",report:"Option",resolvedOutcome:"Option",disputeMechanism:"MarketDisputeMechanism"},ScoringRule:{_enum:["CPMM","RikiddoSigmoidFeeMarketEma"]},OutcomeReport:{_enum:{Categorical:"u16",Scalar:"u128"}},Report:{at:"BlockNumber",by:"AccountId",outcome:"OutcomeReport"},MarketDispute:{at:"BlockNumber",by:"AccountId",outcome:"OutcomeReport"},MarketDisputeMechanism:{_enum:{Authorized:"AccountId",Court:null,SimpleDisputes:null}}}}},74262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{EmaConfig:{emaPeriod:"Timespan",emaPeriodEstimateAfter:"Option",smoothing:"u128"},EmaMarketVolume:{config:"EmaConfig",ema:"u128",multiplier:"u128",lastTime:"UnixTimestamp",state:"MarketVolumeState",startTime:"UnixTimestamp",volumesPerPeriod:"u128"},FeeSigmoid:{config:"FeeSigmoidConfig"},FeeSigmoidConfig:{m:"i128",p:"i128",n:"i128",initialFee:"i128",minRevenue:"i128"},MarketVolumeState:{_enum:["Uninitialized","DataCollectionStarted","DataCollected"]},Rikiddo:{config:"RikiddoConfig",fees:"FeeSigmoid",maShort:"EmaMarketVolume",maLong:"EmaMarketVolume"},RikiddoConfig:{initialFee:"i128",log2E:"i128"},Timespan:{_enum:{Seconds:"u32",Minutes:"u32",Hours:"u32",Days:"u16",Weeks:"u16"}},UnixTimestamp:"u64"}}},4036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{Pool:{assets:"Vec",baseAsset:"Asset",marketId:"MarketId",poolStatus:"PoolStatus",scoringRule:"ScoringRule",swapFee:"Option",totalSubsidy:"Option",totalWeight:"Option",weights:"Option>"},CommonPoolEventParams:{poolId:"u128",who:"AccountId"},PoolAssetEvent:{asset:"Asset",bound:"Balance",cpep:"CommonPoolEventParams",transferred:"Balance"},PoolAssetsEvent:{assets:"Vec",bounds:"Vec",cpep:"CommonPoolEventParams",transferred:"Vec"},PoolId:"u128",PoolStatus:{_enum:["Active","CollectingSubsidy","Closed","Clean","Initialized"]},SubsidyUntil:{marketId:"MarketId",period:"MarketPeriod"},SwapEvent:{assetAmountIn:"Balance",assetAmountOut:"Balance",assetBound:"Balance",assetIn:"Asset",assetOut:"Asset",cpep:"CommonPoolEventParams",maxPrice:"Balance"}}}},97713:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gamedao=void 0,t.gamedao={Body:{id:"Hash",index:"u128",creator:"AccountId",name:"Vec",cid:"Vec",body:"u8",created:"BlockNumber",mutated:"BlockNumber"},BConfig:{fee_model:"u8",fee:"Balance",gov_asset:"u8",pay_asset:"u8",member_limit:"u64",access:"u8"},Campaign:{id:"Hash",org:"Hash",name:"Vec",owner:"AccountId",admin:"AccountId",deposit:"Balance",expiry:"BlockNumber",cap:"Balance",protocol:"u8",governance:"u8",cid:"Vec",token_symbol:"Vec",token_name:"Vec",created:"Timestamp"},Proposal:{proposal_id:"Hash",context_id:"Hash",proposal_type:"u8",voting_type:"u8",status:"u8",start:"BlockNumber",expiry:"BlockNumber"},ProposalMetadata:{title:"Vec",cid:"Vec",amount:"Balance"},Timestamp:"Moment",EventMessage:"Vec",Nonce:"u64",TitleText:"Vec",CID:"Vec",ProposalType:"u8",ProposalState:"u8",VotingType:"u8"}},211:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hyperspace=void 0,t.hyperspace={Space:{id:"H256",dna:"H256",price:"Balance",gen:"u64"},SpaceId:"Hash",HypaspaceId:"Hash",HypaspaceMetadata:{name:"Vec"},Item:{CommodityId:"CommodityId",CommodityInfo:"CommodityInfo"},ItemId:"Hash",ItemInfo:{dob:"u64",dna:"Hash"}}},77084:(e,t,a)=>{"use strict";t.c2=t.vI=t.V5=void 0;const r=a(91186),n=a(211),c=a(97713),i=a(43375),o=a(69579);t.V5=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r.zero),o.sensenet),n.hyperspace),c.gamedao),i.tangram),t.vI=Object.assign({},t.V5),t.c2={types:[{minmax:[0,18],types:t.V5},{minmax:[19,void 0],types:t.vI}]}},69579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sensenet=void 0,t.sensenet={Entity:{account:"AccountId",index:"u128",cid:"Vec",created:"BlockNumber",mutated:"BlockNumber"},EntityProperty:{value:"u64",mutated:"BlockNumber"}}},43375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tangram=void 0,t.tangram={RealmIndex:"u64",ClassIndex:"u64",ItemIndex:"u64",TotalIndex:"u128",BurnedIndex:"u128",TangramRealm:{id:"Hash",org:"Hash",index:"u128"},TangramRealmMetadata:{id:"Hash",name:"Vec",cid:"Vec",created:"BlockNumber",mutated:"BlockNumber"},TangramClass:{id:"Hash",realm:"Hash",org:"Hash",index:"u128",cid:"Vec"},TangramClassMetadata:{id:"Hash",name:"Vec",cid:"Vec",created:"BlockNumber",mutated:"BlockNumber"},Tangram:{dob:"Moment",dna:"Hash"},TangramMetadata:{name:"Vec",owner:"AccountId",cid:"Vec"},TangramId:"Hash",TangramItemOf:"Tangram"}},91186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zero=void 0,t.zero={Address:"MultiAddress",LookupSource:"MultiAddress",AccountInfo:"AccountInfoWithDualRefCount",AccountInfoWithDualRefCount:{nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"},Timestamp:"Moment"}},8202:function(e){!function(t){"use strict";function a(e){return parseInt(e)===e}function r(e){if(!a(e.length))return!1;for(var t=0;t255)return!1;return!0}function n(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(a(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function c(e){return new Uint8Array(e)}function i(e,t,a,r,n){null==r&&null==n||(e=e.slice?e.slice(r,n):Array.prototype.slice.call(e,r,n)),t.set(e,a)}var o,s={toBytes:function(e){var t=[],a=0;for(e=encodeURI(e);a191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[a+1])),a+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[a+1])<<6|63&e[a+2])),a+=3)}return t.join("")}},d=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],a=0;a>4]+o[15&r])}return t.join("")}}),f={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],b=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],m=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],x=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],A=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],k=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function I(e){for(var t=[],a=0;a>2,this._Ke[a][t%4]=c[t],this._Kd[e-a][t%4]=c[t];for(var i,o=0,s=n;s>16&255]<<24^b[i>>8&255]<<16^b[255&i]<<8^b[i>>24&255]^u[o]<<24,o+=1,8!=n)for(t=1;t>8&255]<<8^b[i>>16&255]<<16^b[i>>24&255]<<24,t=n/2+1;t>2,l=s%4,this._Ke[d][l]=c[t],this._Kd[e-d][l]=c[t++],s++}for(var d=1;d>24&255]^k[i>>16&255]^S[i>>8&255]^E[255&i]},M.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,a=[0,0,0,0],r=I(e),n=0;n<4;n++)r[n]^=this._Ke[0][n];for(var i=1;i>24&255]^p[r[(n+1)%4]>>16&255]^m[r[(n+2)%4]>>8&255]^y[255&r[(n+3)%4]]^this._Ke[i][n];r=a.slice()}var o,s=c(16);for(n=0;n<4;n++)o=this._Ke[t][n],s[4*n]=255&(b[r[n]>>24&255]^o>>24),s[4*n+1]=255&(b[r[(n+1)%4]>>16&255]^o>>16),s[4*n+2]=255&(b[r[(n+2)%4]>>8&255]^o>>8),s[4*n+3]=255&(b[255&r[(n+3)%4]]^o);return s},M.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,a=[0,0,0,0],r=I(e),n=0;n<4;n++)r[n]^=this._Kd[0][n];for(var i=1;i>24&255]^x[r[(n+3)%4]>>16&255]^v[r[(n+2)%4]>>8&255]^w[255&r[(n+1)%4]]^this._Kd[i][n];r=a.slice()}var o,s=c(16);for(n=0;n<4;n++)o=this._Kd[t][n],s[4*n]=255&(l[r[n]>>24&255]^o>>24),s[4*n+1]=255&(l[r[(n+3)%4]>>16&255]^o>>16),s[4*n+2]=255&(l[r[(n+2)%4]>>8&255]^o>>8),s[4*n+3]=255&(l[255&r[(n+1)%4]]^o);return s};var C=function(e){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new M(e)};C.prototype.encrypt=function(e){if((e=n(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=c(e.length),a=c(16),r=0;rNumber.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},N.prototype.setBytes=function(e){if(16!=(e=n(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},N.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var R=function(e,t){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof N||(t=new N(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new M(e)};R.prototype.encrypt=function(e){for(var t=n(e,!0),a=0;a16)throw new Error("PKCS#7 padding byte out of range");for(var a=e.length-t,r=0;r{"use strict";const r=t;r.bignum=a(90735),r.define=a(45192).define,r.base=a(84798),r.constants=a(96906),r.decoders=a(18211),r.encoders=a(89116)},45192:(e,t,a)=>{"use strict";const r=a(89116),n=a(18211),c=a(91285);function i(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new i(e,t)},i.prototype._createNamed=function(e){const t=this.name;function a(e){this._initNamed(e,t)}return c(a,e),a.prototype._initNamed=function(t,a){e.call(this,t,a)},new a(this)},i.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n[e])),this.decoders[e]},i.prototype.decode=function(e,t,a){return this._getDecoder(t).decode(e,a)},i.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},i.prototype.encode=function(e,t,a){return this._getEncoder(t).encode(e,a)}},47362:(e,t,a)=>{"use strict";const r=a(91285),n=a(80126).b,c=a(27654).Buffer;function i(e,t){n.call(this,t),c.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=c.byteLength(e);else{if(!c.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(i,n),t.C=i,i.isDecoderBuffer=function(e){return e instanceof i||"object"==typeof e&&c.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},i.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},i.prototype.restore=function(e){const t=new i(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},i.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const a=new i(this.base);return a._reporterState=this._reporterState,a.offset=this.offset,a.length=this.offset+e,this.offset+=e,a},i.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=o,o.isEncoderBuffer=function(e){return e instanceof o||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},o.prototype.join=function(e,t){return e||(e=c.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(a){a.join(e,t),t+=a.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):c.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},84798:(e,t,a)=>{"use strict";const r=t;r.Reporter=a(80126).b,r.DecoderBuffer=a(47362).C,r.EncoderBuffer=a(47362).R,r.Node=a(80847)},80847:(e,t,a)=>{"use strict";const r=a(80126).b,n=a(47362).R,c=a(47362).C,i=a(79561),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function d(e,t,a){const r={};this._baseState=r,r.name=a,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=d;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){const e=this._baseState,t={};f.forEach((function(a){t[a]=e[a]}));const a=new this.constructor(t.parent);return a._baseState=t,a},d.prototype._wrap=function(){const e=this._baseState;s.forEach((function(t){this[t]=function(){const a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}}),this)},d.prototype._init=function(e){const t=this._baseState;i(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),i.equal(t.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(e){const t=this._baseState,a=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==a.length&&(i(null===t.children),t.children=a,a.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(i(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(a){a==(0|a)&&(a|=0);const r=e[a];t[r]=a})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){d.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),o.forEach((function(e){d.prototype[e]=function(){const t=this._baseState,a=Array.prototype.slice.call(arguments);return i(null===t.tag),t.tag=e,this._useArgs(a),this}})),d.prototype.use=function(e){i(e);const t=this._baseState;return i(null===t.use),t.use=e,this},d.prototype.optional=function(){return this._baseState.optional=!0,this},d.prototype.def=function(e){const t=this._baseState;return i(null===t.default),t.default=e,t.optional=!0,this},d.prototype.explicit=function(e){const t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.explicit=e,this},d.prototype.implicit=function(e){const t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.implicit=e,this},d.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},d.prototype.key=function(e){const t=this._baseState;return i(null===t.key),t.key=e,this},d.prototype.any=function(){return this._baseState.any=!0,this},d.prototype.choice=function(e){const t=this._baseState;return i(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},d.prototype.contains=function(e){const t=this._baseState;return i(null===t.use),t.contains=e,this},d.prototype._decode=function(e,t){const a=this._baseState;if(null===a.parent)return e.wrapResult(a.children[0]._decode(e,t));let r,n=a.default,i=!0,o=null;if(null!==a.key&&(o=e.enterKey(a.key)),a.optional){let r=null;if(null!==a.explicit?r=a.explicit:null!==a.implicit?r=a.implicit:null!==a.tag&&(r=a.tag),null!==r||a.any){if(i=this._peekTag(e,r,a.any),e.isError(i))return i}else{const r=e.save();try{null===a.choice?this._decodeGeneric(a.tag,e,t):this._decodeChoice(e,t),i=!0}catch(e){i=!1}e.restore(r)}}if(a.obj&&i&&(r=e.enterObject()),i){if(null!==a.explicit){const t=this._decodeTag(e,a.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===a.use&&null===a.choice){let t;a.any&&(t=e.save());const r=this._decodeTag(e,null!==a.implicit?a.implicit:a.tag,a.any);if(e.isError(r))return r;a.any?n=e.raw(t):e=r}if(t&&t.track&&null!==a.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==a.tag&&t.track(e.path(),e.offset,e.length,"content"),a.any||(n=null===a.choice?this._decodeGeneric(a.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(a.any||null!==a.choice||null===a.children||a.children.forEach((function(a){a._decode(e,t)})),a.contains&&("octstr"===a.tag||"bitstr"===a.tag)){const r=new c(n);n=this._getUse(a.contains,e._reporterState.obj)._decode(r,t)}}return a.obj&&i&&(n=e.leaveObject(r)),null===a.key||null===n&&!0!==i?null!==o&&e.exitKey(o):e.leaveKey(o,a.key,n),n},d.prototype._decodeGeneric=function(e,t,a){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],a):/str$/.test(e)?this._decodeStr(t,e,a):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],a):"objid"===e?this._decodeObjid(t,null,null,a):"gentime"===e||"utctime"===e?this._decodeTime(t,e,a):"null_"===e?this._decodeNull(t,a):"bool"===e?this._decodeBool(t,a):"objDesc"===e?this._decodeStr(t,e,a):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],a):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,a):t.error("unknown tag: "+e)},d.prototype._getUse=function(e,t){const a=this._baseState;return a.useDecoder=this._use(e,t),i(null===a.useDecoder._baseState.parent),a.useDecoder=a.useDecoder._baseState.children[0],a.implicit!==a.useDecoder._baseState.implicit&&(a.useDecoder=a.useDecoder.clone(),a.useDecoder._baseState.implicit=a.implicit),a.useDecoder},d.prototype._decodeChoice=function(e,t){const a=this._baseState;let r=null,n=!1;return Object.keys(a.choice).some((function(c){const i=e.save(),o=a.choice[c];try{const a=o._decode(e,t);if(e.isError(a))return!1;r={type:c,value:a},n=!0}catch(t){return e.restore(i),!1}return!0}),this),n?r:e.error("Choice not matched")},d.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},d.prototype._encode=function(e,t,a){const r=this._baseState;if(null!==r.default&&r.default===e)return;const n=this._encodeValue(e,t,a);return void 0===n||this._skipDefault(n,t,a)?void 0:n},d.prototype._encodeValue=function(e,t,a){const n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new r);let c=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}let i=null,o=!1;if(n.any)c=this._createEncoderBuffer(e);else if(n.choice)c=this._encodeChoice(e,t);else if(n.contains)i=this._getUse(n.contains,a)._encode(e,t),o=!0;else if(n.children)i=n.children.map((function(a){if("null_"===a._baseState.tag)return a._encode(null,t,e);if(null===a._baseState.key)return t.error("Child should have a key");const r=t.enterKey(a._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const n=a._encode(e[a._baseState.key],t,e);return t.leaveKey(r),n}),this).filter((function(e){return e})),i=this._createEncoderBuffer(i);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const a=this.clone();a._baseState.implicit=null,i=this._createEncoderBuffer(e.map((function(a){const r=this._baseState;return this._getUse(r.args[0],e)._encode(a,t)}),a))}else null!==n.use?c=this._getUse(n.use,a)._encode(e,t):(i=this._encodePrimitive(n.tag,e),o=!0);if(!n.any&&null===n.choice){const e=null!==n.implicit?n.implicit:n.tag,a=null===n.implicit?"universal":"context";null===e?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(c=this._encodeComposite(e,o,a,i))}return null!==n.explicit&&(c=this._encodeComposite(n.explicit,!1,"context",c)),c},d.prototype._encodeChoice=function(e,t){const a=this._baseState,r=a.choice[e.type];return r||i(!1,e.type+" not found in "+JSON.stringify(Object.keys(a.choice))),r._encode(e.value,t)},d.prototype._encodePrimitive=function(e,t){const a=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&a.args)return this._encodeObjid(t,a.reverseArgs[0],a.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,a.args&&a.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},d.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},d.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},80126:(e,t,a)=>{"use strict";const r=a(91285);function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function c(e,t){this.path=e,this.rethrow(t)}t.b=n,n.prototype.isError=function(e){return e instanceof c},n.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,a){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=a)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){const t=this._reporterState,a=t.obj;return t.obj=e,a},n.prototype.error=function(e){let t;const a=this._reporterState,r=e instanceof c;if(t=r?e:new c(a.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!a.options.partial)throw t;return r||a.errors.push(t),t},n.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(c,Error),c.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,c),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},4131:(e,t)=>{"use strict";function a(e){const t={};return Object.keys(e).forEach((function(a){(0|a)==a&&(a|=0);const r=e[a];t[r]=a})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=a(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=a(t.tag)},96906:(e,t,a)=>{"use strict";const r=t;r._reverse=function(e){const t={};return Object.keys(e).forEach((function(a){(0|a)==a&&(a|=0);const r=e[a];t[r]=a})),t},r.der=a(4131)},41066:(e,t,a)=>{"use strict";const r=a(91285),n=a(90735),c=a(47362).C,i=a(80847),o=a(4131);function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){i.call(this,"der",e)}function f(e,t){let a=e.readUInt8(t);if(e.isError(a))return a;const r=o.tagClass[a>>6],n=0==(32&a);if(31==(31&a)){let r=a;for(a=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;a<<=7,a|=127&r}}else a&=31;return{cls:r,primitive:n,tag:a,tagStr:o.tag[a]}}function u(e,t,a){let r=e.readUInt8(a);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const n=127&r;if(n>4)return e.error("length octect is too long");r=0;for(let t=0;t{"use strict";const r=t;r.der=a(41066),r.pem=a(63956)},63956:(e,t,a)=>{"use strict";const r=a(91285),n=a(27654).Buffer,c=a(41066);function i(e){c.call(this,e),this.enc="pem"}r(i,c),e.exports=i,i.prototype.decode=function(e,t){const a=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/;let o=-1,s=-1;for(let e=0;e{"use strict";const r=a(91285),n=a(27654).Buffer,c=a(80847),i=a(4131);function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){c.call(this,"der",e)}function d(e){return e<10?"0"+e:e}e.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(s,c),s.prototype._encodeComposite=function(e,t,a,r){const c=function(e,t,a,r){let n;if("seqof"===e?e="seq":"setof"===e&&(e="set"),i.tagByName.hasOwnProperty(e))n=i.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);n=e}return n>=31?r.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=i.tagClassByName[a||"universal"]<<6,n)}(e,t,a,this.reporter);if(r.length<128){const e=n.alloc(2);return e[0]=c,e[1]=r.length,this._createEncoderBuffer([e,r])}let o=1;for(let e=r.length;e>=256;e>>=8)o++;const s=n.alloc(2+o);s[0]=c,s[1]=128|o;for(let e=1+o,t=r.length;t>0;e--,t>>=8)s[e]=255&t;return this._createEncoderBuffer([s,r])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=n.alloc(2*e.length);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t=128;a>>=7)r++}const c=n.alloc(r);let i=c.length-1;for(let t=e.length-1;t>=0;t--){let a=e[t];for(c[i--]=127&a;(a>>=7)>0;)c[i--]=128|127&a}return this._createEncoderBuffer(c)},s.prototype._encodeTime=function(e,t){let a;const r=new Date(e);return"gentime"===t?a=[d(r.getUTCFullYear()),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?a=[d(r.getUTCFullYear()%100),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(a,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.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)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=n.from(t)}if(n.isBuffer(e)){let t=e.length;0===e.length&&t++;const a=n.alloc(t);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let a=1;for(let t=e;t>=256;t>>=8)a++;const r=new Array(a);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(n.from(r))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,a){const r=this._baseState;let n;if(null===r.default)return!1;const c=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,a).join()),c.length!==r.defaultBuffer.length)return!1;for(n=0;n{"use strict";const r=t;r.der=a(95758),r.pem=a(99245)},99245:(e,t,a)=>{"use strict";const r=a(91285),n=a(95758);function c(e){n.call(this,e),this.enc="pem"}r(c,n),e.exports=c,c.prototype.encode=function(e,t){const a=n.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let e=0;e=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},71696:(e,t,a)=>{"use strict";var r=a(34406);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},n(e)}var c,i,o=a(47515).codes,s=o.ERR_AMBIGUOUS_ARGUMENT,d=o.ERR_INVALID_ARG_TYPE,f=o.ERR_INVALID_ARG_VALUE,u=o.ERR_INVALID_RETURN_VALUE,b=o.ERR_MISSING_ARGS,l=a(64082),h=a(43335).inspect,p=a(43335).types,m=p.isPromise,y=p.isRegExp,g=Object.assign?Object.assign:a(44956).assign,x=Object.is?Object.is:a(34679);function v(){var e=a(26796);c=e.isDeepEqual,i=e.isDeepStrictEqual}new Map;var w=!1,A=e.exports=I,k={};function S(e){if(e.message instanceof Error)throw e.message;throw new l(e)}function E(e,t,a,r){if(!a){var n=!1;if(0===t)n=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var c=new l({actual:a,expected:!0,message:r,operator:"==",stackStartFn:e});throw c.generatedMessage=n,c}}function I(){for(var e=arguments.length,t=new Array(e),a=0;a1?a-1:0),n=1;n1?a-1:0),n=1;n1?a-1:0),n=1;n1?a-1:0),n=1;n{"use strict";var r=a(34406);function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(e,t){for(var a=0;ae.length)&&(a=e.length),e.substring(a-t.length,a)===t}var y="",g="",x="",v="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function A(e){var t=Object.keys(e),a=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){a[t]=e[t]})),Object.defineProperty(a,"message",{value:e.message}),a}function k(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var S=function(e){function t(e){var a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==l(e)||null===e)throw new p("options","Object",e);var n=e.message,c=e.operator,s=e.stackStartFn,d=e.actual,f=e.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)a=i(this,b(t).call(this,String(n)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="",g="",v="",x=""):(y="",g="",v="",x="")),"object"===l(d)&&null!==d&&"object"===l(f)&&null!==f&&"stack"in d&&d instanceof Error&&"stack"in f&&f instanceof Error&&(d=A(d),f=A(f)),"deepStrictEqual"===c||"strictEqual"===c)a=i(this,b(t).call(this,function(e,t,a){var n="",c="",i=0,o="",s=!1,d=k(e),f=d.split("\n"),u=k(t).split("\n"),b=0,h="";if("strictEqual"===a&&"object"===l(e)&&"object"===l(t)&&null!==e&&null!==t&&(a="strictEqualObject"),1===f.length&&1===u.length&&f[0]!==u[0]){var p=f[0].length+u[0].length;if(p<=10){if(!("object"===l(e)&&null!==e||"object"===l(t)&&null!==t||0===e&&0===t))return"".concat(w[a],"\n\n")+"".concat(f[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==a&&p<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;f[0][b]===u[0][b];)b++;b>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var a=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,a-e.length)}(" ",b),"^"),b=0)}}for(var A=f[f.length-1],S=u[u.length-1];A===S&&(b++<2?o="\n ".concat(A).concat(o):n=A,f.pop(),u.pop(),0!==f.length&&0!==u.length);)A=f[f.length-1],S=u[u.length-1];var E=Math.max(f.length,u.length);if(0===E){var I=d.split("\n");if(I.length>30)for(I[26]="".concat(y,"...").concat(v);I.length>27;)I.pop();return"".concat(w.notIdentical,"\n\n").concat(I.join("\n"),"\n")}b>3&&(o="\n".concat(y,"...").concat(v).concat(o),s=!0),""!==n&&(o="\n ".concat(n).concat(o),n="");var M=0,C=w[a]+"\n".concat(g,"+ actual").concat(v," ").concat(x,"- expected").concat(v),P=" ".concat(y,"...").concat(v," Lines skipped");for(b=0;b1&&b>2&&(T>4?(c+="\n".concat(y,"...").concat(v),s=!0):T>3&&(c+="\n ".concat(u[b-2]),M++),c+="\n ".concat(u[b-1]),M++),i=b,n+="\n".concat(x,"-").concat(v," ").concat(u[b]),M++;else if(u.length1&&b>2&&(T>4?(c+="\n".concat(y,"...").concat(v),s=!0):T>3&&(c+="\n ".concat(f[b-2]),M++),c+="\n ".concat(f[b-1]),M++),i=b,c+="\n".concat(g,"+").concat(v," ").concat(f[b]),M++;else{var O=u[b],N=f[b],R=N!==O&&(!m(N,",")||N.slice(0,-1)!==O);R&&m(O,",")&&O.slice(0,-1)===N&&(R=!1,N+=","),R?(T>1&&b>2&&(T>4?(c+="\n".concat(y,"...").concat(v),s=!0):T>3&&(c+="\n ".concat(f[b-2]),M++),c+="\n ".concat(f[b-1]),M++),i=b,c+="\n".concat(g,"+").concat(v," ").concat(N),n+="\n".concat(x,"-").concat(v," ").concat(O),M+=2):(c+=n,n="",1!==T&&0!==b||(c+="\n ".concat(N),M++))}if(M>20&&b30)for(S[26]="".concat(y,"...").concat(v);S.length>27;)S.pop();a=1===S.length?i(this,b(t).call(this,"".concat(h," ").concat(S[0]))):i(this,b(t).call(this,"".concat(h,"\n\n").concat(S.join("\n"),"\n")))}else{var E=k(d),I="",M=w[c];"notDeepEqual"===c||"notEqual"===c?(E="".concat(w[c],"\n\n").concat(E)).length>1024&&(E="".concat(E.slice(0,1021),"...")):(I="".concat(k(f)),E.length>512&&(E="".concat(E.slice(0,509),"...")),I.length>512&&(I="".concat(I.slice(0,509),"...")),"deepEqual"===c||"equal"===c?E="".concat(M,"\n\n").concat(E,"\n\nshould equal\n\n"):I=" ".concat(c," ").concat(I)),a=i(this,b(t).call(this,"".concat(E).concat(I)))}return Error.stackTraceLimit=u,a.generatedMessage=!n,Object.defineProperty(o(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=d,a.expected=f,a.operator=c,Error.captureStackTrace&&Error.captureStackTrace(o(a),s),a.stack,a.name="AssertionError",i(a)}var a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),a=t,s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t{"use strict";function r(e){return r="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},r(e)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}var i,o,s={};function d(e,t,a){a||(a=Error);var i=function(a){function i(a,c,o){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),s=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n(i).call(this,function(e,a,r){return"string"==typeof t?t:t(e,a,r)}(a,c,o))),s.code=e,s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(i,a),i}(a);s[e]=i}function f(e,t){if(Array.isArray(e)){var a=e.length;return e=e.map((function(e){return String(e)})),a>2?"one of ".concat(t," ").concat(e.slice(0,a-1).join(", "),", or ")+e[a-1]:2===a?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",(function(e,t,n){var c,o,s,d,u;if(void 0===i&&(i=a(71696)),i("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(c="must not be",t=t.replace(/^not /,"")):c="must be",function(e,t,a){return(void 0===a||a>e.length)&&(a=e.length),e.substring(a-t.length,a)===t}(e," argument"))s="The ".concat(e," ").concat(c," ").concat(f(t,"type"));else{var b=("number"!=typeof u&&(u=0),u+".".length>(d=e).length||-1===d.indexOf(".",u)?"argument":"property");s='The "'.concat(e,'" ').concat(b," ").concat(c," ").concat(f(t,"type"))}return s+". Received type ".concat(r(n))}),TypeError),d("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=a(43335));var n=o.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)}),TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",(function(e,t,a){var n;return n=a&&a.constructor&&a.constructor.name?"instance of ".concat(a.constructor.name):"type ".concat(r(a)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")}),TypeError),d("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",c=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),c){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,c-1).join(", "),n+=", and ".concat(t[c-1]," arguments")}return"".concat(n," must be specified")}),TypeError),e.exports.codes=s},26796:(e,t,a)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=[],r=!0,n=!1,c=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){n=!0,c=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw c}}return a}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}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},n(e)}var c=void 0!==/a/g.flags,i=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},o=function(e){var t=[];return e.forEach((function(e,a){return t.push([a,e])})),t},s=Object.is?Object.is:a(34679),d=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:a(74782);function u(e){return e.call.bind(e)}var b=u(Object.prototype.hasOwnProperty),l=u(Object.prototype.propertyIsEnumerable),h=u(Object.prototype.toString),p=a(43335).types,m=p.isAnyArrayBuffer,y=p.isArrayBufferView,g=p.isDate,x=p.isMap,v=p.isRegExp,w=p.isSet,A=p.isNativeError,k=p.isBoxedPrimitive,S=p.isNumberObject,E=p.isStringObject,I=p.isBooleanObject,M=p.isBigIntObject,C=p.isSymbolObject,P=p.isFloat32Array,T=p.isFloat64Array;function O(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function N(e){return Object.keys(e).filter(O).concat(d(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var a=e.length,r=t.length,n=0,c=Math.min(a,r);n{e.exports="object"==typeof self?self.FormData:window.FormData},67246:(e,t,a)=>{e.exports={equilibrium:a(4456),equilibriumNext:a(72143),genshiro:a(11679)}},18166:(e,t,a)=>{"use strict";var r=a(77834).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),a=0;a>>0,f=new Uint8Array(i);e[a];){var u=t[e.charCodeAt(a)];if(255===u)return;for(var b=0,l=i-1;(0!==u||b>>0,f[l]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");c=b,a++}for(var h=i-c;h!==i&&0===f[h];)h++;var p=r.allocUnsafe(n+(i-h));p.fill(0,0,n);for(var m=n;h!==i;)p[m++]=f[h++];return p}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var a=0,n=0,c=0,i=t.length;c!==i&&0===t[c];)c++,a++;for(var d=(i-c)*f+1>>>0,u=new Uint8Array(d);c!==i;){for(var b=t[c],l=0,h=d-1;(0!==b||l>>0,u[h]=b%o>>>0,b=b/o>>>0;if(0!==b)throw new Error("Non-zero carry");n=l,c++}for(var p=d-n;p!==d&&0===u[p];)p++;for(var m=s.repeat(a);p{"use strict";t.byteLength=function(e){var t=s(e),a=t[0],r=t[1];return 3*(a+r)/4-r},t.toByteArray=function(e){var t,a,c=s(e),i=c[0],o=c[1],d=new n(function(e,t,a){return 3*(t+a)/4-a}(0,i,o)),f=0,u=o>0?i-4:i;for(a=0;a>16&255,d[f++]=t>>8&255,d[f++]=255&t;return 2===o&&(t=r[e.charCodeAt(a)]<<2|r[e.charCodeAt(a+1)]>>4,d[f++]=255&t),1===o&&(t=r[e.charCodeAt(a)]<<10|r[e.charCodeAt(a+1)]<<4|r[e.charCodeAt(a+2)]>>2,d[f++]=t>>8&255,d[f++]=255&t),d},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,c=[],i=16383,o=0,s=r-n;os?s:o+i));return 1===n?(t=e[r-1],c.push(a[t>>2]+a[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],c.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),c.join("")};for(var a=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=c.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.indexOf("=");return-1===a&&(a=t),[a,a===t?0:4-a%4]}function d(e,t,r){for(var n,c,i=[],o=t;o>18&63]+a[c>>12&63]+a[c>>6&63]+a[63&c]);return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},66487:function(e,t,a){e=a.nmd(e);var r,n,c=a(34406);void 0===(n="function"==typeof(r=function(){"use strict";var t={},r=null;function n(t){if(e&&e.exports)try{return a(5634).randomBytes(t)}catch(e){}try{var n;return(self.crypto||self.msCrypto).getRandomValues(n=new Uint32Array(t)),Array.prototype.slice.call(n)}catch(e){}if(!r)throw Error("Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative");return r(t)}try{n(1)}catch(e){}function i(e,t){for(var a=0,r=0,n=0,c=e.length;n31&&(e=31);var a=[];return a.push("$2a$"),e<10&&a.push("0"),a.push(e.toString()),a.push("$"),a.push(u(n(h),h)),a.join("")},t.genSalt=function(e,a,r){if("function"==typeof a&&(r=a,a=void 0),"function"==typeof e&&(r=e,e=void 0),void 0===e)e=p;else if("number"!=typeof e)throw Error("illegal arguments: "+typeof e);function n(a){o((function(){try{a(null,t.genSaltSync(e))}catch(e){a(e)}}))}if(!r)return new Promise((function(e,t){n((function(a,r){a?t(a):e(r)}))}));if("function"!=typeof r)throw Error("Illegal callback: "+typeof r);n(r)},t.hashSync=function(e,a){if(void 0===a&&(a=p),"number"==typeof a&&(a=t.genSaltSync(a)),"string"!=typeof e||"string"!=typeof a)throw Error("Illegal arguments: "+typeof e+", "+typeof a);return k(e,a)},t.hash=function(e,a,r,n){function c(r){"string"==typeof e&&"number"==typeof a?t.genSalt(a,(function(t,a){k(e,a,r,n)})):"string"==typeof e&&"string"==typeof a?k(e,a,r,n):o(r.bind(this,Error("Illegal arguments: "+typeof e+", "+typeof a)))}if(!r)return new Promise((function(e,t){c((function(a,r){a?t(a):e(r)}))}));if("function"!=typeof r)throw Error("Illegal callback: "+typeof r);c(r)},t.compareSync=function(e,a){if("string"!=typeof e||"string"!=typeof a)throw Error("Illegal arguments: "+typeof e+", "+typeof a);return 60===a.length&&i(t.hashSync(e,a.substr(0,a.length-31)),a)},t.compare=function(e,a,r,n){function c(r){"string"==typeof e&&"string"==typeof a?60===a.length?t.hash(e,a.substr(0,29),(function(e,t){e?r(e):r(null,i(t,a))}),n):o(r.bind(this,null,!1)):o(r.bind(this,Error("Illegal arguments: "+typeof e+", "+typeof a)))}if(!r)return new Promise((function(e,t){c((function(a,r){a?t(a):e(r)}))}));if("function"!=typeof r)throw Error("Illegal callback: "+typeof r);c(r)},t.getRounds=function(e){if("string"!=typeof e)throw Error("Illegal arguments: "+typeof e);return parseInt(e.split("$")[2],10)},t.getSalt=function(e){if("string"!=typeof e)throw Error("Illegal arguments: "+typeof e);if(60!==e.length)throw Error("Illegal hash length: "+e.length+" != 60");return e.substring(0,29)};var o=void 0!==c&&c&&"function"==typeof c.nextTick?"function"==typeof setImmediate?setImmediate:c.nextTick:setTimeout;var s="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,54,55,56,57,58,59,60,61,62,63,-1,-1,-1,-1,-1,-1,-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,-1,-1,-1,-1,-1,-1,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,-1,-1,-1,-1,-1],f=String.fromCharCode;function u(e,t){var a,r,n=0,c=[];if(t<=0||t>e.length)throw Error("Illegal len: "+t);for(;n>2&63]),a=(3&a)<<4,n>=t){c.push(s[63&a]);break}if(a|=(r=255&e[n++])>>4&15,c.push(s[63&a]),a=(15&r)<<2,n>=t){c.push(s[63&a]);break}a|=(r=255&e[n++])>>6&3,c.push(s[63&a]),c.push(s[63&r])}return c.join("")}function b(e,t){var a,r,n,c,i,o=0,s=e.length,u=0,b=[];if(t<=0)throw Error("Illegal len: "+t);for(;o>>0,c|=(48&r)>>4,b.push(f(c)),!(++u>=t||o>=s))&&-1!=(n=(i=e.charCodeAt(o++))>>0,c|=(60&n)>>2,b.push(f(c)),!(++u>=t||o>=s));)c=(3&n)<<6>>>0,c|=(i=e.charCodeAt(o++))>6&31|192),t(63&a|128)):a<65536?(t(a>>12&15|224),t(a>>6&63|128),t(63&a|128)):(t(a>>18&7|240),t(a>>12&63|128),t(a>>6&63|128),t(63&a|128)),a=null},decodeUTF8:function(e,t){for(var a,r,n,c,i=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(a=e());)if(0==(128&a))t(a);else if(192==(224&a))null===(r=e())&&i([a,r]),t((31&a)<<6|63&r);else if(224==(240&a))(null===(r=e())||null===(n=e()))&&i([a,r,n]),t((15&a)<<12|(63&r)<<6|63&n);else{if(240!=(248&a))throw RangeError("Illegal starting byte: "+a);(null===(r=e())||null===(n=e())||null===(c=e()))&&i([a,r,n,c]),t((7&a)<<18|(63&r)<<12|(63&n)<<6|63&c)}},UTF16toUTF8:function(e,t){for(var a,r=null;null!==(a=null!==r?r:e());)a>=55296&&a<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(a-55296)+r-56320+65536),r=null):t(a);null!==r&&t(r)},UTF8toUTF16:function(e,t){var a=null;for("number"==typeof e&&(a=e,e=function(){return null});null!==a||null!==(a=e());)a<=65535?t(a):(t(55296+((a-=65536)>>10)),t(a%1024+56320)),a=null},encodeUTF16toUTF8:function(t,a){e.UTF16toUTF8(t,(function(t){e.encodeUTF8(t,a)}))},decodeUTF8toUTF16:function(t,a){e.decodeUTF8(t,(function(t){e.UTF8toUTF16(t,a)}))},calculateCodePoint:function(e){return e<128?1:e<2048?2:e<65536?3:4},calculateUTF8:function(t){for(var a,r=0;null!==(a=t());)r+=e.calculateCodePoint(a);return r},calculateUTF16asUTF8:function(t){var a=0,r=0;return e.UTF16toUTF8(t,(function(t){++a,r+=e.calculateCodePoint(t)})),[a,r]}};return e}();Date.now=Date.now||function(){return+new Date};var h=16,p=10,m=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],y=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],g=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892];function x(e,t,a,r){var n,c=e[t],i=e[t+1];return n=r[(c^=a[0])>>>24],n+=r[256|c>>16&255],n^=r[512|c>>8&255],n=r[(i^=(n+=r[768|255&c])^a[1])>>>24],n+=r[256|i>>16&255],n^=r[512|i>>8&255],n=r[(c^=(n+=r[768|255&i])^a[2])>>>24],n+=r[256|c>>16&255],n^=r[512|c>>8&255],n=r[(i^=(n+=r[768|255&c])^a[3])>>>24],n+=r[256|i>>16&255],n^=r[512|i>>8&255],n=r[(c^=(n+=r[768|255&i])^a[4])>>>24],n+=r[256|c>>16&255],n^=r[512|c>>8&255],n=r[(i^=(n+=r[768|255&c])^a[5])>>>24],n+=r[256|i>>16&255],n^=r[512|i>>8&255],n=r[(c^=(n+=r[768|255&i])^a[6])>>>24],n+=r[256|c>>16&255],n^=r[512|c>>8&255],n=r[(i^=(n+=r[768|255&c])^a[7])>>>24],n+=r[256|i>>16&255],n^=r[512|i>>8&255],n=r[(c^=(n+=r[768|255&i])^a[8])>>>24],n+=r[256|c>>16&255],n^=r[512|c>>8&255],n=r[(i^=(n+=r[768|255&c])^a[9])>>>24],n+=r[256|i>>16&255],n^=r[512|i>>8&255],n=r[(c^=(n+=r[768|255&i])^a[10])>>>24],n+=r[256|c>>16&255],n^=r[512|c>>8&255],n=r[(i^=(n+=r[768|255&c])^a[11])>>>24],n+=r[256|i>>16&255],n^=r[512|i>>8&255],n=r[(c^=(n+=r[768|255&i])^a[12])>>>24],n+=r[256|c>>16&255],n^=r[512|c>>8&255],n=r[(i^=(n+=r[768|255&c])^a[13])>>>24],n+=r[256|i>>16&255],n^=r[512|i>>8&255],n=r[(c^=(n+=r[768|255&i])^a[14])>>>24],n+=r[256|c>>16&255],n^=r[512|c>>8&255],n=r[(i^=(n+=r[768|255&c])^a[15])>>>24],n+=r[256|i>>16&255],n^=r[512|i>>8&255],c^=(n+=r[768|255&i])^a[16],e[t]=i^a[17],e[t+1]=c,e}function v(e,t){for(var a=0,r=0;a<4;++a)r=r<<8|255&e[t],t=(t+1)%e.length;return{key:r,offp:t}}function w(e,t,a){for(var r,n=0,c=[0,0],i=t.length,o=a.length,s=0;s31){if(c=Error("Illegal number of rounds (4-31): "+a),r)return void o(r.bind(this,c));throw c}if(t.length!==h){if(c=Error("Illegal salt length: "+t.length+" != "+h),r)return void o(r.bind(this,c));throw c}a=1<>>0;var d,f,u,b=0;function l(){if(n&&n(b/a),!(b>1;u++)x(i,u<<1,d,f);var c=[];for(b=0;b>24&255)>>>0),c.push((i[b]>>16&255)>>>0),c.push((i[b]>>8&255)>>>0),c.push((255&i[b])>>>0);return r?void r(null,c):c}for(var h=Date.now();b100)););r&&o(l)}if(Int32Array?(d=new Int32Array(m),f=new Int32Array(y)):(d=m.slice(),f=y.slice()),function(e,t,a,r){for(var n,c=0,i=[0,0],o=a.length,s=r.length,d=0;d"$"){if(n=Error("Missing salt rounds"),a)return void o(a.bind(this,n));throw n}var s,d,f,p=10*parseInt(t.substring(i,i+1),10)+parseInt(t.substring(i+1,i+2),10),m=t.substring(i+3,i+25),y=(s=e+=c>="a"?"\0":"",d=[],f=0,l.encodeUTF16toUTF8((function(){return f>=s.length?null:s.charCodeAt(f++)}),(function(e){d.push(e)})),d),x=b(m,h);function v(e){var t=[];return t.push("$2"),c>="a"&&t.push(c),t.push("$"),p<10&&t.push("0"),t.push(p.toString()),t.push("$"),t.push(u(x,x.length)),t.push(u(e,4*g.length-1)),t.join("")}if(void 0===a)return v(A(y,x,p));A(y,x,p,(function(e,t){e?a(e,null):a(null,v(t))}),r)}return t.encodeBase64=u,t.decodeBase64=b,t})?r.apply(t,[]):r)||(e.exports=n)},62197:function(e,t,a){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function c(e,t,a){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var i;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:a(33196).Buffer}catch(e){}function o(e,t){var a=e.charCodeAt(t);return a>=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:void r(!1,"Invalid character in "+e)}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,n){for(var c=0,i=0,o=Math.min(e.length,a),s=t;s=49?d-49+10:d>=17?d-17+10:d,r(d>=0&&i0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this._strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this._strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){c.prototype.inspect=u}else c.prototype.inspect=u;function u(){return(this.red?""}var b=["","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"],l=[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 p(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a._strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215,(n+=2)>=26&&(n-=26,i--),a=0!==c||i!==this.length-1?b[6-s.length]+s+a:s+a}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],f=h[e];a="";var u=this.clone();for(u.negative=0;!u.isZero();){var p=u.modrn(f).toString(e);a=(u=u.idivn(f)).isZero()?p+a:b[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16,2)},i&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){this._strip();var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var i=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](i,n),i},c.prototype._toArrayLikeLE=function(e,t){for(var a=0,r=0,n=0,c=0;n>8&255),a>16&255),6===c?(a>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a=0&&(e[a--]=i>>8&255),a>=0&&(e[a--]=i>>16&255),6===c?(a>=0&&(e[a--]=i>>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a>=0)for(e[a--]=r;a>=0;)e[a--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this._strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function y(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a._strip()}function g(e,t,a){return y(e,t,a)}function x(e,t){this.x=e,this.y=t}Math.imul||(m=p),c.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):a<63?p(this,e,t):a<1024?y(this,e,t):g(this,e,t)},x.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},x.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,a+=c/67108864|0,a+=i>>>26,this.words[n]=67108863&i}return 0!==a&&(this.words[n]=a,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n&1}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this._strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o._strip(),r._strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=(1<<26)%e,n=0,c=this.length-1;c>=0;c--)n=(a*n+(0|this.words[c]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=0,n=this.length-1;n>=0;n--){var c=(0|this.words[n])+67108864*a;this.words[n]=c/e|0,a=c%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this._strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new I(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(A,w),A.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},A.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new A;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},I.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},I.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new M(e)},n(M,I),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},82745:(e,t,a)=>{var r;function n(e){this.rand=e}if(e.exports=function(e){return r||(r=new n(null)),r.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),a=0;a{var r=a(77834).Buffer;function n(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,a=new Array(t),n=0;n>>24]^f[h>>>16&255]^u[p>>>8&255]^b[255&m]^t[y++],i=d[h>>>24]^f[p>>>16&255]^u[m>>>8&255]^b[255&l]^t[y++],o=d[p>>>24]^f[m>>>16&255]^u[l>>>8&255]^b[255&h]^t[y++],s=d[m>>>24]^f[l>>>16&255]^u[h>>>8&255]^b[255&p]^t[y++],l=c,h=i,p=o,m=s;return c=(r[l>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[y++],i=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&l])^t[y++],o=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[l>>>8&255]<<8|r[255&h])^t[y++],s=(r[m>>>24]<<24|r[l>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[y++],[c>>>=0,i>>>=0,o>>>=0,s>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var a=[],r=[],n=[[],[],[],[]],c=[[],[],[],[]],i=0,o=0,s=0;s<256;++s){var d=o^o<<1^o<<2^o<<3^o<<4;d=d>>>8^255&d^99,a[i]=d,r[d]=i;var f=e[i],u=e[f],b=e[u],l=257*e[d]^16843008*d;n[0][i]=l<<24|l>>>8,n[1][i]=l<<16|l>>>16,n[2][i]=l<<8|l>>>24,n[3][i]=l,l=16843009*b^65537*u^257*f^16843008*i,c[0][d]=l<<24|l>>>8,c[1][d]=l<<16|l>>>16,c[2][d]=l<<8|l>>>24,c[3][d]=l,0===i?i=o=1:(i=f^e[e[e[b^f]]],o^=e[e[o]])}return{SBOX:a,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:c}}();function d(e){this._key=n(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,a=t+6,r=4*(a+1),n=[],c=0;c>>24,i=s.SBOX[i>>>24]<<24|s.SBOX[i>>>16&255]<<16|s.SBOX[i>>>8&255]<<8|s.SBOX[255&i],i^=o[c/t|0]<<24):t>6&&c%t==4&&(i=s.SBOX[i>>>24]<<24|s.SBOX[i>>>16&255]<<16|s.SBOX[i>>>8&255]<<8|s.SBOX[255&i]),n[c]=n[c-t]^i}for(var d=[],f=0;f>>24]]^s.INV_SUB_MIX[1][s.SBOX[b>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[b>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&b]]}this._nRounds=a,this._keySchedule=n,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return i(e=n(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),a=r.allocUnsafe(16);return a.writeUInt32BE(t[0],0),a.writeUInt32BE(t[1],4),a.writeUInt32BE(t[2],8),a.writeUInt32BE(t[3],12),a},d.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var a=i(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),c=r.allocUnsafe(16);return c.writeUInt32BE(a[0],0),c.writeUInt32BE(a[3],4),c.writeUInt32BE(a[2],8),c.writeUInt32BE(a[1],12),c},d.prototype.scrub=function(){c(this._keySchedule),c(this._invKeySchedule),c(this._key)},e.exports.AES=d},3313:(e,t,a)=>{var r=a(52970),n=a(77834).Buffer,c=a(13973),i=a(91285),o=a(42895),s=a(31313),d=a(14182);function f(e,t,a,i){c.call(this);var s=n.alloc(4,0);this._cipher=new r.AES(t);var f=this._cipher.encryptBlock(s);this._ghash=new o(f),a=function(e,t,a){if(12===t.length)return e._finID=n.concat([t,n.from([0,0,0,1])]),n.concat([t,n.from([0,0,0,2])]);var r=new o(a),c=t.length,i=c%16;r.update(t),i&&(i=16-i,r.update(n.alloc(i,0))),r.update(n.alloc(8,0));var s=8*c,f=n.alloc(8);f.writeUIntBE(s,0,8),r.update(f),e._finID=r.state;var u=n.from(e._finID);return d(u),u}(this,a,f),this._prev=n.from(a),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}i(f,c),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=n.alloc(t,0),this._ghash.update(t))}this._called=!0;var a=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(a),this._len+=e.length,a},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var a=0;e.length!==t.length&&a++;for(var r=Math.min(e.length,t.length),n=0;n{var r=a(89309),n=a(57612),c=a(49234);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(c)}},57612:(e,t,a)=>{var r=a(3313),n=a(77834).Buffer,c=a(68702),i=a(37041),o=a(13973),s=a(52970),d=a(59341);function f(e,t,a){o.call(this),this._cache=new u,this._last=void 0,this._cipher=new s.AES(t),this._prev=n.from(a),this._mode=e,this._autopadding=!0}function u(){this.cache=n.allocUnsafe(0)}function b(e,t,a){var o=c[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof a&&(a=n.from(a)),"GCM"!==o.mode&&a.length!==o.iv)throw new TypeError("invalid iv length "+a.length);if("string"==typeof t&&(t=n.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===o.type?new i(o.module,t,a,!0):"auth"===o.type?new r(o.module,t,a,!0):new f(o.module,t,a)}a(91285)(f,o),f.prototype._update=function(e){var t,a;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)a=this._mode.decrypt(this,t),r.push(a);return n.concat(r)},f.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");for(var a=-1;++a16)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},u.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var a=c[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");var r=d(t,!1,a.key,a.iv);return b(e,r.key,r.iv)},t.createDecipheriv=b},89309:(e,t,a)=>{var r=a(68702),n=a(3313),c=a(77834).Buffer,i=a(37041),o=a(13973),s=a(52970),d=a(59341);function f(e,t,a){o.call(this),this._cache=new b,this._cipher=new s.AES(t),this._prev=c.from(a),this._mode=e,this._autopadding=!0}a(91285)(f,o),f.prototype._update=function(e){var t,a;this._cache.add(e);for(var r=[];t=this._cache.get();)a=this._mode.encrypt(this,t),r.push(a);return c.concat(r)};var u=c.alloc(16,16);function b(){this.cache=c.allocUnsafe(0)}function l(e,t,a){var o=r[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=c.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof a&&(a=c.from(a)),"GCM"!==o.mode&&a.length!==o.iv)throw new TypeError("invalid iv length "+a.length);return"stream"===o.type?new i(o.module,t,a):"auth"===o.type?new n(o.module,t,a):new f(o.module,t,a)}f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},b.prototype.add=function(e){this.cache=c.concat([this.cache,e])},b.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},b.prototype.flush=function(){for(var e=16-this.cache.length,t=c.allocUnsafe(e),a=-1;++a{var r=a(77834).Buffer,n=r.alloc(16,0);function c(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function i(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}i.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=c(n)},i.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},i.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(c([0,e,0,t])),this.state},e.exports=i},14182:e=>{e.exports=function(e){for(var t,a=e.length;a--;){if(255!==(t=e.readUInt8(a))){t++,e.writeUInt8(t,a);break}e.writeUInt8(0,a)}}},8796:(e,t,a)=>{var r=a(31313);t.encrypt=function(e,t){var a=r(t,e._prev);return e._prev=e._cipher.encryptBlock(a),e._prev},t.decrypt=function(e,t){var a=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return r(n,a)}},76528:(e,t,a)=>{var r=a(77834).Buffer,n=a(31313);function c(e,t,a){var c=t.length,i=n(t,e._cache);return e._cache=e._cache.slice(c),e._prev=r.concat([e._prev,a?t:i]),i}t.encrypt=function(e,t,a){for(var n,i=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){i=r.concat([i,c(e,t,a)]);break}n=e._cache.length,i=r.concat([i,c(e,t.slice(0,n),a)]),t=t.slice(n)}return i}},60918:(e,t,a)=>{var r=a(77834).Buffer;function n(e,t,a){for(var r,n,i=-1,o=0;++i<8;)r=t&1<<7-i?128:0,o+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^r))>>i%8,e._prev=c(e._prev,a?r:n);return o}function c(e,t){var a=e.length,n=-1,c=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++n>7;return c}t.encrypt=function(e,t,a){for(var c=t.length,i=r.allocUnsafe(c),o=-1;++o{var r=a(77834).Buffer;function n(e,t,a){var n=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([a?t:n])]),n}t.encrypt=function(e,t,a){for(var c=t.length,i=r.allocUnsafe(c),o=-1;++o{var r=a(31313),n=a(77834).Buffer,c=a(14182);function i(e){var t=e._cipher.encryptBlockRaw(e._prev);return c(e._prev),t}t.encrypt=function(e,t){var a=Math.ceil(t.length/16),c=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(16*a)]);for(var o=0;o{t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},68702:(e,t,a)=>{var r={ECB:a(57028),CBC:a(8796),CFB:a(76528),CFB8:a(27263),CFB1:a(60918),OFB:a(34256),CTR:a(48219),GCM:a(48219)},n=a(49234);for(var c in n)n[c].module=r[n[c].mode];e.exports=n},34256:(e,t,a)=>{var r=a(48834).Buffer,n=a(31313);function c(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length{var r=a(52970),n=a(77834).Buffer,c=a(13973);function i(e,t,a,i){c.call(this),this._cipher=new r.AES(t),this._prev=n.from(a),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=i,this._mode=e}a(91285)(i,c),i.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},i.prototype._final=function(){this._cipher.scrub()},e.exports=i},93667:(e,t,a)=>{var r=a(37214),n=a(10010),c=a(68702),i=a(62820),o=a(59341);function s(e,t,a){if(e=e.toLowerCase(),c[e])return n.createCipheriv(e,t,a);if(i[e])return new r({key:t,iv:a,mode:e});throw new TypeError("invalid suite type")}function d(e,t,a){if(e=e.toLowerCase(),c[e])return n.createDecipheriv(e,t,a);if(i[e])return new r({key:t,iv:a,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var a,r;if(e=e.toLowerCase(),c[e])a=c[e].key,r=c[e].iv;else{if(!i[e])throw new TypeError("invalid suite type");a=8*i[e].key,r=i[e].iv}var n=o(t,!1,a,r);return s(e,n.key,n.iv)},t.createCipheriv=t.Cipheriv=s,t.createDecipher=t.Decipher=function(e,t){var a,r;if(e=e.toLowerCase(),c[e])a=c[e].key,r=c[e].iv;else{if(!i[e])throw new TypeError("invalid suite type");a=8*i[e].key,r=i[e].iv}var n=o(t,!1,a,r);return d(e,n.key,n.iv)},t.createDecipheriv=t.Decipheriv=d,t.listCiphers=t.getCiphers=function(){return Object.keys(i).concat(n.getCiphers())}},37214:(e,t,a)=>{var r=a(13973),n=a(84387),c=a(91285),i=a(77834).Buffer,o={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function s(e){r.call(this);var t,a=e.mode.toLowerCase(),n=o[a];t=e.decrypt?"decrypt":"encrypt";var c=e.key;i.isBuffer(c)||(c=i.from(c)),"des-ede"!==a&&"des-ede-cbc"!==a||(c=i.concat([c,c.slice(0,8)]));var s=e.iv;i.isBuffer(s)||(s=i.from(s)),this._des=n.create({key:c,iv:s,type:t})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],e.exports=s,c(s,r),s.prototype._update=function(e){return i.from(this._des.update(e))},s.prototype._final=function(){return i.from(this._des.final())}},62820:(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}},91857:(e,t,a)=>{var r=a(48834).Buffer,n=a(62197),c=a(95003);function i(e){var t,a=e.modulus.byteLength();do{t=new n(c(a))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,t){var a=function(e){var t=i(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),c=t.modulus.byteLength(),o=new n(e).mul(a.blinder).umod(t.modulus),s=o.toRed(n.mont(t.prime1)),d=o.toRed(n.mont(t.prime2)),f=t.coefficient,u=t.prime1,b=t.prime2,l=s.redPow(t.exponent1).fromRed(),h=d.redPow(t.exponent2).fromRed(),p=l.isub(h).imul(f).umod(u).imul(b);return h.iadd(p).imul(a.unblinder).umod(t.modulus).toArrayLike(r,"be",c)}o.getr=i,e.exports=o},24778:(e,t,a)=>{e.exports=a(40026)},95263:(e,t,a)=>{var r=a(77834).Buffer,n=a(16162),c=a(67525),i=a(91285),o=a(262),s=a(5643),d=a(40026);function f(e){c.Writable.call(this);var t=d[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){c.Writable.call(this);var t=d[e];if(!t)throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function b(e){return new f(e)}function l(e){return new u(e)}Object.keys(d).forEach((function(e){d[e].id=r.from(d[e].id,"hex"),d[e.toLowerCase()]=d[e]})),i(f,c.Writable),f.prototype._write=function(e,t,a){this._hash.update(e),a()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},f.prototype.sign=function(e,t){this.end();var a=this._hash.digest(),r=o(a,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},i(u,c.Writable),u.prototype._write=function(e,t,a){this._hash.update(e),a()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.verify=function(e,t,a){"string"==typeof t&&(t=r.from(t,a)),this.end();var n=this._hash.digest();return s(t,n,e,this._signType,this._tag)},e.exports={Sign:b,Verify:l,createSign:b,createVerify:l}},262:(e,t,a)=>{var r=a(77834).Buffer,n=a(50011),c=a(91857),i=a(87554).ec,o=a(62197),s=a(28016),d=a(39167);function f(e,t,a,c){if((e=r.from(e.toArray())).length0&&a.ishrn(r),a}function b(e,t,a){var c,i;do{for(c=r.alloc(0);8*c.length{var r=a(77834).Buffer,n=a(62197),c=a(87554).ec,i=a(28016),o=a(39167);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,t,a,d,f){var u=i(a);if("ec"===u.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");return function(e,t,a){var r=o[a.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+a.data.algorithm.curve.join("."));var n=new c(r),i=a.data.subjectPrivateKey.data;return n.verify(t,e,i)}(e,t,u)}if("dsa"===u.type){if("dsa"!==d)throw new Error("wrong public key type");return function(e,t,a){var r=a.data.p,c=a.data.q,o=a.data.g,d=a.data.pub_key,f=i.signature.decode(e,"der"),u=f.s,b=f.r;s(u,c),s(b,c);var l=n.mont(r),h=u.invm(c);return 0===o.toRed(l).redPow(new n(t).mul(h).mod(c)).fromRed().mul(d.toRed(l).redPow(b.mul(h).mod(c)).fromRed()).mod(r).mod(c).cmp(b)}(e,t,u)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");t=r.concat([f,t]);for(var b=u.modulus.byteLength(),l=[1],h=0;t.length+l.length+2{var r=a(18166);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},88616:(e,t,a)=>{"use strict";var r=a(17022),n=a(77834).Buffer;e.exports=function(e){function t(t){var a=t.slice(0,-4),r=t.slice(-4),n=e(a);if(!(r[0]^n[0]|r[1]^n[1]|r[2]^n[2]|r[3]^n[3]))return a}return{encode:function(t){var a=e(t);return r.encode(n.concat([t,a],t.length+4))},decode:function(e){var a=t(r.decode(e));if(!a)throw new Error("Invalid checksum");return a},decodeUnsafe:function(e){var a=r.decodeUnsafe(e);if(a)return t(a)}}}},44075:(e,t,a)=>{"use strict";var r=a(16162),n=a(88616);e.exports=n((function(e){var t=r("sha256").update(e).digest();return r("sha256").update(t).digest()}))},31313:(e,t,a)=>{var r=a(48834).Buffer;e.exports=function(e,t){for(var a=Math.min(e.length,t.length),n=new r(a),c=0;c{"use strict";const r=a(95766),n=a(62333),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,a){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return d(e,t,a)}function d(e,t,a){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const a=0|p(e,t);let r=o(a);const n=r.write(e,t);return n!==a&&(r=r.slice(0,n)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return b(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return l(e,t,a);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return l(e,t,a);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,a);const n=function(e){if(s.isBuffer(e)){const t=0|h(e.length),a=o(t);return 0===a.length||e.copy(a,0,0,t),a}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?o(0):b(e):"Buffer"===e.type&&Array.isArray(e.data)?b(e.data):void 0}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return f(e),o(e<0?0:0|h(e))}function b(e){const t=e.length<0?0:0|h(e.length),a=o(t);for(let r=0;r=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const a=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===a)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return G(e).length;default:if(n)return r?-1:W(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,a){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,a);case"utf8":case"utf-8":return I(this,t,a);case"ascii":return C(this,t,a);case"latin1":case"binary":return P(this,t,a);case"base64":return E(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,a);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,a){const r=e[t];e[t]=e[a],e[a]=r}function g(e,t,a,r,n){if(0===e.length)return-1;if("string"==typeof a?(r=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),Y(a=+a)&&(a=n?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(n)return-1;a=e.length-1}else if(a<0){if(!n)return-1;a=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:x(e,t,a,r,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):x(e,[t],a,r,n);throw new TypeError("val must be string, number or Buffer")}function x(e,t,a,r,n){let c,i=1,o=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,o/=2,s/=2,a/=2}function d(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(n){let r=-1;for(c=a;co&&(a=o-s),c=a;c>=0;c--){let a=!0;for(let r=0;rn&&(r=n):r=n;const c=t.length;let i;for(r>c/2&&(r=c/2),i=0;i>8,n=a%256,c.push(n),c.push(r);return c}(t,e.length-a),e,a,r)}function E(e,t,a){return 0===t&&a===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,a))}function I(e,t,a){a=Math.min(e.length,a);const r=[];let n=t;for(;n239?4:t>223?3:t>191?2:1;if(n+i<=a){let a,r,o,s;switch(i){case 1:t<128&&(c=t);break;case 2:a=e[n+1],128==(192&a)&&(s=(31&t)<<6|63&a,s>127&&(c=s));break;case 3:a=e[n+1],r=e[n+2],128==(192&a)&&128==(192&r)&&(s=(15&t)<<12|(63&a)<<6|63&r,s>2047&&(s<55296||s>57343)&&(c=s));break;case 4:a=e[n+1],r=e[n+2],o=e[n+3],128==(192&a)&&128==(192&r)&&128==(192&o)&&(s=(15&t)<<18|(63&a)<<12|(63&r)<<6|63&o,s>65535&&s<1114112&&(c=s))}}null===c?(c=65533,i=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),n+=i}return function(e){const t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);let a="",r=0;for(;rr.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,n)):Uint8Array.prototype.set.call(r,t,n);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,n)}n+=t.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;ta&&(e+=" ... "),""},c&&(s.prototype[c]=s.prototype.inspect),s.prototype.compare=function(e,t,a,r,n){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||a>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=a)return 0;if(r>=n)return-1;if(t>=a)return 1;if(this===e)return 0;let c=(n>>>=0)-(r>>>=0),i=(a>>>=0)-(t>>>=0);const o=Math.min(c,i),d=this.slice(r,n),f=e.slice(t,a);for(let e=0;e>>=0,isFinite(a)?(a>>>=0,void 0===r&&(r="utf8")):(r=a,a=void 0)}const n=this.length-t;if((void 0===a||a>n)&&(a=n),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let c=!1;for(;;)switch(r){case"hex":return v(this,e,t,a);case"utf8":case"utf-8":return w(this,e,t,a);case"ascii":case"latin1":case"binary":return A(this,e,t,a);case"base64":return k(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,a);default:if(c)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),c=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const M=4096;function C(e,t,a){let r="";a=Math.min(e.length,a);for(let n=t;nr)&&(a=r);let n="";for(let r=t;ra)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,a,r,n,c){if(!s.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 B(e,t,a,r,n){z(t,r,n,e,a,7);let c=Number(t&BigInt(4294967295));e[a++]=c,c>>=8,e[a++]=c,c>>=8,e[a++]=c,c>>=8,e[a++]=c;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[a++]=i,i>>=8,e[a++]=i,i>>=8,e[a++]=i,i>>=8,e[a++]=i,a}function D(e,t,a,r,n){z(t,r,n,e,a,7);let c=Number(t&BigInt(4294967295));e[a+7]=c,c>>=8,e[a+6]=c,c>>=8,e[a+5]=c,c>>=8,e[a+4]=c;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[a+3]=i,i>>=8,e[a+2]=i,i>>=8,e[a+1]=i,i>>=8,e[a]=i,a+8}function V(e,t,a,r,n,c){if(a+r>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function L(e,t,a,r,c){return t=+t,a>>>=0,c||V(e,0,a,4),n.write(e,t,a,r,23,4),a+4}function j(e,t,a,r,c){return t=+t,a>>>=0,c||V(e,0,a,8),n.write(e,t,a,r,52,8),a+8}s.prototype.slice=function(e,t){const a=this.length;(e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t>>=0,t>>>=0,a||N(e,t,this.length);let r=this[e],n=1,c=0;for(;++c>>=0,t>>>=0,a||N(e,t,this.length);let r=this[e+--t],n=1;for(;t>0&&(n*=256);)r+=this[e+--t]*n;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=_((function(e){q(e>>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||K(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+a*2**24;return BigInt(r)+(BigInt(n)<>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||K(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+a;return(BigInt(r)<>>=0,t>>>=0,a||N(e,t,this.length);let r=this[e],n=1,c=0;for(;++c=n&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,a){e>>>=0,t>>>=0,a||N(e,t,this.length);let r=t,n=1,c=this[e+--r];for(;r>0&&(n*=256);)c+=this[e+--r]*n;return n*=128,c>=n&&(c-=Math.pow(2,8*t)),c},s.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);const a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},s.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);const a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=_((function(e){q(e>>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||K(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(a<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],a=this[e+7];void 0!==t&&void 0!==a||K(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||N(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,a,r){e=+e,t>>>=0,a>>>=0,r||R(this,e,t,a,Math.pow(2,8*a)-1,0);let n=1,c=0;for(this[t]=255&e;++c>>=0,a>>>=0,r||R(this,e,t,a,Math.pow(2,8*a)-1,0);let n=a-1,c=1;for(this[t+n]=255&e;--n>=0&&(c*=256);)this[t+n]=e/c&255;return t+a},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=_((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=_((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,a,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*a-1);R(this,e,t,a,r-1,-r)}let n=0,c=1,i=0;for(this[t]=255&e;++n>0)-i&255;return t+a},s.prototype.writeIntBE=function(e,t,a,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*a-1);R(this,e,t,a,r-1,-r)}let n=a-1,c=1,i=0;for(this[t+n]=255&e;--n>=0&&(c*=256);)e<0&&0===i&&0!==this[t+n+1]&&(i=1),this[t+n]=(e/c>>0)-i&255;return t+a},s.prototype.writeInt8=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,a){return e=+e,t>>>=0,a||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=_((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=_((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,a){return L(this,e,t,!0,a)},s.prototype.writeFloatBE=function(e,t,a){return L(this,e,t,!1,a)},s.prototype.writeDoubleLE=function(e,t,a){return j(this,e,t,!0,a)},s.prototype.writeDoubleBE=function(e,t,a){return j(this,e,t,!1,a)},s.prototype.copy=function(e,t,a,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(a||(a=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(n=t;n=r+4;a-=3)t=`_${e.slice(a-3,a)}${t}`;return`${e.slice(0,a)}${t}`}function z(e,t,a,r,n,c){if(e>a||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(c+1)}${r}`:`>= -(2${r} ** ${8*(c+1)-1}${r}) and < 2 ** ${8*(c+1)-1}${r}`:`>= ${t}${r} and <= ${a}${r}`,new U.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,a){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+a]||K(t,e.length-(a+1))}(r,n,c)}function q(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,a){if(Math.floor(e)!==e)throw q(e,a),new U.ERR_OUT_OF_RANGE(a||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(a||"offset",`>= ${a?1:0} and <= ${t}`,e)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(e,t,a){let r=`The value of "${e}" is out of range.`,n=a;return Number.isInteger(a)&&Math.abs(a)>2**32?n=F(String(a)):"bigint"==typeof a&&(n=String(a),(a>BigInt(2)**BigInt(32)||a<-(BigInt(2)**BigInt(32)))&&(n=F(n)),n+="n"),r+=` It must be ${t}. Received ${n}`,r}),RangeError);const X=/[^+/0-9A-Za-z-_]/g;function W(e,t){let a;t=t||1/0;const r=e.length;let n=null;const c=[];for(let i=0;i55295&&a<57344){if(!n){if(a>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&c.push(239,191,189);continue}n=a;continue}if(a<56320){(t-=3)>-1&&c.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(t-=3)>-1&&c.push(239,191,189);if(n=null,a<128){if((t-=1)<0)break;c.push(a)}else if(a<2048){if((t-=2)<0)break;c.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;c.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return c}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,a,r){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+a]=e[n];return n}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let a=0;a<16;++a){const r=16*a;for(let n=0;n<16;++n)t[r+n]=e[a]+e[n]}return t}();function _(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},62680:(e,t,a)=>{"use strict";var r=a(67286),n=a(89429),c=n(r("String.prototype.indexOf"));e.exports=function(e,t){var a=r(e,!!t);return"function"==typeof a&&c(e,".prototype.")>-1?n(a):a}},89429:(e,t,a)=>{"use strict";var r=a(4090),n=a(67286),c=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||r.call(i,c),s=n("%Object.getOwnPropertyDescriptor%",!0),d=n("%Object.defineProperty%",!0),f=n("%Math.max%");if(d)try{d({},"a",{value:1})}catch(e){d=null}e.exports=function(e){var t=o(r,i,arguments);if(s&&d){var a=s(t,"length");a.configurable&&d(t,"length",{value:1+f(0,e.length-(arguments.length-1))})}return t};var u=function(){return o(r,c,arguments)};d?d(e.exports,"apply",{value:u}):e.exports.apply=u},13973:(e,t,a)=>{var r=a(77834).Buffer,n=a(54851).Transform,c=a(30214).s;function i(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}a(91285)(i,n),i.prototype.update=function(e,t,a){"string"==typeof e&&(e=r.from(e,t));var n=this._update(e);return this.hashMode?this:(a&&(n=this._toString(n,a)),n)},i.prototype.setAutoPadding=function(){},i.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},i.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},i.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},i.prototype._transform=function(e,t,a){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{a(r)}},i.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},i.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},i.prototype._toString=function(e,t,a){if(this._decoder||(this._decoder=new c(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return a&&(r+=this._decoder.end()),r},e.exports=i},97108:(e,t)=>{var a;a=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),a=0;256!=a;++a)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=a)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[a]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),a=function(e){var t=0,a=0,r=0,n="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)n[r]=e[r];for(r=0;256!=r;++r)for(a=e[r],t=256+r;t<4096;t+=256)a=n[t]=a>>>8^e[255&a];var c=[];for(r=1;16!=r;++r)c[r-1]="undefined"!=typeof Int32Array?n.subarray(256*r,256*r+256):n.slice(256*r,256*r+256);return c}(t),r=a[0],n=a[1],c=a[2],i=a[3],o=a[4],s=a[5],d=a[6],f=a[7],u=a[8],b=a[9],l=a[10],h=a[11],p=a[12],m=a[13],y=a[14];e.table=t,e.bstr=function(e,a){for(var r=-1^a,n=0,c=e.length;n>>8^t[255&(r^e.charCodeAt(n++))];return~r},e.buf=function(e,a){for(var g=-1^a,x=e.length-15,v=0;v>8&255]^p[e[v++]^g>>16&255]^h[e[v++]^g>>>24]^l[e[v++]]^b[e[v++]]^u[e[v++]]^f[e[v++]]^d[e[v++]]^s[e[v++]]^o[e[v++]]^i[e[v++]]^c[e[v++]]^n[e[v++]]^r[e[v++]]^t[e[v++]];for(x+=15;v>>8^t[255&(g^e[v++])];return~g},e.str=function(e,a){for(var r=-1^a,n=0,c=e.length,i=0,o=0;n>>8^t[255&(r^i)]:i<2048?r=(r=r>>>8^t[255&(r^(192|i>>6&31))])>>>8^t[255&(r^(128|63&i))]:i>=55296&&i<57344?(i=64+(1023&i),o=1023&e.charCodeAt(n++),r=(r=(r=(r=r>>>8^t[255&(r^(240|i>>8&7))])>>>8^t[255&(r^(128|i>>2&63))])>>>8^t[255&(r^(128|o>>6&15|(3&i)<<4))])>>>8^t[255&(r^(128|63&o))]):r=(r=(r=r>>>8^t[255&(r^(224|i>>12&15))])>>>8^t[255&(r^(128|i>>6&63))])>>>8^t[255&(r^(128|63&i))];return~r}},"undefined"==typeof DO_NOT_EXPORT_CRC?a(t):a({})},95363:(e,t,a)=>{var r=a(48834).Buffer,n=a(87554),c=a(59239);e.exports=function(e){return new o(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,t,a){Array.isArray(e)||(e=e.toArray());var n=new r(e);if(a&&n.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},16162:(e,t,a)=>{"use strict";var r=a(91285),n=a(27993),c=a(51445),i=a(9065),o=a(13973);function s(e){o.call(this,"digest"),this._hash=e}r(s,o),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new c:new s(i(e))}},22511:(e,t,a)=>{var r=a(27993);e.exports=function(e){return(new r).update(e).digest()}},50011:(e,t,a)=>{"use strict";var r=a(91285),n=a(6456),c=a(13973),i=a(77834).Buffer,o=a(22511),s=a(51445),d=a(9065),f=i.alloc(128);function u(e,t){c.call(this,"digest"),"string"==typeof t&&(t=i.from(t));var a="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>a?t=("rmd160"===e?new s:d(e)).update(t).digest():t.length{"use strict";var r=a(91285),n=a(77834).Buffer,c=a(13973),i=n.alloc(128),o=64;function s(e,t){c.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>o?t=e(t):t.length-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function b(e){this.map={},e instanceof b?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,a){e.onload=function(){t(e.result)},e.onerror=function(){a(e.error)}}))}function p(e){var t=new FileReader,a=h(t);return t.readAsArrayBuffer(e),a}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:c&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:a&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i&&n&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,a,r=l(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,a=h(t=new FileReader),t.readAsText(e),a;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),a=new Array(t.length),r=0;r-1?r:a),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var a=e.split("="),r=a.shift().replace(/\+/g," "),n=a.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new b(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var A=[301,302,303,307,308];w.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var a=Error(e);this.stack=a.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,a){return new Promise((function(r,c){var i=new x(e,a);if(i.signal&&i.signal.aborted)return c(new t.DOMException("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,a={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new b,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var a=e.split(":"),r=a.shift().trim();if(r){var n=a.join(":").trim();t.append(r,n)}})),t)};a.url="responseURL"in o?o.responseURL:a.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;r(new w(n,a))},o.onerror=function(){c(new TypeError("Network request failed"))},o.ontimeout=function(){c(new TypeError("Network request failed"))},o.onabort=function(){c(new t.DOMException("Aborted","AbortError"))},o.open(i.method,i.url,!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&n&&(o.responseType="blob"),i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=b,e.Request=x,e.Response=w),t.Headers=b,t.Request=x,t.Response=w,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var n=r;(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},5634:(e,t,a)=>{"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=a(95003),t.createHash=t.Hash=a(16162),t.createHmac=t.Hmac=a(50011);var r=a(24778),n=Object.keys(r),c=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);t.getHashes=function(){return c};var i=a(30499);t.pbkdf2=i.pbkdf2,t.pbkdf2Sync=i.pbkdf2Sync;var o=a(93667);t.Cipher=o.Cipher,t.createCipher=o.createCipher,t.Cipheriv=o.Cipheriv,t.createCipheriv=o.createCipheriv,t.Decipher=o.Decipher,t.createDecipher=o.createDecipher,t.Decipheriv=o.Decipheriv,t.createDecipheriv=o.createDecipheriv,t.getCiphers=o.getCiphers,t.listCiphers=o.listCiphers;var s=a(67602);t.DiffieHellmanGroup=s.DiffieHellmanGroup,t.createDiffieHellmanGroup=s.createDiffieHellmanGroup,t.getDiffieHellman=s.getDiffieHellman,t.createDiffieHellman=s.createDiffieHellman,t.DiffieHellman=s.DiffieHellman;var d=a(95263);t.createSign=d.createSign,t.Sign=d.Sign,t.createVerify=d.createVerify,t.Verify=d.Verify,t.createECDH=a(95363);var f=a(8493);t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var u=a(69631);t.randomFill=u.randomFill,t.randomFillSync=u.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},14926:(e,t,a)=>{"use strict";var r=a(33464),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),c=Object.prototype.toString,i=Array.prototype.concat,o=Object.defineProperty,s=a(81181)(),d=o&&s,f=function(e,t,a,r){var n;(!(t in e)||"function"==typeof(n=r)&&"[object Function]"===c.call(n)&&r())&&(d?o(e,t,{configurable:!0,enumerable:!1,value:a,writable:!0}):e[t]=a)},u=function(e,t){var a=arguments.length>2?arguments[2]:{},c=r(t);n&&(c=i.call(c,Object.getOwnPropertySymbols(t)));for(var o=0;o{"use strict";t.utils=a(94112),t.Cipher=a(43639),t.DES=a(4225),t.CBC=a(59692),t.EDE=a(4335)},59692:(e,t,a)=>{"use strict";var r=a(79561),n=a(91285),c={};function i(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t{"use strict";var r=a(79561);function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=n,n.prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var a=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),a+=this._flushBuffer(n,a);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,a;return e&&(t=this.update(e)),a="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(a):a},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t{"use strict";var r=a(79561),n=a(91285),c=a(94112),i=a(43639);function o(){this.tmp=new Array(2),this.keys=null}function s(e){i.call(this,e);var t=new o;this._desState=t,this.deriveKeys(t,e.key)}n(s,i),e.exports=s,s.create=function(e){return new s(e)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var a=c.readUInt32BE(t,0),n=c.readUInt32BE(t,4);c.pc1(a,n,e.tmp,0),a=e.tmp[0],n=e.tmp[1];for(var i=0;i>>1];a=c.r28shl(a,o),n=c.r28shl(n,o),c.pc2(a,n,e.keys,i)}},s.prototype._update=function(e,t,a,r){var n=this._desState,i=c.readUInt32BE(e,t),o=c.readUInt32BE(e,t+4);c.ip(i,o,n.tmp,0),i=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,i,o,n.tmp,0):this._decrypt(n,i,o,n.tmp,0),i=n.tmp[0],o=n.tmp[1],c.writeUInt32BE(a,i,r),c.writeUInt32BE(a,o,r+4)},s.prototype._pad=function(e,t){for(var a=e.length-t,r=t;r>>0,i=b}c.rip(o,i,r,n)},s.prototype._decrypt=function(e,t,a,r,n){for(var i=a,o=t,s=e.keys.length-2;s>=0;s-=2){var d=e.keys[s],f=e.keys[s+1];c.expand(i,e.tmp,0),d^=e.tmp[0],f^=e.tmp[1];var u=c.substitute(d,f),b=i;i=(o^c.permute(u))>>>0,o=b}c.rip(i,o,r,n)}},4335:(e,t,a)=>{"use strict";var r=a(79561),n=a(91285),c=a(43639),i=a(4225);function o(e,t){r.equal(t.length,24,"Invalid key length");var a=t.slice(0,8),n=t.slice(8,16),c=t.slice(16,24);this.ciphers="encrypt"===e?[i.create({type:"encrypt",key:a}),i.create({type:"decrypt",key:n}),i.create({type:"encrypt",key:c})]:[i.create({type:"decrypt",key:c}),i.create({type:"encrypt",key:n}),i.create({type:"decrypt",key:a})]}function s(e){c.call(this,e);var t=new o(this.type,this.options.key);this._edeState=t}n(s,c),e.exports=s,s.create=function(e){return new s(e)},s.prototype._update=function(e,t,a,r){var n=this._edeState;n.ciphers[0]._update(e,t,a,r),n.ciphers[1]._update(a,r,a,r),n.ciphers[2]._update(a,r,a,r)},s.prototype._pad=i.prototype._pad,s.prototype._unpad=i.prototype._unpad},94112:(e,t)=>{"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,a){e[0+a]=t>>>24,e[1+a]=t>>>16&255,e[2+a]=t>>>8&255,e[3+a]=255&t},t.ip=function(e,t,a,r){for(var n=0,c=0,i=6;i>=0;i-=2){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>>o+i&1;for(o=0;o<=24;o+=8)n<<=1,n|=e>>>o+i&1}for(i=6;i>=0;i-=2){for(o=1;o<=25;o+=8)c<<=1,c|=t>>>o+i&1;for(o=1;o<=25;o+=8)c<<=1,c|=e>>>o+i&1}a[r+0]=n>>>0,a[r+1]=c>>>0},t.rip=function(e,t,a,r){for(var n=0,c=0,i=0;i<4;i++)for(var o=24;o>=0;o-=8)n<<=1,n|=t>>>o+i&1,n<<=1,n|=e>>>o+i&1;for(i=4;i<8;i++)for(o=24;o>=0;o-=8)c<<=1,c|=t>>>o+i&1,c<<=1,c|=e>>>o+i&1;a[r+0]=n>>>0,a[r+1]=c>>>0},t.pc1=function(e,t,a,r){for(var n=0,c=0,i=7;i>=5;i--){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>o+i&1;for(o=0;o<=24;o+=8)n<<=1,n|=e>>o+i&1}for(o=0;o<=24;o+=8)n<<=1,n|=t>>o+i&1;for(i=1;i<=3;i++){for(o=0;o<=24;o+=8)c<<=1,c|=t>>o+i&1;for(o=0;o<=24;o+=8)c<<=1,c|=e>>o+i&1}for(o=0;o<=24;o+=8)c<<=1,c|=e>>o+i&1;a[r+0]=n>>>0,a[r+1]=c>>>0},t.r28shl=function(e,t){return e<>>28-t};var a=[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 c=0,i=0,o=a.length>>>1,s=0;s>>a[s]&1;for(s=o;s>>a[s]&1;r[n+0]=c>>>0,r[n+1]=i>>>0},t.expand=function(e,t,a){var r=0,n=0;r=(1&e)<<5|e>>>27;for(var c=23;c>=15;c-=4)r<<=6,r|=e>>>c&63;for(c=11;c>=3;c-=4)n|=e>>>c&63,n<<=6;n|=(31&e)<<1|e>>>31,t[a+0]=r>>>0,t[a+1]=n>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var a=0,n=0;n<4;n++)a<<=4,a|=r[64*n+(e>>>18-6*n&63)];for(n=0;n<4;n++)a<<=4,a|=r[256+64*n+(t>>>18-6*n&63)];return a>>>0};var n=[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,a=0;a>>n[a]&1;return t>>>0},t.padSplit=function(e,t,a){for(var r=e.toString(2);r.length{var r=a(48834).Buffer,n=a(32808),c=a(23418),i=a(30767),o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new r(c[e].prime,"hex"),a=new r(c[e].gen,"hex");return new i(t,a)},t.createDiffieHellman=t.DiffieHellman=function e(t,a,c,s){return r.isBuffer(a)||void 0===o[a]?e(t,"binary",a,c):(a=a||"binary",s=s||"binary",c=c||new r([2]),r.isBuffer(c)||(c=new r(c,s)),"number"==typeof t?new i(n(t,c),c,!0):(r.isBuffer(t)||(t=new r(t,a)),new i(t,c,!0)))}},30767:(e,t,a)=>{var r=a(48834).Buffer,n=a(3908),c=new(a(46676)),i=new n(24),o=new n(11),s=new n(10),d=new n(3),f=new n(7),u=a(32808),b=a(95003);function l(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._pub=new n(e),this}function h(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._priv=new n(e),this}e.exports=m;var p={};function m(e,t,a){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,a?(this.setPublicKey=l,this.setPrivateKey=h):this._primeCode=8}function y(e,t){var a=new r(e.toArray());return t?a.toString(t):a}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var a=t.toString("hex"),r=[a,e.toString(16)].join("_");if(r in p)return p[r];var n,b=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!c.test(e))return b+=1,b+="02"===a||"05"===a?8:4,p[r]=b,b;switch(c.test(e.shrn(1))||(b+=2),a){case"02":e.mod(i).cmp(o)&&(b+=8);break;case"05":(n=e.mod(s)).cmp(d)&&n.cmp(f)&&(b+=8);break;default:b+=4}return p[r]=b,b}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(b(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),a=new r(t.toArray()),c=this.getPrime();if(a.length{var r=a(95003);e.exports=g,g.simpleSieve=m,g.fermatTest=y;var n=a(3908),c=new n(24),i=new(a(46676)),o=new n(1),s=new n(2),d=new n(5),f=(new n(16),new n(8),new n(10)),u=new n(3),b=(new n(7),new n(11)),l=new n(4),h=(new n(12),null);function p(){if(null!==h)return h;var e=[];e[0]=2;for(var t=1,a=3;a<1048576;a+=2){for(var r=Math.ceil(Math.sqrt(a)),n=0;ne;)a.ishrn(1);if(a.isEven()&&a.iadd(o),a.testn(1)||a.iadd(s),t.cmp(s)){if(!t.cmp(d))for(;a.mod(f).cmp(u);)a.iadd(l)}else for(;a.mod(c).cmp(b);)a.iadd(l);if(m(h=a.shrn(1))&&m(a)&&y(h)&&y(a)&&i.test(h)&&i.test(a))return a}}},3908:function(e,t,a){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function c(e,t,a){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var i;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:a(20395).Buffer}catch(e){}function o(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},87554:(e,t,a)=>{"use strict";var r=t;r.version=a(40763).i8,r.utils=a(18288),r.rand=a(82745),r.curve=a(48610),r.curves=a(41479),r.ec=a(38596),r.eddsa=a(39208)},48919:(e,t,a)=>{"use strict";var r=a(72140),n=a(18288),c=n.getNAF,i=n.getJSF,o=n.assert;function s(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var a=this.n&&this.p.div(this.n);!a||a.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){o(e.precomputed);var a=e._getDoubles(),r=c(t,1,this._bitLength),n=(1<=i;f--)s=(s<<1)+r[f];d.push(s)}for(var u=this.jpoint(null,null,null),b=this.jpoint(null,null,null),l=n;l>0;l--){for(i=0;i=0;d--){for(var f=0;d>=0&&0===i[d];d--)f++;if(d>=0&&f++,s=s.dblp(f),d<0)break;var u=i[d];o(0!==u),s="affine"===e.type?u>0?s.mixedAdd(n[u-1>>1]):s.mixedAdd(n[-u-1>>1].neg()):u>0?s.add(n[u-1>>1]):s.add(n[-u-1>>1].neg())}return"affine"===e.type?s.toP():s},s.prototype._wnafMulAdd=function(e,t,a,r,n){var o,s,d,f=this._wnafT1,u=this._wnafT2,b=this._wnafT3,l=0;for(o=0;o=1;o-=2){var p=o-1,m=o;if(1===f[p]&&1===f[m]){var y=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(y[1]=t[p].add(t[m]),y[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(y[1]=t[p].toJ().mixedAdd(t[m]),y[2]=t[p].add(t[m].neg())):(y[1]=t[p].toJ().mixedAdd(t[m]),y[2]=t[p].toJ().mixedAdd(t[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],x=i(a[p],a[m]);for(l=Math.max(x[0].length,l),b[p]=new Array(l),b[m]=new Array(l),s=0;s=0;o--){for(var S=0;o>=0;){var E=!0;for(s=0;s=0&&S++,A=A.dblp(S),o<0)break;for(s=0;s0?d=u[s][I-1>>1]:I<0&&(d=u[s][-I-1>>1].neg()),A="affine"===d.type?A.mixedAdd(d):A.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],r=this,n=0;n{"use strict";var r=a(18288),n=a(72140),c=a(91285),i=a(48919),o=r.assert;function s(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,i.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function d(e,t,a,r,c){i.BasePoint.call(this,e,"projective"),null===t&&null===a&&null===r?(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 n(t,16),this.y=new n(a,16),this.z=r?new n(r,16):this.curve.one,this.t=c&&new n(c,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()))))}c(s,i),e.exports=s,s.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,a,r){return this.point(e,t,a,r)},s.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var a=e.redSqr(),r=this.c2.redSub(this.a.redMul(a)),c=this.one.redSub(this.c2.redMul(this.d).redMul(a)),i=r.redMul(c.redInvm()),o=i.redSqrt();if(0!==o.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var s=o.fromRed().isOdd();return(t&&!s||!t&&s)&&(o=o.redNeg()),this.point(e,o)},s.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var a=e.redSqr(),r=a.redSub(this.c2),c=a.redMul(this.d).redMul(this.c2).redSub(this.a),i=r.redMul(c.redInvm());if(0===i.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=i.redSqrt();if(0!==o.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),a=e.y.redSqr(),r=t.redMul(this.a).redAdd(a),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(a)));return 0===r.cmp(n)},c(d,i.BasePoint),s.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},s.prototype.point=function(e,t,a,r){return new d(this,e,t,a,r)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var r=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),c=r.redAdd(t),i=c.redSub(a),o=r.redSub(t),s=n.redMul(i),d=c.redMul(o),f=n.redMul(o),u=i.redMul(c);return this.curve.point(s,d,u,f)},d.prototype._projDbl=function(){var e,t,a,r,n,c,i=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var d=(r=this.curve._mulA(o)).redAdd(s);this.zOne?(e=i.redSub(o).redSub(s).redMul(d.redSub(this.curve.two)),t=d.redMul(r.redSub(s)),a=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),c=d.redSub(n).redISub(n),e=i.redSub(o).redISub(s).redMul(c),t=d.redMul(r.redSub(s)),a=d.redMul(c))}else r=o.redAdd(s),n=this.curve._mulC(this.z).redSqr(),c=r.redSub(n).redSub(n),e=this.curve._mulC(i.redISub(r)).redMul(c),t=this.curve._mulC(r).redMul(o.redISub(s)),a=r.redMul(c);return this.curve.point(e,t,a)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),a=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),c=a.redSub(t),i=n.redSub(r),o=n.redAdd(r),s=a.redAdd(t),d=c.redMul(i),f=o.redMul(s),u=c.redMul(s),b=i.redMul(o);return this.curve.point(d,f,b,u)},d.prototype._projAdd=function(e){var t,a,r=this.z.redMul(e.z),n=r.redSqr(),c=this.x.redMul(e.x),i=this.y.redMul(e.y),o=this.curve.d.redMul(c).redMul(i),s=n.redSub(o),d=n.redAdd(o),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(c).redISub(i),u=r.redMul(s).redMul(f);return this.curve.twisted?(t=r.redMul(d).redMul(i.redSub(this.curve._mulA(c))),a=s.redMul(d)):(t=r.redMul(d).redMul(i.redSub(c)),a=this.curve._mulC(s).redMul(d)),this.curve.point(u,t,a)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,a){return this.curve._wnafMulAdd(1,[this,t],[e,a],2,!1)},d.prototype.jmulAdd=function(e,t,a){return this.curve._wnafMulAdd(1,[this,t],[e,a],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var a=e.clone(),r=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},48610:(e,t,a)=>{"use strict";var r=t;r.base=a(48919),r.short=a(27715),r.mont=a(95125),r.edwards=a(37105)},95125:(e,t,a)=>{"use strict";var r=a(72140),n=a(91285),c=a(48919),i=a(18288);function o(e){c.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,a){c.BasePoint.call(this,e,"projective"),null===t&&null===a?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,c),e.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,a=t.redSqr(),r=a.redMul(t).redAdd(a.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},n(s,c.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(i.toArray(e,t),1)},o.prototype.point=function(e,t){return new s(this,e,t)},o.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),a=e.redSub(t),r=e.redMul(t),n=a.redMul(t.redAdd(this.curve.a24.redMul(a)));return this.curve.point(r,n)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var a=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=e.x.redAdd(e.z),c=e.x.redSub(e.z).redMul(a),i=n.redMul(r),o=t.z.redMul(c.redAdd(i).redSqr()),s=t.x.redMul(c.redISub(i).redSqr());return this.curve.point(o,s)},s.prototype.mul=function(e){for(var t=e.clone(),a=this,r=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var c=n.length-1;c>=0;c--)0===n[c]?(a=a.diffAdd(r,this),r=r.dbl()):(r=a.diffAdd(r,this),a=a.dbl());return r},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},27715:(e,t,a)=>{"use strict";var r=a(18288),n=a(72140),c=a(91285),i=a(48919),o=r.assert;function s(e){i.call(this,"short",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(e,t,a,r){i.BasePoint.call(this,e,"affine"),null===t&&null===a?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(t,16),this.y=new n(a,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,a,r){i.BasePoint.call(this,e,"jacobian"),null===t&&null===a&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(t,16),this.y=new n(a,16),this.z=new n(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}c(s,i),e.exports=s,s.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,a;if(e.beta)t=new n(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)a=new n(e.lambda,16);else{var c=this._getEndoRoots(this.n);0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(t))?a=c[0]:(a=c[1],o(0===this.g.mul(a).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:a,basis:e.basis?e.basis.map((function(e){return{a:new n(e.a,16),b:new n(e.b,16)}})):this._getEndoBasis(a)}}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),a=new n(2).toRed(t).redInvm(),r=a.redNeg(),c=new n(3).toRed(t).redNeg().redSqrt().redMul(a);return[r.redAdd(c).fromRed(),r.redSub(c).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,a,r,c,i,o,s,d,f,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),b=e,l=this.n.clone(),h=new n(1),p=new n(0),m=new n(0),y=new n(1),g=0;0!==b.cmpn(0);){var x=l.div(b);d=l.sub(x.mul(b)),f=m.sub(x.mul(h));var v=y.sub(x.mul(p));if(!r&&d.cmp(u)<0)t=s.neg(),a=h,r=d.neg(),c=f;else if(r&&2==++g)break;s=d,l=b,b=d,m=h,h=f,y=p,p=v}i=d.neg(),o=f;var w=r.sqr().add(c.sqr());return i.sqr().add(o.sqr()).cmp(w)>=0&&(i=t,o=a),r.negative&&(r=r.neg(),c=c.neg()),i.negative&&(i=i.neg(),o=o.neg()),[{a:r,b:c},{a:i,b:o}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,a=t[0],r=t[1],n=r.b.mul(e).divRound(this.n),c=a.b.neg().mul(e).divRound(this.n),i=n.mul(a.a),o=c.mul(r.a),s=n.mul(a.b),d=c.mul(r.b);return{k1:e.sub(i).sub(o),k2:s.add(d).neg()}},s.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var a=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=a.redSqrt();if(0!==r.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=r.fromRed().isOdd();return(t&&!c||!t&&c)&&(r=r.redNeg()),this.point(e,r)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,a=e.y,r=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===a.redSqr().redISub(n).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,a){for(var r=this._endoWnafT1,n=this._endoWnafT2,c=0;c":""},d.prototype.isInfinity=function(){return this.inf},d.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 a=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,r)},d.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,a=this.x.redSqr(),r=e.redInvm(),n=a.redAdd(a).redIAdd(a).redIAdd(t).redMul(r),c=n.redSqr().redISub(this.x.redAdd(this.x)),i=n.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,i)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return e=new n(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,a){var r=[this,t],n=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,n):this.curve._wnafMulAdd(1,r,n,2)},d.prototype.jmulAdd=function(e,t,a){var r=[this,t],n=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,n,!0):this.curve._wnafMulAdd(1,r,n,2,!0)},d.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))},d.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var a=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(r)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(r)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},c(f,i.BasePoint),s.prototype.jpoint=function(e,t,a){return new f(this,e,t,a)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),a=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(a,r)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),a=this.z.redSqr(),r=this.x.redMul(t),n=e.x.redMul(a),c=this.y.redMul(t.redMul(e.z)),i=e.y.redMul(a.redMul(this.z)),o=r.redSub(n),s=c.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),f=d.redMul(o),u=r.redMul(d),b=s.redSqr().redIAdd(f).redISub(u).redISub(u),l=s.redMul(u.redISub(b)).redISub(c.redMul(f)),h=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(b,l,h)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),a=this.x,r=e.x.redMul(t),n=this.y,c=e.y.redMul(t).redMul(this.z),i=a.redSub(r),o=n.redSub(c);if(0===i.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=i.redSqr(),d=s.redMul(i),f=a.redMul(s),u=o.redSqr().redIAdd(d).redISub(f).redISub(f),b=o.redMul(f.redISub(u)).redISub(n.redMul(d)),l=this.z.redMul(i);return this.curve.jpoint(u,b,l)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var a=this;for(t=0;t=0)return!1;if(a.redIAdd(n),0===this.x.cmp(a))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},41479:(e,t,a)=>{"use strict";var r,n=t,c=a(34485),i=a(48610),o=a(18288).assert;function s(e){"short"===e.type?this.curve=new i.short(e):"edwards"===e.type?this.curve=new i.edwards(e):this.curve=new i.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var a=new s(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:a}),a}})}n.PresetCurve=s,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:c.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:c.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:c.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:c.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:c.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=a(47983)}catch(e){r=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:c.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},38596:(e,t,a)=>{"use strict";var r=a(72140),n=a(78873),c=a(18288),i=a(41479),o=a(82745),s=c.assert,d=a(22307),f=a(71798);function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(s(Object.prototype.hasOwnProperty.call(i,e),"Unknown curve "+e),e=i[e]),e instanceof i.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),a=this.n.byteLength(),c=this.n.sub(new r(2));;){var i=new r(t.generate(a));if(!(i.cmp(c)>0))return i.iaddn(1),this.keyFromPrivate(i)}},u.prototype._truncateToN=function(e,t){var a=8*e.byteLength()-this.n.bitLength();return a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,a,c){"object"==typeof a&&(c=a,a=null),c||(c={}),t=this.keyFromPrivate(t,a),e=this._truncateToN(new r(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),s=e.toArray("be",i),d=new n({hash:this.hash,entropy:o,nonce:s,pers:c.pers,persEnc:c.persEnc||"utf8"}),u=this.n.sub(new r(1)),b=0;;b++){var l=c.k?c.k(b):new r(d.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var p=h.getX(),m=p.umod(this.n);if(0!==m.cmpn(0)){var y=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var g=(h.getY().isOdd()?1:0)|(0!==p.cmp(m)?2:0);return c.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),g^=1),new f({r:m,s:y,recoveryParam:g})}}}}}},u.prototype.verify=function(e,t,a,n){e=this._truncateToN(new r(e,16)),a=this.keyFromPublic(a,n);var c=(t=new f(t,"hex")).r,i=t.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var o,s=i.invm(this.n),d=s.mul(e).umod(this.n),u=s.mul(c).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(d,a.getPublic(),u)).isInfinity()&&o.eqXToP(c):!(o=this.g.mulAdd(d,a.getPublic(),u)).isInfinity()&&0===o.getX().umod(this.n).cmp(c)},u.prototype.recoverPubKey=function(e,t,a,n){s((3&a)===a,"The recovery param is more than two bits"),t=new f(t,n);var c=this.n,i=new r(e),o=t.r,d=t.s,u=1&a,b=a>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&b)throw new Error("Unable to find sencond key candinate");o=b?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var l=t.r.invm(c),h=c.sub(i).mul(l).umod(c),p=d.mul(l).umod(c);return this.g.mulAdd(h,o,p)},u.prototype.getKeyRecoveryParam=function(e,t,a,r){if(null!==(t=new f(t,r)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var c;try{c=this.recoverPubKey(e,t,n)}catch(e){continue}if(c.eq(a))return n}throw new Error("Unable to find valid recovery factor")}},22307:(e,t,a)=>{"use strict";var r=a(72140),n=a(18288).assert;function c(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=c,c.fromPublic=function(e,t,a){return t instanceof c?t:new c(e,{pub:t,pubEnc:a})},c.fromPrivate=function(e,t,a){return t instanceof c?t:new c(e,{priv:t,privEnc:a})},c.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},c.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},c.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},c.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},c.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},c.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},c.prototype.sign=function(e,t,a){return this.ec.sign(e,this,t,a)},c.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},c.prototype.inspect=function(){return""}},71798:(e,t,a)=>{"use strict";var r=a(72140),n=a(18288),c=n.assert;function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(c(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function s(e,t){var a=e[t.place++];if(!(128&a))return a;var r=15&a;if(0===r||r>4)return!1;for(var n=0,c=0,i=t.place;c>>=0;return!(n<=127)&&(t.place=i,n)}function d(e){for(var t=0,a=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|a);--a;)e.push(t>>>(a<<3)&255);e.push(t)}}e.exports=i,i.prototype._importDER=function(e,t){e=n.toArray(e,t);var a=new o;if(48!==e[a.place++])return!1;var c=s(e,a);if(!1===c)return!1;if(c+a.place!==e.length)return!1;if(2!==e[a.place++])return!1;var i=s(e,a);if(!1===i)return!1;var d=e.slice(a.place,i+a.place);if(a.place+=i,2!==e[a.place++])return!1;var f=s(e,a);if(!1===f)return!1;if(e.length!==f+a.place)return!1;var u=e.slice(a.place,f+a.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new r(d),this.s=new r(u),this.recoveryParam=null,!0},i.prototype.toDER=function(e){var t=this.r.toArray(),a=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&a[0]&&(a=[0].concat(a)),t=d(t),a=d(a);!(a[0]||128&a[1]);)a=a.slice(1);var r=[2];f(r,t.length),(r=r.concat(t)).push(2),f(r,a.length);var c=r.concat(a),i=[48];return f(i,c.length),i=i.concat(c),n.encode(i,e)}},39208:(e,t,a)=>{"use strict";var r=a(34485),n=a(41479),c=a(18288),i=c.assert,o=c.parseBytes,s=a(851),d=a(6117);function f(e){if(i("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=n[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=f,f.prototype.sign=function(e,t){e=o(e);var a=this.keyFromSecret(t),r=this.hashInt(a.messagePrefix(),e),n=this.g.mul(r),c=this.encodePoint(n),i=this.hashInt(c,a.pubBytes(),e).mul(a.priv()),s=r.add(i).umod(this.curve.n);return this.makeSignature({R:n,S:s,Rencoded:c})},f.prototype.verify=function(e,t,a){e=o(e),t=this.makeSignature(t);var r=this.keyFromPublic(a),n=this.hashInt(t.Rencoded(),r.pubBytes(),e),c=this.g.mul(t.S());return t.R().add(r.pub().mul(n)).eq(c)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";var r=a(18288),n=r.assert,c=r.parseBytes,i=r.cachedProperty;function o(e,t){this.eddsa=e,this._secret=c(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=c(t.pub)}o.fromPublic=function(e,t){return t instanceof o?t:new o(e,{pub:t})},o.fromSecret=function(e,t){return t instanceof o?t:new o(e,{secret:t})},o.prototype.secret=function(){return this._secret},i(o,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),i(o,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),i(o,"privBytes",(function(){var e=this.eddsa,t=this.hash(),a=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[a]&=127,r[a]|=64,r})),i(o,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),i(o,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),i(o,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),o.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},o.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},o.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},o.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=o},6117:(e,t,a)=>{"use strict";var r=a(72140),n=a(18288),c=n.assert,i=n.cachedProperty,o=n.parseBytes;function s(e,t){this.eddsa=e,"object"!=typeof t&&(t=o(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),c(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}i(s,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),i(s,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),i(s,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),i(s,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},e.exports=s},47983:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},18288:(e,t,a)=>{"use strict";var r=t,n=a(72140),c=a(79561),i=a(43022);r.assert=c,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(e,t,a){var r=new Array(Math.max(e.bitLength(),a)+1);r.fill(0);for(var n=1<(n>>1)-1?(n>>1)-s:s,c.isubn(o)):o=0,r[i]=o,c.iushrn(1)}return r},r.getJSF=function(e,t){var a=[[],[]];e=e.clone(),t=t.clone();for(var r,n=0,c=0;e.cmpn(-n)>0||t.cmpn(-c)>0;){var i,o,s=e.andln(3)+n&3,d=t.andln(3)+c&3;3===s&&(s=-1),3===d&&(d=-1),i=0==(1&s)?0:3!=(r=e.andln(7)+n&7)&&5!==r||2!==d?s:-s,a[0].push(i),o=0==(1&d)?0:3!=(r=t.andln(7)+c&7)&&5!==r||2!==s?d:-d,a[1].push(o),2*n===i+1&&(n=1-n),2*c===o+1&&(c=1-c),e.iushrn(1),t.iushrn(1)}return a},r.cachedProperty=function(e,t,a){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=a.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new n(e,"hex","le")}},72140:function(e,t,a){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function c(e,t,a){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var i;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:a(30488).Buffer}catch(e){}function o(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},44956:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var a=Object(e),r=1;r{if(void 0!==a[t])return["bytes32",null==c?"0x0000000000000000000000000000000000000000000000000000000000000000":o.keccak(this.encodeData(t,c,a,n))];if(void 0===c)throw new Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",o.keccak(c)];if("string"===t)return"string"==typeof c&&(c=r.from(c,"utf8")),["bytes32",o.keccak(c)];if(t.lastIndexOf("]")===t.length-1){const a=t.slice(0,t.lastIndexOf("[")),r=c.map((t=>d(e,a,t)));return["bytes32",o.keccak(s.rawEncode(r.map((([e])=>e)),r.map((([,e])=>e))))]}return[t,c]};for(const r of a[e]){const[e,a]=d(r.name,r.type,t[r.name]);c.push(e),i.push(a)}}else for(const s of a[e]){let e=t[s.name];if(void 0!==e)if("bytes"===s.type)c.push("bytes32"),e=o.keccak(e),i.push(e);else if("string"===s.type)c.push("bytes32"),"string"==typeof e&&(e=r.from(e,"utf8")),e=o.keccak(e),i.push(e);else if(void 0!==a[s.type])c.push("bytes32"),e=o.keccak(this.encodeData(s.type,e,a,n)),i.push(e);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");c.push(s.type),i.push(e)}}return s.rawEncode(c,i)},encodeType(e,t){let a="",r=this.findTypeDependencies(e,t).filter((t=>t!==e));r=[e].concat(r.sort());for(const e of r){if(!t[e])throw new Error(`No type definition specified: ${e}`);a+=`${e}(${t[e].map((({name:e,type:t})=>`${t} ${e}`)).join(",")})`}return a},findTypeDependencies(e,t,a=[]){if([e]=e.match(/^\w*/u),a.includes(e)||void 0===t[e])return a;a.push(e);for(const r of t[e])for(const e of this.findTypeDependencies(r.type,t,a))!a.includes(e)&&a.push(e);return a},hashStruct(e,t,a,r=!0){return o.keccak(this.encodeData(e,t,a,r))},hashType(e,t){return o.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const a in u.properties)e[a]&&(t[a]=e[a]);return"types"in t&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},sign(e,t=!0){const a=this.sanitizeData(e),n=[r.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",a.domain,a.types,t)),"EIP712Domain"!==a.primaryType&&n.push(this.hashStruct(a.primaryType,a.message,a.types,t)),o.keccak(r.concat(n))}};function l(e,t,a){const r=o.fromSigned(t),n=o.fromSigned(a),c=o.bufferToInt(e),i=E(o.toUnsigned(r).toString("hex"),64),s=E(o.toUnsigned(n).toString("hex"),64),d=o.stripHexPrefix(o.intToHex(c));return o.addHexPrefix(i.concat(s,d)).toString("hex")}function h(e,t){const a=A(t.data),r=o.ecsign(a,e);return o.bufferToHex(l(r.v,r.r,r.s))}function p(e){const t=k(A(e.data),e.sig),a=o.publicToAddress(t);return o.bufferToHex(a)}function m(e,t,a){if("x25519-xsalsa20-poly1305"===a){if("string"!=typeof t.data)throw new Error('Cannot detect secret message, message params should be of the form {data: "secret message"} ');const a=d.box.keyPair();let r;try{r=f.decodeBase64(e)}catch(e){throw new Error("Bad public key")}const n=f.decodeUTF8(t.data),c=d.randomBytes(d.box.nonceLength),i=d.box(n,c,r,a.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:f.encodeBase64(c),ephemPublicKey:f.encodeBase64(a.publicKey),ciphertext:f.encodeBase64(i)}}throw new Error("Encryption type/version not supported")}function y(e,t){if("x25519-xsalsa20-poly1305"===e.version){const a=I(t),r=d.box.keyPair.fromSecretKey(a).secretKey,n=f.decodeBase64(e.nonce),c=f.decodeBase64(e.ciphertext),i=f.decodeBase64(e.ephemPublicKey),o=d.box.open(c,n,i,r);let s;try{s=f.encodeUTF8(o)}catch(e){throw new Error("Decryption failed.")}if(s)return s;throw new Error("Decryption failed.")}throw new Error("Encryption type/version not supported.")}function g(e,t){const a=b.sign(t.data,!1),r=o.ecsign(a,e);return o.bufferToHex(l(r.v,r.r,r.s))}function x(e,t){const a=b.sign(t.data),r=o.ecsign(a,e);return o.bufferToHex(l(r.v,r.r,r.s))}function v(e){const t=k(b.sign(e.data,!1),e.sig),a=o.publicToAddress(t);return o.bufferToHex(a)}function w(e){const t=k(b.sign(e.data),e.sig),a=o.publicToAddress(t);return o.bufferToHex(a)}function A(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!("length"in e)||!e.length)throw t;const a=e.map((function(e){return"bytes"===e.type?o.toBuffer(e.value):e.value})),r=e.map((function(e){return e.type})),n=e.map((function(e){if(!e.name)throw t;return`${e.type} ${e.name}`}));return s.soliditySHA3(["bytes32","bytes32"],[s.soliditySHA3(new Array(e.length).fill("string"),n),s.soliditySHA3(r,a)])}function k(e,t){const a=o.toBuffer(t),r=o.fromRpcSig(a);return o.ecrecover(e,r.v,r.r,r.s)}function S(e){const t=o.toBuffer(e.data);return k(o.hashPersonalMessage(t),e.sig)}function E(e,t){let a=`${e}`;for(;a.length0&&(o=2048-i-16),c.padding="0".repeat(o),m(e,{data:JSON.stringify(c)},a)},t.decrypt=y,t.decryptSafely=function(e,t){return JSON.parse(y(e,t)).data},t.getEncryptionPublicKey=function(e){const t=I(e),a=d.box.keyPair.fromSecretKey(t).publicKey;return f.encodeBase64(a)},t.signTypedMessage=function(e,t,a="V4"){switch(a){case"V1":return h(e,t);case"V3":return g(e,t);default:return x(e,t)}},t.recoverTypedMessage=function(e,t="V4"){switch(t){case"V1":return p(e);case"V3":return v(e);default:return w(e)}},t.signTypedData=g,t.signTypedData_v4=x,t.recoverTypedSignature=v,t.recoverTypedSignature_v4=w},64611:(e,t,a)=>{"use strict";var r="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},n=a(1115),c=n.keccak224,i=n.keccak384,o=n.keccak256,s=n.keccak512,d=a(70728),f=a(71696),u=a(25859),b=a(80079),l=a(16162),h=a(77834).Buffer;Object.assign(t,a(81538)),t.MAX_INTEGER=new b("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new b("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.SHA3_NULL_S=t.KECCAK256_NULL_S,t.KECCAK256_NULL=h.from(t.KECCAK256_NULL_S,"hex"),t.SHA3_NULL=t.KECCAK256_NULL,t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.SHA3_RLP_ARRAY_S=t.KECCAK256_RLP_ARRAY_S,t.KECCAK256_RLP_ARRAY=h.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.SHA3_RLP_ARRAY=t.KECCAK256_RLP_ARRAY,t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.SHA3_RLP_S=t.KECCAK256_RLP_S,t.KECCAK256_RLP=h.from(t.KECCAK256_RLP_S,"hex"),t.SHA3_RLP=t.KECCAK256_RLP,t.BN=b,t.rlp=u,t.secp256k1=d,t.zeros=function(e){return h.allocUnsafe(e).fill(0)},t.zeroAddress=function(){var e=t.zeros(20);return t.bufferToHex(e)},t.setLengthLeft=t.setLength=function(e,a,r){var n=t.zeros(a);return e=t.toBuffer(e),r?e.length0&&"0"===a.toString();)a=(e=e.slice(1))[0];return e},t.toBuffer=function(e){if(!h.isBuffer(e))if(Array.isArray(e))e=h.from(e);else if("string"==typeof e)e=t.isHexString(e)?h.from(t.padToEven(t.stripHexPrefix(e)),"hex"):h.from(e);else if("number"==typeof e)e=t.intToBuffer(e);else if(null==e)e=h.allocUnsafe(0);else if(b.isBN(e))e=e.toArrayLike(h);else{if(!e.toArray)throw new Error("invalid type");e=h.from(e.toArray())}return e},t.bufferToInt=function(e){return new b(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new b(e).fromTwos(256)},t.toUnsigned=function(e){return h.from(e.toTwos(256).toArray())},t.keccak=function(e,a){switch(e=t.toBuffer(e),a||(a=256),a){case 224:return c(e);case 256:return o(e);case 384:return i(e);case 512:return s(e);default:throw new Error("Invald algorithm: keccak"+a)}},t.keccak256=function(e){return t.keccak(e)},t.sha3=t.keccak,t.sha256=function(e){return e=t.toBuffer(e),l("sha256").update(e).digest()},t.ripemd160=function(e,a){e=t.toBuffer(e);var r=l("rmd160").update(e).digest();return!0===a?t.setLength(r,32):r},t.rlphash=function(e){return t.keccak(u.encode(e))},t.isValidPrivate=function(e){return d.privateKeyVerify(e)},t.isValidPublic=function(e,t){return 64===e.length?d.publicKeyVerify(h.concat([h.from([4]),e])):!!t&&d.publicKeyVerify(e)},t.pubToAddress=t.publicToAddress=function(e,a){return e=t.toBuffer(e),a&&64!==e.length&&(e=d.publicKeyConvert(e,!1).slice(1)),f(64===e.length),t.keccak(e).slice(-20)};var p=t.privateToPublic=function(e){return e=t.toBuffer(e),d.publicKeyCreate(e,!1).slice(1)};t.importPublic=function(e){return 64!==(e=t.toBuffer(e)).length&&(e=d.publicKeyConvert(e,!1).slice(1)),e},t.ecsign=function(e,t){var a=d.sign(e,t),r={};return r.r=a.signature.slice(0,32),r.s=a.signature.slice(32,64),r.v=a.recovery+27,r},t.hashPersonalMessage=function(e){var a=t.toBuffer("Ethereum Signed Message:\n"+e.length.toString());return t.keccak(h.concat([a,e]))},t.ecrecover=function(e,a,r,n){var c=h.concat([t.setLength(r,32),t.setLength(n,32)],64),i=a-27;if(0!==i&&1!==i)throw new Error("Invalid signature v value");var o=d.recover(e,c,i);return d.publicKeyConvert(o,!1).slice(1)},t.toRpcSig=function(e,a,r){if(27!==e&&28!==e)throw new Error("Invalid recovery id");return t.bufferToHex(h.concat([t.setLengthLeft(a,32),t.setLengthLeft(r,32),t.toBuffer(e-27)]))},t.fromRpcSig=function(e){if(65!==(e=t.toBuffer(e)).length)throw new Error("Invalid signature length");var a=e[64];return a<27&&(a+=27),{v:a,r:e.slice(0,32),s:e.slice(32,64)}},t.privateToAddress=function(e){return t.publicToAddress(p(e))},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===t.addHexPrefix(e)},t.toChecksumAddress=function(e){e=t.stripHexPrefix(e).toLowerCase();for(var a=t.keccak(e).toString("hex"),r="0x",n=0;n=8?r+=e[n].toUpperCase():r+=e[n];return r},t.isValidChecksumAddress=function(e){return t.isValidAddress(e)&&t.toChecksumAddress(e)===e},t.generateAddress=function(e,a){return e=t.toBuffer(e),a=(a=new b(a)).isZero()?null:h.from(a.toArray()),t.rlphash([e,a]).slice(-20)},t.isPrecompiled=function(e){var a=t.unpad(e);return 1===a.length&&a[0]>=1&&a[0]<=8},t.addHexPrefix=function(e){return"string"!=typeof e||t.isHexPrefixed(e)?e:"0x"+e},t.isValidSignature=function(e,t,a,r){var n=new b("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),c=new b("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return!(32!==t.length||32!==a.length||27!==e&&28!==e||(t=new b(t),a=new b(a),t.isZero()||t.gt(c)||a.isZero()||a.gt(c)||!1===r&&1===new b(a).cmp(n)))},t.baToJSON=function(e){if(h.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var a=[],r=0;r=n.length,"The field "+a.name+" must not have more "+a.length+" bytes")):a.allowZero&&0===n.length||!a.length||f(a.length===n.length,"The field "+a.name+" must have byte length of "+a.length),e.raw[r]=n}e._fields.push(a.name),Object.defineProperty(e,a.name,{enumerable:!0,configurable:!0,get:n,set:c}),a.default&&(e[a.name]=a.default),a.alias&&Object.defineProperty(e,a.alias,{enumerable:!1,configurable:!0,set:c,get:n})})),n)if("string"==typeof n&&(n=h.from(t.stripHexPrefix(n),"hex")),h.isBuffer(n)&&(n=u.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(a,r){e[e._fields[r]]=t.toBuffer(a)}))}else{if("object"!==(void 0===n?"undefined":r(n)))throw new Error("invalid data");var c=Object.keys(n);a.forEach((function(t){-1!==c.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==c.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}},70728:(e,t,a)=>{"use strict";var r=a(48834).Buffer,n=a(80101),c=a(64026),i=a(32e3),o=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))};e.exports={privateKeyVerify:o,privateKeyExport:function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var a=c.privateKeyExport(e,t);return i.privateKeyExport(e,a,t)},privateKeyImport:function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&o(e))return e;throw new Error("couldn't import from DER format")},privateKeyNegate:function(e){return r.from(n.privateKeyNegate(Uint8Array.from(e)))},privateKeyModInverse:function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(c.privateKeyModInverse(Uint8Array.from(e)))},privateKeyTweakAdd:function(e,t){return r.from(n.privateKeyTweakAdd(Uint8Array.from(e),t))},privateKeyTweakMul:function(e,t){return r.from(n.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},publicKeyCreate:function(e,t){return r.from(n.publicKeyCreate(Uint8Array.from(e),t))},publicKeyConvert:function(e,t){return r.from(n.publicKeyConvert(Uint8Array.from(e),t))},publicKeyVerify:function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},publicKeyTweakAdd:function(e,t,a){return r.from(n.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),a))},publicKeyTweakMul:function(e,t,a){return r.from(n.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),a))},publicKeyCombine:function(e,t){var a=[];return e.forEach((function(e){a.push(Uint8Array.from(e))})),r.from(n.publicKeyCombine(a,t))},signatureNormalize:function(e){return r.from(n.signatureNormalize(Uint8Array.from(e)))},signatureExport:function(e){return r.from(n.signatureExport(Uint8Array.from(e)))},signatureImport:function(e){return r.from(n.signatureImport(Uint8Array.from(e)))},signatureImportLax:function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return c.signatureImport(t)},sign:function(e,t,a){if(null===a)throw new TypeError("options should be an Object");var c=void 0;if(a){if(c={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!==a.data.length)throw new RangeError("options.data length is invalid");c.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(c.noncefn=function(e,t,n,c,i){var o=null!=n?r.from(n):null,s=null!=c?r.from(c):null,d=r.from("");return a.noncefn&&(d=a.noncefn(r.from(e),r.from(t),o,s,i)),Uint8Array.from(d)})}var i=n.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),c);return{signature:r.from(i.signature),recovery:i.recid}},verify:function(e,t,a){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),a)},recover:function(e,t,a,c){return r.from(n.ecdsaRecover(Uint8Array.from(t),a,Uint8Array.from(e),c))},ecdh:function(e,t){return r.from(n.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},ecdhUnsafe:function(e,t,a){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return r.from(c.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),a))}}},32e3:(e,t,a)=>{"use strict";var r=a(48834).Buffer,n=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),c=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,a){var i=r.from(a?n:c);return e.copy(i,a?8:9),t.copy(i,a?181:214),i},t.privateKeyImport=function(e){var t=e.length,a=0;if(t2)return null;if(t<(a+=1)+r)return null;var n=e[a+r-1]|(r>1?e[a+r-2]<<8:0);return t<(a+=r)+n||t32||tn)return null;if(2!==e[c++])return null;var o=e[c++];if(128&o){if(c+(i=o-128)>n)return null;for(;i>0&&0===e[c];c+=1,i-=1);for(o=0;i>0;c+=1,i-=1)o=(o<<8)+e[c]}if(o>n-c)return null;var s=c;if(c+=o,2!==e[c++])return null;var d=e[c++];if(128&d){if(c+(i=d-128)>n)return null;for(;i>0&&0===e[c];c+=1,i-=1);for(d=0;i>0;c+=1,i-=1)d=(d<<8)+e[c]}if(d>n-c)return null;var f=c;for(c+=d;o>0&&0===e[s];o-=1,s+=1);if(o>32)return null;var u=e.slice(s,s+o);for(u.copy(t,32-u.length);d>0&&0===e[f];d-=1,f+=1);if(d>32)return null;var b=e.slice(f,f+d);return b.copy(a,32-b.length),{r:t,s:a}}},64026:(e,t,a)=>{"use strict";var r=a(48834).Buffer,n=a(80079),c=new(0,a(87554).ec)("secp256k1"),i=c.curve;t.privateKeyExport=function(e,t){var a=new n(e);if(a.ucmp(i.n)>=0)throw new Error("couldn't export to DER format");var r=c.g.mul(a);return o(r.getX(),r.getY(),t)},t.privateKeyModInverse=function(e){var t=new n(e);if(t.ucmp(i.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(i.n).toArrayLike(r,"be",32)},t.signatureImport=function(e){var t=new n(e.r);t.ucmp(i.n)>=0&&(t=new n(0));var a=new n(e.s);return a.ucmp(i.n)>=0&&(a=new n(0)),r.concat([t.toArrayLike(r,"be",32),a.toArrayLike(r,"be",32)])},t.ecdhUnsafe=function(e,t,a){var r=c.keyFromPublic(e),s=new n(t);if(s.ucmp(i.n)>=0||s.isZero())throw new Error("scalar was invalid (zero or overflow)");var d=r.pub.mul(s);return o(d.getX(),d.getY(),a)};var o=function(e,t,a){var n=void 0;return a?((n=r.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(n,1)):((n=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(n,1),t.toArrayLike(r,"be",32).copy(n,33)),n}},80079:function(e,t,a){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function c(e,t,a){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var i;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:a(50285).Buffer}catch(e){}function o(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},25859:function(e,t,a){"use strict";var r=a(48834).Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var c=n(a(62197));function i(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,t){if(e<56)return r.from([e+t]);var a=f(e),n=f(t+55+a.length/2);return r.from(n+a,"hex")}function s(e){var t,a,n,c,o,d=[],f=e[0];if(f<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(f<=183){if(t=f-127,n=128===f?r.from([]):e.slice(1,t),2===t&&n[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:n,remainder:e.slice(t)}}if(f<=191){if(a=f-182,e.length-1e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(c=e.slice(a,u)).length)throw new Error("invalid rlp, List has a invalid length");for(;c.length;)o=s(c),d.push(o.data),c=o.remainder;return{data:d,remainder:e.slice(u)}}function d(e){return"0x"===e.slice(0,2)}function f(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(e){if(!r.isBuffer(e)){if("string"==typeof e)return d(e)?r.from((a="string"!=typeof(n=e)?n:d(n)?n.slice(2):n).length%2?"0"+a:a,"hex"):r.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(t=f(e),r.from(t,"hex")):r.from([]);if(null==e)return r.from([]);if(e instanceof Uint8Array)return r.from(e);if(c.default.isBN(e))return r.from(e.toArray());throw new Error("invalid type")}var t,a,n;return e}t.encode=function e(t){if(Array.isArray(t)){for(var a=[],n=0;n{!function(e){"use strict";var t=function(e){var t,a=new Float64Array(16);if(e)for(t=0;t>24&255,e[t+1]=a>>16&255,e[t+2]=a>>8&255,e[t+3]=255&a,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function p(e,t,a,r,n){var c,i=0;for(c=0;c>>8)-1}function m(e,t,a,r){return p(e,t,a,r,16)}function y(e,t,a,r){return p(e,t,a,r,32)}function g(e,t,a,r){!function(e,t,a,r){for(var n,c=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,i=255&a[0]|(255&a[1])<<8|(255&a[2])<<16|(255&a[3])<<24,o=255&a[4]|(255&a[5])<<8|(255&a[6])<<16|(255&a[7])<<24,s=255&a[8]|(255&a[9])<<8|(255&a[10])<<16|(255&a[11])<<24,d=255&a[12]|(255&a[13])<<8|(255&a[14])<<16|(255&a[15])<<24,f=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,b=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,p=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&a[16]|(255&a[17])<<8|(255&a[18])<<16|(255&a[19])<<24,y=255&a[20]|(255&a[21])<<8|(255&a[22])<<16|(255&a[23])<<24,g=255&a[24]|(255&a[25])<<8|(255&a[26])<<16|(255&a[27])<<24,x=255&a[28]|(255&a[29])<<8|(255&a[30])<<16|(255&a[31])<<24,v=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=c,A=i,k=o,S=s,E=d,I=f,M=u,C=b,P=l,T=h,O=p,N=m,R=y,B=g,D=x,V=v,L=0;L<20;L+=2)w^=(n=(R^=(n=(P^=(n=(E^=(n=w+R|0)<<7|n>>>25)+w|0)<<9|n>>>23)+E|0)<<13|n>>>19)+P|0)<<18|n>>>14,I^=(n=(A^=(n=(B^=(n=(T^=(n=I+A|0)<<7|n>>>25)+I|0)<<9|n>>>23)+T|0)<<13|n>>>19)+B|0)<<18|n>>>14,O^=(n=(M^=(n=(k^=(n=(D^=(n=O+M|0)<<7|n>>>25)+O|0)<<9|n>>>23)+D|0)<<13|n>>>19)+k|0)<<18|n>>>14,V^=(n=(N^=(n=(C^=(n=(S^=(n=V+N|0)<<7|n>>>25)+V|0)<<9|n>>>23)+S|0)<<13|n>>>19)+C|0)<<18|n>>>14,w^=(n=(S^=(n=(k^=(n=(A^=(n=w+S|0)<<7|n>>>25)+w|0)<<9|n>>>23)+A|0)<<13|n>>>19)+k|0)<<18|n>>>14,I^=(n=(E^=(n=(C^=(n=(M^=(n=I+E|0)<<7|n>>>25)+I|0)<<9|n>>>23)+M|0)<<13|n>>>19)+C|0)<<18|n>>>14,O^=(n=(T^=(n=(P^=(n=(N^=(n=O+T|0)<<7|n>>>25)+O|0)<<9|n>>>23)+N|0)<<13|n>>>19)+P|0)<<18|n>>>14,V^=(n=(D^=(n=(B^=(n=(R^=(n=V+D|0)<<7|n>>>25)+V|0)<<9|n>>>23)+R|0)<<13|n>>>19)+B|0)<<18|n>>>14;w=w+c|0,A=A+i|0,k=k+o|0,S=S+s|0,E=E+d|0,I=I+f|0,M=M+u|0,C=C+b|0,P=P+l|0,T=T+h|0,O=O+p|0,N=N+m|0,R=R+y|0,B=B+g|0,D=D+x|0,V=V+v|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=A>>>0&255,e[5]=A>>>8&255,e[6]=A>>>16&255,e[7]=A>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=I>>>0&255,e[21]=I>>>8&255,e[22]=I>>>16&255,e[23]=I>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=C>>>0&255,e[29]=C>>>8&255,e[30]=C>>>16&255,e[31]=C>>>24&255,e[32]=P>>>0&255,e[33]=P>>>8&255,e[34]=P>>>16&255,e[35]=P>>>24&255,e[36]=T>>>0&255,e[37]=T>>>8&255,e[38]=T>>>16&255,e[39]=T>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=N>>>0&255,e[45]=N>>>8&255,e[46]=N>>>16&255,e[47]=N>>>24&255,e[48]=R>>>0&255,e[49]=R>>>8&255,e[50]=R>>>16&255,e[51]=R>>>24&255,e[52]=B>>>0&255,e[53]=B>>>8&255,e[54]=B>>>16&255,e[55]=B>>>24&255,e[56]=D>>>0&255,e[57]=D>>>8&255,e[58]=D>>>16&255,e[59]=D>>>24&255,e[60]=V>>>0&255,e[61]=V>>>8&255,e[62]=V>>>16&255,e[63]=V>>>24&255}(e,t,a,r)}function x(e,t,a,r){!function(e,t,a,r){for(var n,c=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,i=255&a[0]|(255&a[1])<<8|(255&a[2])<<16|(255&a[3])<<24,o=255&a[4]|(255&a[5])<<8|(255&a[6])<<16|(255&a[7])<<24,s=255&a[8]|(255&a[9])<<8|(255&a[10])<<16|(255&a[11])<<24,d=255&a[12]|(255&a[13])<<8|(255&a[14])<<16|(255&a[15])<<24,f=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,b=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,p=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&a[16]|(255&a[17])<<8|(255&a[18])<<16|(255&a[19])<<24,y=255&a[20]|(255&a[21])<<8|(255&a[22])<<16|(255&a[23])<<24,g=255&a[24]|(255&a[25])<<8|(255&a[26])<<16|(255&a[27])<<24,x=255&a[28]|(255&a[29])<<8|(255&a[30])<<16|(255&a[31])<<24,v=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)c^=(n=(y^=(n=(l^=(n=(d^=(n=c+y|0)<<7|n>>>25)+c|0)<<9|n>>>23)+d|0)<<13|n>>>19)+l|0)<<18|n>>>14,f^=(n=(i^=(n=(g^=(n=(h^=(n=f+i|0)<<7|n>>>25)+f|0)<<9|n>>>23)+h|0)<<13|n>>>19)+g|0)<<18|n>>>14,p^=(n=(u^=(n=(o^=(n=(x^=(n=p+u|0)<<7|n>>>25)+p|0)<<9|n>>>23)+x|0)<<13|n>>>19)+o|0)<<18|n>>>14,v^=(n=(m^=(n=(b^=(n=(s^=(n=v+m|0)<<7|n>>>25)+v|0)<<9|n>>>23)+s|0)<<13|n>>>19)+b|0)<<18|n>>>14,c^=(n=(s^=(n=(o^=(n=(i^=(n=c+s|0)<<7|n>>>25)+c|0)<<9|n>>>23)+i|0)<<13|n>>>19)+o|0)<<18|n>>>14,f^=(n=(d^=(n=(b^=(n=(u^=(n=f+d|0)<<7|n>>>25)+f|0)<<9|n>>>23)+u|0)<<13|n>>>19)+b|0)<<18|n>>>14,p^=(n=(h^=(n=(l^=(n=(m^=(n=p+h|0)<<7|n>>>25)+p|0)<<9|n>>>23)+m|0)<<13|n>>>19)+l|0)<<18|n>>>14,v^=(n=(x^=(n=(g^=(n=(y^=(n=v+x|0)<<7|n>>>25)+v|0)<<9|n>>>23)+y|0)<<13|n>>>19)+g|0)<<18|n>>>14;e[0]=c>>>0&255,e[1]=c>>>8&255,e[2]=c>>>16&255,e[3]=c>>>24&255,e[4]=f>>>0&255,e[5]=f>>>8&255,e[6]=f>>>16&255,e[7]=f>>>24&255,e[8]=p>>>0&255,e[9]=p>>>8&255,e[10]=p>>>16&255,e[11]=p>>>24&255,e[12]=v>>>0&255,e[13]=v>>>8&255,e[14]=v>>>16&255,e[15]=v>>>24&255,e[16]=u>>>0&255,e[17]=u>>>8&255,e[18]=u>>>16&255,e[19]=u>>>24&255,e[20]=b>>>0&255,e[21]=b>>>8&255,e[22]=b>>>16&255,e[23]=b>>>24&255,e[24]=l>>>0&255,e[25]=l>>>8&255,e[26]=l>>>16&255,e[27]=l>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,a,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,a,r,n,c,i){var o,s,d=new Uint8Array(16),f=new Uint8Array(64);for(s=0;s<16;s++)d[s]=0;for(s=0;s<8;s++)d[s]=c[s];for(;n>=64;){for(g(f,d,i,v),s=0;s<64;s++)e[t+s]=a[r+s]^f[s];for(o=1,s=8;s<16;s++)o=o+(255&d[s])|0,d[s]=255&o,o>>>=8;n-=64,t+=64,r+=64}if(n>0)for(g(f,d,i,v),s=0;s=64;){for(g(s,o,n,v),i=0;i<64;i++)e[t+i]=s[i];for(c=1,i=8;i<16;i++)c=c+(255&o[i])|0,o[i]=255&c,c>>>=8;a-=64,t+=64}if(a>0)for(g(s,o,n,v),i=0;i>>13|a<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(a>>>10|r<<6),n=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|n<<9),c=255&e[8]|(255&e[9])<<8,this.r[4]=255&(n>>>4|c<<12),this.r[5]=c>>>1&8190,i=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(c>>>14|i<<2),o=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(i>>>11|o<<5),s=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(o>>>8|s<<8),this.r[9]=s>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function I(e,t,a,r,n,c){var i=new E(c);return i.update(a,r,n),i.finish(e,t),0}function M(e,t,a,r,n,c){var i=new Uint8Array(16);return I(i,0,a,r,n,c),m(e,t,i,0)}function C(e,t,a,r,n){var c;if(a<32)return-1;for(S(e,0,t,0,a,r,n),I(e,16,e,32,a-32,e),c=0;c<16;c++)e[c]=0;return 0}function P(e,t,a,r,n){var c,i=new Uint8Array(32);if(a<32)return-1;if(k(i,0,32,r,n),0!==M(t,16,t,32,a-32,i))return-1;for(S(e,0,t,0,a,r,n),c=0;c<32;c++)e[c]=0;return 0}function T(e,t){var a;for(a=0;a<16;a++)e[a]=0|t[a]}function O(e){var t,a,r=1;for(t=0;t<16;t++)a=e[t]+r+65535,r=Math.floor(a/65536),e[t]=a-65536*r;e[0]+=r-1+37*(r-1)}function N(e,t,a){for(var r,n=~(a-1),c=0;c<16;c++)r=n&(e[c]^t[c]),e[c]^=r,t[c]^=r}function R(e,a){var r,n,c,i=t(),o=t();for(r=0;r<16;r++)o[r]=a[r];for(O(o),O(o),O(o),n=0;n<2;n++){for(i[0]=o[0]-65517,r=1;r<15;r++)i[r]=o[r]-65535-(i[r-1]>>16&1),i[r-1]&=65535;i[15]=o[15]-32767-(i[14]>>16&1),c=i[15]>>16&1,i[14]&=65535,N(o,i,1-c)}for(r=0;r<16;r++)e[2*r]=255&o[r],e[2*r+1]=o[r]>>8}function B(e,t){var a=new Uint8Array(32),r=new Uint8Array(32);return R(a,e),R(r,t),y(a,0,r,0)}function D(e){var t=new Uint8Array(32);return R(t,e),1&t[0]}function V(e,t){var a;for(a=0;a<16;a++)e[a]=t[2*a]+(t[2*a+1]<<8);e[15]&=32767}function L(e,t,a){for(var r=0;r<16;r++)e[r]=t[r]+a[r]}function j(e,t,a){for(var r=0;r<16;r++)e[r]=t[r]-a[r]}function U(e,t,a){var r,n,c=0,i=0,o=0,s=0,d=0,f=0,u=0,b=0,l=0,h=0,p=0,m=0,y=0,g=0,x=0,v=0,w=0,A=0,k=0,S=0,E=0,I=0,M=0,C=0,P=0,T=0,O=0,N=0,R=0,B=0,D=0,V=a[0],L=a[1],j=a[2],U=a[3],H=a[4],F=a[5],z=a[6],q=a[7],K=a[8],X=a[9],W=a[10],G=a[11],Z=a[12],J=a[13],Y=a[14],Q=a[15];c+=(r=t[0])*V,i+=r*L,o+=r*j,s+=r*U,d+=r*H,f+=r*F,u+=r*z,b+=r*q,l+=r*K,h+=r*X,p+=r*W,m+=r*G,y+=r*Z,g+=r*J,x+=r*Y,v+=r*Q,i+=(r=t[1])*V,o+=r*L,s+=r*j,d+=r*U,f+=r*H,u+=r*F,b+=r*z,l+=r*q,h+=r*K,p+=r*X,m+=r*W,y+=r*G,g+=r*Z,x+=r*J,v+=r*Y,w+=r*Q,o+=(r=t[2])*V,s+=r*L,d+=r*j,f+=r*U,u+=r*H,b+=r*F,l+=r*z,h+=r*q,p+=r*K,m+=r*X,y+=r*W,g+=r*G,x+=r*Z,v+=r*J,w+=r*Y,A+=r*Q,s+=(r=t[3])*V,d+=r*L,f+=r*j,u+=r*U,b+=r*H,l+=r*F,h+=r*z,p+=r*q,m+=r*K,y+=r*X,g+=r*W,x+=r*G,v+=r*Z,w+=r*J,A+=r*Y,k+=r*Q,d+=(r=t[4])*V,f+=r*L,u+=r*j,b+=r*U,l+=r*H,h+=r*F,p+=r*z,m+=r*q,y+=r*K,g+=r*X,x+=r*W,v+=r*G,w+=r*Z,A+=r*J,k+=r*Y,S+=r*Q,f+=(r=t[5])*V,u+=r*L,b+=r*j,l+=r*U,h+=r*H,p+=r*F,m+=r*z,y+=r*q,g+=r*K,x+=r*X,v+=r*W,w+=r*G,A+=r*Z,k+=r*J,S+=r*Y,E+=r*Q,u+=(r=t[6])*V,b+=r*L,l+=r*j,h+=r*U,p+=r*H,m+=r*F,y+=r*z,g+=r*q,x+=r*K,v+=r*X,w+=r*W,A+=r*G,k+=r*Z,S+=r*J,E+=r*Y,I+=r*Q,b+=(r=t[7])*V,l+=r*L,h+=r*j,p+=r*U,m+=r*H,y+=r*F,g+=r*z,x+=r*q,v+=r*K,w+=r*X,A+=r*W,k+=r*G,S+=r*Z,E+=r*J,I+=r*Y,M+=r*Q,l+=(r=t[8])*V,h+=r*L,p+=r*j,m+=r*U,y+=r*H,g+=r*F,x+=r*z,v+=r*q,w+=r*K,A+=r*X,k+=r*W,S+=r*G,E+=r*Z,I+=r*J,M+=r*Y,C+=r*Q,h+=(r=t[9])*V,p+=r*L,m+=r*j,y+=r*U,g+=r*H,x+=r*F,v+=r*z,w+=r*q,A+=r*K,k+=r*X,S+=r*W,E+=r*G,I+=r*Z,M+=r*J,C+=r*Y,P+=r*Q,p+=(r=t[10])*V,m+=r*L,y+=r*j,g+=r*U,x+=r*H,v+=r*F,w+=r*z,A+=r*q,k+=r*K,S+=r*X,E+=r*W,I+=r*G,M+=r*Z,C+=r*J,P+=r*Y,T+=r*Q,m+=(r=t[11])*V,y+=r*L,g+=r*j,x+=r*U,v+=r*H,w+=r*F,A+=r*z,k+=r*q,S+=r*K,E+=r*X,I+=r*W,M+=r*G,C+=r*Z,P+=r*J,T+=r*Y,O+=r*Q,y+=(r=t[12])*V,g+=r*L,x+=r*j,v+=r*U,w+=r*H,A+=r*F,k+=r*z,S+=r*q,E+=r*K,I+=r*X,M+=r*W,C+=r*G,P+=r*Z,T+=r*J,O+=r*Y,N+=r*Q,g+=(r=t[13])*V,x+=r*L,v+=r*j,w+=r*U,A+=r*H,k+=r*F,S+=r*z,E+=r*q,I+=r*K,M+=r*X,C+=r*W,P+=r*G,T+=r*Z,O+=r*J,N+=r*Y,R+=r*Q,x+=(r=t[14])*V,v+=r*L,w+=r*j,A+=r*U,k+=r*H,S+=r*F,E+=r*z,I+=r*q,M+=r*K,C+=r*X,P+=r*W,T+=r*G,O+=r*Z,N+=r*J,R+=r*Y,B+=r*Q,v+=(r=t[15])*V,i+=38*(A+=r*j),o+=38*(k+=r*U),s+=38*(S+=r*H),d+=38*(E+=r*F),f+=38*(I+=r*z),u+=38*(M+=r*q),b+=38*(C+=r*K),l+=38*(P+=r*X),h+=38*(T+=r*W),p+=38*(O+=r*G),m+=38*(N+=r*Z),y+=38*(R+=r*J),g+=38*(B+=r*Y),x+=38*(D+=r*Q),c=(r=(c+=38*(w+=r*L))+(n=1)+65535)-65536*(n=Math.floor(r/65536)),i=(r=i+n+65535)-65536*(n=Math.floor(r/65536)),o=(r=o+n+65535)-65536*(n=Math.floor(r/65536)),s=(r=s+n+65535)-65536*(n=Math.floor(r/65536)),d=(r=d+n+65535)-65536*(n=Math.floor(r/65536)),f=(r=f+n+65535)-65536*(n=Math.floor(r/65536)),u=(r=u+n+65535)-65536*(n=Math.floor(r/65536)),b=(r=b+n+65535)-65536*(n=Math.floor(r/65536)),l=(r=l+n+65535)-65536*(n=Math.floor(r/65536)),h=(r=h+n+65535)-65536*(n=Math.floor(r/65536)),p=(r=p+n+65535)-65536*(n=Math.floor(r/65536)),m=(r=m+n+65535)-65536*(n=Math.floor(r/65536)),y=(r=y+n+65535)-65536*(n=Math.floor(r/65536)),g=(r=g+n+65535)-65536*(n=Math.floor(r/65536)),x=(r=x+n+65535)-65536*(n=Math.floor(r/65536)),v=(r=v+n+65535)-65536*(n=Math.floor(r/65536)),c=(r=(c+=n-1+37*(n-1))+(n=1)+65535)-65536*(n=Math.floor(r/65536)),i=(r=i+n+65535)-65536*(n=Math.floor(r/65536)),o=(r=o+n+65535)-65536*(n=Math.floor(r/65536)),s=(r=s+n+65535)-65536*(n=Math.floor(r/65536)),d=(r=d+n+65535)-65536*(n=Math.floor(r/65536)),f=(r=f+n+65535)-65536*(n=Math.floor(r/65536)),u=(r=u+n+65535)-65536*(n=Math.floor(r/65536)),b=(r=b+n+65535)-65536*(n=Math.floor(r/65536)),l=(r=l+n+65535)-65536*(n=Math.floor(r/65536)),h=(r=h+n+65535)-65536*(n=Math.floor(r/65536)),p=(r=p+n+65535)-65536*(n=Math.floor(r/65536)),m=(r=m+n+65535)-65536*(n=Math.floor(r/65536)),y=(r=y+n+65535)-65536*(n=Math.floor(r/65536)),g=(r=g+n+65535)-65536*(n=Math.floor(r/65536)),x=(r=x+n+65535)-65536*(n=Math.floor(r/65536)),v=(r=v+n+65535)-65536*(n=Math.floor(r/65536)),c+=n-1+37*(n-1),e[0]=c,e[1]=i,e[2]=o,e[3]=s,e[4]=d,e[5]=f,e[6]=u,e[7]=b,e[8]=l,e[9]=h,e[10]=p,e[11]=m,e[12]=y,e[13]=g,e[14]=x,e[15]=v}function H(e,t){U(e,t,t)}function F(e,a){var r,n=t();for(r=0;r<16;r++)n[r]=a[r];for(r=253;r>=0;r--)H(n,n),2!==r&&4!==r&&U(n,n,a);for(r=0;r<16;r++)e[r]=n[r]}function z(e,a){var r,n=t();for(r=0;r<16;r++)n[r]=a[r];for(r=250;r>=0;r--)H(n,n),1!==r&&U(n,n,a);for(r=0;r<16;r++)e[r]=n[r]}function q(e,a,r){var n,c,i=new Uint8Array(32),o=new Float64Array(80),d=t(),f=t(),u=t(),b=t(),l=t(),h=t();for(c=0;c<31;c++)i[c]=a[c];for(i[31]=127&a[31]|64,i[0]&=248,V(o,r),c=0;c<16;c++)f[c]=o[c],b[c]=d[c]=u[c]=0;for(d[0]=b[0]=1,c=254;c>=0;--c)N(d,f,n=i[c>>>3]>>>(7&c)&1),N(u,b,n),L(l,d,u),j(d,d,u),L(u,f,b),j(f,f,b),H(b,l),H(h,d),U(d,u,d),U(u,f,l),L(l,d,u),j(d,d,u),H(f,d),j(u,b,h),U(d,u,s),L(d,d,b),U(u,u,d),U(d,b,h),U(b,f,o),H(f,l),N(d,f,n),N(u,b,n);for(c=0;c<16;c++)o[c+16]=d[c],o[c+32]=u[c],o[c+48]=f[c],o[c+64]=b[c];var p=o.subarray(32),m=o.subarray(16);return F(p,p),U(m,m,p),R(e,m),0}function K(e,t){return q(e,t,c)}function X(e,t){return r(t,32),K(e,t)}function W(e,t,a){var r=new Uint8Array(32);return q(r,a,t),x(e,n,r,v)}E.prototype.blocks=function(e,t,a){for(var r,n,c,i,o,s,d,f,u,b,l,h,p,m,y,g,x,v,w,A=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],I=this.h[3],M=this.h[4],C=this.h[5],P=this.h[6],T=this.h[7],O=this.h[8],N=this.h[9],R=this.r[0],B=this.r[1],D=this.r[2],V=this.r[3],L=this.r[4],j=this.r[5],U=this.r[6],H=this.r[7],F=this.r[8],z=this.r[9];a>=16;)b=u=0,b+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*R,b+=(S+=8191&(r>>>13|(n=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*z),b+=(E+=8191&(n>>>10|(c=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*F),b+=(I+=8191&(c>>>7|(i=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*H),u=(b+=(M+=8191&(i>>>4|(o=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*U))>>>13,b&=8191,b+=(C+=o>>>1&8191)*(5*j),b+=(P+=8191&(o>>>14|(s=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*L),b+=(T+=8191&(s>>>11|(d=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*V),b+=(O+=8191&(d>>>8|(f=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*D),l=u+=(b+=(N+=f>>>5|A)*(5*B))>>>13,l+=k*B,l+=S*R,l+=E*(5*z),l+=I*(5*F),u=(l+=M*(5*H))>>>13,l&=8191,l+=C*(5*U),l+=P*(5*j),l+=T*(5*L),l+=O*(5*V),u+=(l+=N*(5*D))>>>13,l&=8191,h=u,h+=k*D,h+=S*B,h+=E*R,h+=I*(5*z),u=(h+=M*(5*F))>>>13,h&=8191,h+=C*(5*H),h+=P*(5*U),h+=T*(5*j),h+=O*(5*L),p=u+=(h+=N*(5*V))>>>13,p+=k*V,p+=S*D,p+=E*B,p+=I*R,u=(p+=M*(5*z))>>>13,p&=8191,p+=C*(5*F),p+=P*(5*H),p+=T*(5*U),p+=O*(5*j),m=u+=(p+=N*(5*L))>>>13,m+=k*L,m+=S*V,m+=E*D,m+=I*B,u=(m+=M*R)>>>13,m&=8191,m+=C*(5*z),m+=P*(5*F),m+=T*(5*H),m+=O*(5*U),y=u+=(m+=N*(5*j))>>>13,y+=k*j,y+=S*L,y+=E*V,y+=I*D,u=(y+=M*B)>>>13,y&=8191,y+=C*R,y+=P*(5*z),y+=T*(5*F),y+=O*(5*H),g=u+=(y+=N*(5*U))>>>13,g+=k*U,g+=S*j,g+=E*L,g+=I*V,u=(g+=M*D)>>>13,g&=8191,g+=C*B,g+=P*R,g+=T*(5*z),g+=O*(5*F),x=u+=(g+=N*(5*H))>>>13,x+=k*H,x+=S*U,x+=E*j,x+=I*L,u=(x+=M*V)>>>13,x&=8191,x+=C*D,x+=P*B,x+=T*R,x+=O*(5*z),v=u+=(x+=N*(5*F))>>>13,v+=k*F,v+=S*H,v+=E*U,v+=I*j,u=(v+=M*L)>>>13,v&=8191,v+=C*V,v+=P*D,v+=T*B,v+=O*R,w=u+=(v+=N*(5*z))>>>13,w+=k*z,w+=S*F,w+=E*H,w+=I*U,u=(w+=M*j)>>>13,w&=8191,w+=C*L,w+=P*V,w+=T*D,w+=O*B,k=b=8191&(u=(u=((u+=(w+=N*R)>>>13)<<2)+u|0)+(b&=8191)|0),S=l+=u>>>=13,E=h&=8191,I=p&=8191,M=m&=8191,C=y&=8191,P=g&=8191,T=x&=8191,O=v&=8191,N=w&=8191,t+=16,a-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=I,this.h[4]=M,this.h[5]=C,this.h[6]=P,this.h[7]=T,this.h[8]=O,this.h[9]=N},E.prototype.finish=function(e,t){var a,r,n,c,i=new Uint16Array(10);if(this.leftover){for(c=this.leftover,this.buffer[c++]=1;c<16;c++)this.buffer[c]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(a=this.h[1]>>>13,this.h[1]&=8191,c=2;c<10;c++)this.h[c]+=a,a=this.h[c]>>>13,this.h[c]&=8191;for(this.h[0]+=5*a,a=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=a,a=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=a,i[0]=this.h[0]+5,a=i[0]>>>13,i[0]&=8191,c=1;c<10;c++)i[c]=this.h[c]+a,a=i[c]>>>13,i[c]&=8191;for(i[9]-=8192,r=(1^a)-1,c=0;c<10;c++)i[c]&=r;for(r=~r,c=0;c<10;c++)this.h[c]=this.h[c]&r|i[c];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),n=this.h[0]+this.pad[0],this.h[0]=65535&n,c=1;c<8;c++)n=(this.h[c]+this.pad[c]|0)+(n>>>16)|0,this.h[c]=65535&n;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,a){var r,n;if(this.leftover){for((n=16-this.leftover)>a&&(n=a),r=0;r=16&&(n=a-a%16,this.blocks(e,t,n),t+=n,a-=n),a){for(r=0;r=128;){for(A=0;A<16;A++)k=8*A+Z,T[A]=a[k+0]<<24|a[k+1]<<16|a[k+2]<<8|a[k+3],O[A]=a[k+4]<<24|a[k+5]<<16|a[k+6]<<8|a[k+7];for(A=0;A<80;A++)if(n=N,c=R,i=B,o=D,s=V,d=L,f=j,b=H,l=F,h=z,p=q,m=K,y=X,g=W,I=65535&(E=G),M=E>>>16,C=65535&(S=U),P=S>>>16,I+=65535&(E=(K>>>14|V<<18)^(K>>>18|V<<14)^(V>>>9|K<<23)),M+=E>>>16,C+=65535&(S=(V>>>14|K<<18)^(V>>>18|K<<14)^(K>>>9|V<<23)),P+=S>>>16,I+=65535&(E=K&X^~K&W),M+=E>>>16,C+=65535&(S=V&L^~V&j),P+=S>>>16,I+=65535&(E=J[2*A+1]),M+=E>>>16,C+=65535&(S=J[2*A]),P+=S>>>16,S=T[A%16],M+=(E=O[A%16])>>>16,C+=65535&S,P+=S>>>16,C+=(M+=(I+=65535&E)>>>16)>>>16,I=65535&(E=w=65535&I|M<<16),M=E>>>16,C=65535&(S=v=65535&C|(P+=C>>>16)<<16),P=S>>>16,I+=65535&(E=(H>>>28|N<<4)^(N>>>2|H<<30)^(N>>>7|H<<25)),M+=E>>>16,C+=65535&(S=(N>>>28|H<<4)^(H>>>2|N<<30)^(H>>>7|N<<25)),P+=S>>>16,M+=(E=H&F^H&z^F&z)>>>16,C+=65535&(S=N&R^N&B^R&B),P+=S>>>16,u=65535&(C+=(M+=(I+=65535&E)>>>16)>>>16)|(P+=C>>>16)<<16,x=65535&I|M<<16,I=65535&(E=p),M=E>>>16,C=65535&(S=o),P=S>>>16,M+=(E=w)>>>16,C+=65535&(S=v),P+=S>>>16,R=n,B=c,D=i,V=o=65535&(C+=(M+=(I+=65535&E)>>>16)>>>16)|(P+=C>>>16)<<16,L=s,j=d,U=f,N=u,F=b,z=l,q=h,K=p=65535&I|M<<16,X=m,W=y,G=g,H=x,A%16==15)for(k=0;k<16;k++)S=T[k],I=65535&(E=O[k]),M=E>>>16,C=65535&S,P=S>>>16,S=T[(k+9)%16],I+=65535&(E=O[(k+9)%16]),M+=E>>>16,C+=65535&S,P+=S>>>16,v=T[(k+1)%16],I+=65535&(E=((w=O[(k+1)%16])>>>1|v<<31)^(w>>>8|v<<24)^(w>>>7|v<<25)),M+=E>>>16,C+=65535&(S=(v>>>1|w<<31)^(v>>>8|w<<24)^v>>>7),P+=S>>>16,v=T[(k+14)%16],M+=(E=((w=O[(k+14)%16])>>>19|v<<13)^(v>>>29|w<<3)^(w>>>6|v<<26))>>>16,C+=65535&(S=(v>>>19|w<<13)^(w>>>29|v<<3)^v>>>6),P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,T[k]=65535&C|P<<16,O[k]=65535&I|M<<16;I=65535&(E=H),M=E>>>16,C=65535&(S=N),P=S>>>16,S=e[0],M+=(E=t[0])>>>16,C+=65535&S,P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,e[0]=N=65535&C|P<<16,t[0]=H=65535&I|M<<16,I=65535&(E=F),M=E>>>16,C=65535&(S=R),P=S>>>16,S=e[1],M+=(E=t[1])>>>16,C+=65535&S,P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,e[1]=R=65535&C|P<<16,t[1]=F=65535&I|M<<16,I=65535&(E=z),M=E>>>16,C=65535&(S=B),P=S>>>16,S=e[2],M+=(E=t[2])>>>16,C+=65535&S,P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,e[2]=B=65535&C|P<<16,t[2]=z=65535&I|M<<16,I=65535&(E=q),M=E>>>16,C=65535&(S=D),P=S>>>16,S=e[3],M+=(E=t[3])>>>16,C+=65535&S,P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,e[3]=D=65535&C|P<<16,t[3]=q=65535&I|M<<16,I=65535&(E=K),M=E>>>16,C=65535&(S=V),P=S>>>16,S=e[4],M+=(E=t[4])>>>16,C+=65535&S,P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,e[4]=V=65535&C|P<<16,t[4]=K=65535&I|M<<16,I=65535&(E=X),M=E>>>16,C=65535&(S=L),P=S>>>16,S=e[5],M+=(E=t[5])>>>16,C+=65535&S,P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,e[5]=L=65535&C|P<<16,t[5]=X=65535&I|M<<16,I=65535&(E=W),M=E>>>16,C=65535&(S=j),P=S>>>16,S=e[6],M+=(E=t[6])>>>16,C+=65535&S,P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,e[6]=j=65535&C|P<<16,t[6]=W=65535&I|M<<16,I=65535&(E=G),M=E>>>16,C=65535&(S=U),P=S>>>16,S=e[7],M+=(E=t[7])>>>16,C+=65535&S,P+=S>>>16,P+=(C+=(M+=(I+=65535&E)>>>16)>>>16)>>>16,e[7]=U=65535&C|P<<16,t[7]=G=65535&I|M<<16,Z+=128,r-=128}return r}function Q(e,t,a){var r,n=new Int32Array(8),c=new Int32Array(8),i=new Uint8Array(256),o=a;for(n[0]=1779033703,n[1]=3144134277,n[2]=1013904242,n[3]=2773480762,n[4]=1359893119,n[5]=2600822924,n[6]=528734635,n[7]=1541459225,c[0]=4089235720,c[1]=2227873595,c[2]=4271175723,c[3]=1595750129,c[4]=2917565137,c[5]=725511199,c[6]=4215389547,c[7]=327033209,Y(n,c,t,a),a%=128,r=0;r=0;--n)$(e,t,r=a[n/8|0]>>(7&n)&1),_(t,e),_(e,e),$(e,t,r)}function ae(e,a){var r=[t(),t(),t(),t()];T(r[0],u),T(r[1],b),T(r[2],o),U(r[3],u,b),te(e,r,a)}function re(e,a,n){var c,i=new Uint8Array(64),o=[t(),t(),t(),t()];for(n||r(a,32),Q(i,a,32),i[0]&=248,i[31]&=127,i[31]|=64,ae(o,i),ee(e,o),c=0;c<32;c++)a[c+32]=e[c];return 0}var ne=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ce(e,t){var a,r,n,c;for(r=63;r>=32;--r){for(a=0,n=r-32,c=r-12;n>4)*ne[n],a=t[n]>>8,t[n]&=255;for(n=0;n<32;n++)t[n]-=a*ne[n];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ie(e){var t,a=new Float64Array(64);for(t=0;t<64;t++)a[t]=e[t];for(t=0;t<64;t++)e[t]=0;ce(e,a)}function oe(e,a,r,n){var c,i,o=new Uint8Array(64),s=new Uint8Array(64),d=new Uint8Array(64),f=new Float64Array(64),u=[t(),t(),t(),t()];Q(o,n,32),o[0]&=248,o[31]&=127,o[31]|=64;var b=r+64;for(c=0;c>7&&j(e[0],i,e[0]),U(e[3],e[0],e[1]),0)}(b,n))return-1;for(c=0;c=0},e.sign.keyPair=function(){var e=new Uint8Array(fe),t=new Uint8Array(ue);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(le(e),e.length!==ue)throw new Error("bad secret key size");for(var t=new Uint8Array(fe),a=0;a{var r=a(48834).Buffer;const{EventEmitter:n}=a(69997),c=a(22965).default,i=a(47144),o="Simple Key Pair",s=a(68445);class d extends n{constructor(e){super(),this.type=o,this.wallets=[],this.deserialize(e)}serialize(){return Promise.resolve(this.wallets.map((e=>e.getPrivateKey().toString("hex"))))}deserialize(e=[]){return new Promise(((t,a)=>{try{this.wallets=e.map((e=>{const t=i.stripHexPrefix(e),a=r.from(t,"hex");return c.fromPrivateKey(a)}))}catch(e){a(e)}t()}))}addAccounts(e=1){const t=[];for(let a=0;ai.bufferToHex(e.getAddress())));return Promise.resolve(a)}getAccounts(){return Promise.resolve(this.wallets.map((e=>i.bufferToHex(e.getAddress()))))}signTransaction(e,t,a={}){const r=this.getPrivateKeyFor(e,a),n=t.sign(r);return Promise.resolve(void 0===n?t:n)}signMessage(e,t,a={}){const n=i.stripHexPrefix(t),c=this.getPrivateKeyFor(e,a),o=i.ecsign(r.from(n,"hex"),c),d=s.concatSig(o.v,o.r,o.s);return Promise.resolve(d)}newGethSignMessage(e,t,a={}){const r=this.getPrivateKeyFor(e,a),n=i.toBuffer(t),c=i.hashPersonalMessage(n),o=i.ecsign(c,r),d=s.concatSig(o.v,o.r,o.s);return Promise.resolve(d)}signPersonalMessage(e,t,a={}){const n=this.getPrivateKeyFor(e,a),c=r.from(n,"hex"),i=s.personalSign(c,{data:t});return Promise.resolve(i)}decryptMessage(e,t){const a=this._getWalletForAccount(e),r=i.stripHexPrefix(a.getPrivateKey()),n=s.decrypt(t,r);return Promise.resolve(n)}signTypedData(e,t,a={version:"V1"}){switch(a.version){case"V1":default:return this.signTypedData_v1(e,t,a);case"V3":return this.signTypedData_v3(e,t,a);case"V4":return this.signTypedData_v4(e,t,a)}}signTypedData_v1(e,t,a={}){const r=this.getPrivateKeyFor(e,a),n=s.signTypedDataLegacy(r,{data:t});return Promise.resolve(n)}signTypedData_v3(e,t,a={}){const r=this.getPrivateKeyFor(e,a),n=s.signTypedData(r,{data:t});return Promise.resolve(n)}signTypedData_v4(e,t,a={}){const r=this.getPrivateKeyFor(e,a),n=s.signTypedData_v4(r,{data:t});return Promise.resolve(n)}getEncryptionPublicKey(e,t={}){const a=this.getPrivateKeyFor(e,t),r=s.getEncryptionPublicKey(a);return Promise.resolve(r)}getPrivateKeyFor(e,t={}){if(!e)throw new Error("Must specify address.");const a=this._getWalletForAccount(e,t);return i.toBuffer(a.getPrivateKey())}getAppKeyAddress(e,t){if(!t||"string"!=typeof t)throw new Error("'origin' must be a non-empty string");return new Promise(((a,r)=>{try{const r=this._getWalletForAccount(e,{withAppKeyOrigin:t});return a(s.normalize(r.getAddress().toString("hex")))}catch(e){return r(e)}}))}exportAccount(e,t={}){const a=this._getWalletForAccount(e,t);return Promise.resolve(a.getPrivateKey().toString("hex"))}removeAccount(e){if(!this.wallets.map((e=>i.bufferToHex(e.getAddress()).toLowerCase())).includes(e.toLowerCase()))throw new Error(`Address ${e} not found in this keyring`);this.wallets=this.wallets.filter((t=>i.bufferToHex(t.getAddress()).toLowerCase()!==e.toLowerCase()))}_getWalletForAccount(e,t={}){const a=s.normalize(e);let n=this.wallets.find((e=>i.bufferToHex(e.getAddress())===a));if(!n)throw new Error("Simple Keyring - Unable to find matching address.");if(t.withAppKeyOrigin){const e=n.getPrivateKey(),a=r.from(t.withAppKeyOrigin,"utf8"),o=r.concat([e,a]),s=i.keccak(o,256);n=c.fromPrivateKey(s)}return n}}d.type=o,e.exports=d},69997:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function a(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function n(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,c,i,o,s,d;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var f=new Error('Uncaught, unspecified "error" event. ('+t+")");throw f.context=t,f}if(n(c=this._events[e]))return!1;if(a(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),c.apply(this,o)}else if(r(c))for(o=Array.prototype.slice.call(arguments,1),i=(d=c.slice()).length,s=0;s0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!a(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},t.prototype.removeListener=function(e,t){var n,c,i,o;if(!a(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,c=-1,n===t||a(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){c=o;break}if(c<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(c,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(a(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?a(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(a(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},7245:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(30039);function n(e){return!("string"!=typeof e||!/^(0x)?[0-9a-f]{512}$/i.test(e)||!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))}function c(e,t){"object"==typeof t&&t.constructor===Uint8Array&&(t=r.bytesToHex(t));const a=r.keccak256(t).replace("0x","");for(let t=0;t<12;t+=4){const r=(parseInt(a.substr(t,2),16)<<8)+parseInt(a.substr(t+2,2),16)&2047,n=1<=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;throw new Error("invalid bloom")}function o(e){return!("string"!=typeof e||!/^(0x)?[0-9a-f]{64}$/i.test(e)||!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))}function s(e){return!("string"!=typeof e||!e.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=n,t.isInBloom=c,t.isUserEthereumAddressInBloom=function(e,t){if(!n(e))throw new Error("Invalid bloom given");if(!s(t))throw new Error(`Invalid ethereum address given: "${t}"`);return c(e,r.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!n(e))throw new Error("Invalid bloom given");if(!s(t))throw new Error(`Invalid contract address given: "${t}"`);return c(e,t)},t.isTopicInBloom=function(e,t){if(!n(e))throw new Error("Invalid bloom given");if(!o(t))throw new Error("Invalid topic");return c(e,t)},t.isTopic=o,t.isAddress=s},30039:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(83669);function n(e){if(null==e)throw new Error("cannot convert null value to array");if("string"==typeof e){const t=e.match(/^(0x)?[0-9a-fA-F]*$/);if(!t)throw new Error("invalid hexidecimal string");if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e);const a=[];for(let t=0;t=256||parseInt(String(a))!=a)return!1}return!0}(e))return c(new Uint8Array(e));throw new Error("invalid arrayify value")}function c(e){return void 0!==e.slice||(e.slice=()=>{const t=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}t.keccak256=function(e){return"0x"+r.keccak_256(n(e))},t.padLeft=(e,t)=>{const a=/^0x/i.test(e)||"number"==typeof e,r=t-(e=e.toString().replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(a?"0x":"")+new Array(r).join("0")+e},t.bytesToHex=function(e){const t=[];for(let a=0;a>>4).toString(16)),t.push((15&e[a]).toString(16));return`0x${t.join("").replace(/^0+/,"")}`},t.toByteArray=n},16635:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(e){return function(t){var a=e();return a.update(t),r.from(a.digest())}}},1115:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(16635),n=a(77270);t.keccak224=r.createHashFunction((function(){return n("keccak224")})),t.keccak256=r.createHashFunction((function(){return n("keccak256")})),t.keccak384=r.createHashFunction((function(){return n("keccak384")})),t.keccak512=r.createHashFunction((function(){return n("keccak512")}))},85665:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(22069);t.HDKey=r},24061:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(91396).ripemd160,n=a(16635);t.ripemd160=n.createHashFunction((function(){return new r}))},51241:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(68032),n=a(16635);t.sha256=n.createHashFunction((function(){return new r}))},23628:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var n=a(24061),c=a(51241);t.createHmac=a(50011),t.randomBytes=a(95003);var i=function(){function e(e){this.hashFunction=e,this.buffers=[]}return e.prototype.update=function(e){if(!r.isBuffer(e))throw new Error("hdkey-crypto shim is outdated");return this.buffers.push(e),this},e.prototype.digest=function(e){if(e)throw new Error("hdkey-crypto shim is outdated");return this.hashFunction(r.concat(this.buffers))},e}();t.createHash=function(e){if("ripemd160"===e)return new i(n.ripemd160);if("sha256"===e)return new i(c.sha256);throw new Error("hdkey-crypto shim is outdated")}},58063:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}(a(72583))},22069:(e,t,a)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var n=r(a(71696)),c=r(a(77834)),i=r(a(44075)),o=a(23628),s=a(58063),d=c.Buffer,f=d.from("Bitcoin seed","utf8"),u=2147483648,b={private:76066276,public:76067358};function l(e){this.versions=e||b,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}function h(e,t,a){var r=d.allocUnsafe(78);r.writeUInt32BE(t,0),r.writeUInt8(e.depth,4);var n=e.depth?e.parentFingerprint:0;return r.writeUInt32BE(n,5),r.writeUInt32BE(e.index,9),e.chainCode.copy(r,13),a.copy(r,45),r}function p(e){var t=o.createHash("sha256").update(e).digest();return o.createHash("ripemd160").update(t).digest()}Object.defineProperty(l.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(l.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(l.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(l.prototype,"privateKey",{get:function(){return this._privateKey},set:function(e){n.equal(e.length,32,"Private key must be 32 bytes."),n(!0===s.privateKeyVerify(e),"Invalid private key"),this._privateKey=e,this._publicKey=s.publicKeyCreate(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(l.prototype,"publicKey",{get:function(){return this._publicKey},set:function(e){n(33===e.length||65===e.length,"Public key must be 33 or 65 bytes."),n(!0===s.publicKeyVerify(e),"Invalid public key"),this._publicKey=s.publicKeyConvert(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(l.prototype,"privateExtendedKey",{get:function(){return this._privateKey?i.encode(h(this,this.versions.private,d.concat([d.alloc(1,0),this.privateKey]))):null}}),Object.defineProperty(l.prototype,"publicExtendedKey",{get:function(){return i.encode(h(this,this.versions.public,this.publicKey))}}),l.prototype.derive=function(e){if("m"===e||"M"===e||"m'"===e||"M'"===e)return this;var t=e.split("/"),a=this;return t.forEach((function(e,t){if(0!==t){var r=e.length>1&&"'"===e[e.length-1],c=parseInt(e,10);n(c=u,r=d.allocUnsafe(4);if(r.writeUInt32BE(e,0),a){n(this.privateKey,"Could not derive hardened child key");var c=this.privateKey,i=d.alloc(1,0);c=d.concat([i,c]),t=d.concat([c,r])}else t=d.concat([this.publicKey,r]);var f=o.createHmac("sha512",this.chainCode).update(t).digest(),b=f.slice(0,32),h=f.slice(32),p=new l(this.versions);if(this.privateKey)try{p.privateKey=s.privateKeyTweakAdd(this.privateKey,b)}catch(t){return this.deriveChild(e+1)}else try{p.publicKey=s.publicKeyTweakAdd(this.publicKey,b,!0)}catch(t){return this.deriveChild(e+1)}return p.chainCode=h,p.depth=this.depth+1,p.parentFingerprint=this.fingerprint,p.index=e,p},l.prototype.sign=function(e){return s.sign(e,this.privateKey).signature},l.prototype.verify=function(e,t){return s.verify(e,t,this.publicKey)},l.prototype.wipePrivateData=function(){return this._privateKey&&o.randomBytes(this._privateKey.length).copy(this._privateKey),this._privateKey=null,this},l.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},l.fromMasterSeed=function(e,t){var a=o.createHmac("sha512",f).update(e).digest(),r=a.slice(0,32),n=a.slice(32),c=new l(t);return c.chainCode=n,c.privateKey=r,c},l.fromExtendedKey=function(e,t){var a=new l(t=t||b),r=i.decode(e),c=r.readUInt32BE(0);n(c===t.private||c===t.public,"Version mismatch: does not match private or public"),a.depth=r.readUInt8(4),a.parentFingerprint=r.readUInt32BE(5),a.index=r.readUInt32BE(9),a.chainCode=r.slice(13,45);var o=r.slice(45);return 0===o.readUInt8(0)?(n(c===t.private,"Version mismatch: version does not match private"),a.privateKey=o.slice(1)):(n(c===t.public,"Version mismatch: version does not match public"),a.publicKey=o),a},l.fromJSON=function(e){return l.fromExtendedKey(e.xpriv)},l.HARDENED_OFFSET=u;var m=l;e.exports=m},60427:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(95003);t.getRandomBytes=function(e){return new Promise((function(t,a){r(e,(function(e,r){e?a(e):t(r)}))}))},t.getRandomBytesSync=function(e){return r(e)}},80101:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){return new(a||(a=Promise))((function(n,c){function i(e){try{s(r.next(e))}catch(e){c(e)}}function o(e){try{s(r.throw(e))}catch(e){c(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,o)}s((r=r.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var a,r,n,c,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return c={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(c){return function(o){return function(c){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((n=(n=i.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]{e.exports=a(7260)},7260:(e,t,a)=>{var r=a(48834).Buffer;const n=a(54042),c=a(48452);var i=function(){};function o(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function d(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function f(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function u(e){var t=typeof e;if("string"===t)return n.isHexPrefixed(e)?new c(n.stripHexPrefix(e),16):new c(e,10);if("number"===t)return new c(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function b(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var a=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==a&&3===a.length)return{method:t[1],args:a[1].split(","),retargs:a[2].split(",")};var r=t[2].split(",");return 1===r.length&&""===r[0]&&(r=[]),{method:t[1],args:r}}function l(e,t){var a,i,o,b;if("address"===e)return l("uint160",u(t));if("bool"===e)return l("uint8",t?1:0);if("string"===e)return l("bytes",r.from(t,"utf8"));if(y(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(a=f(e))&&0!==a&&t.length>a)throw new Error("Elements exceed array size: "+a);for(b in o=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)o.push(l(e,t[b]));if("dynamic"===a){var h=l("uint256",t.length);o.unshift(h)}return r.concat(o)}if("bytes"===e)return t=r.from(t),o=r.concat([l("uint256",t.length),t]),t.length%32!=0&&(o=r.concat([o,n.zeros(32-t.length%32)])),o;if(e.startsWith("bytes")){if((a=s(e))<1||a>32)throw new Error("Invalid bytes width: "+a);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((a=s(e))%8||a<8||a>256)throw new Error("Invalid uint width: "+a);if((i=u(t)).bitLength()>a)throw new Error("Supplied uint exceeds width: "+a+" vs "+i.bitLength());if(i<0)throw new Error("Supplied uint is negative");return i.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((a=s(e))%8||a<8||a>256)throw new Error("Invalid int width: "+a);if((i=u(t)).bitLength()>a)throw new Error("Supplied int exceeds width: "+a+" vs "+i.bitLength());return i.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(a=d(e),(i=u(t))<0)throw new Error("Supplied ufixed is negative");return l("uint256",i.mul(new c(2).pow(new c(a[1]))))}if(e.startsWith("fixed"))return a=d(e),l("int256",u(t).mul(new c(2).pow(new c(a[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,a){var n,i,o,s;if("string"==typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,a).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,a).toString()===new c(1).toString();if("string"===e.name){var d=h(e.rawType,t,a);return r.from(d,"utf8").toString()}if(e.isArray){for(o=[],n=e.size,"dynamic"===e.size&&(a=h("uint256",t,a).toNumber(),n=h("uint256",t,a).toNumber(),a+=32),s=0;se.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+i.bitLength());return i}if(e.name.startsWith("int")){if((i=new c(t.slice(a,a+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+i.bitLength());return i}if(e.name.startsWith("ufixed")){if(n=new c(2).pow(new c(e.size[1])),!(i=h("uint256",t,a)).mod(n).isZero())throw new Error("Decimals not supported yet");return i.div(n)}if(e.name.startsWith("fixed")){if(n=new c(2).pow(new c(e.size[1])),!(i=h("int256",t,a)).mod(n).isZero())throw new Error("Decimals not supported yet");return i.div(n)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,a,r;if(y(e)){t=f(e);var n=e.slice(0,e.lastIndexOf("["));return n=p(n),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:n.memoryUsage*t,subArray:n}}switch(e){case"address":r="uint160";break;case"bool":r="uint8";break;case"string":r="bytes"}if(a={rawType:r,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?a.size=s(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(a.size=d(e)),e.startsWith("bytes")&&"bytes"!==e&&(a.size<1||a.size>32))throw new Error("Invalid bytes width: "+a.size);if((e.startsWith("uint")||e.startsWith("int"))&&(a.size%8||a.size<8||a.size>256))throw new Error("Invalid int/uint width: "+a.size);return a}function m(e){return"string"===e||"bytes"===e||"dynamic"===f(e)}function y(e){return e.lastIndexOf("]")===e.length-1}function g(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}i.eventID=function(e,t){var a=e+"("+t.map(o).join(",")+")";return n.keccak256(r.from(a))},i.methodID=function(e,t){return i.eventID(e,t).slice(0,4)},i.rawEncode=function(e,t){var a=[],n=[],c=0;e.forEach((function(e){if(y(e)){var t=f(e);c+="dynamic"!==t?32*t:32}else c+=32}));for(var i=0;ib)throw new Error("Elements exceed array size: "+b)}var l=t.map((function(e){return i.solidityHexValue(d,e,256)}));return r.concat(l)}if("bytes"===e)return t;if("string"===e)return r.from(t,"utf8");if("bool"===e){a=a||8;var h=Array(a/4).join("0");return r.from(t?h+"1":h+"0","hex")}if("address"===e){var p=20;return a&&(p=a/8),n.setLengthLeft(t,p)}if(e.startsWith("bytes")){if((c=s(e))<1||c>32)throw new Error("Invalid bytes width: "+c);return n.setLengthRight(t,c)}if(e.startsWith("uint")){if((c=s(e))%8||c<8||c>256)throw new Error("Invalid uint width: "+c);if((o=u(t)).bitLength()>c)throw new Error("Supplied uint exceeds width: "+c+" vs "+o.bitLength());return a=a||c,o.toArrayLike(r,"be",a/8)}if(e.startsWith("int")){if((c=s(e))%8||c<8||c>256)throw new Error("Invalid int width: "+c);if((o=u(t)).bitLength()>c)throw new Error("Supplied int exceeds width: "+c+" vs "+o.bitLength());return a=a||c,o.toTwos(c).toArrayLike(r,"be",a/8)}throw new Error("Unsupported or invalid type: "+e)},i.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var a=[],n=0;n="0"&&t<="9";)c+=e[i]-"0",i++;r=i-1,a.push(c)}else if("i"===n)a.push("int256");else{if("a"!==n)throw new Error("Unsupported or invalid type: "+n);a.push("int256[]")}}return a},i.toSerpent=function(e){for(var t=[],a=0;a=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},52140:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.isPrecompiled=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isZeroAddress=t.isValidAddress=t.zeroAddress=void 0;var n=a(71696),c=a(81538),i=a(40670),o=a(48452),s=a(46548),d=a(29114);t.zeroAddress=function(){var e=s.zeros(20);return s.bufferToHex(e)},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===s.addHexPrefix(e)},t.toChecksumAddress=function(e,t){e=c.stripHexPrefix(e).toLowerCase();for(var a=void 0!==t?t.toString()+"0x":"",r=d.keccak(a+e).toString("hex"),n="0x",i=0;i=8?n+=e[i].toUpperCase():n+=e[i];return n},t.isValidChecksumAddress=function(e,a){return t.isValidAddress(e)&&t.toChecksumAddress(e,a)===e},t.generateAddress=function(e,t){e=s.toBuffer(e);var a=new o(t);return a.isZero()?d.rlphash([e,null]).slice(-20):d.rlphash([e,r.from(a.toArray())]).slice(-20)},t.generateAddress2=function(e,t,a){var c=s.toBuffer(e),i=s.toBuffer(t),o=s.toBuffer(a);return n(20===c.length),n(32===i.length),d.keccak256(r.concat([r.from("ff","hex"),c,i,d.keccak256(o)])).slice(-20)},t.isPrecompiled=function(e){var t=s.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return i.privateKeyVerify(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?i.publicKeyVerify(r.concat([r.from([4]),e])):!!t&&i.publicKeyVerify(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=s.toBuffer(e),t&&64!==e.length&&(e=i.publicKeyConvert(e,!1).slice(1)),n(64===e.length),d.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=s.toBuffer(e),i.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=s.toBuffer(e)).length&&(e=i.publicKeyConvert(e,!1).slice(1)),e}},46548:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var n=a(81538),c=a(48452);t.zeros=function(e){return r.allocUnsafe(e).fill(0)},t.setLengthLeft=function(e,a,r){void 0===r&&(r=!1);var n=t.zeros(a);return e=t.toBuffer(e),r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(e){if(!r.isBuffer(e))if(Array.isArray(e))e=r.from(e);else if("string"==typeof e){if(!n.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);e=r.from(n.padToEven(n.stripHexPrefix(e)),"hex")}else if("number"==typeof e)e=n.intToBuffer(e);else if(null==e)e=r.allocUnsafe(0);else if(c.isBN(e))e=e.toArrayLike(r);else{if(!e.toArray)throw new Error("invalid type");e=r.from(e.toArray())}return e},t.bufferToInt=function(e){return new c(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new c(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||n.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(e){if(r.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var a=[],n=0;n{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var n=a(48452);t.MAX_INTEGER=new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new n("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=r.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=r.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=r.from(t.KECCAK256_RLP_S,"hex")},29114:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var n=a(1115),c=n.keccak224,i=n.keccak384,o=n.keccak256,s=n.keccak512,d=a(16162),f=a(81538),u=a(36195),b=a(46548);t.keccak=function(e,t){switch(void 0===t&&(t=256),e="string"!=typeof e||f.isHexString(e)?b.toBuffer(e):r.from(e,"utf8"),t||(t=256),t){case 224:return c(e);case 256:return o(e);case 384:return i(e);case 512:return s(e);default:throw new Error("Invald algorithm: keccak"+t)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=b.toBuffer(e),d("sha256").update(e).digest()},t.ripemd160=function(e,t){e=b.toBuffer(e);var a=d("rmd160").update(e).digest();return!0===t?b.setLength(a,32):a},t.rlphash=function(e){return t.keccak(u.encode(e))}},54042:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||t.hasOwnProperty(a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=t.rlp=t.BN=void 0;var c=a(40670);t.secp256k1=c;var i=a(81538),o=a(48452);t.BN=o;var s=a(36195);t.rlp=s,Object.assign(t,i),n(a(89773),t),n(a(52140),t),n(a(29114),t),n(a(80748),t),n(a(46548),t),n(a(5461),t)},5461:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var n=a(71696),c=a(81538),i=a(36195),o=a(46548);t.defineProperties=function(e,t,a){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var a={};return e._fields.forEach((function(t){a[t]="0x"+e[t].toString("hex")})),a}return o.baToJSON(e.raw)},e.serialize=function(){return i.encode(e.raw)},t.forEach((function(t,a){function c(){return e.raw[a]}function i(c){"00"!==(c=o.toBuffer(c)).toString("hex")||t.allowZero||(c=r.allocUnsafe(0)),t.allowLess&&t.length?(c=o.stripZeros(c),n(t.length>=c.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===c.length||!t.length||n(t.length===c.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[a]=c}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:c,set:i}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:i,get:c})})),a)if("string"==typeof a&&(a=r.from(c.stripHexPrefix(a),"hex")),r.isBuffer(a)&&(a=i.decode(a)),Array.isArray(a)){if(a.length>e._fields.length)throw new Error("wrong number of fields in data");a.forEach((function(t,a){e[e._fields[a]]=o.toBuffer(t)}))}else{if("object"!=typeof a)throw new Error("invalid data");var s=Object.keys(a);t.forEach((function(t){-1!==s.indexOf(t.name)&&(e[t.name]=a[t.name]),-1!==s.indexOf(t.alias)&&(e[t.alias]=a[t.alias])}))}}},40670:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var n=a(80101),c=a(40581),i=a(65217);t.privateKeyVerify=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var a=c.privateKeyExport(e,t);return i.privateKeyExport(e,a,t)},t.privateKeyImport=function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(e){return r.from(n.privateKeyNegate(Uint8Array.from(e)))},t.privateKeyModInverse=function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(c.privateKeyModInverse(Uint8Array.from(e)))},t.privateKeyTweakAdd=function(e,t){return r.from(n.privateKeyTweakAdd(Uint8Array.from(e),t))},t.privateKeyTweakMul=function(e,t){return r.from(n.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},t.publicKeyCreate=function(e,t){return r.from(n.publicKeyCreate(Uint8Array.from(e),t))},t.publicKeyConvert=function(e,t){return r.from(n.publicKeyConvert(Uint8Array.from(e),t))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(e,t,a){return r.from(n.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),a))},t.publicKeyTweakMul=function(e,t,a){return r.from(n.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),a))},t.publicKeyCombine=function(e,t){var a=[];return e.forEach((function(e){a.push(Uint8Array.from(e))})),r.from(n.publicKeyCombine(a,t))},t.signatureNormalize=function(e){return r.from(n.signatureNormalize(Uint8Array.from(e)))},t.signatureExport=function(e){return r.from(n.signatureExport(Uint8Array.from(e)))},t.signatureImport=function(e){return r.from(n.signatureImport(Uint8Array.from(e)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return c.signatureImport(t)},t.sign=function(e,t,a){if(null===a)throw new TypeError("options should be an Object");var c=void 0;if(a){if(c={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!=a.data.length)throw new RangeError("options.data length is invalid");c.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(c.noncefn=function(e,t,n,c,i){var o=null!=n?r.from(n):null,s=null!=c?r.from(c):null,d=r.from("");return a.noncefn&&(d=a.noncefn(r.from(e),r.from(t),o,s,i)),new Uint8Array(d)})}var i=n.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),c);return{signature:r.from(i.signature),recovery:i.recid}},t.verify=function(e,t,a){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),a)},t.recover=function(e,t,a,c){return r.from(n.ecdsaRecover(Uint8Array.from(t),a,Uint8Array.from(e),c))},t.ecdh=function(e,t){return r.from(n.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},t.ecdhUnsafe=function(e,t,a){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return r.from(c.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),a))}},65217:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var n=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),c=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,a){void 0===a&&(a=!0);var i=r.from(a?n:c);return e.copy(i,a?8:9),t.copy(i,a?181:214),i},t.privateKeyImport=function(e){var t=e.length,a=0;if(t2)return null;if(t<(a+=1)+r)return null;var n=e[a+r-1]|(r>1?e[a+r-2]<<8:0);return t<(a+=r)+n||t32||tn)return null;if(2!==e[c++])return null;var o=e[c++];if(128&o){if(c+(i=o-128)>n)return null;for(;i>0&&0===e[c];c+=1,i-=1);for(o=0;i>0;c+=1,i-=1)o=(o<<8)+e[c]}if(o>n-c)return null;var s=c;if(c+=o,2!==e[c++])return null;var d=e[c++];if(128&d){if(c+(i=d-128)>n)return null;for(;i>0&&0===e[c];c+=1,i-=1);for(d=0;i>0;c+=1,i-=1)d=(d<<8)+e[c]}if(d>n-c)return null;var f=c;for(c+=d;o>0&&0===e[s];o-=1,s+=1);if(o>32)return null;var u=e.slice(s,s+o);for(u.copy(t,32-u.length);d>0&&0===e[f];d-=1,f+=1);if(d>32)return null;var b=e.slice(f,f+d);return b.copy(a,32-b.length),{r:t,s:a}}},40581:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var n=a(48452),c=new(0,a(87554).ec)("secp256k1"),i=c.curve;t.privateKeyExport=function(e,t){void 0===t&&(t=!0);var a=new n(e);if(a.ucmp(i.n)>=0)throw new Error("couldn't export to DER format");var r=c.g.mul(a);return o(r.getX(),r.getY(),t)},t.privateKeyModInverse=function(e){var t=new n(e);if(t.ucmp(i.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(i.n).toArrayLike(r,"be",32)},t.signatureImport=function(e){var t=new n(e.r);t.ucmp(i.n)>=0&&(t=new n(0));var a=new n(e.s);return a.ucmp(i.n)>=0&&(a=new n(0)),r.concat([t.toArrayLike(r,"be",32),a.toArrayLike(r,"be",32)])},t.ecdhUnsafe=function(e,t,a){void 0===a&&(a=!0);var r=c.keyFromPublic(e),s=new n(t);if(s.ucmp(i.n)>=0||s.isZero())throw new Error("scalar was invalid (zero or overflow)");var d=r.pub.mul(s);return o(d.getX(),d.getY(),a)};var o=function(e,t,a){var n;return a?((n=r.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(n,1)):((n=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(n,1),t.toArrayLike(r,"be",32).copy(n,33)),n}},80748:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var n=a(40670),c=a(48452),i=a(46548),o=a(29114);function s(e,t){return t?e-(2*t+35):e-27}function d(e){return 0===e||1===e}t.ecsign=function(e,t,a){var r=n.sign(e,t),c=r.recovery;return{r:r.signature.slice(0,32),s:r.signature.slice(32,64),v:a?c+(2*a+35):c+27}},t.ecrecover=function(e,t,a,c,o){var f=r.concat([i.setLength(a,32),i.setLength(c,32)],64),u=s(t,o);if(!d(u))throw new Error("Invalid signature v value");var b=n.recover(e,f,u);return n.publicKeyConvert(b,!1).slice(1)},t.toRpcSig=function(e,t,a,n){if(!d(s(e,n)))throw new Error("Invalid signature v value");return i.bufferToHex(r.concat([i.setLengthLeft(t,32),i.setLengthLeft(a,32),i.toBuffer(e)]))},t.fromRpcSig=function(e){var t=i.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var a=t[64];return a<27&&(a+=27),{v:a,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,a,r,n){void 0===r&&(r=!0);var i=new c("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new c("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==a.length)return!1;if(!d(s(e,n)))return!1;var f=new c(t),u=new c(a);return!(f.isZero()||f.gt(o)||u.isZero()||u.gt(o)||r&&1===u.cmp(i))},t.hashPersonalMessage=function(e){var t=r.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return o.keccak(r.concat([t,e]))}},36195:function(e,t,a){"use strict";var r=a(48834).Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var c=n(a(22735));function i(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,t){if(e<56)return r.from([e+t]);var a=f(e),n=f(t+55+a.length/2);return r.from(n+a,"hex")}function s(e){var t,a,n,c,o,d=[],f=e[0];if(f<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(f<=183){if(t=f-127,n=128===f?r.from([]):e.slice(1,t),2===t&&n[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:n,remainder:e.slice(t)}}if(f<=191){if(a=f-182,e.length-1e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(c=e.slice(a,u)).length)throw new Error("invalid rlp, List has a invalid length");for(;c.length;)o=s(c),d.push(o.data),c=o.remainder;return{data:d,remainder:e.slice(u)}}function d(e){return"0x"===e.slice(0,2)}function f(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(e){if(!r.isBuffer(e)){if("string"==typeof e)return d(e)?r.from((a="string"!=typeof(n=e)?n:d(n)?n.slice(2):n).length%2?"0"+a:a,"hex"):r.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(t=f(e),r.from(t,"hex")):r.from([]);if(null==e)return r.from([]);if(e instanceof Uint8Array)return r.from(e);if(c.default.isBN(e))return r.from(e.toArray());throw new Error("invalid type")}var t,a,n;return e}t.encode=function e(t){if(Array.isArray(t)){for(var a=[],n=0;n=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:void r(!1,"Invalid character in "+e)}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,n){for(var c=0,i=0,o=Math.min(e.length,a),s=t;s=49?d-49+10:d>=17?d-17+10:d,r(d>=0&&i0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this._strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this._strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){c.prototype.inspect=u}else c.prototype.inspect=u;function u(){return(this.red?""}var b=["","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"],l=[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 p(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a._strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215,(n+=2)>=26&&(n-=26,i--),a=0!==c||i!==this.length-1?b[6-s.length]+s+a:s+a}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],f=h[e];a="";var u=this.clone();for(u.negative=0;!u.isZero();){var p=u.modrn(f).toString(e);a=(u=u.idivn(f)).isZero()?p+a:b[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16,2)},i&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){this._strip();var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var i=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](i,n),i},c.prototype._toArrayLikeLE=function(e,t){for(var a=0,r=0,n=0,c=0;n>8&255),a>16&255),6===c?(a>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a=0&&(e[a--]=i>>8&255),a>=0&&(e[a--]=i>>16&255),6===c?(a>=0&&(e[a--]=i>>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a>=0)for(e[a--]=r;a>=0;)e[a--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this._strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function y(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a._strip()}function g(e,t,a){return y(e,t,a)}function x(e,t){this.x=e,this.y=t}Math.imul||(m=p),c.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):a<63?p(this,e,t):a<1024?y(this,e,t):g(this,e,t)},x.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},x.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,a+=c/67108864|0,a+=i>>>26,this.words[n]=67108863&i}return 0!==a&&(this.words[n]=a,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n&1}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this._strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o._strip(),r._strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=(1<<26)%e,n=0,c=this.length-1;c>=0;c--)n=(a*n+(0|this.words[c]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=0,n=this.length-1;n>=0;n--){var c=(0|this.words[n])+67108864*a;this.words[n]=c/e|0,a=c%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this._strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new I(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(A,w),A.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},A.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new A;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return v[e]=t,t},I.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},I.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new M(e)},n(M,I),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},46338:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chains=void 0,t.chains={names:{1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli"},mainnet:a(5332),ropsten:a(43603),rinkeby:a(80947),kovan:a(28035),goerli:a(37686)}},45754:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardforks=void 0,t.hardforks=[["chainstart",a(31428)],["homestead",a(44182)],["dao",a(98283)],["tangerineWhistle",a(19439)],["spuriousDragon",a(1716)],["byzantium",a(44570)],["constantinople",a(23177)],["petersburg",a(54678)],["istanbul",a(60151)],["muirGlacier",a(95092)]]},17633:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a0))return!0;for(var t=0,a=this._supportedHardforks;t=n},e.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},e.prototype.hardforkGteHardfork=function(e,t,a){var r=void 0!==(a=void 0!==a?a:{}).onlyActive&&a.onlyActive;e=this._chooseHardfork(e,a.onlySupported);for(var n=-1,c=-1,i=0,o=0,s=r?this.activeHardforks(null,a):this.hardforks();o=c},e.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},e.prototype.hardforkIsActiveOnChain=function(e,t){var a=void 0!==(t=void 0!==t?t:{}).onlySupported&&t.onlySupported;e=this._chooseHardfork(e,a);for(var r=0,n=this.hardforks();r0)return a[a.length-1].name;throw new Error("No (supported) active hardfork found")},e.prototype.hardforkBlock=function(e){return e=this._chooseHardfork(e,!1),this._getHardfork(e).block},e.prototype.isHardforkBlock=function(e,t){return t=this._chooseHardfork(t,!1),this.hardforkBlock(t)===e},e.prototype.consensus=function(e){return e=this._chooseHardfork(e),this._getHardfork(e).consensus},e.prototype.finality=function(e){return e=this._chooseHardfork(e),this._getHardfork(e).finality},e.prototype.genesis=function(){return this._chainParams.genesis},e.prototype.hardforks=function(){return this._chainParams.hardforks},e.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},e.prototype.hardfork=function(){return this._hardfork},e.prototype.chainId=function(){return this._chainParams.chainId},e.prototype.chainName=function(){return n.chains.names[this.chainId()]||this._chainParams.name},e.prototype.networkId=function(){return this._chainParams.networkId},e}();t.default=i},32428:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])},r(e,t)},function(e,t){function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0});var c=a(3774),i=a(48834),o=function(e){function t(t,a){void 0===t&&(t={}),void 0===a&&(a={});var r=e.call(this,t,a)||this;Object.defineProperty(r,"from",{enumerable:!0,configurable:!0,get:function(){return r.getSenderAddress()},set:function(e){e&&(r._from=c.toBuffer(e))}});var n=t;return n.from&&(r.from=c.toBuffer(n.from)),r}return n(t,e),t.prototype.hash=function(t){if(void 0===t&&(t=!0),t&&this._from&&""!==this._from.toString("hex")){var a=i.Buffer.concat([this._from,this._from.slice(0,12)]);this.sign(a)}return e.prototype.hash.call(this,t)},t}(a(80813).default);t.default=o},78655:(e,t,a)=>{"use strict";var r=a(80813);t.YW=r.default,a(32428).default},80813:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a=2*this.getChainId()+35&&this._common.gteHardfork("spuriousDragon");this._senderPubKey=n.ecrecover(e,t,this.r,this.s,a?this.getChainId():void 0)}catch(e){return!1}return!!this._senderPubKey},e.prototype.sign=function(e){this.v=new i.Buffer([]),this.s=new i.Buffer([]),this.r=new i.Buffer([]);var t=this.hash(!1),a=n.ecsign(t,e);this._implementsEIP155()&&(a.v+=2*this.getChainId()+8),Object.assign(this,a)},e.prototype.getDataFee=function(){for(var e=this.raw[5],t=new n.BN(0),a=0;a0&&t.push(["gas limit is too low. Need at least "+this.getBaseFee()]),!1===e?0===t.length:t.join(" ")},e.prototype.serialize=function(){return n.rlp.encode(this.raw)},e.prototype.toJSON=function(e){return void 0===e&&(e=!1),{}},e.prototype._validateV=function(e){if(void 0!==e&&0!==e.length&&this._common.gteHardfork("spuriousDragon")){var t=n.bufferToInt(e);if(27!==t&&28!==t&&t!==2*this.getChainId()+35&&t!==2*this.getChainId()+36)throw new Error("Incompatible EIP155-based V "+t+" and chain id "+this.getChainId()+". See the second parameter of the Transaction constructor to set the chain id.")}},e.prototype._isSigned=function(){return this.v.length>0&&this.r.length>0&&this.s.length>0},e.prototype._overrideVSetterWithValidation=function(){var e=this,t=Object.getOwnPropertyDescriptor(this,"v");Object.defineProperty(this,"v",r({},t,{set:function(a){void 0!==a&&e._validateV(n.toBuffer(a)),t.set(a)}}))},e.prototype._implementsEIP155=function(){var e=this._common.gteHardfork("spuriousDragon");if(!this._isSigned())return e;var t=n.bufferToInt(this.v);return(t===2*this.getChainId()+35||t===2*this.getChainId()+36)&&e},e}();t.default=s},64519:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.isPrecompiled=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isZeroAddress=t.isValidAddress=t.zeroAddress=void 0;var n=a(71696),c=a(81538),i=a(69643),o=a(53707),s=a(30997),d=a(31112);t.zeroAddress=function(){var e=s.zeros(20);return s.bufferToHex(e)},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===s.addHexPrefix(e)},t.toChecksumAddress=function(e,t){e=c.stripHexPrefix(e).toLowerCase();for(var a=void 0!==t?t.toString()+"0x":"",r=d.keccak(a+e).toString("hex"),n="0x",i=0;i=8?n+=e[i].toUpperCase():n+=e[i];return n},t.isValidChecksumAddress=function(e,a){return t.isValidAddress(e)&&t.toChecksumAddress(e,a)===e},t.generateAddress=function(e,t){e=s.toBuffer(e);var a=new o(t);return a.isZero()?d.rlphash([e,null]).slice(-20):d.rlphash([e,r.from(a.toArray())]).slice(-20)},t.generateAddress2=function(e,t,a){var c=s.toBuffer(e),i=s.toBuffer(t),o=s.toBuffer(a);return n(20===c.length),n(32===i.length),d.keccak256(r.concat([r.from("ff","hex"),c,i,d.keccak256(o)])).slice(-20)},t.isPrecompiled=function(e){var t=s.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return i.privateKeyVerify(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?i.publicKeyVerify(r.concat([r.from([4]),e])):!!t&&i.publicKeyVerify(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=s.toBuffer(e),t&&64!==e.length&&(e=i.publicKeyConvert(e,!1).slice(1)),n(64===e.length),d.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=s.toBuffer(e),i.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=s.toBuffer(e)).length&&(e=i.publicKeyConvert(e,!1).slice(1)),e}},30997:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var n=a(81538),c=a(53707);t.zeros=function(e){return r.allocUnsafe(e).fill(0)},t.setLengthLeft=function(e,a,r){void 0===r&&(r=!1);var n=t.zeros(a);return e=t.toBuffer(e),r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(e){if(!r.isBuffer(e))if(Array.isArray(e))e=r.from(e);else if("string"==typeof e){if(!n.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);e=r.from(n.padToEven(n.stripHexPrefix(e)),"hex")}else if("number"==typeof e)e=n.intToBuffer(e);else if(null==e)e=r.allocUnsafe(0);else if(c.isBN(e))e=e.toArrayLike(r);else{if(!e.toArray)throw new Error("invalid type");e=r.from(e.toArray())}return e},t.bufferToInt=function(e){return new c(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new c(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||n.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(e){if(r.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var a=[],n=0;n{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var n=a(53707);t.MAX_INTEGER=new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new n("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=r.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=r.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=r.from(t.KECCAK256_RLP_S,"hex")},31112:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var n=a(1115),c=n.keccak224,i=n.keccak384,o=n.keccak256,s=n.keccak512,d=a(16162),f=a(81538),u=a(6271),b=a(30997);t.keccak=function(e,t){switch(void 0===t&&(t=256),e="string"!=typeof e||f.isHexString(e)?b.toBuffer(e):r.from(e,"utf8"),t||(t=256),t){case 224:return c(e);case 256:return o(e);case 384:return i(e);case 512:return s(e);default:throw new Error("Invald algorithm: keccak"+t)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=b.toBuffer(e),d("sha256").update(e).digest()},t.ripemd160=function(e,t){e=b.toBuffer(e);var a=d("rmd160").update(e).digest();return!0===t?b.setLength(a,32):a},t.rlphash=function(e){return t.keccak(u.encode(e))}},3774:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||t.hasOwnProperty(a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=t.rlp=t.BN=void 0;var c=a(69643);t.secp256k1=c;var i=a(81538),o=a(53707);t.BN=o;var s=a(6271);t.rlp=s,Object.assign(t,i),n(a(20249),t),n(a(64519),t),n(a(31112),t),n(a(54818),t),n(a(30997),t),n(a(48305),t)},48305:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var n=a(71696),c=a(81538),i=a(6271),o=a(30997);t.defineProperties=function(e,t,a){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var a={};return e._fields.forEach((function(t){a[t]="0x"+e[t].toString("hex")})),a}return o.baToJSON(e.raw)},e.serialize=function(){return i.encode(e.raw)},t.forEach((function(t,a){function c(){return e.raw[a]}function i(c){"00"!==(c=o.toBuffer(c)).toString("hex")||t.allowZero||(c=r.allocUnsafe(0)),t.allowLess&&t.length?(c=o.stripZeros(c),n(t.length>=c.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===c.length||!t.length||n(t.length===c.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[a]=c}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:c,set:i}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:i,get:c})})),a)if("string"==typeof a&&(a=r.from(c.stripHexPrefix(a),"hex")),r.isBuffer(a)&&(a=i.decode(a)),Array.isArray(a)){if(a.length>e._fields.length)throw new Error("wrong number of fields in data");a.forEach((function(t,a){e[e._fields[a]]=o.toBuffer(t)}))}else{if("object"!=typeof a)throw new Error("invalid data");var s=Object.keys(a);t.forEach((function(t){-1!==s.indexOf(t.name)&&(e[t.name]=a[t.name]),-1!==s.indexOf(t.alias)&&(e[t.alias]=a[t.alias])}))}}},69643:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var n=a(80101),c=a(64079),i=a(81463);t.privateKeyVerify=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var a=c.privateKeyExport(e,t);return i.privateKeyExport(e,a,t)},t.privateKeyImport=function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(e){return r.from(n.privateKeyNegate(Uint8Array.from(e)))},t.privateKeyModInverse=function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(c.privateKeyModInverse(Uint8Array.from(e)))},t.privateKeyTweakAdd=function(e,t){return r.from(n.privateKeyTweakAdd(Uint8Array.from(e),t))},t.privateKeyTweakMul=function(e,t){return r.from(n.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},t.publicKeyCreate=function(e,t){return r.from(n.publicKeyCreate(Uint8Array.from(e),t))},t.publicKeyConvert=function(e,t){return r.from(n.publicKeyConvert(Uint8Array.from(e),t))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(e,t,a){return r.from(n.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),a))},t.publicKeyTweakMul=function(e,t,a){return r.from(n.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),a))},t.publicKeyCombine=function(e,t){var a=[];return e.forEach((function(e){a.push(Uint8Array.from(e))})),r.from(n.publicKeyCombine(a,t))},t.signatureNormalize=function(e){return r.from(n.signatureNormalize(Uint8Array.from(e)))},t.signatureExport=function(e){return r.from(n.signatureExport(Uint8Array.from(e)))},t.signatureImport=function(e){return r.from(n.signatureImport(Uint8Array.from(e)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return c.signatureImport(t)},t.sign=function(e,t,a){if(null===a)throw new TypeError("options should be an Object");var c=void 0;if(a){if(c={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!=a.data.length)throw new RangeError("options.data length is invalid");c.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(c.noncefn=function(e,t,n,c,i){var o=null!=n?r.from(n):null,s=null!=c?r.from(c):null,d=r.from("");return a.noncefn&&(d=a.noncefn(r.from(e),r.from(t),o,s,i)),new Uint8Array(d)})}var i=n.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),c);return{signature:r.from(i.signature),recovery:i.recid}},t.verify=function(e,t,a){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),a)},t.recover=function(e,t,a,c){return r.from(n.ecdsaRecover(Uint8Array.from(t),a,Uint8Array.from(e),c))},t.ecdh=function(e,t){return r.from(n.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},t.ecdhUnsafe=function(e,t,a){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return r.from(c.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),a))}},81463:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var n=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),c=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,a){void 0===a&&(a=!0);var i=r.from(a?n:c);return e.copy(i,a?8:9),t.copy(i,a?181:214),i},t.privateKeyImport=function(e){var t=e.length,a=0;if(t2)return null;if(t<(a+=1)+r)return null;var n=e[a+r-1]|(r>1?e[a+r-2]<<8:0);return t<(a+=r)+n||t32||tn)return null;if(2!==e[c++])return null;var o=e[c++];if(128&o){if(c+(i=o-128)>n)return null;for(;i>0&&0===e[c];c+=1,i-=1);for(o=0;i>0;c+=1,i-=1)o=(o<<8)+e[c]}if(o>n-c)return null;var s=c;if(c+=o,2!==e[c++])return null;var d=e[c++];if(128&d){if(c+(i=d-128)>n)return null;for(;i>0&&0===e[c];c+=1,i-=1);for(d=0;i>0;c+=1,i-=1)d=(d<<8)+e[c]}if(d>n-c)return null;var f=c;for(c+=d;o>0&&0===e[s];o-=1,s+=1);if(o>32)return null;var u=e.slice(s,s+o);for(u.copy(t,32-u.length);d>0&&0===e[f];d-=1,f+=1);if(d>32)return null;var b=e.slice(f,f+d);return b.copy(a,32-b.length),{r:t,s:a}}},64079:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var n=a(53707),c=new(0,a(87554).ec)("secp256k1"),i=c.curve;t.privateKeyExport=function(e,t){void 0===t&&(t=!0);var a=new n(e);if(a.ucmp(i.n)>=0)throw new Error("couldn't export to DER format");var r=c.g.mul(a);return o(r.getX(),r.getY(),t)},t.privateKeyModInverse=function(e){var t=new n(e);if(t.ucmp(i.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(i.n).toArrayLike(r,"be",32)},t.signatureImport=function(e){var t=new n(e.r);t.ucmp(i.n)>=0&&(t=new n(0));var a=new n(e.s);return a.ucmp(i.n)>=0&&(a=new n(0)),r.concat([t.toArrayLike(r,"be",32),a.toArrayLike(r,"be",32)])},t.ecdhUnsafe=function(e,t,a){void 0===a&&(a=!0);var r=c.keyFromPublic(e),s=new n(t);if(s.ucmp(i.n)>=0||s.isZero())throw new Error("scalar was invalid (zero or overflow)");var d=r.pub.mul(s);return o(d.getX(),d.getY(),a)};var o=function(e,t,a){var n;return a?((n=r.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(n,1)):((n=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(n,1),t.toArrayLike(r,"be",32).copy(n,33)),n}},54818:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var n=a(69643),c=a(53707),i=a(30997),o=a(31112);function s(e,t){return t?e-(2*t+35):e-27}function d(e){return 0===e||1===e}t.ecsign=function(e,t,a){var r=n.sign(e,t),c=r.recovery;return{r:r.signature.slice(0,32),s:r.signature.slice(32,64),v:a?c+(2*a+35):c+27}},t.ecrecover=function(e,t,a,c,o){var f=r.concat([i.setLength(a,32),i.setLength(c,32)],64),u=s(t,o);if(!d(u))throw new Error("Invalid signature v value");var b=n.recover(e,f,u);return n.publicKeyConvert(b,!1).slice(1)},t.toRpcSig=function(e,t,a,n){if(!d(s(e,n)))throw new Error("Invalid signature v value");return i.bufferToHex(r.concat([i.setLengthLeft(t,32),i.setLengthLeft(a,32),i.toBuffer(e)]))},t.fromRpcSig=function(e){var t=i.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var a=t[64];return a<27&&(a+=27),{v:a,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,a,r,n){void 0===r&&(r=!0);var i=new c("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new c("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==a.length)return!1;if(!d(s(e,n)))return!1;var f=new c(t),u=new c(a);return!(f.isZero()||f.gt(o)||u.isZero()||u.gt(o)||r&&1===u.cmp(i))},t.hashPersonalMessage=function(e){var t=r.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return o.keccak(r.concat([t,e]))}},53707:function(e,t,a){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function c(e,t,a){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var i;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:a(52440).Buffer}catch(e){}function o(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},6271:function(e,t,a){"use strict";var r=a(48834).Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var c=n(a(62197));function i(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,t){if(e<56)return r.from([e+t]);var a=f(e),n=f(t+55+a.length/2);return r.from(n+a,"hex")}function s(e){var t,a,n,c,o,d=[],f=e[0];if(f<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(f<=183){if(t=f-127,n=128===f?r.from([]):e.slice(1,t),2===t&&n[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:n,remainder:e.slice(t)}}if(f<=191){if(a=f-182,e.length-1e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(c=e.slice(a,u)).length)throw new Error("invalid rlp, List has a invalid length");for(;c.length;)o=s(c),d.push(o.data),c=o.remainder;return{data:d,remainder:e.slice(u)}}function d(e){return"0x"===e.slice(0,2)}function f(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(e){if(!r.isBuffer(e)){if("string"==typeof e)return d(e)?r.from((a="string"!=typeof(n=e)?n:d(n)?n.slice(2):n).length%2?"0"+a:a,"hex"):r.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(t=f(e),r.from(t,"hex")):r.from([]);if(null==e)return r.from([]);if(e instanceof Uint8Array)return r.from(e);if(c.default.isBN(e))return r.from(e.toArray());throw new Error("invalid type")}var t,a,n;return e}t.encode=function e(t){if(Array.isArray(t)){for(var a=[],n=0;n0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var i=c(a(71696)),o=a(55794),s=a(80101),d=a(84001),f=a(77293),u=a(80182),b=a(15374),l=a(80497),h=a(2221),p=function(){function e(e,t,a,r){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===a&&(a=f.KECCAK256_RLP),void 0===r&&(r=f.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=a,this.codeHash=r,this._validate()}return e.fromAccountData=function(t){var a=t.nonce,r=t.balance,n=t.stateRoot,c=t.codeHash;return new e(a?new o.BN((0,u.toBuffer)(a)):void 0,r?new o.BN((0,u.toBuffer)(r)):void 0,n?(0,u.toBuffer)(n):void 0,c?(0,u.toBuffer)(c):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var a=n(t,4),r=a[0],c=a[1],i=a[2],s=a[3];return new e(new o.BN(r),new o.BN(c),i,s)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,h.bnToUnpaddedBuffer)(this.nonce),(0,h.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(f.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(f.KECCAK256_NULL)},e}();t.Account=p,t.isValidAddress=function(e){try{(0,l.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},t.toChecksumAddress=function(e,t){(0,l.assertIsHexString)(e);var a=(0,d.stripHexPrefix)(e).toLowerCase(),r="";t&&(r=(0,h.toType)(t,h.TypeOutput.BN).toString()+"0x");for(var n=(0,b.keccakFromString)(r+a).toString("hex"),c="0x",i=0;i=8?c+=a[i].toUpperCase():c+=a[i];return c},t.isValidChecksumAddress=function(e,a){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,a)===e},t.generateAddress=function(e,t){(0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(t);var a=new o.BN(t);return a.isZero()?(0,b.rlphash)([e,null]).slice(-20):(0,b.rlphash)([e,r.from(a.toArray())]).slice(-20)},t.generateAddress2=function(e,t,a){return(0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(t),(0,l.assertIsBuffer)(a),(0,i.default)(20===e.length),(0,i.default)(32===t.length),(0,b.keccak256)(r.concat([r.from("ff","hex"),e,t,(0,b.keccak256)(a)])).slice(-20)},t.isValidPrivate=function(e){return(0,s.privateKeyVerify)(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),(0,l.assertIsBuffer)(e),64===e.length?(0,s.publicKeyVerify)(r.concat([r.from([4]),e])):!!t&&(0,s.publicKeyVerify)(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),(0,l.assertIsBuffer)(e),t&&64!==e.length&&(e=r.from((0,s.publicKeyConvert)(e,!1).slice(1))),(0,i.default)(64===e.length),(0,b.keccak)(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(e){return(0,l.assertIsBuffer)(e),r.from((0,s.publicKeyCreate)(e,!1)).slice(1)},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(e){return(0,l.assertIsBuffer)(e),64!==e.length&&(e=r.from((0,s.publicKeyConvert)(e,!1).slice(1))),e},t.zeroAddress=function(){var e=(0,u.zeros)(20);return(0,u.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,l.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}},64214:function(e,t,a){"use strict";var r=a(48834).Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;var c=n(a(71696)),i=a(55794),o=a(80182),s=a(12113),d=function(){function e(e){(0,c.default)(20===e.length,"Invalid address length"),this.buf=e}return e.zero=function(){return new e((0,o.zeros)(20))},e.fromString=function(t){return(0,c.default)((0,s.isValidAddress)(t),"Invalid address"),new e((0,o.toBuffer)(t))},e.fromPublicKey=function(t){return(0,c.default)(r.isBuffer(t),"Public key should be Buffer"),new e((0,s.pubToAddress)(t))},e.fromPrivateKey=function(t){return(0,c.default)(r.isBuffer(t),"Private key should be Buffer"),new e((0,s.privateToAddress)(t))},e.generate=function(t,a){return(0,c.default)(i.BN.isBN(a)),new e((0,s.generateAddress)(t.buf,a.toArrayLike(r)))},e.generate2=function(t,a,n){return(0,c.default)(r.isBuffer(a)),(0,c.default)(r.isBuffer(n)),new e((0,s.generateAddress2)(t.buf,a,n))},e.prototype.equals=function(e){return this.buf.equals(e.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var e=new i.BN(this.buf),t=new i.BN(0),a=new i.BN("ffff","hex");return e.gte(t)&&e.lte(a)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return r.from(this.buf)},e}();t.Address=d},80182:function(e,t,a){"use strict";var r=a(48834).Buffer,n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var i=a(55794),o=a(84001),s=a(80497);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},t.intToBuffer=function(e){var a=(0,t.intToHex)(e);return r.from((0,o.padToEven)(a.slice(2)),"hex")},t.zeros=function(e){return r.allocUnsafe(e).fill(0)};var d=function(e,a,r){var n=(0,t.zeros)(a);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,s.assertIsBuffer)(e),f(e)},t.unpadArray=function(e){return(0,s.assertIsArray)(e),f(e)},t.unpadHexString=function(e){return(0,s.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),f(e)},t.toBuffer=function(e){if(null==e)return r.allocUnsafe(0);if(r.isBuffer(e))return r.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return r.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(e));return r.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,t.intToBuffer)(e);if(i.BN.isBN(e)){if(e.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(e));return e.toArrayLike(r)}if(e.toArray)return r.from(e.toArray());if(e.toBuffer)return r.from(e.toBuffer());throw new Error("invalid type")},t.bufferToInt=function(e){return new i.BN((0,t.toBuffer)(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")},t.fromSigned=function(e){return new i.BN(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e},t.toUtf8=function(e){if((e=(0,o.stripHexPrefix)(e)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return r.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},t.baToJSON=function(e){if(r.isBuffer(e))return"0x".concat(e.toString("hex"));if(e instanceof Array){for(var a=[],n=0;n0&&0===d[0])throw new Error("".concat(s," cannot have leading zeroes, received: ").concat(d.toString("hex")))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(t)throw t.error}}},t.arrToBufArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):r.from(t)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!=t?t:[])}},77293:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var r=a(48834),n=a(55794);t.MAX_UINT64=new n.BN("ffffffffffffffff",16),t.MAX_INTEGER=new n.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new n.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=r.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=r.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=r.Buffer.from(t.KECCAK256_RLP_S,"hex")},55794:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rlp=t.BN=void 0;var o=i(a(62197));t.BN=o.default;var s=c(a(25056));t.rlp=s},15374:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=a(1115),c=a(16162),i=a(55794),o=a(80182),s=a(80497);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}},t.keccak256=function(e){return(0,t.keccak)(e)},t.keccakFromString=function(e,a){void 0===a&&(a=256),(0,s.assertIsString)(e);var n=r.from(e,"utf8");return(0,t.keccak)(n,a)},t.keccakFromHexString=function(e,a){return void 0===a&&(a=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),a)},t.keccakFromArray=function(e,a){return void 0===a&&(a=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),a)};var d=function(e){return e=(0,o.toBuffer)(e),c("sha256").update(e).digest()};t.sha256=function(e){return(0,s.assertIsBuffer)(e),d(e)},t.sha256FromString=function(e){return(0,s.assertIsString)(e),d(e)},t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),d(e)};var f=function(e,t){e=(0,o.toBuffer)(e);var a=c("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(a,32):a};t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),f(e,t)},t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),f(e,t)},t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),f(e,t)},t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}},80497:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=a(84001);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}},t.assertIsBuffer=function(e){if(!r.isBuffer(e)){var t="This method only supports Buffer but input was: ".concat(e);throw new Error(t)}},t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}},t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}},47144:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,n(a(77293),t),n(a(12113),t),n(a(64214),t),n(a(15374),t),n(a(83281),t),n(a(80182),t),n(a(52592),t),n(a(55794),t),n(a(2221),t);var c=a(84001);Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return c.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return c.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return c.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return c.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return c.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return c.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return c.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return c.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return c.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return c.isHexString}})},84001:(e,t,a)=>{"use strict";var r=a(48834).Buffer;function n(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof e));return"0"===e[0]&&"x"===e[1]}function c(e){var t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received ".concat(typeof t));return t.length%2&&(t="0".concat(t)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=n,t.stripHexPrefix=function(e){if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof e));return n(e)?e.slice(2):e},t.padToEven=c,t.getBinarySize=function(e){if("string"!=typeof e)throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof e));return r.byteLength(e,"utf8")},t.arrayContainsArray=function(e,t,a){if(!0!==Array.isArray(e))throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof e,"'"));if(!0!==Array.isArray(t))throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof t,"'"));return t[a?"some":"every"]((function(t){return e.indexOf(t)>=0}))},t.toAscii=function(e){var t="",a=0,r=e.length;for("0x"===e.substring(0,2)&&(a=2);a=n.length,"The field ".concat(t.name," must not have more ").concat(t.length," bytes"))):t.allowZero&&0===n.length||!t.length||(0,c.default)(t.length===n.length,"The field ".concat(t.name," must have byte length of ").concat(t.length)),e.raw[a]=n}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:n,set:i}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:i,get:n})})),a)if("string"==typeof a&&(a=r.from((0,i.stripHexPrefix)(a),"hex")),r.isBuffer(a)&&(a=o.rlp.decode(a)),Array.isArray(a)){if(a.length>e._fields.length)throw new Error("wrong number of fields in data");a.forEach((function(t,a){e[e._fields[a]]=(0,s.toBuffer)(t)}))}else{if("object"!=typeof a)throw new Error("invalid data");var n=Object.keys(a);t.forEach((function(t){-1!==n.indexOf(t.name)&&(e[t.name]=a[t.name]),-1!==n.indexOf(t.alias)&&(e[t.alias]=a[t.alias])}))}}},83281:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var n=a(80101),c=a(55794),i=a(80182),o=a(15374),s=a(80497),d=a(2221);function f(e,t){var a=(0,d.toType)(e,d.TypeOutput.BN);if(a.eqn(0)||a.eqn(1))return(0,d.toType)(e,d.TypeOutput.BN);if(!t)return a.subn(27);var r=(0,d.toType)(t,d.TypeOutput.BN);return a.sub(r.muln(2).addn(35))}function u(e){var t=new c.BN(e);return t.eqn(0)||t.eqn(1)}t.ecsign=function(e,t,a){var c=(0,n.ecdsaSign)(e,t),i=c.signature,o=c.recid,s=r.from(i.slice(0,32)),f=r.from(i.slice(32,64));if(!a||"number"==typeof a){if(a&&!Number.isSafeInteger(a))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:s,s:f,v:a?o+(2*a+35):o+27}}return{r:s,s:f,v:(0,d.toType)(a,d.TypeOutput.BN).muln(2).addn(35).addn(o).toArrayLike(r)}},t.ecrecover=function(e,t,a,c,o){var s=r.concat([(0,i.setLengthLeft)(a,32),(0,i.setLengthLeft)(c,32)],64),d=f(t,o);if(!u(d))throw new Error("Invalid signature v value");var b=(0,n.ecdsaRecover)(s,d.toNumber(),e);return r.from((0,n.publicKeyConvert)(b,!1).slice(1))},t.toRpcSig=function(e,t,a,n){if(!u(f(e,n)))throw new Error("Invalid signature v value");return(0,i.bufferToHex)(r.concat([(0,i.setLengthLeft)(t,32),(0,i.setLengthLeft)(a,32),(0,i.toBuffer)(e)]))},t.toCompactSig=function(e,t,a,n){if(!u(f(e,n)))throw new Error("Invalid signature v value");var c=(0,d.toType)(e,d.TypeOutput.Number),o=a;return(c>28&&c%2==1||1===c||28===c)&&((o=r.from(a))[0]|=128),(0,i.bufferToHex)(r.concat([(0,i.setLengthLeft)(t,32),(0,i.setLengthLeft)(o,32)]))},t.fromRpcSig=function(e){var t,a,r,n=(0,i.toBuffer)(e);if(n.length>=65)t=n.slice(0,32),a=n.slice(32,64),r=(0,i.bufferToInt)(n.slice(64));else{if(64!==n.length)throw new Error("Invalid signature length");t=n.slice(0,32),a=n.slice(32,64),r=(0,i.bufferToInt)(n.slice(32,33))>>7,a[0]&=127}return r<27&&(r+=27),{v:r,r:t,s:a}},t.isValidSignature=function(e,t,a,r,n){void 0===r&&(r=!0);var i=new c.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new c.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==a.length)return!1;if(!u(f(e,n)))return!1;var s=new c.BN(t),d=new c.BN(a);return!(s.isZero()||s.gt(o)||d.isZero()||d.gt(o)||r&&1===d.cmp(i))},t.hashPersonalMessage=function(e){(0,s.assertIsBuffer)(e);var t=r.from("Ethereum Signed Message:\n".concat(e.length),"utf-8");return(0,o.keccak)(r.concat([t,e]))}},2221:(e,t,a)=>{"use strict";var r=a(48834).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,c=a(55794),i=a(84001),o=a(80182);function s(e){return(0,o.unpadBuffer)(e.toArrayLike(r))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=s,t.bnToRlp=function(e){return s(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var a=(0,o.toBuffer)(e);if(t===n.Buffer)return a;if(t===n.BN)return new c.BN(a);if(t===n.Number){var r=new c.BN(a),s=new c.BN(Number.MAX_SAFE_INTEGER.toString());if(r.gt(s))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return r.toNumber()}return"0x".concat(a.toString("hex"))}}},25056:function(e,t,a){"use strict";var r=a(48834).Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var c=n(a(62197));function i(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,t){if(e<56)return r.from([e+t]);var a=f(e),n=f(t+55+a.length/2);return r.from(n+a,"hex")}function s(e){var t,a,n,c,o,d=[],f=e[0];if(f<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(f<=183){if(t=f-127,n=128===f?r.from([]):e.slice(1,t),2===t&&n[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:n,remainder:e.slice(t)}}if(f<=191){if(a=f-182,e.length-1e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(c=e.slice(a,u)).length)throw new Error("invalid rlp, List has a invalid length");for(;c.length;)o=s(c),d.push(o.data),c=o.remainder;return{data:d,remainder:e.slice(u)}}function d(e){return"0x"===e.slice(0,2)}function f(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(e){if(!r.isBuffer(e)){if("string"==typeof e)return d(e)?r.from((a="string"!=typeof(n=e)?n:d(n)?n.slice(2):n).length%2?"0"+a:a,"hex"):r.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(t=f(e),r.from(t,"hex")):r.from([]);if(null==e)return r.from([]);if(e instanceof Uint8Array)return r.from(e);if(c.default.isBN(e))return r.from(e.toArray());throw new Error("invalid type")}var t,a,n;return e}t.encode=function e(t){if(Array.isArray(t)){for(var a=[],n=0;n0&&n[n.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]0&&n[n.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]0&&i!==(0,u.sha256)((0,u.sha256)(n)).slice(0,8).toString("hex"))throw new Error("Failed to decrypt input - possibly invalid passphrase");return[3,4];case 3:throw new Error("Unsupported or invalid entropy type");case 4:return[2,new l.default(n)]}}))}))}function v(e,t){if(e.length<10)throw new Error("Passphrase must be at least 10 characters");if(t.length<10)throw new Error("User id must be at least 10 characters");var a=e+t,r=f.pbkdf2Sync(a,a,2e3,32,"sha256");return new l.default(r)}t.fromEtherWallet=y,t.fromEtherCamp=g,t.fromKryptoKit=x,t.fromQuorumWallet=v;var w={fromEtherWallet:y,fromEtherCamp:g,fromKryptoKit:x,fromQuorumWallet:v};t.default=w},65097:(e,t,a)=>{"use strict";var r=a(74878),n=a(13367),c=new r(0),i=new r(-1),o={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function s(e){var t=e?e.toLowerCase():"ether",a=o[t];if("string"!=typeof a)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(o,null,2));return new r(a,10)}function d(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"==typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}e.exports={unitMap:o,numberToString:d,getValueOfUnit:s,fromWei:function(e,t,a){var r=n(e),d=r.lt(c),f=s(t),u=o[t].length-1||1,b=a||{};d&&(r=r.mul(i));for(var l=r.mod(f).toString(10);l.length2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var b=u[0],l=u[1];if(b||(b="0"),l||(l="0"),l.length>c)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;l.length=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return r}function s(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(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"===a&&this._initArray(this.toArray(),t,a)},c.prototype._initNumber=function(e,t,a){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===a&&this._initArray(this.toArray(),t,a)},c.prototype._initArray=function(e,t,a){if(r("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)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var a=0;a=t;a-=6)n=o(e,a,a+6),this.words[r]|=n<>>26-c&4194303,(c+=24)>=26&&(c-=26,r++);a+6!==t&&(n=o(e,t,a+6),this.words[r]|=n<>>26-c&4194303),this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,d=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?d[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var b=f[e],l=u[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:d[b-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function h(e,t,a){return(new p).mulp(e,t,a)}function p(e,t){this.x=e,this.y=t}Math.imul||(l=b),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?l(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):h(this,e,t),a},p.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},p.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new A(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}y.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):a.strip(),a},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},n(g,y),g.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new x;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return m[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},A.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new k(e)},n(k,A),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},81538:(e,t,a)=>{"use strict";var r=a(48834).Buffer,n=a(38320),c=a(79826);function i(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function o(e){return"0x"+e.toString(16)}e.exports={arrayContainsArray:function(e,t,a){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(a)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=o(e);return new r(i(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:c,padToEven:i,intToHex:o,fromAscii:function(e){for(var t="",a=0;a{"use strict";var t=Object.prototype.hasOwnProperty,a="~";function r(){}function n(e,t,a){this.fn=e,this.context=t,this.once=a||!1}function c(e,t,r,c,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new n(r,c||e,i),s=a?a+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(a=!1)),o.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(a?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},o.prototype.listeners=function(e){var t=a?a+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,c=r.length,i=new Array(c);n{"use strict";var t,a="object"==typeof Reflect?Reflect:null,r=a&&"function"==typeof a.apply?a.apply:function(e,t,a){return Function.prototype.apply.call(e,t,a)};t=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,e.exports.once=function(e,t){return new Promise((function(a,r){function n(a){e.removeListener(t,c),r(a)}function c(){"function"==typeof e.removeListener&&e.removeListener("error",n),a([].slice.call(arguments))}p(e,t,c,{once:!0}),"error"!==t&&function(e,t,a){"function"==typeof e.on&&p(e,"error",t,{once:!0})}(e,n)}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var i=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function d(e,t,a,r){var n,c,i,d;if(o(a),void 0===(c=e._events)?(c=e._events=Object.create(null),e._eventsCount=0):(void 0!==c.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),c=e._events),i=c[t]),void 0===i)i=c[t]=a,++e._eventsCount;else if("function"==typeof i?i=c[t]=r?[a,i]:[i,a]:r?i.unshift(a):i.push(a),(n=s(e))>0&&i.length>n&&!i.warned){i.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=i.length,d=f,console&&console.warn&&console.warn(d)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,a){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=f.bind(r);return n.listener=a,r.wrapFn=n,n}function b(e,t,a){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?a?[n.listener||n]:[n]:a?function(e){for(var t=new Array(e.length),a=0;a0&&(i=t[0]),i instanceof Error)throw i;var o=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw o.context=i,o}var s=c[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else{var d=s.length,f=h(s,d);for(a=0;a=0;c--)if(a[c]===t||a[c].listener===t){i=a[c].listener,n=c;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return b(this,e,!0)},c.prototype.rawListeners=function(e){return b(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},c.prototype.listenerCount=l,c.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},59341:(e,t,a)=>{var r=a(77834).Buffer,n=a(27993);e.exports=function(e,t,a,c){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=a/8,o=r.alloc(i),s=r.alloc(c||0),d=r.alloc(0);i>0||c>0;){var f=new n;f.update(d),f.update(e),t&&f.update(t),d=f.digest();var u=0;if(i>0){var b=o.length-i;u=Math.min(i,d.length),d.copy(o,b,0,u),i-=u}if(u0){var l=s.length-c,h=Math.min(c,d.length-u);d.copy(s,l,u,u+h),c-=h}}return d.fill(0),{key:o,iv:s}}},83243:(e,t,a)=>{"use strict";var r=a(9680),n=Object.prototype.toString,c=Object.prototype.hasOwnProperty,i=function(e,t,a){for(var r=0,n=e.length;r=3&&(c=a),"[object Array]"===n.call(e)?i(e,t,c):"string"==typeof e?o(e,t,c):s(e,t,c)}},37795:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,r=Object.prototype.toString,n="[object Function]";e.exports=function(e){var c=this;if("function"!=typeof c||r.call(c)!==n)throw new TypeError(t+c);for(var i,o=a.call(arguments,1),s=function(){if(this instanceof i){var t=c.apply(this,o.concat(a.call(arguments)));return Object(t)===t?t:this}return c.apply(e,o.concat(a.call(arguments)))},d=Math.max(0,c.length-o.length),f=[],u=0;u{"use strict";var r=a(37795);e.exports=Function.prototype.bind||r},67286:(e,t,a)=>{"use strict";var r,n=SyntaxError,c=Function,i=TypeError,o=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var d=function(){throw new i},f=s?function(){try{return d}catch(e){try{return s(arguments,"callee").get}catch(e){return d}}}():d,u=a(32636)(),b=Object.getPrototypeOf||function(e){return e.__proto__},l={},h="undefined"==typeof Uint8Array?r:b(Uint8Array),p={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":l,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?b(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":f,"%TypedArray%":h,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function e(t){var a;if("%AsyncFunction%"===t)a=o("async function () {}");else if("%GeneratorFunction%"===t)a=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)a=o("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(a=b(n.prototype))}return p[t]=a,a},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=a(4090),x=a(23198),v=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),A=g.call(Function.call,String.prototype.replace),k=g.call(Function.call,String.prototype.slice),S=g.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,M=function(e){var t=k(e,0,1),a=k(e,-1);if("%"===t&&"%"!==a)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===a&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var r=[];return A(e,E,(function(e,t,a,n){r[r.length]=a?A(n,I,"$1"):t||e})),r},C=function(e,t){var a,r=e;if(x(y,r)&&(r="%"+(a=y[r])[0]+"%"),x(p,r)){var c=p[r];if(c===l&&(c=m(r)),void 0===c&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:c}}throw new n("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=M(e),r=a.length>0?a[0]:"",c=C("%"+r+"%",t),o=c.name,d=c.value,f=!1,u=c.alias;u&&(r=u[0],w(a,v([0,1],u)));for(var b=1,l=!0;b=a.length){var g=s(d,h);d=(l=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:d[h]}else l=x(d,h),d=d[h];l&&!f&&(p[o]=d)}}return d}},50326:(e,t,a)=>{"use strict";var r=a(67286)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},81181:(e,t,a)=>{"use strict";var r=a(67286)("%Object.defineProperty%",!0),n=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=n},32636:(e,t,a)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=a(66679);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}},66679:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),a=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},67226:(e,t,a)=>{"use strict";var r=a(66679);e.exports=function(){return r()&&!!Symbol.toStringTag}},23198:(e,t,a)=>{"use strict";var r=a(4090);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},84485:(e,t,a)=>{"use strict";var r=a(77834).Buffer,n=a(67525).Transform;function c(e){n.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}a(91285)(c,n),c.prototype._transform=function(e,t,a){var r=null;try{this.update(e,t)}catch(e){r=e}a(r)},c.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},c.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var a=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var c=this._blockOffset;c0;++i)this._length[i]+=o,(o=this._length[i]/4294967296|0)>0&&(this._length[i]-=4294967296*o);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.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 a=0;a<4;++a)this._length[a]=0;return t},c.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=c},34485:(e,t,a)=>{var r=t;r.utils=a(50212),r.common=a(74495),r.sha=a(45530),r.ripemd=a(91396),r.hmac=a(15047),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},74495:(e,t,a)=>{"use strict";var r=a(50212),n=a(79561);function c(){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=c,c.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var a=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-a,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-a,this.endian);for(var n=0;n>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e}else for(r[n++]=255&e,r[n++]=e>>>8&255,r[n++]=e>>>16&255,r[n++]=e>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,c=8;c{"use strict";var r=a(50212),n=a(79561);function c(e,t,a){if(!(this instanceof c))return new c(e,t,a);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,a))}e.exports=c,c.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t{"use strict";var r=a(50212),n=a(74495),c=r.rotl32,i=r.sum32,o=r.sum32_3,s=r.sum32_4,d=n.BlockHash;function f(){if(!(this instanceof f))return new f;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(e,t,a,r){return e<=15?t^a^r:e<=31?t&a|~t&r:e<=47?(t|~a)^r:e<=63?t&r|a&~r:t^(a|~r)}function b(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function l(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(f,d),t.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var a=this.h[0],r=this.h[1],n=this.h[2],d=this.h[3],f=this.h[4],g=a,x=r,v=n,w=d,A=f,k=0;k<80;k++){var S=i(c(s(a,u(k,r,n,d),e[h[k]+t],b(k)),m[k]),f);a=f,f=d,d=c(n,10),n=r,r=S,S=i(c(s(g,u(79-k,x,v,w),e[p[k]+t],l(k)),y[k]),A),g=A,A=w,w=c(v,10),v=x,x=S}S=o(this.h[1],n,w),this.h[1]=o(this.h[2],d,A),this.h[2]=o(this.h[3],f,g),this.h[3]=o(this.h[4],a,x),this.h[4]=o(this.h[0],r,v),this.h[0]=S},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var h=[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],p=[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],m=[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],y=[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]},45530:(e,t,a)=>{"use strict";t.sha1=a(35079),t.sha224=a(63823),t.sha256=a(68032),t.sha384=a(25328),t.sha512=a(20168)},35079:(e,t,a)=>{"use strict";var r=a(50212),n=a(74495),c=a(40713),i=r.rotl32,o=r.sum32,s=r.sum32_5,d=c.ft_1,f=n.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function b(){if(!(this instanceof b))return new b;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(b,f),e.exports=b,b.blockSize=512,b.outSize=160,b.hmacStrength=80,b.padLength=64,b.prototype._update=function(e,t){for(var a=this.W,r=0;r<16;r++)a[r]=e[t+r];for(;r{"use strict";var r=a(50212),n=a(68032);function c(){if(!(this instanceof c))return new c;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(c,n),e.exports=c,c.blockSize=512,c.outSize=224,c.hmacStrength=192,c.padLength=64,c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},68032:(e,t,a)=>{"use strict";var r=a(50212),n=a(74495),c=a(40713),i=a(79561),o=r.sum32,s=r.sum32_4,d=r.sum32_5,f=c.ch32,u=c.maj32,b=c.s0_256,l=c.s1_256,h=c.g0_256,p=c.g1_256,m=n.BlockHash,y=[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 g(){if(!(this instanceof g))return new g;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(g,m),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var a=this.W,r=0;r<16;r++)a[r]=e[t+r];for(;r{"use strict";var r=a(50212),n=a(20168);function c(){if(!(this instanceof c))return new c;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(c,n),e.exports=c,c.blockSize=1024,c.outSize=384,c.hmacStrength=192,c.padLength=128,c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},20168:(e,t,a)=>{"use strict";var r=a(50212),n=a(74495),c=a(79561),i=r.rotr64_hi,o=r.rotr64_lo,s=r.shr64_hi,d=r.shr64_lo,f=r.sum64,u=r.sum64_hi,b=r.sum64_lo,l=r.sum64_4_hi,h=r.sum64_4_lo,p=r.sum64_5_hi,m=r.sum64_5_lo,y=n.BlockHash,g=[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];function x(){if(!(this instanceof x))return new x;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function v(e,t,a,r,n){var c=e&a^~e&n;return c<0&&(c+=4294967296),c}function w(e,t,a,r,n,c){var i=t&r^~t&c;return i<0&&(i+=4294967296),i}function A(e,t,a,r,n){var c=e&a^e&n^a&n;return c<0&&(c+=4294967296),c}function k(e,t,a,r,n,c){var i=t&r^t&c^r&c;return i<0&&(i+=4294967296),i}function S(e,t){var a=i(e,t,28)^i(t,e,2)^i(t,e,7);return a<0&&(a+=4294967296),a}function E(e,t){var a=o(e,t,28)^o(t,e,2)^o(t,e,7);return a<0&&(a+=4294967296),a}function I(e,t){var a=o(e,t,14)^o(e,t,18)^o(t,e,9);return a<0&&(a+=4294967296),a}function M(e,t){var a=i(e,t,1)^i(e,t,8)^s(e,t,7);return a<0&&(a+=4294967296),a}function C(e,t){var a=o(e,t,1)^o(e,t,8)^d(e,t,7);return a<0&&(a+=4294967296),a}function P(e,t){var a=o(e,t,19)^o(t,e,29)^d(e,t,6);return a<0&&(a+=4294967296),a}r.inherits(x,y),e.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(e,t){for(var a=this.W,r=0;r<32;r++)a[r]=e[t+r];for(;r{"use strict";var r=a(50212).rotr32;function n(e,t,a){return e&t^~e&a}function c(e,t,a){return e&t^e&a^t&a}function i(e,t,a){return e^t^a}t.ft_1=function(e,t,a,r){return 0===e?n(t,a,r):1===e||3===e?i(t,a,r):2===e?c(t,a,r):void 0},t.ch32=n,t.maj32=c,t.p32=i,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},50212:(e,t,a)=>{"use strict";var r=a(79561),n=a(91285);function c(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(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 a=[];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,a[r++]=63&i|128):c(e,n)?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),a[r++]=i>>18|240,a[r++]=i>>12&63|128,a[r++]=i>>6&63|128,a[r++]=63&i|128):(a[r++]=i>>12|224,a[r++]=i>>6&63|128,a[r++]=63&i|128)}else for(n=0;n>>0}return i},t.split32=function(e,t){for(var a=new Array(4*e.length),r=0,n=0;r>>24,a[n+1]=c>>>16&255,a[n+2]=c>>>8&255,a[n+3]=255&c):(a[n+3]=c>>>24,a[n+2]=c>>>16&255,a[n+1]=c>>>8&255,a[n]=255&c)}return a},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,a){return e+t+a>>>0},t.sum32_4=function(e,t,a,r){return e+t+a+r>>>0},t.sum32_5=function(e,t,a,r,n){return e+t+a+r+n>>>0},t.sum64=function(e,t,a,r){var n=e[t],c=r+e[t+1]>>>0,i=(c>>0,e[t+1]=c},t.sum64_hi=function(e,t,a,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,a,r){return t+r>>>0},t.sum64_4_hi=function(e,t,a,r,n,c,i,o){var s=0,d=t;return s+=(d=d+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,a,r,n,c,i,o){return t+r+c+o>>>0},t.sum64_5_hi=function(e,t,a,r,n,c,i,o,s,d){var f=0,u=t;return f+=(u=u+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,a,r,n,c,i,o,s,d){return t+r+c+o+d>>>0},t.rotr64_hi=function(e,t,a){return(t<<32-a|e>>>a)>>>0},t.rotr64_lo=function(e,t,a){return(e<<32-a|t>>>a)>>>0},t.shr64_hi=function(e,t,a){return e>>>a},t.shr64_lo=function(e,t,a){return(e<<32-a|t>>>a)>>>0}},78873:(e,t,a)=>{"use strict";var r=a(34485),n=a(43022),c=a(79561);function i(e){if(!(this instanceof i))return new i(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"),a=n.toArray(e.nonce,e.nonceEnc||"hex"),r=n.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,a,r)}e.exports=i,i.prototype._init=function(e,t,a){var r=e.concat(t).concat(a);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(a||[])),this._reseed=1},i.prototype.generate=function(e,t,a,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=a,a=t,t=null),a&&(a=n.toArray(a,r||"hex"),this._update(a));for(var c=[];c.length{t.read=function(e,t,a,r,n){var c,i,o=8*n-r-1,s=(1<>1,f=-7,u=a?n-1:0,b=a?-1:1,l=e[t+u];for(u+=b,c=l&(1<<-f)-1,l>>=-f,f+=o;f>0;c=256*c+e[t+u],u+=b,f-=8);for(i=c&(1<<-f)-1,c>>=-f,f+=r;f>0;i=256*i+e[t+u],u+=b,f-=8);if(0===c)c=1-d;else{if(c===s)return i?NaN:1/0*(l?-1:1);i+=Math.pow(2,r),c-=d}return(l?-1:1)*i*Math.pow(2,c-r)},t.write=function(e,t,a,r,n,c){var i,o,s,d=8*c-n-1,f=(1<>1,b=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:c-1,h=r?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=f):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+u>=1?b/s:b*Math.pow(2,1-u))*s>=2&&(i++,s/=2),i+u>=f?(o=0,i=f):i+u>=1?(o=(t*s-1)*Math.pow(2,n),i+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,n),i=0));n>=8;e[a+l]=255&o,l+=h,o/=256,n-=8);for(i=i<0;e[a+l]=255&i,l+=h,i/=256,d-=8);e[a+l-h]|=128*p}},91285:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}}},52635:(e,t,a)=>{"use strict";var r=a(67226)(),n=a(62680)("Object.prototype.toString"),c=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===n(e)},i=function(e){return!!c(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==n(e)&&"[object Function]"===n(e.callee)},o=function(){return c(arguments)}();c.isLegacyArguments=i,e.exports=o?c:i},13335:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},9680:e=>{"use strict";var t,a,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw a}}),a={},n((function(){throw 42}),null,t)}catch(e){e!==a&&(n=null)}else n=null;var c=/^\s*class\b/,i=function(e){try{var t=r.call(e);return c.test(t)}catch(e){return!1}},o=function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,d="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var b=document.all;s.call(b)===s.call(document.all)&&(u=function(e){if((f||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=n?function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{n(e,null,t)}catch(e){if(e!==a)return!1}return!i(e)&&o(e)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(d)return o(e);if(i(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&o(e)}},43138:(e,t,a)=>{"use strict";var r,n=Object.prototype.toString,c=Function.prototype.toString,i=/^\s*(?:function)?\*/,o=a(67226)(),s=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(i.test(c.call(e)))return!0;if(!o)return"[object GeneratorFunction]"===n.call(e);if(!s)return!1;if(void 0===r){var t=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&s(t)}return s(e)===r}},38320:e=>{e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},37053:e=>{"use strict";e.exports=function(e){return e!=e}},74782:(e,t,a)=>{"use strict";var r=a(89429),n=a(14926),c=a(37053),i=a(40755),o=a(55346),s=r(i(),Number);n(s,{getPolyfill:i,implementation:c,shim:o}),e.exports=s},40755:(e,t,a)=>{"use strict";var r=a(37053);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},55346:(e,t,a)=>{"use strict";var r=a(14926),n=a(40755);e.exports=function(){var e=n();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},50198:(e,t,a)=>{"use strict";var r=a(83243),n=a(62191),c=a(62680),i=c("Object.prototype.toString"),o=a(67226)(),s=a(50326),d="undefined"==typeof globalThis?a.g:globalThis,f=n(),u=c("Array.prototype.indexOf",!0)||function(e,t){for(var a=0;a-1}return!!s&&function(e){var t=!1;return r(l,(function(a,r){if(!t)try{t=a.call(e)===r}catch(e){}})),t}(e)}},83669:(e,t,a)=>{var r,n=a(34406);!function(){"use strict";var c="input is invalid type",i="object"==typeof window,o=i?window:{};o.JS_SHA3_NO_WINDOW&&(i=!1);var s=!i&&"object"==typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node?o=a.g:s&&(o=self);var d=!o.JS_SHA3_NO_COMMON_JS&&e.exports,f=a.amdO,u=!o.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,b="0123456789abcdef".split(""),l=[4,1024,262144,67108864],h=[0,8,16,24],p=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],y=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],x={128:168,256:136};!o.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,a){return function(r){return new D(e,t,e).update(r)[a]()}},w=function(e,t,a){return function(r,n){return new D(e,t,n).update(r)[a]()}},A=function(e,t,a){return function(t,r,n,c){return M["cshake"+e].update(t,r,n,c)[a]()}},k=function(e,t,a){return function(t,r,n,c){return M["kmac"+e].update(t,r,n,c)[a]()}},S=function(e,t,a,r){for(var n=0;n>5,this.byteCount=this.blockCount<<2,this.outputBlocks=a>>5,this.extraBytes=(31&a)>>3;for(var r=0;r<50;++r)this.s[r]=0}function V(e,t,a){D.call(this,e,t,a)}D.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,a=typeof e;if("string"!==a){if("object"!==a)throw new Error(c);if(null===e)throw new Error(c);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||u&&ArrayBuffer.isView(e)))throw new Error(c);t=!0}for(var r,n,i=this.blocks,o=this.byteCount,s=e.length,d=this.blockCount,f=0,b=this.s;f>2]|=e[f]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(i[r>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=o){for(this.start=r-o,this.block=i[d],r=0;r>=8);a>0;)n.unshift(a),a=255&(e>>=8),++r;return t?n.push(r):n.unshift(r),this.update(n),n.length},D.prototype.encodeString=function(e){var t,a=typeof e;if("string"!==a){if("object"!==a)throw new Error(c);if(null===e)throw new Error(c);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||u&&ArrayBuffer.isView(e)))throw new Error(c);t=!0}var r=0,n=e.length;if(t)r=n;else for(var i=0;i=57344?r+=3:(o=65536+((1023&o)<<10|1023&e.charCodeAt(++i)),r+=4)}return r+=this.encode(8*r),this.update(e),r},D.prototype.bytepad=function(e,t){for(var a=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[a],t=1;t>4&15]+b[15&e]+b[e>>12&15]+b[e>>8&15]+b[e>>20&15]+b[e>>16&15]+b[e>>28&15]+b[e>>24&15];i%t==0&&(L(a),c=0)}return n&&(e=a[c],o+=b[e>>4&15]+b[15&e],n>1&&(o+=b[e>>12&15]+b[e>>8&15]),n>2&&(o+=b[e>>20&15]+b[e>>16&15])),o},D.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,a=this.s,r=this.outputBlocks,n=this.extraBytes,c=0,i=0,o=this.outputBits>>3;e=n?new ArrayBuffer(r+1<<2):new ArrayBuffer(o);for(var s=new Uint32Array(e);i>8&255,s[e+2]=t>>16&255,s[e+3]=t>>24&255;o%a==0&&L(r)}return c&&(e=o<<2,t=r[i],s[e]=255&t,c>1&&(s[e+1]=t>>8&255),c>2&&(s[e+2]=t>>16&255)),s},V.prototype=new D,V.prototype.finalize=function(){return this.encode(this.outputBits,!0),D.prototype.finalize.call(this)};var L=function(e){var t,a,r,n,c,i,o,s,d,f,u,b,l,h,m,y,g,x,v,w,A,k,S,E,I,M,C,P,T,O,N,R,B,D,V,L,j,U,H,F,z,q,K,X,W,G,Z,J,Y,Q,_,$,ee,te,ae,re,ne,ce,ie,oe,se,de,fe;for(r=0;r<48;r+=2)n=e[0]^e[10]^e[20]^e[30]^e[40],c=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],t=(b=e[8]^e[18]^e[28]^e[38]^e[48])^(i<<1|o>>>31),a=(l=e[9]^e[19]^e[29]^e[39]^e[49])^(o<<1|i>>>31),e[0]^=t,e[1]^=a,e[10]^=t,e[11]^=a,e[20]^=t,e[21]^=a,e[30]^=t,e[31]^=a,e[40]^=t,e[41]^=a,t=n^(s<<1|d>>>31),a=c^(d<<1|s>>>31),e[2]^=t,e[3]^=a,e[12]^=t,e[13]^=a,e[22]^=t,e[23]^=a,e[32]^=t,e[33]^=a,e[42]^=t,e[43]^=a,t=i^(f<<1|u>>>31),a=o^(u<<1|f>>>31),e[4]^=t,e[5]^=a,e[14]^=t,e[15]^=a,e[24]^=t,e[25]^=a,e[34]^=t,e[35]^=a,e[44]^=t,e[45]^=a,t=s^(b<<1|l>>>31),a=d^(l<<1|b>>>31),e[6]^=t,e[7]^=a,e[16]^=t,e[17]^=a,e[26]^=t,e[27]^=a,e[36]^=t,e[37]^=a,e[46]^=t,e[47]^=a,t=f^(n<<1|c>>>31),a=u^(c<<1|n>>>31),e[8]^=t,e[9]^=a,e[18]^=t,e[19]^=a,e[28]^=t,e[29]^=a,e[38]^=t,e[39]^=a,e[48]^=t,e[49]^=a,h=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,Z=e[10]<<4|e[11]>>>28,P=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,oe=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,D=e[2]<<1|e[3]>>>31,V=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,N=e[32]<<13|e[33]>>>19,de=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ae=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,x=e[25]<<11|e[24]>>>21,v=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,_=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,B=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ne=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,X=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,M=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,ce=e[29]<<7|e[28]>>>25,ie=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=h^~y&x,e[1]=m^~g&v,e[10]=E^~M&P,e[11]=I^~C&T,e[20]=D^~L&U,e[21]=V^~j&H,e[30]=X^~G&J,e[31]=W^~Z&Y,e[40]=te^~re&ce,e[41]=ae^~ne&ie,e[2]=y^~x&w,e[3]=g^~v&A,e[12]=M^~P&O,e[13]=C^~T&N,e[22]=L^~U&F,e[23]=j^~H&z,e[32]=G^~J&Q,e[33]=Z^~Y&_,e[42]=re^~ce&oe,e[43]=ne^~ie&se,e[4]=x^~w&k,e[5]=v^~A&S,e[14]=P^~O&R,e[15]=T^~N&B,e[24]=U^~F&q,e[25]=H^~z&K,e[34]=J^~Q&$,e[35]=Y^~_&ee,e[44]=ce^~oe&de,e[45]=ie^~se&fe,e[6]=w^~k&h,e[7]=A^~S&m,e[16]=O^~R&E,e[17]=N^~B&I,e[26]=F^~q&D,e[27]=z^~K&V,e[36]=Q^~$&X,e[37]=_^~ee&W,e[46]=oe^~de&te,e[47]=se^~fe&ae,e[8]=k^~h&y,e[9]=S^~m&g,e[18]=R^~E&M,e[19]=B^~I&C,e[28]=q^~D&L,e[29]=K^~V&j,e[38]=$^~X&G,e[39]=ee^~W&Z,e[48]=de^~te&re,e[49]=fe^~ae&ne,e[0]^=p[r],e[1]^=p[r+1]};if(d)e.exports=M;else{for(P=0;P{e.exports=a(83249)(a(55270))},83249:(e,t,a)=>{const r=a(42532),n=a(14255);e.exports=function(e){const t=r(e),a=n(e);return function(e,r){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,r);case"keccak256":return new t(1088,512,null,256,r);case"keccak384":return new t(832,768,null,384,r);case"keccak512":return new t(576,1024,null,512,r);case"sha3-224":return new t(1152,448,6,224,r);case"sha3-256":return new t(1088,512,6,256,r);case"sha3-384":return new t(832,768,6,384,r);case"sha3-512":return new t(576,1024,6,512,r);case"shake128":return new a(1344,256,31,r);case"shake256":return new a(1088,512,31,r);default:throw new Error("Invald algorithm: "+e)}}}},42532:(e,t,a)=>{var r=a(48834).Buffer;const{Transform:n}=a(67525);e.exports=e=>class t extends n{constructor(t,a,r,n,c){super(c),this._rate=t,this._capacity=a,this._delimitedSuffix=r,this._hashBitLength=n,this._options=c,this._state=new e,this._state.initialize(t,a),this._finalized=!1}_transform(e,t,a){let r=null;try{this.update(e,t)}catch(e){r=e}a(r)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return r.isBuffer(e)||(e=r.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},14255:(e,t,a)=>{var r=a(48834).Buffer;const{Transform:n}=a(67525);e.exports=e=>class t extends n{constructor(t,a,r,n){super(n),this._rate=t,this._capacity=a,this._delimitedSuffix=r,this._options=n,this._state=new e,this._state.initialize(t,a),this._finalized=!1}_transform(e,t,a){let r=null;try{this.update(e,t)}catch(e){r=e}a(r)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return r.isBuffer(e)||(e=r.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(e);return void 0!==t&&(a=a.toString(t)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},53877:(e,t)=>{const a=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],c=e[2]^e[12]^e[22]^e[32]^e[42],i=e[3]^e[13]^e[23]^e[33]^e[43],o=e[4]^e[14]^e[24]^e[34]^e[44],s=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],u=e[8]^e[18]^e[28]^e[38]^e[48],b=e[9]^e[19]^e[29]^e[39]^e[49];let l=u^(c<<1|i>>>31),h=b^(i<<1|c>>>31);const p=e[0]^l,m=e[1]^h,y=e[10]^l,g=e[11]^h,x=e[20]^l,v=e[21]^h,w=e[30]^l,A=e[31]^h,k=e[40]^l,S=e[41]^h;l=r^(o<<1|s>>>31),h=n^(s<<1|o>>>31);const E=e[2]^l,I=e[3]^h,M=e[12]^l,C=e[13]^h,P=e[22]^l,T=e[23]^h,O=e[32]^l,N=e[33]^h,R=e[42]^l,B=e[43]^h;l=c^(d<<1|f>>>31),h=i^(f<<1|d>>>31);const D=e[4]^l,V=e[5]^h,L=e[14]^l,j=e[15]^h,U=e[24]^l,H=e[25]^h,F=e[34]^l,z=e[35]^h,q=e[44]^l,K=e[45]^h;l=o^(u<<1|b>>>31),h=s^(b<<1|u>>>31);const X=e[6]^l,W=e[7]^h,G=e[16]^l,Z=e[17]^h,J=e[26]^l,Y=e[27]^h,Q=e[36]^l,_=e[37]^h,$=e[46]^l,ee=e[47]^h;l=d^(r<<1|n>>>31),h=f^(n<<1|r>>>31);const te=e[8]^l,ae=e[9]^h,re=e[18]^l,ne=e[19]^h,ce=e[28]^l,ie=e[29]^h,oe=e[38]^l,se=e[39]^h,de=e[48]^l,fe=e[49]^h,ue=p,be=m,le=g<<4|y>>>28,he=y<<4|g>>>28,pe=x<<3|v>>>29,me=v<<3|x>>>29,ye=A<<9|w>>>23,ge=w<<9|A>>>23,xe=k<<18|S>>>14,ve=S<<18|k>>>14,we=E<<1|I>>>31,Ae=I<<1|E>>>31,ke=C<<12|M>>>20,Se=M<<12|C>>>20,Ee=P<<10|T>>>22,Ie=T<<10|P>>>22,Me=N<<13|O>>>19,Ce=O<<13|N>>>19,Pe=R<<2|B>>>30,Te=B<<2|R>>>30,Oe=V<<30|D>>>2,Ne=D<<30|V>>>2,Re=L<<6|j>>>26,Be=j<<6|L>>>26,De=H<<11|U>>>21,Ve=U<<11|H>>>21,Le=F<<15|z>>>17,je=z<<15|F>>>17,Ue=K<<29|q>>>3,He=q<<29|K>>>3,Fe=X<<28|W>>>4,ze=W<<28|X>>>4,qe=Z<<23|G>>>9,Ke=G<<23|Z>>>9,Xe=J<<25|Y>>>7,We=Y<<25|J>>>7,Ge=Q<<21|_>>>11,Ze=_<<21|Q>>>11,Je=ee<<24|$>>>8,Ye=$<<24|ee>>>8,Qe=te<<27|ae>>>5,_e=ae<<27|te>>>5,$e=re<<20|ne>>>12,et=ne<<20|re>>>12,tt=ie<<7|ce>>>25,at=ce<<7|ie>>>25,rt=oe<<8|se>>>24,nt=se<<8|oe>>>24,ct=de<<14|fe>>>18,it=fe<<14|de>>>18;e[0]=ue^~ke&De,e[1]=be^~Se&Ve,e[10]=Fe^~$e&pe,e[11]=ze^~et&me,e[20]=we^~Re&Xe,e[21]=Ae^~Be&We,e[30]=Qe^~le&Ee,e[31]=_e^~he&Ie,e[40]=Oe^~qe&tt,e[41]=Ne^~Ke&at,e[2]=ke^~De&Ge,e[3]=Se^~Ve&Ze,e[12]=$e^~pe&Me,e[13]=et^~me&Ce,e[22]=Re^~Xe&rt,e[23]=Be^~We&nt,e[32]=le^~Ee&Le,e[33]=he^~Ie&je,e[42]=qe^~tt&ye,e[43]=Ke^~at&ge,e[4]=De^~Ge&ct,e[5]=Ve^~Ze&it,e[14]=pe^~Me&Ue,e[15]=me^~Ce&He,e[24]=Xe^~rt&xe,e[25]=We^~nt&ve,e[34]=Ee^~Le&Je,e[35]=Ie^~je&Ye,e[44]=tt^~ye&Pe,e[45]=at^~ge&Te,e[6]=Ge^~ct&ue,e[7]=Ze^~it&be,e[16]=Me^~Ue&Fe,e[17]=Ce^~He&ze,e[26]=rt^~xe&we,e[27]=nt^~ve&Ae,e[36]=Le^~Je&Qe,e[37]=je^~Ye&_e,e[46]=ye^~Pe&Oe,e[47]=ge^~Te&Ne,e[8]=ct^~ue&ke,e[9]=it^~be&Se,e[18]=Ue^~Fe&$e,e[19]=He^~ze&et,e[28]=xe^~we&Re,e[29]=ve^~Ae&Be,e[38]=Je^~Qe&le,e[39]=Ye^~_e&he,e[48]=Pe^~Oe&qe,e[49]=Te^~Ne&Ke,e[0]^=a[2*t],e[1]^=a[2*t+1]}}},55270:(e,t,a)=>{var r=a(48834).Buffer;const n=a(53877);function c(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}c.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},c.prototype.absorb=function(e){for(let t=0;t>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return t},c.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=c},51344:(e,t,a)=>{e=a.nmd(e);var r="__lodash_hash_undefined__",n=9007199254740991,c="[object Arguments]",i="[object Function]",o="[object Object]",s=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,f={};f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f[c]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f[i]=f["[object Map]"]=f["[object Number]"]=f[o]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1;var u="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,b="object"==typeof self&&self&&self.Object===Object&&self,l=u||b||Function("return this")(),h=t&&!t.nodeType&&t,p=h&&e&&!e.nodeType&&e,m=p&&p.exports===h,y=m&&u.process,g=function(){try{return p&&p.require&&p.require("util").types||y&&y.binding&&y.binding("util")}catch(e){}}(),x=g&&g.isTypedArray;function v(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}var w,A,k,S=Array.prototype,E=Function.prototype,I=Object.prototype,M=l["__core-js_shared__"],C=E.toString,P=I.hasOwnProperty,T=(w=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",O=I.toString,N=C.call(Object),R=RegExp("^"+C.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=m?l.Buffer:void 0,D=l.Symbol,V=l.Uint8Array,L=(B&&B.allocUnsafe,A=Object.getPrototypeOf,k=Object,function(e){return A(k(e))}),j=Object.create,U=I.propertyIsEnumerable,H=S.splice,F=D?D.toStringTag:void 0,z=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=B?B.isBuffer:void 0,K=Math.max,X=Date.now,W=se(l,"Map"),G=se(Object,"create"),Z=function(){function e(){}return function(t){if(!ve(t))return{};if(j)return j(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();function J(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t-1},Y.prototype.set=function(e,t){var a=this.__data__,r=te(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(W||Y),string:new J}},Q.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},Q.prototype.get=function(e){return oe(this,e).get(e)},Q.prototype.has=function(e){return oe(this,e).has(e)},Q.prototype.set=function(e,t){var a=oe(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this},_.prototype.clear=function(){this.__data__=new Y,this.size=0},_.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},_.prototype.get=function(e){return this.__data__.get(e)},_.prototype.has=function(e){return this.__data__.has(e)},_.prototype.set=function(e,t){var a=this.__data__;if(a instanceof Y){var r=a.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new Q(r)}return a.set(e,t),this.size=a.size,this};function re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=P.call(e,F),a=e[F];try{e[F]=void 0;var r=!0}catch(e){}var n=O.call(e);return r&&(t?e[F]=a:delete e[F]),n}(e):function(e){return O.call(e)}(e)}function ne(e){return we(e)&&re(e)==c}function ce(e,t,a,r,n){e!==t&&function(e,t,a){for(var r=-1,n=Object(e),c=a(e),i=c.length;i--;){var o=c[++r];if(!1===t(n[o],o,n))break}}(t,(function(c,i){if(n||(n=new _),ve(c))!function(e,t,a,r,n,c,i){var s=ue(e,a),d=ue(t,a),f=i.get(d);if(f)$(e,a,f);else{var u,b,l,h,p,m=c?c(s,d,a+"",e,t,i):void 0,y=void 0===m;if(y){var g=pe(d),x=!g&&ye(d),v=!g&&!x&&Ae(d);m=d,g||x||v?pe(s)?m=s:we(p=s)&&me(p)?m=function(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function le(e,t){return e===t||e!=e&&t!=t}var he=ne(function(){return arguments}())?ne:function(e){return we(e)&&P.call(e,"callee")&&!U.call(e,"callee")},pe=Array.isArray;function me(e){return null!=e&&xe(e.length)&&!ge(e)}var ye=q||function(){return!1};function ge(e){if(!ve(e))return!1;var t=re(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function we(e){return null!=e&&"object"==typeof e}var Ae=x?function(e){return function(t){return e(t)}}(x):function(e){return we(e)&&xe(e.length)&&!!f[re(e)]};function ke(e){return me(e)?function(e,t){var a=pe(e),r=!a&&he(e),n=!a&&!r&&ye(e),c=!a&&!r&&!n&&Ae(e),i=a||r||n||c,o=i?function(e,t){for(var a=-1,r=Array(e);++a1?t[r-1]:void 0,c=r>2?t[2]:void 0;for(n=Se.length>3&&"function"==typeof n?(r--,n):void 0,c&&function(e,t,a){if(!ve(a))return!1;var r=typeof t;return!!("number"==r?me(a)&&de(t,a.length):"string"==r&&t in a)&&le(a[t],e)}(t[0],t[1],c)&&(n=r<3?void 0:n,r=1),e=Object(e);++a{"use strict";var r=a(91285),n=a(84485),c=a(77834).Buffer,i=new Array(16);function o(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function d(e,t,a,r,n,c,i){return s(e+(t&a|~t&r)+n+c|0,i)+t|0}function f(e,t,a,r,n,c,i){return s(e+(t&r|a&~r)+n+c|0,i)+t|0}function u(e,t,a,r,n,c,i){return s(e+(t^a^r)+n+c|0,i)+t|0}function b(e,t,a,r,n,c,i){return s(e+(a^(t|~r))+n+c|0,i)+t|0}r(o,n),o.prototype._update=function(){for(var e=i,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var a=this._a,r=this._b,n=this._c,c=this._d;a=d(a,r,n,c,e[0],3614090360,7),c=d(c,a,r,n,e[1],3905402710,12),n=d(n,c,a,r,e[2],606105819,17),r=d(r,n,c,a,e[3],3250441966,22),a=d(a,r,n,c,e[4],4118548399,7),c=d(c,a,r,n,e[5],1200080426,12),n=d(n,c,a,r,e[6],2821735955,17),r=d(r,n,c,a,e[7],4249261313,22),a=d(a,r,n,c,e[8],1770035416,7),c=d(c,a,r,n,e[9],2336552879,12),n=d(n,c,a,r,e[10],4294925233,17),r=d(r,n,c,a,e[11],2304563134,22),a=d(a,r,n,c,e[12],1804603682,7),c=d(c,a,r,n,e[13],4254626195,12),n=d(n,c,a,r,e[14],2792965006,17),a=f(a,r=d(r,n,c,a,e[15],1236535329,22),n,c,e[1],4129170786,5),c=f(c,a,r,n,e[6],3225465664,9),n=f(n,c,a,r,e[11],643717713,14),r=f(r,n,c,a,e[0],3921069994,20),a=f(a,r,n,c,e[5],3593408605,5),c=f(c,a,r,n,e[10],38016083,9),n=f(n,c,a,r,e[15],3634488961,14),r=f(r,n,c,a,e[4],3889429448,20),a=f(a,r,n,c,e[9],568446438,5),c=f(c,a,r,n,e[14],3275163606,9),n=f(n,c,a,r,e[3],4107603335,14),r=f(r,n,c,a,e[8],1163531501,20),a=f(a,r,n,c,e[13],2850285829,5),c=f(c,a,r,n,e[2],4243563512,9),n=f(n,c,a,r,e[7],1735328473,14),a=u(a,r=f(r,n,c,a,e[12],2368359562,20),n,c,e[5],4294588738,4),c=u(c,a,r,n,e[8],2272392833,11),n=u(n,c,a,r,e[11],1839030562,16),r=u(r,n,c,a,e[14],4259657740,23),a=u(a,r,n,c,e[1],2763975236,4),c=u(c,a,r,n,e[4],1272893353,11),n=u(n,c,a,r,e[7],4139469664,16),r=u(r,n,c,a,e[10],3200236656,23),a=u(a,r,n,c,e[13],681279174,4),c=u(c,a,r,n,e[0],3936430074,11),n=u(n,c,a,r,e[3],3572445317,16),r=u(r,n,c,a,e[6],76029189,23),a=u(a,r,n,c,e[9],3654602809,4),c=u(c,a,r,n,e[12],3873151461,11),n=u(n,c,a,r,e[15],530742520,16),a=b(a,r=u(r,n,c,a,e[2],3299628645,23),n,c,e[0],4096336452,6),c=b(c,a,r,n,e[7],1126891415,10),n=b(n,c,a,r,e[14],2878612391,15),r=b(r,n,c,a,e[5],4237533241,21),a=b(a,r,n,c,e[12],1700485571,6),c=b(c,a,r,n,e[3],2399980690,10),n=b(n,c,a,r,e[10],4293915773,15),r=b(r,n,c,a,e[1],2240044497,21),a=b(a,r,n,c,e[8],1873313359,6),c=b(c,a,r,n,e[15],4264355552,10),n=b(n,c,a,r,e[6],2734768916,15),r=b(r,n,c,a,e[13],1309151649,21),a=b(a,r,n,c,e[4],4149444226,6),c=b(c,a,r,n,e[11],3174756917,10),n=b(n,c,a,r,e[2],718787259,15),r=b(r,n,c,a,e[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+c|0},o.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=c.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=o},46676:(e,t,a)=>{var r=a(1466),n=a(82745);function c(e){this.rand=e||new n.Rand}e.exports=c,c.create=function(e){return new c(e)},c.prototype._randbelow=function(e){var t=e.bitLength(),a=Math.ceil(t/8);do{var n=new r(this.rand.generate(a))}while(n.cmp(e)>=0);return n},c.prototype._randrange=function(e,t){var a=t.sub(e);return e.add(this._randbelow(a))},c.prototype.test=function(e,t,a){var n=e.bitLength(),c=r.mont(e),i=new r(1).toRed(c);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var d=e.shrn(s),f=o.toRed(c);t>0;t--){var u=this._randrange(new r(2),o);a&&a(u);var b=u.toRed(c).redPow(d);if(0!==b.cmp(i)&&0!==b.cmp(f)){for(var l=1;l0;t--){var f=this._randrange(new r(2),i),u=e.gcd(f);if(0!==u.cmpn(1))return u;var b=f.toRed(n).redPow(s);if(0!==b.cmp(c)&&0!==b.cmp(d)){for(var l=1;l=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},79561:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)}},43022:(e,t)=>{"use strict";var a=t;function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",a=0;a>8,i=255&n;c?a.push(c,i):a.push(i)}return a},a.zero2=r,a.toHex=n,a.encode=function(e,t){return"hex"===t?n(e):e}},99209:function(e,t){"use strict";var a=this&&this.__rest||function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n>"}},debug:{traceTransaction:{aliasSection:"debug",description:"Debug trace tx",params:[{name:"transaction_hash",type:"H256"}],type:"Result>"}},xcm:{injectDownwardMessage:{description:"Inject a downward message from the relay chain.",params:[{name:"message",type:"Vec"}],type:"Result<()>"},injectHrmpMessage:{description:"Inject an HRMP message from a dedicated channel from a sibling parachain",params:[{name:"sender",type:"ParaId"},{name:"message",type:"Vec"}],type:"Result<()>"}},moon:{isBlockFinalized:{description:"Returns whether an Ethereum block is finalized",params:[{name:"blockHash",type:"Hash"}],type:"bool"},isTxFinalized:{description:"Returns whether an Ethereum transaction is finalized",params:[{name:"txHash",type:"Hash"}],type:"bool"}}};const r={AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",RefCount:"u8",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"},{RefCount:n}=r,c=a(r,["RefCount"]),i=Object.assign(Object.assign({},c),{ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"ValidatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},ValidatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"}}),{ValidatorStatus:o}=i,s=a(i,["ValidatorStatus"]),d=Object.assign(Object.assign({},s),{AccountInfo:"AccountInfoWithTripleRefCount",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"}}),f=Object.assign(Object.assign({},d),{AuthorId:"AccountId"}),u=Object.assign(Object.assign({},f),{AccountId32:"H256",AuthorId:"AccountId32",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"}}),b=Object.assign(Object.assign({},u),{Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToBottom:"Null",AddedToTop:"Balance"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"}}),l=Object.assign(Object.assign({},b),{EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}}}),h=Object.assign(Object.assign({},l),{NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}),p=Object.assign(Object.assign({},h),{RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"}}),m=Object.assign(Object.assign({},p),{AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV0"}),y=Object.assign(Object.assign({},m),{JunctionV1:{_enum:{Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},MultiLocation:"MultiLocationV1"}),g=Object.assign(Object.assign({},y),{MoonbaseRuntimeAssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",is_frozen:"bool"},PalletCrowdloanRewardsRewardInfo:{total_reward:"Balance",claimed_reward:"Balance",contributed_relay_addresses:"Vec"},ParachainStakingNominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduled_revocations_count:"u32",scheduled_revocations_total:"Balance",status:"NominatorStatus"},ParachainStakingExitQ:{candidates:"Vec",nominators_leaving:"Vec",candidate_schedule:"Vec<(AccountId, RoundIndex)>",nominator_schedule:"Vec<(AccountId, Option, RoundIndex)>"},ParachainStakingCollator2:{id:"AccountId",bond:"Balance",nominators:"Vec",top_nominators:"Vec",bottom_nominators:"Vec",total_counted:"Balance",total_backing:"Balance",state:"CollatorStatus"}});t.moonbeamDefinitions={alias:t.moduleDefinitions,rpc:t.rpcDefinitions,instances:{council:["councilCollective"],technicalCommittee:["techCommitteeCollective","openTechCommitteeCollective"]},types:[{minmax:[0,4],types:r},{minmax:[5,5],types:c},{minmax:[6,19],types:i},{minmax:[19,35],types:d},{minmax:[36,36],types:f},{minmax:[37,42],types:u},{minmax:[43,154],types:b},{minmax:[155,199],types:l},{minmax:[200,399],types:h},{minmax:[400,599],types:p},{minmax:[600,799],types:m},{minmax:[800,899],types:y},{minmax:[900,void 0],types:{ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]}}}]},t.moonbeamDefinitionsDeprecated=Object.assign(Object.assign({},t.moonbeamDefinitions),{types:[...t.moonbeamDefinitions.types,{minmax:[900,void 0],types:g}]}),t.typesBundlePre900={spec:{moonbeam:t.moonbeamDefinitions,moonbeamDefinitions:t.moonbeamDefinitions,moonbase:t.moonbeamDefinitions,moonriver:t.moonbeamDefinitions}},t.typesBundleDeprecated={spec:{moonbeam:t.moonbeamDefinitionsDeprecated,moonbeamDefinitions:t.moonbeamDefinitionsDeprecated,moonbase:t.moonbeamDefinitionsDeprecated,moonriver:t.moonbeamDefinitionsDeprecated}},t.types=t.typesBundlePre900},2436:function(e,t,a){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function c(e,t,a){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var i;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{i=a(48834).Buffer}catch(e){}function o(e,t,a){for(var r=0,n=Math.min(e.length,a),c=t;c=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return r}function s(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(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"===a&&this._initArray(this.toArray(),t,a)},c.prototype._initNumber=function(e,t,a){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===a&&this._initArray(this.toArray(),t,a)},c.prototype._initArray=function(e,t,a){if(r("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)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var a=0;a=t;a-=6)n=o(e,a,a+6),this.words[r]|=n<>>26-c&4194303,(c+=24)>=26&&(c-=26,r++);a+6!==t&&(n=o(e,t,a+6),this.words[r]|=n<>>26-c&4194303),this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,d=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?d[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var b=f[e],l=u[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:d[b-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function h(e,t,a){return(new p).mulp(e,t,a)}function p(e,t){this.x=e,this.y=t}Math.imul||(l=b),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?l(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):h(this,e,t),a},p.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},p.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new A(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}y.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):a.strip(),a},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},n(g,y),g.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new x;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return m[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},A.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new k(e)},n(k,A),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},13367:(e,t,a)=>{var r=a(2436),n=a(79826);e.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new r(1),a=String(e).toLowerCase().trim(),c="0x"===a.substr(0,2)||"-0x"===a.substr(0,3),i=n(a);if("-"===i.substr(0,1)&&(i=n(i.slice(1)),t=new r(-1,10)),!(i=""===i?"0":i).match(/^-?[0-9]+$/)&&i.match(/^[0-9A-Fa-f]+$/)||i.match(/^[a-fA-F]+$/)||!0===c&&i.match(/^[0-9A-Fa-f]+$/))return new r(i,16).mul(t);if((i.match(/^-?[0-9]+$/)||""===i)&&!1===c)return new r(i,10).mul(t)}else if("object"==typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new r(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},18169:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,a){return 0===e&&0===a?1/e==1/a:e===a||!(!t(e)||!t(a))}},34679:(e,t,a)=>{"use strict";var r=a(14926),n=a(89429),c=a(18169),i=a(68070),o=a(20191),s=n(i(),Object);r(s,{getPolyfill:i,implementation:c,shim:o}),e.exports=s},68070:(e,t,a)=>{"use strict";var r=a(18169);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},20191:(e,t,a)=>{"use strict";var r=a(68070),n=a(14926);e.exports=function(){var e=r();return n(Object,{is:e},{is:function(){return Object.is!==e}}),e}},75691:(e,t,a)=>{"use strict";var r;if(!Object.keys){var n=Object.prototype.hasOwnProperty,c=Object.prototype.toString,i=a(30801),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),d=o.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},b={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},l=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!b["$"+e]&&n.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,a="[object Function]"===c.call(e),r=i(e),o=t&&"[object String]"===c.call(e),b=[];if(!t&&!a&&!r)throw new TypeError("Object.keys called on a non-object");var h=d&&a;if(o&&e.length>0&&!n.call(e,0))for(var p=0;p0)for(var m=0;m{"use strict";var r=Array.prototype.slice,n=a(30801),c=Object.keys,i=c?function(e){return c(e)}:a(75691),o=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return n(e)?o(r.call(e)):o(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},30801:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var a=t.call(e),r="[object Arguments]"===a;return r||(r="[object Array]"!==a&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},58045:(e,t,a)=>{"use strict";var r=a(22812);t.certificate=a(27832);var n=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=n;var c=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=c;var i=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}));t.PublicKey=i;var o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),s=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=s;var d=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=d;var f=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=f,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var u=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(b),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=u;var b=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},27832:(e,t,a)=>{"use strict";var r=a(22812),n=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),c=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),i=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())})),s=r.define("RelativeDistinguishedName",(function(){this.setof(c)})),d=r.define("RDNSequence",(function(){this.seqof(s)})),f=r.define("Name",(function(){this.choice({rdnSequence:this.use(d)})})),u=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))})),b=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),l=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(i),this.key("issuer").use(f),this.key("validity").use(u),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(b).optional())})),h=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(l),this.key("signatureAlgorithm").use(i),this.key("signatureValue").bitstr())}));e.exports=h},82968:(e,t,a)=>{var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,c=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,i=a(59341),o=a(10010),s=a(77834).Buffer;e.exports=function(e,t){var a,d=e.toString(),f=d.match(r);if(f){var u="aes"+f[1],b=s.from(f[2],"hex"),l=s.from(f[3].replace(/[\r\n]/g,""),"base64"),h=i(t,b.slice(0,8),parseInt(f[1],10)).key,p=[],m=o.createDecipheriv(u,h,b);p.push(m.update(l)),p.push(m.final()),a=s.concat(p)}else{var y=d.match(c);a=s.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(n)[1],data:a}}},28016:(e,t,a)=>{var r=a(58045),n=a(68675),c=a(82968),i=a(10010),o=a(30499),s=a(77834).Buffer;function d(e){var t;"object"!=typeof e||s.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=s.from(e));var a,d,f=c(e,t),u=f.tag,b=f.data;switch(u){case"CERTIFICATE":d=r.certificate.decode(b,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=r.PublicKey.decode(b,"der")),a=d.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=r.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":b=function(e,t){var a=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=n[e.algorithm.decrypt.cipher.algo.join(".")],d=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,u=parseInt(c.split("-")[1],10)/8,b=o.pbkdf2Sync(t,a,r,u,"sha1"),l=i.createDecipheriv(c,b,d),h=[];return h.push(l.update(f)),h.push(l.final()),s.concat(h)}(b=r.EncryptedPrivateKey.decode(b,"der"),t);case"PRIVATE KEY":switch(a=(d=r.PrivateKey.decode(b,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:r.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=r.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(b,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(b,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(b,"der")};case"EC PRIVATE KEY":return{curve:(b=r.ECPrivateKey.decode(b,"der")).parameters.value,privateKey:b.privateKey};default:throw new Error("unknown key type "+u)}}e.exports=d,d.signature=r.signature},30499:(e,t,a)=>{t.pbkdf2=a(14874),t.pbkdf2Sync=a(88840)},14874:(e,t,a)=>{var r,n,c=a(77834).Buffer,i=a(87351),o=a(25214),s=a(88840),d=a(97232),f=a.g.crypto&&a.g.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},b=[];function l(){return n||(n=a.g.process&&a.g.process.nextTick?a.g.process.nextTick:a.g.queueMicrotask?a.g.queueMicrotask:a.g.setImmediate?a.g.setImmediate:a.g.setTimeout)}function h(e,t,a,r,n){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:a,hash:{name:n}},e,r<<3)})).then((function(e){return c.from(e)}))}e.exports=function(e,t,n,p,m,y){"function"==typeof m&&(y=m,m=void 0);var g=u[(m=m||"sha1").toLowerCase()];if(g&&"function"==typeof a.g.Promise){if(i(n,p),e=d(e,o,"Password"),t=d(t,o,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){l()((function(){t(null,e)}))}),(function(e){l()((function(){t(e)}))}))}(function(e){if(a.g.process&&!a.g.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==b[e])return b[e];var t=h(r=r||c.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return b[e]=t,t}(g).then((function(a){return a?h(e,t,n,p,g):s(e,t,n,p,m)})),y)}else l()((function(){var a;try{a=s(e,t,n,p,m)}catch(e){return y(e)}y(null,a)}))}},25214:(e,t,a)=>{var r,n=a(34406);r=a.g.process&&a.g.process.browser?"utf-8":a.g.process&&a.g.process.version?parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",e.exports=r},87351:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,a){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>t||a!=a)throw new TypeError("Bad key length")}},88840:(e,t,a)=>{var r=a(22511),n=a(51445),c=a(9065),i=a(77834).Buffer,o=a(87351),s=a(25214),d=a(97232),f=i.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function b(e,t,a){var o=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new n).update(e).digest()}:"md5"===e?r:function(t){return c(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=o(t):t.length{var r=a(77834).Buffer;e.exports=function(e,t,a){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(a+" must be a string, a Buffer, a typed array or a DataView")}},74313:(e,t)=>{"use strict";t.Z=void 0,t.Z={rpc:{mvm:{estimateGasExecute:{aliasSection:"mvm",description:"estimate gas for script execution",params:[{name:"account",type:"AccountId"},{name:"tx_bc",type:"Bytes"},{name:"gas_limit",type:"u64"}],type:"Estimation"},estimateGasPublish:{aliasSection:"mvm",description:"estimate gas for module publishing",params:[{name:"account",type:"AccountId"},{name:"module_bc",type:"Bytes"},{name:"gas_limit",type:"u64"}],type:"Estimation"},gasToWeight:{aliasSection:"mvm",description:"convert gas to weight",params:[{name:"gas",type:"u64"}],type:"Weight"},weightToGas:{aliasSection:"mvm",description:"convert gas to weight",params:[{name:"weight",type:"Weight"}],type:"u64"}}},types:[{minmax:[0,void 0],types:{AuthorId:"[u8;32]",Balance:"u64",Bond:{owner:"AccountId",amount:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",top_nominators:"Vec",bottom_nominators:"Vec",total_counted:"Balance",total_backing:"Balance",state:"CollatorStatus"},Candidate:{bond:"Balance",fee:"Perbill",id:"AccountId",nominators:"Vec",state:"ValidatorStatus",total:"Balance"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},Estimation:{gas_used:"u64",status_code:"u64"},ExitQ:{candidate_schedule:"Vec<(AccountId, RoundIndex)>",candidates:"Vec",nominator_schedule:"Vec<(AccountId, Option, RoundIndex)>",nominators_leaving:"Vec"},InflationInfo:{annual:"RangePerbill",expect:"RangeBalance",round:"RangePerbill"},MoveStructTag:{address:"AccountId",module:"Text",name:"Text"},MoveTypeTag:{Address:"",Bool:"",Signer:"",Struct:"MoveStructTag",U128:"",U64:"",U8:"",Vector:"MoveTypeTag",_enum:["Bool","U8","U64","U128","Address","Signer","Vector","Struct"]},Nominator:{nominations:"Vec",total:"Balance"},Nominator2:{nominations:"Vec",revocations:"Vec",scheduled_revocations_count:"u32",scheduled_revocations_total:"Balance",status:"NominatorStatus",total:"Balance"},NominatorAdded:{_enum:{AddedToBottom:"Null",AddedToTop:"Balance"}},OrderedSet:"Vec",ParachainBondConfig:{account:"AccountId",percent:"Percent"},Range:"RangeBalance",RangeBalance:{ideal:"Balance",max:"Balance",min:"Balance"},RangePerbill:{ideal:"Perbill",max:"Perbill",min:"Perbill"},RegistrationInfo:{account:"AccountId",deposit:"Balance"},RoundIndex:"u32",RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},ValidatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}}}}]}},34406:e=>{var t,a,r=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(a){try{return t.call(null,e,0)}catch(a){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{a="function"==typeof clearTimeout?clearTimeout:c}catch(e){a=c}}();var o,s=[],d=!1,f=-1;function u(){d&&o&&(d=!1,o.length?s=o.concat(s):f=-1,s.length&&b())}function b(){if(!d){var e=i(u);d=!0;for(var t=s.length;t;){for(o=s,s=[];++f1)for(var a=1;a{"use strict";e.exports=a(56158)},35695:e=>{"use strict";e.exports=r;var t,a=/\/|\./;function r(e,t){a.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),r[e]=t}r("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),r("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),r("timestamp",{Timestamp:t}),r("empty",{Empty:{fields:{}}}),r("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),r("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),r("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),r.get=function(e){return r[e]||null}},63746:(e,t,a)=>{"use strict";var r=t,n=a(36901),c=a(88066);function i(e,t,a,r){var c=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",r);for(var i=t.resolvedType.values,o=Object.keys(i),s=0;s>>0",r,r);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",r,r);break;case"uint64":d=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",r,r,d)('else if(typeof d%s==="string")',r)("m%s=parseInt(d%s,10)",r,r)('else if(typeof d%s==="number")',r)("m%s=d%s",r,r)('else if(typeof d%s==="object")',r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",r,r,r,d?"true":"");break;case"bytes":e('if(typeof d%s==="string")',r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",r,r,r)("else if(d%s.length >= 0)",r)("m%s=d%s",r,r);break;case"string":e("m%s=String(d%s)",r,r);break;case"bool":e("m%s=Boolean(d%s)",r,r)}}return e}function o(e,t,a,r){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",r,a,r,r,a,r,r):e("d%s=types[%i].toObject(m%s,o)",r,a,r);else{var c=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",r,r,r,r);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',r)("d%s=o.longs===String?String(m%s):m%s",r,r,r)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",r,r,r,r,c?"true":"",r);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",r,r,r,r,r);break;default:e("d%s=m%s",r,r)}}return e}r.fromObject=function(e){var t=e.fieldsArray,a=c.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return a("return new this.ctor");a("var m=new this.ctor");for(var r=0;r{"use strict";e.exports=function(e){var t=c.codegen(["r","l"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter((function(e){return e.map})).length?",k,value":""))("while(r.pos>>3){");for(var a=0;a>>3){")("case 1: k=r.%s(); break",o.keyType)("case 2:"),void 0===n.basic[s]?t("value=types[%i].decode(r,r.uint32())",a):t("value=r.%s()",s),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[o.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',d):t("%s[k]=value",d)):o.repeated?(t("if(!(%s&&%s.length))",d,d)("%s=[]",d),void 0!==n.packed[s]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos{"use strict";e.exports=function(e){for(var t,a=c.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),o=e.fieldsArray.slice().sort(c.compareFieldsById),s=0;s>>0,8|n.mapKey[d.keyType],d.keyType),void 0===b?a("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",f,t):a(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|b,u,t),a("}")("}")):d.repeated?(a("if(%s!=null&&%s.length){",t,t),d.packed&&void 0!==n.packed[u]?a("w.uint32(%i).fork()",(d.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",u,t)("w.ldelim()"):(a("for(var i=0;i<%s.length;++i)",t),void 0===b?i(a,d,f,t+"[i]"):a("w.uint32(%i).%s(%s[i])",(d.id<<3|b)>>>0,u,t)),a("}")):(d.optional&&a("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,d.name),void 0===b?i(a,d,f,t):a("w.uint32(%i).%s(%s)",(d.id<<3|b)>>>0,u,t))}return a("return w")};var r=a(36901),n=a(23970),c=a(88066);function i(e,t,a,r){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",a,r,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",a,r,(t.id<<3|2)>>>0)}},36901:(e,t,a)=>{"use strict";e.exports=i;var r=a(57641);((i.prototype=Object.create(r.prototype)).constructor=i).className="Enum";var n=a(69788),c=a(88066);function i(e,t,a,n,c,i){if(r.call(this,e,a),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=c||{},this.valuesOptions=i,this.reserved=void 0,t)for(var o=Object.keys(t),s=0;s{"use strict";e.exports=d;var r=a(57641);((d.prototype=Object.create(r.prototype)).constructor=d).className="Field";var n,c=a(36901),i=a(23970),o=a(88066),s=/^required|optional|repeated$/;function d(e,t,a,n,c,d,f){if(o.isObject(n)?(f=c,d=n,n=c=void 0):o.isObject(c)&&(f=d,d=c,c=void 0),r.call(this,e,d),!o.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!o.isString(a))throw TypeError("type must be a string");if(void 0!==n&&!s.test(n=n.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==c&&!o.isString(c))throw TypeError("extend must be a string");"proto3_optional"===n&&(n="optional"),this.rule=n&&"optional"!==n?n:void 0,this.type=a,this.id=t,this.extend=c||void 0,this.required="required"===n,this.optional=!this.required,this.repeated="repeated"===n,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!o.Long&&void 0!==i.long[a],this.bytes="bytes"===a,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=f}d.fromJSON=function(e,t){return new d(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(d.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),d.prototype.setOption=function(e,t,a){return"packed"===e&&(this._packed=null),r.prototype.setOption.call(this,e,t,a)},d.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},d.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=i.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof n?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof c&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof c)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=o.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;o.base64.test(this.typeDefault)?o.base64.decode(this.typeDefault,e=o.newBuffer(o.base64.length(this.typeDefault)),0):o.utf8.write(this.typeDefault,e=o.newBuffer(o.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=o.emptyObject:this.repeated?this.defaultValue=o.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof n&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this)},d.d=function(e,t,a,r){return"function"==typeof t?t=o.decorateType(t).name:t&&"object"==typeof t&&(t=o.decorateEnum(t).name),function(n,c){o.decorateType(n.constructor).add(new d(c,e,t,a,{default:r}))}},d._configure=function(e){n=e}},9188:(e,t,a)=>{"use strict";var r=e.exports=a(50536);r.build="light",r.load=function(e,t,a){return"function"==typeof t?(a=t,t=new r.Root):t||(t=new r.Root),t.load(e,a)},r.loadSync=function(e,t){return t||(t=new r.Root),t.loadSync(e)},r.encoder=a(75191),r.decoder=a(89847),r.verifier=a(22332),r.converter=a(63746),r.ReflectionObject=a(57641),r.Namespace=a(69788),r.Root=a(80742),r.Enum=a(36901),r.Type=a(93138),r.Field=a(20797),r.OneOf=a(86898),r.MapField=a(91981),r.Service=a(49355),r.Method=a(78820),r.Message=a(83611),r.wrappers=a(16423),r.types=a(23970),r.util=a(88066),r.ReflectionObject._configure(r.Root),r.Namespace._configure(r.Type,r.Service,r.Enum),r.Root._configure(r.Type),r.Field._configure(r.Type)},50536:(e,t,a)=>{"use strict";var r=t;function n(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=a(60123),r.BufferWriter=a(76673),r.Reader=a(39799),r.BufferReader=a(87038),r.util=a(34165),r.rpc=a(34963),r.roots=a(29009),r.configure=n,n()},56158:(e,t,a)=>{"use strict";var r=e.exports=a(9188);r.build="full",r.tokenize=a(79882),r.parse=a(82221),r.common=a(35695),r.Root._configure(r.Type,r.parse,r.common)},91981:(e,t,a)=>{"use strict";e.exports=i;var r=a(20797);((i.prototype=Object.create(r.prototype)).constructor=i).className="MapField";var n=a(23970),c=a(88066);function i(e,t,a,n,i,o){if(r.call(this,e,t,n,void 0,void 0,i,o),!c.isString(a))throw TypeError("keyType must be a string");this.keyType=a,this.resolvedKeyType=null,this.map=!0}i.fromJSON=function(e,t){return new i(e,t.id,t.keyType,t.type,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return c.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return r.prototype.resolve.call(this)},i.d=function(e,t,a){return"function"==typeof a?a=c.decorateType(a).name:a&&"object"==typeof a&&(a=c.decorateEnum(a).name),function(r,n){c.decorateType(r.constructor).add(new i(n,e,t,a))}}},83611:(e,t,a)=>{"use strict";e.exports=n;var r=a(34165);function n(e){if(e)for(var t=Object.keys(e),a=0;a{"use strict";e.exports=c;var r=a(57641);((c.prototype=Object.create(r.prototype)).constructor=c).className="Method";var n=a(88066);function c(e,t,a,c,i,o,s,d,f){if(n.isObject(i)?(s=i,i=o=void 0):n.isObject(o)&&(s=o,o=void 0),void 0!==t&&!n.isString(t))throw TypeError("type must be a string");if(!n.isString(a))throw TypeError("requestType must be a string");if(!n.isString(c))throw TypeError("responseType must be a string");r.call(this,e,s),this.type=t||"rpc",this.requestType=a,this.requestStream=!!i||void 0,this.responseType=c,this.responseStream=!!o||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=d,this.parsedOptions=f}c.fromJSON=function(e,t){return new c(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return n.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},c.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),r.prototype.resolve.call(this))}},69788:(e,t,a)=>{"use strict";e.exports=u;var r=a(57641);((u.prototype=Object.create(r.prototype)).constructor=u).className="Namespace";var n,c,i,o=a(20797),s=a(88066),d=a(86898);function f(e,t){if(e&&e.length){for(var a={},r=0;rt)return!0;return!1},u.isReservedName=function(e,t){if(e)for(var a=0;a0;){var r=e.shift();if(a.nested&&a.nested[r]){if(!((a=a.nested[r])instanceof u))throw Error("path conflicts with non-namespace objects")}else a.add(a=new u(r))}return t&&a.addJSON(t),a},u.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return r}else if(r instanceof u&&(r=r.lookup(e.slice(1),t,!0)))return r}else for(var n=0;n{"use strict";e.exports=c,c.className="ReflectionObject";var r,n=a(88066);function c(e,t){if(!n.isString(e))throw TypeError("name must be a string");if(t&&!n.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(c.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),c.prototype.toJSON=function(){throw Error()},c.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof r&&t._handleAdd(this)},c.prototype.onRemove=function(e){var t=e.root;t instanceof r&&t._handleRemove(this),this.parent=null,this.resolved=!1},c.prototype.resolve=function(){return this.resolved||this.root instanceof r&&(this.resolved=!0),this},c.prototype.getOption=function(e){if(this.options)return this.options[e]},c.prototype.setOption=function(e,t,a){return a&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},c.prototype.setParsedOption=function(e,t,a){this.parsedOptions||(this.parsedOptions=[]);var r=this.parsedOptions;if(a){var c=r.find((function(t){return Object.prototype.hasOwnProperty.call(t,e)}));if(c){var i=c[e];n.setProperty(i,a,t)}else(c={})[e]=n.setProperty({},a,t),r.push(c)}else{var o={};o[e]=t,r.push(o)}return this},c.prototype.setOptions=function(e,t){if(e)for(var a=Object.keys(e),r=0;r{"use strict";e.exports=i;var r=a(57641);((i.prototype=Object.create(r.prototype)).constructor=i).className="OneOf";var n=a(20797),c=a(88066);function i(e,t,a,n){if(Array.isArray(t)||(a=t,t=void 0),r.call(this,e,a),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=n}function o(e){if(e.parent)for(var t=0;t-1&&this.oneof.splice(t,1),e.partOf=null,this},i.prototype.onAdd=function(e){r.prototype.onAdd.call(this,e);for(var t=0;t{"use strict";e.exports=S,S.filename=null,S.defaults={keepCase:!1};var r=a(79882),n=a(80742),c=a(93138),i=a(20797),o=a(91981),s=a(86898),d=a(36901),f=a(49355),u=a(78820),b=a(23970),l=a(88066),h=/^[1-9][0-9]*$/,p=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,y=/^-?0[x][0-9a-fA-F]+$/,g=/^0[0-7]+$/,x=/^-?0[0-7]+$/,v=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,w=/^[a-zA-Z_][a-zA-Z_0-9]*$/,A=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,k=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function S(e,t,a){t instanceof n||(a=t,t=new n),a||(a=S.defaults);var E,I,M,C,P,T=a.preferTrailingComment||!1,O=r(e,a.alternateCommentMode||!1),N=O.next,R=O.push,B=O.peek,D=O.skip,V=O.cmnt,L=!0,j=!1,U=t,H=a.keepCase?function(e){return e}:l.camelCase;function F(e,t,a){var r=S.filename;return a||(S.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(r?r+", ":"")+"line "+O.line+")")}function z(){var e,t=[];do{if('"'!==(e=N())&&"'"!==e)throw F(e);t.push(N()),D(e),e=B()}while('"'===e||"'"===e);return t.join("")}function q(e){var t=N();switch(t){case"'":case'"':return R(t),z();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e,t){var a=1;switch("-"===e.charAt(0)&&(a=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return a*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(h.test(e))return a*parseInt(e,10);if(m.test(e))return a*parseInt(e,16);if(g.test(e))return a*parseInt(e,8);if(v.test(e))return a*parseFloat(e);throw F(e,"number",!0)}(t)}catch(a){if(e&&A.test(t))return t;throw F(t,"value")}}function K(e,t){var a,r;do{!t||'"'!==(a=B())&&"'"!==a?e.push([r=X(N()),D("to",!0)?X(N()):r]):e.push(z())}while(D(",",!0));D(";")}function X(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw F(e,"id");if(p.test(e))return parseInt(e,10);if(y.test(e))return parseInt(e,16);if(x.test(e))return parseInt(e,8);throw F(e,"id")}function W(){if(void 0!==E)throw F("package");if(E=N(),!A.test(E))throw F(E,"name");U=U.define(E),D(";")}function G(){var e,t=B();switch(t){case"weak":e=M||(M=[]),N();break;case"public":N();default:e=I||(I=[])}t=z(),D(";"),e.push(t)}function Z(){if(D("="),C=z(),!(j="proto3"===C)&&"proto2"!==C)throw F(C,"syntax");D(";")}function J(e,t){switch(t){case"option":return ee(e,t),D(";"),!0;case"message":return Q(e,t),!0;case"enum":return $(e,t),!0;case"service":return function(e,t){if(!w.test(t=N()))throw F(t,"service name");var a=new f(t);Y(a,(function(e){if(!J(a,e)){if("rpc"!==e)throw F(e);!function(e,t){var a=V(),r=t;if(!w.test(t=N()))throw F(t,"name");var n,c,i,o,s=t;if(D("("),D("stream",!0)&&(c=!0),!A.test(t=N()))throw F(t);if(n=t,D(")"),D("returns"),D("("),D("stream",!0)&&(o=!0),!A.test(t=N()))throw F(t);i=t,D(")");var d=new u(s,r,n,i,c,o);d.comment=a,Y(d,(function(e){if("option"!==e)throw F(e);ee(d,e),D(";")})),e.add(d)}(a,e)}})),e.add(a)}(e,t),!0;case"extend":return function(e,t){if(!A.test(t=N()))throw F(t,"reference");var a=t;Y(null,(function(t){switch(t){case"required":case"repeated":_(e,t,a);break;case"optional":_(e,j?"proto3_optional":"optional",a);break;default:if(!j||!A.test(t))throw F(t);R(t),_(e,"optional",a)}}))}(e,t),!0}return!1}function Y(e,t,a){var r=O.line;if(e&&("string"!=typeof e.comment&&(e.comment=V()),e.filename=S.filename),D("{",!0)){for(var n;"}"!==(n=N());)t(n);D(";",!0)}else a&&a(),D(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=V(r)||e.comment)}function Q(e,t){if(!w.test(t=N()))throw F(t,"type name");var a=new c(t);Y(a,(function(e){if(!J(a,e))switch(e){case"map":!function(e){D("<");var t=N();if(void 0===b.mapKey[t])throw F(t,"type");D(",");var a=N();if(!A.test(a))throw F(a,"type");D(">");var r=N();if(!w.test(r))throw F(r,"name");D("=");var n=new o(H(r),X(N()),t,a);Y(n,(function(e){if("option"!==e)throw F(e);ee(n,e),D(";")}),(function(){re(n)})),e.add(n)}(a);break;case"required":case"repeated":_(a,e);break;case"optional":_(a,j?"proto3_optional":"optional");break;case"oneof":!function(e,t){if(!w.test(t=N()))throw F(t,"name");var a=new s(H(t));Y(a,(function(e){"option"===e?(ee(a,e),D(";")):(R(e),_(a,"optional"))})),e.add(a)}(a,e);break;case"extensions":K(a.extensions||(a.extensions=[]));break;case"reserved":K(a.reserved||(a.reserved=[]),!0);break;default:if(!j||!A.test(e))throw F(e);R(e),_(a,"optional")}})),e.add(a)}function _(e,t,a){var r=N();if("group"!==r){if(!A.test(r))throw F(r,"type");var n=N();if(!w.test(n))throw F(n,"name");n=H(n),D("=");var o=new i(n,X(N()),r,t,a);if(Y(o,(function(e){if("option"!==e)throw F(e);ee(o,e),D(";")}),(function(){re(o)})),"proto3_optional"===t){var d=new s("_"+n);o.setOption("proto3_optional",!0),d.add(o),e.add(d)}else e.add(o);j||!o.repeated||void 0===b.packed[r]&&void 0!==b.basic[r]||o.setOption("packed",!1,!0)}else!function(e,t){var a=N();if(!w.test(a))throw F(a,"name");var r=l.lcFirst(a);a===r&&(a=l.ucFirst(a)),D("=");var n=X(N()),o=new c(a);o.group=!0;var s=new i(r,n,a,t);s.filename=S.filename,Y(o,(function(e){switch(e){case"option":ee(o,e),D(";");break;case"required":case"repeated":_(o,e);break;case"optional":_(o,j?"proto3_optional":"optional");break;case"message":Q(o,e);break;case"enum":$(o,e);break;default:throw F(e)}})),e.add(o).add(s)}(e,t)}function $(e,t){if(!w.test(t=N()))throw F(t,"name");var a=new d(t);Y(a,(function(e){switch(e){case"option":ee(a,e),D(";");break;case"reserved":K(a.reserved||(a.reserved=[]),!0);break;default:!function(e,t){if(!w.test(t))throw F(t,"name");D("=");var a=X(N(),!0),r={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Y(r,(function(e){if("option"!==e)throw F(e);ee(r,e),D(";")}),(function(){re(r)})),e.add(t,a,r.comment,r.options)}(a,e)}})),e.add(a)}function ee(e,t){var a=D("(",!0);if(!A.test(t=N()))throw F(t,"name");var r,n=t,c=n;a&&(D(")"),c=n="("+n+")",t=B(),k.test(t)&&(r=t.slice(1),n+=t,N())),D("="),function(e,t,a,r){e.setParsedOption&&e.setParsedOption(t,a,r)}(e,c,te(e,n),r)}function te(e,t){if(D("{",!0)){for(var a={};!D("}",!0);){if(!w.test(P=N()))throw F(P,"name");var r,n=P;if(D(":",!0),"{"===B())r=te(e,t+"."+P);else if("["===B()){var c;if(r=[],D("[",!0)){do{c=q(!0),r.push(c)}while(D(",",!0));D("]"),void 0!==c&&ae(e,t+"."+P,c)}}else r=q(!0),ae(e,t+"."+P,r);var i=a[n];i&&(r=[].concat(i).concat(r)),a[n]=r,D(",",!0),D(";",!0)}return a}var o=q(!0);return ae(e,t,o),o}function ae(e,t,a){e.setOption&&e.setOption(t,a)}function re(e){if(D("[",!0)){do{ee(e,"option")}while(D(",",!0));D("]")}return e}for(;null!==(P=N());)switch(P){case"package":if(!L)throw F(P);W();break;case"import":if(!L)throw F(P);G();break;case"syntax":if(!L)throw F(P);Z();break;case"option":ee(U,P),D(";");break;default:if(J(U,P)){L=!1;continue}throw F(P)}return S.filename=null,{package:E,imports:I,weakImports:M,syntax:C,root:t}}},39799:(e,t,a)=>{"use strict";e.exports=s;var r,n=a(34165),c=n.LongBits,i=n.utf8;function o(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function s(e){this.buf=e,this.pos=0,this.len=e.length}var d,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new s(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new s(e);throw Error("illegal buffer")},u=function(){return n.Buffer?function(e){return(s.create=function(e){return n.Buffer.isBuffer(e)?new r(e):f(e)})(e)}:f};function b(){var e=new c(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function l(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw o(this,8);return new c(l(this.buf,this.pos+=4),l(this.buf,this.pos+=4))}s.create=u(),s.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,s.prototype.uint32=(d=4294967295,function(){if(d=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return d;if(d=(d|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return d;if(d=(d|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return d;if(d=(d|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return d;if(d=(d|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return d;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return d}),s.prototype.int32=function(){return 0|this.uint32()},s.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},s.prototype.bool=function(){return 0!==this.uint32()},s.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return l(this.buf,this.pos+=4)},s.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|l(this.buf,this.pos+=4)},s.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},s.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},s.prototype.bytes=function(){var e=this.uint32(),t=this.pos,a=this.pos+e;if(a>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,a):t===a?new this.buf.constructor(0):this._slice.call(this.buf,t,a)},s.prototype.string=function(){var e=this.bytes();return i.read(e,0,e.length)},s.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},s.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},s._configure=function(e){r=e,s.create=u(),r._configure();var t=n.Long?"toLong":"toNumber";n.merge(s.prototype,{int64:function(){return b.call(this)[t](!1)},uint64:function(){return b.call(this)[t](!0)},sint64:function(){return b.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},87038:(e,t,a)=>{"use strict";e.exports=c;var r=a(39799);(c.prototype=Object.create(r.prototype)).constructor=c;var n=a(34165);function c(e){r.call(this,e)}c._configure=function(){n.Buffer&&(c.prototype._slice=n.Buffer.prototype.slice)},c.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},c._configure()},80742:(e,t,a)=>{"use strict";e.exports=u;var r=a(69788);((u.prototype=Object.create(r.prototype)).constructor=u).className="Root";var n,c,i,o=a(20797),s=a(36901),d=a(86898),f=a(88066);function u(e){r.call(this,"",e),this.deferred=[],this.files=[]}function b(){}u.fromJSON=function(e,t){return t||(t=new u),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},u.prototype.resolvePath=f.path.resolve,u.prototype.fetch=f.fetch,u.prototype.load=function e(t,a,r){"function"==typeof a&&(r=a,a=void 0);var n=this;if(!r)return f.asPromise(e,n,t,a);var o=r===b;function s(e,t){if(r){var a=r;if(r=null,o)throw e;a(e,t)}}function d(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var a=e.substring(t);if(a in i)return a}return null}function u(e,t){try{if(f.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),f.isString(t)){c.filename=e;var r,i=c(t,n,a),u=0;if(i.imports)for(;u-1))if(n.files.push(e),e in i)o?u(e,i[e]):(++h,setTimeout((function(){--h,u(e,i[e])})));else if(o){var a;try{a=f.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||s(e))}u(e,a)}else++h,n.fetch(e,(function(a,c){--h,r&&(a?t?h||s(null,n):s(a):u(e,c))}))}var h=0;f.isString(t)&&(t=[t]);for(var p,m=0;m-1&&this.deferred.splice(t,1)}}else if(e instanceof s)l.test(e.name)&&delete e.parent[e.name];else if(e instanceof r){for(var a=0;a{"use strict";e.exports={}},34963:(e,t,a)=>{"use strict";t.Service=a(5761)},5761:(e,t,a)=>{"use strict";e.exports=n;var r=a(34165);function n(e,t,a){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(a)}(n.prototype=Object.create(r.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function e(t,a,n,c,i){if(!c)throw TypeError("request must be specified");var o=this;if(!i)return r.asPromise(e,o,t,a,n,c);if(o.rpcImpl)try{return o.rpcImpl(t,a[o.requestDelimited?"encodeDelimited":"encode"](c).finish(),(function(e,a){if(e)return o.emit("error",e,t),i(e);if(null!==a){if(!(a instanceof n))try{a=n[o.responseDelimited?"decodeDelimited":"decode"](a)}catch(e){return o.emit("error",e,t),i(e)}return o.emit("data",a,t),i(null,a)}o.end(!0)}))}catch(e){return o.emit("error",e,t),void setTimeout((function(){i(e)}),0)}else setTimeout((function(){i(Error("already ended"))}),0)},n.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},49355:(e,t,a)=>{"use strict";e.exports=o;var r=a(69788);((o.prototype=Object.create(r.prototype)).constructor=o).className="Service";var n=a(78820),c=a(88066),i=a(34963);function o(e,t){r.call(this,e,t),this.methods={},this._methodsArray=null}function s(e){return e._methodsArray=null,e}o.fromJSON=function(e,t){var a=new o(e,t.options);if(t.methods)for(var r=Object.keys(t.methods),c=0;c{"use strict";e.exports=u;var t=/[\s{}=;:[\],'"()<>]/g,a=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,r=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,c=/^\s*\*?\/*/,i=/\n/g,o=/\s/,s=/\\(.?)/g,d={0:"\0",r:"\r",n:"\n",t:"\t"};function f(e){return e.replace(s,(function(e,t){switch(t){case"\\":case"":return t;default:return d[t]||""}}))}function u(e,s){e=e.toString();var d=0,u=e.length,b=1,l=0,h={},p=[],m=null;function y(e){return Error("illegal "+e+" (line "+b+")")}function g(t){return e.charAt(t)}function x(t,a,r){var o,d={type:e.charAt(t++),lineEmpty:!1,leading:r},f=t-(s?2:3);do{if(--f<0||"\n"===(o=e.charAt(f))){d.lineEmpty=!0;break}}while(" "===o||"\t"===o);for(var u=e.substring(t,a).split(i),p=0;p0)return p.shift();if(m)return function(){var t="'"===m?r:a;t.lastIndex=d-1;var n=t.exec(e);if(!n)throw y("string");return d=t.lastIndex,k(m),m=null,f(n[1])}();var n,c,i,l,h,A=0===d;do{if(d===u)return null;for(n=!1;o.test(i=g(d));)if("\n"===i&&(A=!0,++b),++d===u)return null;if("/"===g(d)){if(++d===u)throw y("comment");if("/"===g(d))if(s){if(l=d,h=!1,v(d)){h=!0;do{if((d=w(d))===u)break;if(d++,!A)break}while(v(d))}else d=Math.min(u,w(d)+1);h&&(x(l,d,A),A=!0),b++,n=!0}else{for(h="/"===g(l=d+1);"\n"!==g(++d);)if(d===u)return null;++d,h&&(x(l,d-1,A),A=!0),++b,n=!0}else{if("*"!==(i=g(d)))return"/";l=d+1,h=s||"*"===g(l);do{if("\n"===i&&++b,++d===u)throw y("comment");c=i,i=g(d)}while("*"!==c||"/"!==i);++d,h&&(x(l,d-2,A),A=!0),n=!0}}}while(n);var S=d;if(t.lastIndex=0,!t.test(g(S++)))for(;S{"use strict";e.exports=g;var r=a(69788);((g.prototype=Object.create(r.prototype)).constructor=g).className="Type";var n=a(36901),c=a(86898),i=a(20797),o=a(91981),s=a(49355),d=a(83611),f=a(39799),u=a(60123),b=a(88066),l=a(75191),h=a(89847),p=a(22332),m=a(63746),y=a(16423);function g(e,t){r.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function x(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(g.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t{"use strict";var r=t,n=a(88066),c=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function i(e,t){var a=0,r={};for(t|=0;a{"use strict";var r,n,c=e.exports=a(34165),i=a(29009);c.codegen=a(1706),c.fetch=a(64641),c.path=a(82659),c.fs=c.inquire("fs"),c.toArray=function(e){if(e){for(var t=Object.keys(e),a=new Array(t.length),r=0;r0)t[n]=e(t[n]||{},a,r);else{var c=t[n];c&&(r=[].concat(c).concat(r)),t[n]=r}return t}(e,t=t.split("."),a)},Object.defineProperty(c,"decorateRoot",{get:function(){return i.decorated||(i.decorated=new(a(80742)))}})},61697:(e,t,a)=>{"use strict";e.exports=n;var r=a(34165);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var c=n.zero=new n(0,0);c.toNumber=function(){return 0},c.zzEncode=c.zzDecode=function(){return this},c.length=function(){return 1};var i=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return c;var t=e<0;t&&(e=-e);var a=e>>>0,r=(e-a)/4294967296>>>0;return t&&(r=~r>>>0,a=~a>>>0,++a>4294967295&&(a=0,++r>4294967295&&(r=0))),new n(a,r)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(r.isString(e)){if(!r.Long)return n.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new n(e.low>>>0,e.high>>>0):c},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,a=~this.hi>>>0;return t||(a=a+1>>>0),-(t+4294967296*a)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var o=String.prototype.charCodeAt;n.fromHash=function(e){return e===i?c:new n((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,a=this.hi>>>24;return 0===a?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:a<128?9:10}},34165:function(e,t,a){"use strict";var r=t;function n(e,t,a){for(var r=Object.keys(t),n=0;ne,set:void 0,enumerable:!1,configurable:!0},toString:{value(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}r.asPromise=a(46781),r.base64=a(87026),r.EventEmitter=a(15570),r.float=a(5298),r.inquire=a(36116),r.utf8=a(57958),r.pool=a(90804),r.LongBits=a(61697),r.isNode=Boolean(void 0!==a.g&&a.g&&a.g.process&&a.g.process.versions&&a.g.process.versions.node),r.global=r.isNode&&a.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},r.isString=function(e){return"string"==typeof e||e instanceof String},r.isObject=function(e){return e&&"object"==typeof e},r.isset=r.isSet=function(e,t){var a=e[t];return!(null==a||!e.hasOwnProperty(t))&&("object"!=typeof a||(Array.isArray(a)?a.length:Object.keys(a).length)>0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var a=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(a.lo,a.hi,t):a.toNumber(Boolean(t))},r.merge=n,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=c,r.ProtocolError=c("ProtocolError"),r.oneOfGetter=function(e){for(var t={},a=0;a-1;--a)if(1===t[e[a]]&&void 0!==this[e[a]]&&null!==this[e[a]])return e[a]}},r.oneOfSetter=function(e){return function(t){for(var a=0;a{"use strict";e.exports=function(e){var t=n.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),a={};e.oneofsArray.length&&t("var p={}");for(var r=0;r{"use strict";var r=t,n=a(83611);r[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),a=this.lookup(t);if(a){var r="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===r.indexOf("/")&&(r="/"+r),this.create({type_url:r,value:a.encode(a.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var a="",r="";if(t&&t.json&&e.type_url&&e.value){r=e.type_url.substring(e.type_url.lastIndexOf("/")+1),a=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var c=this.lookup(r);c&&(e=c.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof n){var i=e.$type.toObject(e,t);return""===a&&(a="type.googleapis.com/"),r=a+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),i["@type"]=r,i}return this.toObject(e,t)}}},60123:(e,t,a)=>{"use strict";e.exports=u;var r,n=a(34165),c=n.LongBits,i=n.base64,o=n.utf8;function s(e,t,a){this.fn=e,this.len=t,this.next=void 0,this.val=a}function d(){}function f(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new s(d,0,0),this.tail=this.head,this.states=null}var b=function(){return n.Buffer?function(){return(u.create=function(){return new r})()}:function(){return new u}};function l(e,t,a){t[a]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function p(e,t,a){for(;e.hi;)t[a++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[a++]=127&e.lo|128,e.lo=e.lo>>>7;t[a++]=e.lo}function m(e,t,a){t[a]=255&e,t[a+1]=e>>>8&255,t[a+2]=e>>>16&255,t[a+3]=e>>>24}u.create=b(),u.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(u.alloc=n.pool(u.alloc,n.Array.prototype.subarray)),u.prototype._push=function(e,t,a){return this.tail=this.tail.next=new s(e,t,a),this.len+=t,this},h.prototype=Object.create(s.prototype),h.prototype.fn=function(e,t,a){for(;e>127;)t[a++]=127&e|128,e>>>=7;t[a]=e},u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},u.prototype.int32=function(e){return e<0?this._push(p,10,c.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},u.prototype.uint64=function(e){var t=c.from(e);return this._push(p,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=c.from(e).zzEncode();return this._push(p,t.length(),t)},u.prototype.bool=function(e){return this._push(l,1,e?1:0)},u.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=c.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var y=n.Array.prototype.set?function(e,t,a){t.set(e,a)}:function(e,t,a){for(var r=0;r>>0;if(!t)return this._push(l,1,0);if(n.isString(e)){var a=u.alloc(t=i.length(e));i.decode(e,a,0),e=a}return this.uint32(t)._push(y,t,e)},u.prototype.string=function(e){var t=o.length(e);return t?this.uint32(t)._push(o.write,t,e):this._push(l,1,0)},u.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new s(d,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new s(d,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,a=this.len;return this.reset().uint32(a),a&&(this.tail.next=e.next,this.tail=t,this.len+=a),this},u.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),a=0;e;)e.fn(e.val,t,a),a+=e.len,e=e.next;return t},u._configure=function(e){r=e,u.create=b(),r._configure()}},76673:(e,t,a)=>{"use strict";e.exports=c;var r=a(60123);(c.prototype=Object.create(r.prototype)).constructor=c;var n=a(34165);function c(){r.call(this)}function i(e,t,a){e.length<40?n.utf8.write(e,t,a):t.utf8Write?t.utf8Write(e,a):t.write(e,a)}c._configure=function(){c.alloc=n._Buffer_allocUnsafe,c.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,a){t.set(e,a)}:function(e,t,a){if(e.copy)e.copy(t,a,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(c.writeBytesBuffer,t,e),this},c.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(i,t,e),this},c._configure()},8493:(e,t,a)=>{t.publicEncrypt=a(61896),t.privateDecrypt=a(76932),t.privateEncrypt=function(e,a){return t.publicEncrypt(e,a,!0)},t.publicDecrypt=function(e,a){return t.privateDecrypt(e,a,!0)}},78525:(e,t,a)=>{var r=a(16162),n=a(77834).Buffer;function c(e){var t=n.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var a,i=n.alloc(0),o=0;i.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function s(e,t,a){var r=o(e,a);return a-1>=t&&(r|=o(e,a-1)<<4),r}function d(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?o-49+10:o>=17?o-17+10:o}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=s(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,o=Math.min(c,c-i)+a,s=0,f=a;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.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"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,o=67108863&i,s=i/67108864|0;a.words[0]=o;for(var d=1;d>>26,u=67108863&s,b=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=b;l++){var h=d-l|0;f+=(i=(n=0|e.words[h])*(c=0|t.words[l])+u)/67108864|0,u=67108863&i}a.words[d]=0|u,s=0|f}return 0!==s?a.words[d]=0|s:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?f[6-s.length]+s+a:s+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],l=b[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var p=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?p+a:f[d-p.length]+p+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,o,s="le"===t,d=new e(c),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),d[o]=i;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.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 a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,p=l>>>13,m=0|i[2],y=8191&m,g=m>>>13,x=0|i[3],v=8191&x,w=x>>>13,A=0|i[4],k=8191&A,S=A>>>13,E=0|i[5],I=8191&E,M=E>>>13,C=0|i[6],P=8191&C,T=C>>>13,O=0|i[7],N=8191&O,R=O>>>13,B=0|i[8],D=8191&B,V=B>>>13,L=0|i[9],j=8191&L,U=L>>>13,H=0|o[0],F=8191&H,z=H>>>13,q=0|o[1],K=8191&q,X=q>>>13,W=0|o[2],G=8191&W,Z=W>>>13,J=0|o[3],Y=8191&J,Q=J>>>13,_=0|o[4],$=8191&_,ee=_>>>13,te=0|o[5],ae=8191&te,re=te>>>13,ne=0|o[6],ce=8191&ne,ie=ne>>>13,oe=0|o[7],se=8191&oe,de=oe>>>13,fe=0|o[8],ue=8191&fe,be=fe>>>13,le=0|o[9],he=8191&le,pe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(d+(r=Math.imul(u,F))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(b,F)|0))<<13)|0;d=((c=Math.imul(b,z))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,F),n=(n=Math.imul(h,z))+Math.imul(p,F)|0,c=Math.imul(p,z);var ye=(d+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(b,K)|0))<<13)|0;d=((c=c+Math.imul(b,X)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),n=(n=Math.imul(y,z))+Math.imul(g,F)|0,c=Math.imul(g,z),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(p,K)|0,c=c+Math.imul(p,X)|0;var ge=(d+(r=r+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,Z)|0)+Math.imul(b,G)|0))<<13)|0;d=((c=c+Math.imul(b,Z)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(w,F)|0,c=Math.imul(w,z),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(g,K)|0,c=c+Math.imul(g,X)|0,r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,Z)|0)+Math.imul(p,G)|0,c=c+Math.imul(p,Z)|0;var xe=(d+(r=r+Math.imul(u,Y)|0)|0)+((8191&(n=(n=n+Math.imul(u,Q)|0)+Math.imul(b,Y)|0))<<13)|0;d=((c=c+Math.imul(b,Q)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(k,F),n=(n=Math.imul(k,z))+Math.imul(S,F)|0,c=Math.imul(S,z),r=r+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,Z)|0)+Math.imul(g,G)|0,c=c+Math.imul(g,Z)|0,r=r+Math.imul(h,Y)|0,n=(n=n+Math.imul(h,Q)|0)+Math.imul(p,Y)|0,c=c+Math.imul(p,Q)|0;var ve=(d+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(b,$)|0))<<13)|0;d=((c=c+Math.imul(b,ee)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(I,F),n=(n=Math.imul(I,z))+Math.imul(M,F)|0,c=Math.imul(M,z),r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(S,K)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(v,G)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(w,G)|0,c=c+Math.imul(w,Z)|0,r=r+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,Q)|0)+Math.imul(g,Y)|0,c=c+Math.imul(g,Q)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(p,$)|0,c=c+Math.imul(p,ee)|0;var we=(d+(r=r+Math.imul(u,ae)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(b,ae)|0))<<13)|0;d=((c=c+Math.imul(b,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(T,F)|0,c=Math.imul(T,z),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,K)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(k,G)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(S,G)|0,c=c+Math.imul(S,Z)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(w,Y)|0,c=c+Math.imul(w,Q)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(g,$)|0,c=c+Math.imul(g,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(p,ae)|0,c=c+Math.imul(p,re)|0;var Ae=(d+(r=r+Math.imul(u,ce)|0)|0)+((8191&(n=(n=n+Math.imul(u,ie)|0)+Math.imul(b,ce)|0))<<13)|0;d=((c=c+Math.imul(b,ie)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),n=(n=Math.imul(N,z))+Math.imul(R,F)|0,c=Math.imul(R,z),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(I,G)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(M,G)|0,c=c+Math.imul(M,Z)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,c=c+Math.imul(S,Q)|0,r=r+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(g,ae)|0,c=c+Math.imul(g,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(p,ce)|0,c=c+Math.imul(p,ie)|0;var ke=(d+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(b,se)|0))<<13)|0;d=((c=c+Math.imul(b,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(V,F)|0,c=Math.imul(V,z),r=r+Math.imul(N,K)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(R,K)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,Z)|0)+Math.imul(T,G)|0,c=c+Math.imul(T,Z)|0,r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,Q)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Q)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,ee)|0,r=r+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(g,ce)|0,c=c+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(p,se)|0,c=c+Math.imul(p,de)|0;var Se=(d+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((c=c+Math.imul(b,be)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),n=(n=Math.imul(j,z))+Math.imul(U,F)|0,c=Math.imul(U,z),r=r+Math.imul(D,K)|0,n=(n=n+Math.imul(D,X)|0)+Math.imul(V,K)|0,c=c+Math.imul(V,X)|0,r=r+Math.imul(N,G)|0,n=(n=n+Math.imul(N,Z)|0)+Math.imul(R,G)|0,c=c+Math.imul(R,Z)|0,r=r+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,Q)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Q)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(S,ae)|0,c=c+Math.imul(S,re)|0,r=r+Math.imul(v,ce)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(y,se)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(g,se)|0,c=c+Math.imul(g,de)|0,r=r+Math.imul(h,ue)|0,n=(n=n+Math.imul(h,be)|0)+Math.imul(p,ue)|0,c=c+Math.imul(p,be)|0;var Ee=(d+(r=r+Math.imul(u,he)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(b,he)|0))<<13)|0;d=((c=c+Math.imul(b,pe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,K),n=(n=Math.imul(j,X))+Math.imul(U,K)|0,c=Math.imul(U,X),r=r+Math.imul(D,G)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(V,G)|0,c=c+Math.imul(V,Z)|0,r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Q)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(M,ae)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(k,ce)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(S,ce)|0,c=c+Math.imul(S,ie)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,de)|0)+Math.imul(w,se)|0,c=c+Math.imul(w,de)|0,r=r+Math.imul(y,ue)|0,n=(n=n+Math.imul(y,be)|0)+Math.imul(g,ue)|0,c=c+Math.imul(g,be)|0;var Ie=(d+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,pe)|0)+Math.imul(p,he)|0))<<13)|0;d=((c=c+Math.imul(p,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),n=(n=Math.imul(j,Z))+Math.imul(U,G)|0,c=Math.imul(U,Z),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,Q)|0)+Math.imul(V,Y)|0,c=c+Math.imul(V,Q)|0,r=r+Math.imul(N,$)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,n=(n=n+Math.imul(k,de)|0)+Math.imul(S,se)|0,c=c+Math.imul(S,de)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,be)|0)+Math.imul(w,ue)|0,c=c+Math.imul(w,be)|0;var Me=(d+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,pe)|0)+Math.imul(g,he)|0))<<13)|0;d=((c=c+Math.imul(g,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Y),n=(n=Math.imul(j,Q))+Math.imul(U,Y)|0,c=Math.imul(U,Q),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(V,$)|0,c=c+Math.imul(V,ee)|0,r=r+Math.imul(N,ae)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(R,ae)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(I,se)|0,n=(n=n+Math.imul(I,de)|0)+Math.imul(M,se)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,be)|0)+Math.imul(S,ue)|0,c=c+Math.imul(S,be)|0;var Ce=(d+(r=r+Math.imul(v,he)|0)|0)+((8191&(n=(n=n+Math.imul(v,pe)|0)+Math.imul(w,he)|0))<<13)|0;d=((c=c+Math.imul(w,pe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,$),n=(n=Math.imul(j,ee))+Math.imul(U,$)|0,c=Math.imul(U,ee),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(V,ae)|0,c=c+Math.imul(V,re)|0,r=r+Math.imul(N,ce)|0,n=(n=n+Math.imul(N,ie)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ie)|0,r=r+Math.imul(P,se)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(T,se)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,be)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,be)|0;var Pe=(d+(r=r+Math.imul(k,he)|0)|0)+((8191&(n=(n=n+Math.imul(k,pe)|0)+Math.imul(S,he)|0))<<13)|0;d=((c=c+Math.imul(S,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ae),n=(n=Math.imul(j,re))+Math.imul(U,ae)|0,c=Math.imul(U,re),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,ie)|0)+Math.imul(V,ce)|0,c=c+Math.imul(V,ie)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,de)|0)+Math.imul(R,se)|0,c=c+Math.imul(R,de)|0,r=r+Math.imul(P,ue)|0,n=(n=n+Math.imul(P,be)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,be)|0;var Te=(d+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(M,he)|0))<<13)|0;d=((c=c+Math.imul(M,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),n=(n=Math.imul(j,ie))+Math.imul(U,ce)|0,c=Math.imul(U,ie),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,de)|0)+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,be)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,be)|0;var Oe=(d+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,pe)|0)+Math.imul(T,he)|0))<<13)|0;d=((c=c+Math.imul(T,pe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,de))+Math.imul(U,se)|0,c=Math.imul(U,de),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,be)|0)+Math.imul(V,ue)|0,c=c+Math.imul(V,be)|0;var Ne=(d+(r=r+Math.imul(N,he)|0)|0)+((8191&(n=(n=n+Math.imul(N,pe)|0)+Math.imul(R,he)|0))<<13)|0;d=((c=c+Math.imul(R,pe)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,be))+Math.imul(U,ue)|0,c=Math.imul(U,be);var Re=(d+(r=r+Math.imul(D,he)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(V,he)|0))<<13)|0;d=((c=c+Math.imul(V,pe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(r=Math.imul(j,he))|0)+((8191&(n=(n=Math.imul(j,pe))+Math.imul(U,he)|0))<<13)|0;return d=((c=Math.imul(U,pe))+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=xe,s[4]=ve,s[5]=we,s[6]=Ae,s[7]=ke,s[8]=Se,s[9]=Ee,s[10]=Ie,s[11]=Me,s[12]=Ce,s[13]=Pe,s[14]=Te,s[15]=Oe,s[16]=Ne,s[17]=Re,s[18]=Be,0!==d&&(s[19]=d,a.length++),a};function p(e,t,a){return(new m).mulp(e,t,a)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=o,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):p(this,e,t),a},m.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,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 c=e%26,i=Math.min((e-c)/26,this.length),o=67108863^67108863>>>c<i)for(this.length-=i,d=0;d=0&&(0!==f||d>=n);d--){var u=0|this.words[d];this.words[d]=f<<26-c|u>>>c,f=u&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,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},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!=(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new c(null)).length=s+1,o.words=new Array(o.length);for(var d=0;d=0;u--){var b=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(b=Math.min(b/i|0,67108863),r._ishlnsubmul(n,b,u);0!==r.negative;)b--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=b)}return o&&o.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:o||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),o=new c(0),s=new c(1),d=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++d;for(var f=a.clone(),u=t.clone();!t.isZero();){for(var b=0,l=1;0==(t.words[0]&l)&&b<26;++b,l<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var h=0,p=1;0==(a.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(f),s.isub(u)),o.iushrn(1),s.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(o),i.isub(s)):(a.isub(t),o.isub(n),s.isub(i))}return{a:o,b:s,gcd:a.iushln(d)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),o=new c(0),s=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,b=1;0==(a.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(a.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o)):(a.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,o&=67108863,this.words[i]=o}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new k(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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 c(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(x,g),x.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},k.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var o=new c(1).toRed(this),s=o.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(s);)f.redIAdd(s);for(var u=this.pow(f,n),b=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m=0;r--){for(var d=t.words[r],f=s-1;f>=0;f--){var u=d>>f&1;n!==a[0]&&(n=this.sqr(n)),0!==u||0!==i?(i<<=1,i|=u,(4==++o||0===r&&0===f)&&(n=this.mul(n,a[i]),o=0,i=0)):o=0}s=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=a.nmd(e),this)},76932:(e,t,a)=>{var r=a(28016),n=a(78525),c=a(11273),i=a(62216),o=a(91857),s=a(16162),d=a(46112),f=a(77834).Buffer;e.exports=function(e,t,a){var u;u=e.padding?e.padding:a?1:4;var b,l=r(e),h=l.modulus.byteLength();if(t.length>h||new i(t).cmp(l.modulus)>=0)throw new Error("decryption error");b=a?d(new i(t),l):o(t,l);var p=f.alloc(h-b.length);if(b=f.concat([p,b],h),4===u)return function(e,t){var a=e.modulus.byteLength(),r=s("sha1").update(f.alloc(0)).digest(),i=r.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,i+1),d=t.slice(i+1),u=c(o,n(d,i)),b=c(d,n(u,a-i-1));if(function(e,t){e=f.from(e),t=f.from(t);var a=0,r=e.length;e.length!==t.length&&(a++,r=Math.min(e.length,t.length));for(var n=-1;++n=t.length){c++;break}var i=t.slice(2,n-1);if(("0002"!==r.toString("hex")&&!a||"0001"!==r.toString("hex")&&a)&&c++,i.length<8&&c++,c)throw new Error("decryption error");return t.slice(n)}(0,b,a);if(3===u)return b;throw new Error("unknown padding")}},61896:(e,t,a)=>{var r=a(28016),n=a(95003),c=a(16162),i=a(78525),o=a(11273),s=a(62216),d=a(46112),f=a(91857),u=a(77834).Buffer;e.exports=function(e,t,a){var b;b=e.padding?e.padding:a?1:4;var l,h=r(e);if(4===b)l=function(e,t){var a=e.modulus.byteLength(),r=t.length,d=c("sha1").update(u.alloc(0)).digest(),f=d.length,b=2*f;if(r>a-b-2)throw new Error("message too long");var l=u.alloc(a-r-b-2),h=a-f-1,p=n(f),m=o(u.concat([d,l,u.alloc(1,1),t],h),i(p,h)),y=o(p,i(m,f));return new s(u.concat([u.alloc(1),y,m],a))}(h,t);else if(1===b)l=function(e,t,a){var r,c=t.length,i=e.modulus.byteLength();if(c>i-11)throw new Error("message too long");return r=a?u.alloc(i-c-3,255):function(e){for(var t,a=u.allocUnsafe(e),r=0,c=n(2*e),i=0;r=0)throw new Error("data too long for modulus")}return a?f(l,h):d(l,h)}},46112:(e,t,a)=>{var r=a(62216),n=a(77834).Buffer;e.exports=function(e,t){return n.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},11273:e=>{e.exports=function(e,t){for(var a=e.length,r=-1;++r{"use strict";var r=a(34406),n=65536,c=a(77834).Buffer,i=a.g.crypto||a.g.msCrypto;i&&i.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var a=c.allocUnsafe(e);if(e>0)if(e>n)for(var o=0;o{"use strict";var r=a(34406);function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var c=a(77834),i=a(95003),o=c.Buffer,s=c.kMaxLength,d=a.g.crypto||a.g.msCrypto,f=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function b(e,t,a){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>a||e>s)throw new RangeError("buffer too small")}function l(e,t,a,n){if(r.browser){var c=e.buffer,o=new Uint8Array(c,t,a);return d.getRandomValues(o),n?void r.nextTick((function(){n(null,e)})):e}if(!n)return i(a).copy(e,t),e;i(a,(function(a,r){if(a)return n(a);r.copy(e,t),n(null,e)}))}d&&d.getRandomValues||!r.browser?(t.randomFill=function(e,t,r,n){if(!(o.isBuffer(e)||e instanceof a.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return u(t,e.length),b(r,t,e.length),l(e,t,r,n)},t.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!(o.isBuffer(e)||e instanceof a.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return u(t,e.length),void 0===r&&(r=e.length-t),b(r,t,e.length),l(e,t,r)}):(t.randomFill=n,t.randomFillSync=n)},64452:e=>{"use strict";var t={};function a(e,a,r){r||(r=Error);var n=function(e){var t,r;function n(t,r,n){return e.call(this,function(e,t,r){return"string"==typeof a?a:a(e,t,r)}(t,r,n))||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n}(r);n.prototype.name=r.name,n.prototype.code=e,t[e]=n}function r(e,t){if(Array.isArray(e)){var a=e.length;return e=e.map((function(e){return String(e)})),a>2?"one of ".concat(t," ").concat(e.slice(0,a-1).join(", "),", or ")+e[a-1]:2===a?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,a){var n,c,i,o,s;if("string"==typeof t&&(c="not ",t.substr(0,c.length)===c)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,a){return(void 0===a||a>e.length)&&(a=e.length),e.substring(a-t.length,a)===t}(e," argument"))i="The ".concat(e," ").concat(n," ").concat(r(t,"type"));else{var d=("number"!=typeof s&&(s=0),s+".".length>(o=e).length||-1===o.indexOf(".",s)?"argument":"property");i='The "'.concat(e,'" ').concat(d," ").concat(n," ").concat(r(t,"type"))}return i+". Received type ".concat(typeof a)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},77073:(e,t,a)=>{"use strict";var r=a(34406),n=Object.keys||function(e){var t=[];for(var a in e)t.push(a);return t};e.exports=f;var c=a(28051),i=a(2557);a(91285)(f,c);for(var o=n(i.prototype),s=0;s{"use strict";e.exports=n;var r=a(27640);function n(e){if(!(this instanceof n))return new n(e);r.call(this,e)}a(91285)(n,r),n.prototype._transform=function(e,t,a){a(null,e)}},28051:(e,t,a)=>{"use strict";var r,n=a(34406);e.exports=E,E.ReadableState=S,a(22699).EventEmitter;var c,i=function(e,t){return e.listeners(t).length},o=a(15010),s=a(48834).Buffer,d=a.g.Uint8Array||function(){},f=a(66602);c=f&&f.debuglog?f.debuglog("stream"):function(){};var u,b,l,h=a(56637),p=a(12262),m=a(87605).getHighWaterMark,y=a(64452).q,g=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,v=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;a(91285)(E,o);var A=p.errorOrDestroy,k=["error","close","destroy","pause","resume"];function S(e,t,n){r=r||a(77073),e=e||{},"boolean"!=typeof n&&(n=t instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new h,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=a(31922).s),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function E(e){if(r=r||a(77073),!(this instanceof E))return new E(e);var t=this instanceof r;this._readableState=new S(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function I(e,t,a,r,n){c("readableAddChunk",t);var i,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(c("onEofChunk"),!t.ended){if(t.decoder){var a=t.decoder.end();a&&a.length&&(t.buffer.push(a),t.length+=t.objectMode?1:a.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,O(e)))}}(e,o);else if(n||(i=function(e,t){var a,r;return r=t,s.isBuffer(r)||r instanceof d||"string"==typeof t||void 0===t||e.objectMode||(a=new g("chunk",["string","Buffer","Uint8Array"],t)),a}(o,t)),i)A(e,i);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)o.endEmitted?A(e,new w):M(e,o,t,!0);else if(o.ended)A(e,new x);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!a?(t=o.decoder.write(t),o.objectMode||0!==t.length?M(e,o,t,!1):N(e,o)):M(e,o,t,!1)}else r||(o.reading=!1,N(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(O,e))}function O(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function N(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function V(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):a=t.buffer.consume(e,t.decoder),a);var a}function U(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(H,t,e))}function H(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var a=t._writableState;(!a||a.autoDestroy&&a.finished)&&t.destroy()}}function F(e,t){for(var a=0,r=e.length;a=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,n=t.needReadable;return c("need readable",n),(0===t.length||t.length-e0?j(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),a!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(e){A(this,new v("_read()"))},E.prototype.pipe=function(e,t){var a=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,c("pipe count=%d opts=%j",r.pipesCount,t);var o=t&&!1===t.end||e===n.stdout||e===n.stderr?p:s;function s(){c("onend"),e.end()}r.endEmitted?n.nextTick(o):a.once("end",o),e.on("unpipe",(function t(n,i){c("onunpipe"),n===a&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),e.removeListener("close",l),e.removeListener("finish",h),e.removeListener("drain",d),e.removeListener("error",b),e.removeListener("unpipe",t),a.removeListener("end",s),a.removeListener("end",p),a.removeListener("data",u),f=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}));var d=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(a);e.on("drain",d);var f=!1;function u(t){c("ondata");var n=e.write(t);c("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==F(r.pipes,e))&&!f&&(c("false write response, pause",r.awaitDrain),r.awaitDrain++),a.pause())}function b(t){c("onerror",t),p(),e.removeListener("error",b),0===i(e,"error")&&A(e,t)}function l(){e.removeListener("finish",h),p()}function h(){c("onfinish"),e.removeListener("close",l),p()}function p(){c("unpipe"),a.unpipe(e)}return a.on("data",u),function(e,t,a){if("function"==typeof e.prependListener)return e.prependListener(t,a);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(a):e._events.error=[a,e._events.error]:e.on(t,a)}(e,"error",b),e.once("close",l),e.once("finish",h),e.emit("pipe",a),r.flowing||(c("pipe resume"),a.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,a={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,a)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var c=0;c0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,c("on readable",r.length,r.reading),r.length?T(this):r.reading||n.nextTick(D,this))),a},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var a=o.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(B,this),a},E.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(B,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(V,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,a=this._readableState,r=!1;for(var n in e.on("end",(function(){if(c("wrapped end"),a.decoder&&!a.ended){var e=a.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){c("wrapped data"),a.decoder&&(n=a.decoder.write(n)),a.objectMode&&null==n||(a.objectMode||n&&n.length)&&(t.push(n)||(r=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var i=0;i{"use strict";e.exports=f;var r=a(64452).q,n=r.ERR_METHOD_NOT_IMPLEMENTED,c=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=r.ERR_TRANSFORM_WITH_LENGTH_0,s=a(77073);function d(e,t){var a=this._transformState;a.transforming=!1;var r=a.writecb;if(null===r)return this.emit("error",new c);a.writechunk=null,a.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";var r,n=a(34406);function c(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,a){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=E,E.WritableState=S;var i,o={deprecate:a(5803)},s=a(15010),d=a(48834).Buffer,f=a.g.Uint8Array||function(){},u=a(12262),b=a(87605).getHighWaterMark,l=a(64452).q,h=l.ERR_INVALID_ARG_TYPE,p=l.ERR_METHOD_NOT_IMPLEMENTED,m=l.ERR_MULTIPLE_CALLBACK,y=l.ERR_STREAM_CANNOT_PIPE,g=l.ERR_STREAM_DESTROYED,x=l.ERR_STREAM_NULL_VALUES,v=l.ERR_STREAM_WRITE_AFTER_END,w=l.ERR_UNKNOWN_ENCODING,A=u.errorOrDestroy;function k(){}function S(e,t,i){r=r||a(77073),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=b(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,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 a=e._writableState,r=a.sync,c=a.writecb;if("function"!=typeof c)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(a),t)!function(e,t,a,r,c){--t.pendingcb,a?(n.nextTick(c,r),n.nextTick(O,e,t),e._writableState.errorEmitted=!0,A(e,r)):(c(r),e._writableState.errorEmitted=!0,A(e,r),O(e,t))}(e,a,r,t,c);else{var i=P(a)||e.destroyed;i||a.corked||a.bufferProcessing||!a.bufferedRequest||C(e,a),r?n.nextTick(M,e,a,i,c):M(e,a,i,c)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}function E(e){var t=this instanceof(r=r||a(77073));if(!t&&!i.call(E,this))return new E(e);this._writableState=new S(e,this,t),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)),s.call(this)}function I(e,t,a,r,n,c,i){t.writelen=r,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):a?e._writev(n,t.onwrite):e._write(n,c,t.onwrite),t.sync=!1}function M(e,t,a,r){a||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),O(e,t)}function C(e,t){t.bufferProcessing=!0;var a=t.bufferedRequest;if(e._writev&&a&&a.next){var r=t.bufferedRequestCount,n=new Array(r),i=t.corkedRequestsFree;i.entry=a;for(var o=0,s=!0;a;)n[o]=a,a.isBuf||(s=!1),a=a.next,o+=1;n.allBuffers=s,I(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new c(t),t.bufferedRequestCount=0}else{for(;a;){var d=a.chunk,f=a.encoding,u=a.callback;if(I(e,t,!1,t.objectMode?1:d.length,d,f,u),a=a.next,t.bufferedRequestCount--,t.writing)break}null===a&&(t.lastBufferedRequest=null)}t.bufferedRequest=a,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(a){t.pendingcb--,a&&A(e,a),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var a=P(t);if(a&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return a}a(91285)(E,s),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:o.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]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===E&&e&&e._writableState instanceof S}})):i=function(e){return e instanceof this},E.prototype.pipe=function(){A(this,new y)},E.prototype.write=function(e,t,a){var r,c=this._writableState,i=!1,o=!c.objectMode&&(r=e,d.isBuffer(r)||r instanceof f);return o&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(a=t,t=null),o?t="buffer":t||(t=c.defaultEncoding),"function"!=typeof a&&(a=k),c.ending?function(e,t){var a=new v;A(e,a),n.nextTick(t,a)}(this,a):(o||function(e,t,a,r){var c;return null===a?c=new x:"string"==typeof a||t.objectMode||(c=new h("chunk",["string","Buffer"],a)),!c||(A(e,c),n.nextTick(r,c),!1)}(this,c,e,a))&&(c.pendingcb++,i=function(e,t,a,r,n,c){if(!a){var i=function(e,t,a){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,a)),t}(t,r,n);r!==i&&(a=!0,n="buffer",r=i)}var o=t.objectMode?1:r.length;t.length+=o;var s=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,a){a(new p("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,a){var r=this._writableState;return"function"==typeof e?(a=e,e=null,t=null):"function"==typeof t&&(a=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,a){t.ending=!0,O(e,t),a&&(t.finished?n.nextTick(a):e.once("finish",a)),t.ended=!0,e.writable=!1}(this,r,a),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=u.destroy,E.prototype._undestroy=u.undestroy,E.prototype._destroy=function(e,t){t(e)}},1029:(e,t,a)=>{"use strict";var r,n=a(34406);function c(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var i=a(59885),o=Symbol("lastResolve"),s=Symbol("lastReject"),d=Symbol("error"),f=Symbol("ended"),u=Symbol("lastPromise"),b=Symbol("handlePromise"),l=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var a=e[l].read();null!==a&&(e[u]=null,e[o]=null,e[s]=null,t(h(a,!1)))}}function m(e){n.nextTick(p,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((c(r={get stream(){return this[l]},next:function(){var e=this,t=this[d];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(h(void 0,!0));if(this[l].destroyed)return new Promise((function(t,a){n.nextTick((function(){e[d]?a(e[d]):t(h(void 0,!0))}))}));var a,r=this[u];if(r)a=new Promise(function(e,t){return function(a,r){e.then((function(){t[f]?a(h(void 0,!0)):t[b](a,r)}),r)}}(r,this));else{var c=this[l].read();if(null!==c)return Promise.resolve(h(c,!1));a=new Promise(this[b])}return this[u]=a,a}},Symbol.asyncIterator,(function(){return this})),c(r,"return",(function(){var e=this;return new Promise((function(t,a){e[l].destroy(null,(function(e){e?a(e):t(h(void 0,!0))}))}))})),r),y);e.exports=function(e){var t,a=Object.create(g,(c(t={},l,{value:e,writable:!0}),c(t,o,{value:null,writable:!0}),c(t,s,{value:null,writable:!0}),c(t,d,{value:null,writable:!0}),c(t,f,{value:e._readableState.endEmitted,writable:!0}),c(t,b,{value:function(e,t){var r=a[l].read();r?(a[u]=null,a[o]=null,a[s]=null,e(h(r,!1))):(a[o]=e,a[s]=t)},writable:!0}),t));return a[u]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=a[s];return null!==t&&(a[u]=null,a[o]=null,a[s]=null,t(e)),void(a[d]=e)}var r=a[o];null!==r&&(a[u]=null,a[o]=null,a[s]=null,r(h(void 0,!0))),a[f]=!0})),e.on("readable",m.bind(null,a)),a}},56637:(e,t,a)=>{"use strict";function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(e,t){for(var a=0;a0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,a=""+t.data;t=t.next;)a+=e+t.data;return a}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,a,r,n=i.allocUnsafe(e>>>0),c=this.head,o=0;c;)t=c.data,a=n,r=o,i.prototype.copy.call(t,a,r),o+=c.data.length,c=c.next;return n}},{key:"consume",value:function(e,t){var a;return en.length?n.length:e;if(c===n.length?r+=n:r+=n.slice(0,e),0==(e-=c)){c===n.length?(++a,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(c));break}++a}return this.length-=a,r}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),a=this.head,r=1;for(a.data.copy(t),e-=a.data.length;a=a.next;){var n=a.data,c=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,c),0==(e-=c)){c===n.length?(++r,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=n.slice(c));break}++r}return this.length-=r,t}},{key:s,value:function(e,t){return o(this,function(e){for(var t=1;t{"use strict";var r=a(34406);function n(e,t){i(e,t),c(e)}function c(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var a=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?a._writableState?a._writableState.errorEmitted?r.nextTick(c,a):(a._writableState.errorEmitted=!0,r.nextTick(n,a,e)):r.nextTick(n,a,e):t?(r.nextTick(c,a),t(e)):r.nextTick(c,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var a=e._readableState,r=e._writableState;a&&a.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},59885:(e,t,a)=>{"use strict";var r=a(64452).q.ERR_STREAM_PREMATURE_CLOSE;function n(){}e.exports=function e(t,a,c){if("function"==typeof a)return e(t,null,a);a||(a={}),c=function(e){var t=!1;return function(){if(!t){t=!0;for(var a=arguments.length,r=new Array(a),n=0;n{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},63495:(e,t,a)=>{"use strict";var r,n=a(64452).q,c=n.ERR_MISSING_ARGS,i=n.ERR_STREAM_DESTROYED;function o(e){if(e)throw e}function s(e,t,n,c){c=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(c);var o=!1;e.on("close",(function(){o=!0})),void 0===r&&(r=a(59885)),r(e,{readable:t,writable:n},(function(e){if(e)return c(e);o=!0,c()}));var s=!1;return function(t){if(!o&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void c(t||new i("pipe"))}}function d(e){e()}function f(e,t){return e.pipe(t)}function u(e){return e.length?"function"!=typeof e[e.length-1]?o:e.pop():o}e.exports=function(){for(var e=arguments.length,t=new Array(e),a=0;a0,(function(e){r||(r=e),e&&i.forEach(d),c||(i.forEach(d),n(r))}))}));return t.reduce(f)}},87605:(e,t,a)=>{"use strict";var r=a(64452).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,a,n){var c=function(e,t,a){return null!=e.highWaterMark?e.highWaterMark:t?e[a]:null}(t,n,a);if(null!=c){if(!isFinite(c)||Math.floor(c)!==c||c<0)throw new r(n?a:"highWaterMark",c);return Math.floor(c)}return e.objectMode?16:16384}}},15010:(e,t,a)=>{e.exports=a(22699).EventEmitter},31922:(e,t,a)=>{"use strict";var r=a(77834).Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=d,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=f,this.end=u,t=3;break;default:return this.write=b,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,a=function(e,t,a){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!==a?a: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 s(e,t){if((e.length-t)%2==0){var a=e.toString("utf16le",t);if(a){var r=a.charCodeAt(a.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],a.slice(0,-1)}return a}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var a=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,a)}return t}function f(e,t){var a=(e.length-t)%3;return 0===a?e.toString("base64",t):(this.lastNeed=3-a,this.lastTotal=3,1===a?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-a))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.s=c,c.prototype.write=function(e){if(0===e.length)return"";var t,a;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";a=this.lastNeed,this.lastNeed=0}else a=0;return a=0?(n>0&&(e.lastNeed=n-1),n):--r=0?(n>0&&(e.lastNeed=n-2),n):--r=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=a;var r=e.length-(a-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},c.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}},67525:(e,t,a)=>{(t=e.exports=a(28051)).Stream=t,t.Readable=t,t.Writable=a(2557),t.Duplex=a(77073),t.Transform=a(27640),t.PassThrough=a(95163),t.finished=a(59885),t.pipeline=a(63495)},51445:(e,t,a)=>{"use strict";var r=a(48834).Buffer,n=a(91285),c=a(84485),i=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[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],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],b=[1352829926,1548603684,1836072691,2053994217,0];function l(){c.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function h(e,t){return e<>>32-t}function p(e,t,a,r,n,c,i,o){return h(e+(t^a^r)+c+i|0,o)+n|0}function m(e,t,a,r,n,c,i,o){return h(e+(t&a|~t&r)+c+i|0,o)+n|0}function y(e,t,a,r,n,c,i,o){return h(e+((t|~a)^r)+c+i|0,o)+n|0}function g(e,t,a,r,n,c,i,o){return h(e+(t&r|a&~r)+c+i|0,o)+n|0}function x(e,t,a,r,n,c,i,o){return h(e+(t^(a|~r))+c+i|0,o)+n|0}n(l,c),l.prototype._update=function(){for(var e=i,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var a=0|this._a,r=0|this._b,n=0|this._c,c=0|this._d,l=0|this._e,v=0|this._a,w=0|this._b,A=0|this._c,k=0|this._d,S=0|this._e,E=0;E<80;E+=1){var I,M;E<16?(I=p(a,r,n,c,l,e[o[E]],u[0],d[E]),M=x(v,w,A,k,S,e[s[E]],b[0],f[E])):E<32?(I=m(a,r,n,c,l,e[o[E]],u[1],d[E]),M=g(v,w,A,k,S,e[s[E]],b[1],f[E])):E<48?(I=y(a,r,n,c,l,e[o[E]],u[2],d[E]),M=y(v,w,A,k,S,e[s[E]],b[2],f[E])):E<64?(I=g(a,r,n,c,l,e[o[E]],u[3],d[E]),M=m(v,w,A,k,S,e[s[E]],b[3],f[E])):(I=x(a,r,n,c,l,e[o[E]],u[4],d[E]),M=p(v,w,A,k,S,e[s[E]],b[4],f[E])),a=l,l=c,c=h(n,10),n=r,r=I,v=S,S=k,k=h(A,10),A=w,w=M}var C=this._b+n+k|0;this._b=this._c+c+S|0,this._c=this._d+l+v|0,this._d=this._e+a+w|0,this._e=this._a+r+A|0,this._a=C},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=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=l},22478:(e,t)=>{"use strict";function a(e,t,a){if(a>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,a)}function r(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return o(function(e){let t="";for(let a=0;ae.length)throw new Error("invalid RLP: total length is larger than the data");for(o=a(e,n,i);o.length;)s=c(o),d.push(s.data),o=s.remainder;return{data:d,remainder:e.slice(i)}}}const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function o(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function s(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let a=0;ae+t.length),0),a=new Uint8Array(t);for(let t=0,r=0;t=2&&"0"===e[0]&&"x"===e[1]}function b(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return u(e)?s((a="string"!=typeof(r=e)?r:u(r)?r.slice(2):r).length%2?`0${a}`:a):(t=e,(new TextEncoder).encode(t));var t,a,r;if("number"==typeof e||"bigint"==typeof e)return e?s(f(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}const l={encode:function e(t){if(Array.isArray(t)){const a=[];for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var r,n=a(26929),c=a(61377),i=a(30040),o=a(42935);(r=t.NotificationKind||(t.NotificationKind={})).NEXT="N",r.ERROR="E",r.COMPLETE="C";var s=function(){function e(e,t,a){this.kind=e,this.value=t,this.error=a,this.hasValue="N"===e}return e.prototype.observe=function(e){return d(this,e)},e.prototype.do=function(e,t,a){var r=this,n=r.kind,c=r.value,i=r.error;return"N"===n?null==e?void 0:e(c):"E"===n?null==t?void 0:t(i):null==a?void 0:a()},e.prototype.accept=function(e,t,a){var r;return o.isFunction(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,a)},e.prototype.toObservable=function(){var e=this,t=e.kind,a=e.value,r=e.error,o="N"===t?c.of(a):"E"===t?i.throwError((function(){return r})):"C"===t?n.EMPTY:0;if(!o)throw new TypeError("Unexpected notification kind "+t);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function d(e,t){var a,r,n,c=e,i=c.kind,o=c.value,s=c.error;if("string"!=typeof i)throw new TypeError('Invalid notification, missing "kind"');"N"===i?null===(a=t.next)||void 0===a||a.call(t,o):"E"===i?null===(r=t.error)||void 0===r||r.call(t,s):null===(n=t.complete)||void 0===n||n.call(t)}t.Notification=s,t.observeNotification=d},13005:(e,t)=>{"use strict";function a(e,t,a){return{kind:e,value:t,error:a}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=a("C",void 0,void 0),t.errorNotification=function(e){return a("E",void 0,e)},t.nextNotification=function(e){return a("N",e,void 0)},t.createNotification=a},64174:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var r=a(7747),n=a(44666),c=a(34595),i=a(65250),o=a(19179),s=a(42935),d=a(10977),f=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var a=new e;return a.source=this,a.operator=t,a},e.prototype.subscribe=function(e,t,a){var c,i=this,o=(c=e)&&c instanceof r.Subscriber||function(e){return e&&s.isFunction(e.next)&&s.isFunction(e.error)&&s.isFunction(e.complete)}(c)&&n.isSubscription(c)?e:new r.SafeSubscriber(e,t,a);return d.errorContext((function(){var e=i,t=e.operator,a=e.source;o.add(t?t.call(o,a):a?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var a=this;return new(t=u(t))((function(t,n){var c=new r.SafeSubscriber({next:function(t){try{e(t)}catch(e){n(e),c.unsubscribe()}},error:n,complete:t});a.subscribe(c)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[c.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var r=a(79168),n=function(){function e(t,a){void 0===a&&(a=e.now),this.schedulerActionCtor=t,this.now=a}return e.prototype.schedule=function(e,t,a){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(a,t)},e.now=r.dateTimestampProvider.now,e}();t.Scheduler=n},55294:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}),c=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var i=a(64174),o=a(44666),s=a(68499),d=a(91291),f=a(10977),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n(t,e),t.prototype.lift=function(e){var t=new b(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new s.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;f.errorContext((function(){var a,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var n=c(t.currentObservers),i=n.next();!i.done;i=n.next())i.value.next(e)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}}}))},t.prototype.error=function(e){var t=this;f.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var a=t.observers;a.length;)a.shift().error(e)}}))},t.prototype.complete=function(){var e=this;f.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,a=this,r=a.hasError,n=a.isStopped,c=a.observers;return r||n?o.EMPTY_SUBSCRIPTION:(this.currentObservers=null,c.push(e),new o.Subscription((function(){t.currentObservers=null,d.arrRemove(c,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,a=t.hasError,r=t.thrownError,n=t.isStopped;a?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new i.Observable;return e.source=this,e},t.create=function(e,t){return new b(e,t)},t}(i.Observable);t.Subject=u;var b=function(e){function t(t,a){var r=e.call(this)||this;return r.destination=t,r.source=a,r}return n(t,e),t.prototype.next=function(e){var t,a;null===(a=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===a||a.call(t,e)},t.prototype.error=function(e){var t,a;null===(a=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===a||a.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,a;return null!==(a=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==a?a:o.EMPTY_SUBSCRIPTION},t}(u);t.AnonymousSubject=b},7747:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var c=a(42935),i=a(44666),o=a(19179),s=a(51600),d=a(37116),f=a(13005),u=a(81577),b=a(10977),l=function(e){function a(a){var r=e.call(this)||this;return r.isStopped=!1,a?(r.destination=a,i.isSubscription(a)&&a.add(r)):r.destination=t.EMPTY_OBSERVER,r}return n(a,e),a.create=function(e,t,a){return new y(e,t,a)},a.prototype.next=function(e){this.isStopped?x(f.nextNotification(e),this):this._next(e)},a.prototype.error=function(e){this.isStopped?x(f.errorNotification(e),this):(this.isStopped=!0,this._error(e))},a.prototype.complete=function(){this.isStopped?x(f.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},a.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},a.prototype._next=function(e){this.destination.next(e)},a.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},a.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},a}(i.Subscription);t.Subscriber=l;var h=Function.prototype.bind;function p(e,t){return h.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){g(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){g(e)}else g(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){g(e)}},e}(),y=function(e){function t(t,a,r){var n,i,s=e.call(this)||this;return c.isFunction(t)||!t?n={next:null!=t?t:void 0,error:null!=a?a:void 0,complete:null!=r?r:void 0}:s&&o.config.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},n={next:t.next&&p(t.next,i),error:t.error&&p(t.error,i),complete:t.complete&&p(t.complete,i)}):n=t,s.destination=new m(n),s}return n(t,e),t}(l);function g(e){o.config.useDeprecatedSynchronousErrorHandling?b.captureError(e):s.reportUnhandledError(e)}function x(e,t){var a=o.config.onStoppedNotification;a&&u.timeoutProvider.setTimeout((function(){return a(e,t)}))}t.SafeSubscriber=y,t.EMPTY_OBSERVER={closed:!0,next:d.noop,error:function(e){throw e},complete:d.noop}},44666:function(e,t,a){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},c=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},77327:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var r=a(99088),n=a(7747);t.firstValueFrom=function(e,t){var a="object"==typeof t;return new Promise((function(c,i){var o=new n.SafeSubscriber({next:function(e){c(e),o.unsubscribe()},error:i,complete:function(){a?c(t.defaultValue):i(new r.EmptyError)}});e.subscribe(o)}))}},74798:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var r=a(99088);t.lastValueFrom=function(e,t){var a="object"==typeof t;return new Promise((function(n,c){var i,o=!1;e.subscribe({next:function(e){i=e,o=!0},error:c,complete:function(){o?n(i):a?n(t.defaultValue):c(new r.EmptyError)}})}))}},87165:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var c=a(64174),i=a(44666),o=a(14508),s=a(37326),d=a(16097),f=function(e){function t(t,a){var r=e.call(this)||this;return r.source=t,r.subjectFactory=a,r._subject=null,r._refCount=0,r._connection=null,d.hasLift(t)&&(r.lift=t.lift),r}return n(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new i.Subscription;var a=this.getSubject();t.add(this.source.subscribe(s.createOperatorSubscriber(a,void 0,(function(){e._teardown(),a.complete()}),(function(t){e._teardown(),a.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=i.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return o.refCount()(this)},t}(c.Observable);t.ConnectableObservable=f},56238:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var r=a(89706);t.bindCallback=function(e,t,a){return r.bindCallbackInternals(!1,e,t,a)}},89706:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var r=a(89706);t.bindNodeCallback=function(e,t,a){return r.bindCallbackInternals(!0,e,t,a)}},40508:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var r=a(64174),n=a(82398),c=a(44417),i=a(98987),o=a(9364),s=a(84544),d=a(64800),f=a(37326),u=a(75267);function b(e,t,a){return void 0===a&&(a=i.identity),function(r){l(t,(function(){for(var n=e.length,i=new Array(n),o=n,s=n,d=function(n){l(t,(function(){var d=c.from(e[n],t),u=!1;d.subscribe(f.createOperatorSubscriber(r,(function(e){i[n]=e,u||(u=!0,s--),s||r.next(a(i.slice()))}),(function(){--o||r.complete()})))}),r)},u=0;u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var r=a(90482),n=a(84544),c=a(44417);t.concat=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var r=a(55294),n=a(64174),c=a(89623),i={connector:function(){return new r.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=i);var a=null,r=t.connector,o=t.resetOnDisconnect,s=void 0===o||o,d=r(),f=new n.Observable((function(e){return d.subscribe(e)}));return f.connect=function(){return a&&!a.closed||(a=c.defer((function(){return e})).subscribe(d),s&&a.add((function(){return d=r()}))),a},f}},89623:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var r=a(64174),n=a(16958);t.defer=function(e){return new r.Observable((function(t){n.innerFrom(e()).subscribe(t)}))}},12447:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var r=a(64174),n=a(52261),c=a(29015);function i(e){return new r.Observable((function(t){var a=e||n.performanceTimestampProvider,r=a.now(),i=0,o=function(){t.closed||(i=c.animationFrameProvider.requestAnimationFrame((function(n){i=0;var c=a.now();t.next({timestamp:e?c:n,elapsed:c-r}),o()})))};return o(),function(){i&&c.animationFrameProvider.cancelAnimationFrame(i)}}))}t.animationFrames=function(e){return e?i(e):o};var o=i()},26929:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var r=a(64174);t.EMPTY=new r.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new r.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},69220:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var r=a(64174),n=a(82398),c=a(16958),i=a(84544),o=a(37326),s=a(9364),d=a(64800);t.forkJoin=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var r=a(42862),n=a(16958);t.from=function(e,t){return t?r.scheduled(e,t):n.innerFrom(e)}},59671:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var n=a(16958),c=a(64174),i=a(36086),o=a(5445),s=a(42935),d=a(9364),f=["addListener","removeListener"],u=["addEventListener","removeEventListener"],b=["on","off"];function l(e,t){return function(a){return function(r){return e[a](t,r)}}}t.fromEvent=function e(t,a,h,p){if(s.isFunction(h)&&(p=h,h=void 0),p)return e(t,a,h).pipe(d.mapOneOrManyArgs(p));var m=r(function(e){return s.isFunction(e.addEventListener)&&s.isFunction(e.removeEventListener)}(t)?u.map((function(e){return function(r){return t[e](a,r,h)}})):function(e){return s.isFunction(e.addListener)&&s.isFunction(e.removeListener)}(t)?f.map(l(t,a)):function(e){return s.isFunction(e.on)&&s.isFunction(e.off)}(t)?b.map(l(t,a)):[],2),y=m[0],g=m[1];if(!y&&o.isArrayLike(t))return i.mergeMap((function(t){return e(t,a,h)}))(n.innerFrom(t));if(!y)throw new TypeError("Invalid event target");return new c.Observable((function(e){var t=function(){for(var t=[],a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var r=a(64174),n=a(42935),c=a(9364);t.fromEventPattern=function e(t,a,i){return i?e(t,a).pipe(c.mapOneOrManyArgs(i)):new r.Observable((function(e){var r=function(){for(var t=[],a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var r=a(64174);t.fromSubscribable=function(e){return new r.Observable((function(t){return e.subscribe(t)}))}},3482:function(e,t,a){"use strict";var r=this&&this.__generator||function(e,t){var a,r,n,c,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return c={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(c){return function(o){return function(c){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((n=(n=i.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var r=a(89623);t.iif=function(e,t,a){return r.defer((function(){return e()?t:a}))}},16958:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){return new(a||(a=Promise))((function(n,c){function i(e){try{s(r.next(e))}catch(e){c(e)}}function o(e){try{s(r.throw(e))}catch(e){c(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,o)}s((r=r.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var a,r,n,c,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return c={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(c){return function(o){return function(c){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((n=(n=i.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var o=a(5445),s=a(94283),d=a(64174),f=a(33124),u=a(83260),b=a(17756),l=a(98131),h=a(42221),p=a(42935),m=a(51600),y=a(34595);function g(e){return new d.Observable((function(t){var a=e[y.observable]();if(p.isFunction(a.subscribe))return a.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function x(e){return new d.Observable((function(t){for(var a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var r=a(17152),n=a(18069);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=r.asyncScheduler),e<0&&(e=0),n.timer(e,e,t)}},2039:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var r=a(40400),n=a(16958),c=a(26929),i=a(84544),o=a(44417);t.merge=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var r=a(64174),n=a(37116);t.NEVER=new r.Observable(n.noop),t.never=function(){return t.NEVER}},61377:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var r=a(84544),n=a(44417);t.of=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var r=a(64174),n=a(35034),c=a(37326),i=a(37116),o=a(16958);t.onErrorResumeNext=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var r=a(44417);t.pairs=function(e,t){return r.from(Object.entries(e),t)}},36394:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var r=a(38781),n=a(47261),c=a(16958);t.partition=function(e,t,a){return[n.filter(t,a)(c.innerFrom(e)),n.filter(r.not(t,a))(c.innerFrom(e))]}},76849:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var r=a(64174),n=a(16958),c=a(35034),i=a(37326);function o(e){return function(t){for(var a=[],r=function(r){a.push(n.innerFrom(e[r]).subscribe(i.createOperatorSubscriber(t,(function(e){if(a){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var r=a(64174),n=a(26929);t.range=function(e,t,a){if(null==t&&(t=e,e=0),t<=0)return n.EMPTY;var c=t+e;return new r.Observable(a?function(t){var r=e;return a.schedule((function(){r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var r=a(64174),n=a(42935);t.throwError=function(e,t){var a=n.isFunction(e)?e:function(){return e},c=function(e){return e.error(a())};return new r.Observable(t?function(e){return t.schedule(c,0,e)}:c)}},18069:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var r=a(64174),n=a(17152),c=a(19668),i=a(14426);t.timer=function(e,t,a){void 0===e&&(e=0),void 0===a&&(a=n.async);var o=-1;return null!=t&&(c.isScheduler(t)?a=t:o=t),new r.Observable((function(t){var r=i.isValidDate(e)?+e-a.now():e;r<0&&(r=0);var n=0;return a.schedule((function(){t.closed||(t.next(n++),0<=o?this.schedule(void 0,o):t.complete())}),r)}))}},63348:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var r=a(64174),n=a(16958),c=a(26929);t.using=function(e,t){return new r.Observable((function(a){var r=e(),i=t(r);return(i?n.innerFrom(i):c.EMPTY).subscribe(a),function(){r&&r.unsubscribe()}}))}},74981:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var r=a(16097),n=a(16958),c=a(37326);t.audit=function(e){return r.operate((function(t,a){var r=!1,i=null,o=null,s=!1,d=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,a.next(e)}s&&a.complete()},f=function(){o=null,s&&a.complete()};t.subscribe(c.createOperatorSubscriber(a,(function(t){r=!0,i=t,o||n.innerFrom(e(t)).subscribe(o=c.createOperatorSubscriber(a,d,f))}),(function(){s=!0,(!r||!o||o.closed)&&a.complete()})))}))}},24152:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var r=a(17152),n=a(22605),c=a(18069);t.auditTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),n.audit((function(){return c.timer(e,t)}))}},35149:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var r=a(16097),n=a(37116),c=a(37326),i=a(16958);t.buffer=function(e){return r.operate((function(t,a){var r=[];return t.subscribe(c.createOperatorSubscriber(a,(function(e){return r.push(e)}),(function(){a.next(r),a.complete()}))),i.innerFrom(e).subscribe(c.createOperatorSubscriber(a,(function(){var e=r;r=[],a.next(e)}),n.noop)),function(){r=null}}))}},33189:function(e,t,a){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var n=a(16097),c=a(37326),i=a(91291);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,n.operate((function(a,n){var o=[],s=0;a.subscribe(c.createOperatorSubscriber(n,(function(a){var c,d,f,u,b=null;s++%t==0&&o.push([]);try{for(var l=r(o),h=l.next();!h.done;h=l.next())(y=h.value).push(a),e<=y.length&&(b=null!=b?b:[]).push(y)}catch(e){c={error:e}}finally{try{h&&!h.done&&(d=l.return)&&d.call(l)}finally{if(c)throw c.error}}if(b)try{for(var p=r(b),m=p.next();!m.done;m=p.next()){var y=m.value;i.arrRemove(o,y),n.next(y)}}catch(e){f={error:e}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(f)throw f.error}}}),(function(){var e,t;try{for(var a=r(o),c=a.next();!c.done;c=a.next()){var i=c.value;n.next(i)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){o=null})))}))}},99459:function(e,t,a){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var n=a(44666),c=a(16097),i=a(37326),o=a(91291),s=a(17152),d=a(84544),f=a(75267);t.bufferTime=function(e){for(var t,a,u=[],b=1;b=0?f.executeSchedule(a,l,u,h,!0):s=!0,u();var b=i.createOperatorSubscriber(a,(function(e){var t,a,n=c.slice();try{for(var i=r(n),o=i.next();!o.done;o=i.next()){var s=o.value,f=s.buffer;f.push(e),p<=f.length&&d(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(a=i.return)&&a.call(i)}finally{if(t)throw t.error}}}),(function(){for(;null==c?void 0:c.length;)a.next(c.shift().buffer);null==b||b.unsubscribe(),a.complete(),a.unsubscribe()}),void 0,(function(){return c=null}));t.subscribe(b)}))}},68145:function(e,t,a){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var n=a(44666),c=a(16097),i=a(16958),o=a(37326),s=a(37116),d=a(91291);t.bufferToggle=function(e,t){return c.operate((function(a,c){var f=[];i.innerFrom(e).subscribe(o.createOperatorSubscriber(c,(function(e){var a=[];f.push(a);var r=new n.Subscription;r.add(i.innerFrom(t(e)).subscribe(o.createOperatorSubscriber(c,(function(){d.arrRemove(f,a),c.next(a),r.unsubscribe()}),s.noop)))}),s.noop)),a.subscribe(o.createOperatorSubscriber(c,(function(e){var t,a;try{for(var n=r(f),c=n.next();!c.done;c=n.next())c.value.push(e)}catch(e){t={error:e}}finally{try{c&&!c.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}}),(function(){for(;f.length>0;)c.next(f.shift());c.complete()})))}))}},27764:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var r=a(16097),n=a(37116),c=a(37326),i=a(16958);t.bufferWhen=function(e){return r.operate((function(t,a){var r=null,o=null,s=function(){null==o||o.unsubscribe();var t=r;r=[],t&&a.next(t),i.innerFrom(e()).subscribe(o=c.createOperatorSubscriber(a,s,n.noop))};s(),t.subscribe(c.createOperatorSubscriber(a,(function(e){return null==r?void 0:r.push(e)}),(function(){r&&a.next(r),a.complete()}),void 0,(function(){return r=o=null})))}))}},73056:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var r=a(16958),n=a(37326),c=a(16097);t.catchError=function e(t){return c.operate((function(a,c){var i,o=null,s=!1;o=a.subscribe(n.createOperatorSubscriber(c,void 0,void 0,(function(n){i=r.innerFrom(t(n,e(t)(a))),o?(o.unsubscribe(),o=null,i.subscribe(c)):s=!0}))),s&&(o.unsubscribe(),o=null,i.subscribe(c))}))}},10498:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var r=a(97484);t.combineAll=r.combineLatestAll},6527:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var r=a(40508),n=a(72208);t.combineLatestAll=function(e){return n.joinAllInternals(r.combineLatest,e)}},64755:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var r=a(40400);t.concatAll=function(){return r.mergeAll(1)}},31774:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var r=a(36086),n=a(42935);t.concatMap=function(e,t){return n.isFunction(t)?r.mergeMap(e,t,1):r.mergeMap(e,1)}},63977:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var r=a(31774),n=a(42935);t.concatMapTo=function(e,t){return n.isFunction(t)?r.concatMap((function(){return e}),t):r.concatMap((function(){return e}))}},67672:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var r=a(55294),n=a(16958),c=a(16097),i=a(46884),o={connector:function(){return new r.Subject}};t.connect=function(e,t){void 0===t&&(t=o);var a=t.connector;return c.operate((function(t,r){var c=a();n.innerFrom(e(i.fromSubscribable(c))).subscribe(r),r.add(t.subscribe(c))}))}},78259:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var r=a(78083);t.count=function(e){return r.reduce((function(t,a,r){return!e||e(a,r)?t+1:t}),0)}},23473:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var r=a(16097),n=a(37116),c=a(37326),i=a(16958);t.debounce=function(e){return r.operate((function(t,a){var r=!1,o=null,s=null,d=function(){if(null==s||s.unsubscribe(),s=null,r){r=!1;var e=o;o=null,a.next(e)}};t.subscribe(c.createOperatorSubscriber(a,(function(t){null==s||s.unsubscribe(),r=!0,o=t,s=c.createOperatorSubscriber(a,d,n.noop),i.innerFrom(e(t)).subscribe(s)}),(function(){d(),a.complete()}),void 0,(function(){o=s=null})))}))}},78390:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var r=a(17152),n=a(16097),c=a(37326);t.debounceTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),n.operate((function(a,r){var n=null,i=null,o=null,s=function(){if(n){n.unsubscribe(),n=null;var e=i;i=null,r.next(e)}};function d(){var a=o+e,c=t.now();if(c{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var r=a(16097),n=a(37326);t.defaultIfEmpty=function(e){return r.operate((function(t,a){var r=!1;t.subscribe(n.createOperatorSubscriber(a,(function(e){r=!0,a.next(e)}),(function(){r||a.next(e),a.complete()})))}))}},58151:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var r=a(17152),n=a(40744),c=a(18069);t.delay=function(e,t){void 0===t&&(t=r.asyncScheduler);var a=c.timer(e,t);return n.delayWhen((function(){return a}))}},40744:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var r=a(3364),n=a(29438),c=a(89186),i=a(55471),o=a(36086),s=a(16958);t.delayWhen=function e(t,a){return a?function(i){return r.concat(a.pipe(n.take(1),c.ignoreElements()),i.pipe(e(t)))}:o.mergeMap((function(e,a){return s.innerFrom(t(e,a)).pipe(n.take(1),i.mapTo(e))}))}},8590:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var r=a(79828),n=a(16097),c=a(37326);t.dematerialize=function(){return n.operate((function(e,t){e.subscribe(c.createOperatorSubscriber(t,(function(e){return r.observeNotification(e,t)})))}))}},28406:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var r=a(16097),n=a(37326),c=a(37116),i=a(16958);t.distinct=function(e,t){return r.operate((function(a,r){var o=new Set;a.subscribe(n.createOperatorSubscriber(r,(function(t){var a=e?e(t):t;o.has(a)||(o.add(a),r.next(t))}))),t&&i.innerFrom(t).subscribe(n.createOperatorSubscriber(r,(function(){return o.clear()}),c.noop))}))}},37300:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var r=a(98987),n=a(16097),c=a(37326);function i(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=r.identity),e=null!=e?e:i,n.operate((function(a,r){var n,i=!0;a.subscribe(c.createOperatorSubscriber(r,(function(a){var c=t(a);!i&&e(n,c)||(i=!1,n=c,r.next(a))})))}))}},84405:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var r=a(37300);t.distinctUntilKeyChanged=function(e,t){return r.distinctUntilChanged((function(a,r){return t?t(a[e],r[e]):a[e]===r[e]}))}},42787:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var r=a(19216),n=a(47261),c=a(21332),i=a(24562),o=a(29438);t.elementAt=function(e,t){if(e<0)throw new r.ArgumentOutOfRangeError;var a=arguments.length>=2;return function(s){return s.pipe(n.filter((function(t,a){return a===e})),o.take(1),a?i.defaultIfEmpty(t):c.throwIfEmpty((function(){return new r.ArgumentOutOfRangeError})))}}},11665:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var r=a(16097),n=a(37326);t.every=function(e,t){return r.operate((function(a,r){var c=0;a.subscribe(n.createOperatorSubscriber(r,(function(n){e.call(t,n,c++,a)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))}},42208:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var r=a(62008);t.exhaust=r.exhaustAll},62008:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var r=a(84019),n=a(98987);t.exhaustAll=function(){return r.exhaustMap(n.identity)}},84019:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var r=a(56269),n=a(16958),c=a(16097),i=a(37326);t.exhaustMap=function e(t,a){return a?function(c){return c.pipe(e((function(e,c){return n.innerFrom(t(e,c)).pipe(r.map((function(t,r){return a(e,t,c,r)})))})))}:c.operate((function(e,a){var r=0,c=null,o=!1;e.subscribe(i.createOperatorSubscriber(a,(function(e){c||(c=i.createOperatorSubscriber(a,void 0,(function(){c=null,o&&a.complete()})),n.innerFrom(t(e,r++)).subscribe(c))}),(function(){o=!0,!c&&a.complete()})))}))}},29101:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var r=a(16097),n=a(25926);t.expand=function(e,t,a){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,r.operate((function(r,c){return n.mergeInternals(r,c,e,t,void 0,!0,a)}))}},47261:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var r=a(16097),n=a(37326);t.filter=function(e,t){return r.operate((function(a,r){var c=0;a.subscribe(n.createOperatorSubscriber(r,(function(a){return e.call(t,a,c++)&&r.next(a)})))}))}},55381:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var r=a(16097);t.finalize=function(e){return r.operate((function(t,a){try{t.subscribe(a)}finally{a.add(e)}}))}},24127:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var r=a(16097),n=a(37326);function c(e,t,a){var r="index"===a;return function(a,c){var i=0;a.subscribe(n.createOperatorSubscriber(c,(function(n){var o=i++;e.call(t,n,o,a)&&(c.next(r?o:n),c.complete())}),(function(){c.next(r?-1:void 0),c.complete()})))}}t.find=function(e,t){return r.operate(c(e,t,"value"))},t.createFind=c},69727:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var r=a(16097),n=a(24127);t.findIndex=function(e,t){return r.operate(n.createFind(e,t,"index"))}},87418:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var r=a(99088),n=a(47261),c=a(29438),i=a(24562),o=a(21332),s=a(98987);t.first=function(e,t){var a=arguments.length>=2;return function(d){return d.pipe(e?n.filter((function(t,a){return e(t,a,d)})):s.identity,c.take(1),a?i.defaultIfEmpty(t):o.throwIfEmpty((function(){return new r.EmptyError})))}}},89121:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var r=a(36086);t.flatMap=r.mergeMap},7533:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var r=a(64174),n=a(16958),c=a(55294),i=a(16097),o=a(37326);t.groupBy=function(e,t,a,s){return i.operate((function(i,d){var f;t&&"function"!=typeof t?(a=t.duration,f=t.element,s=t.connector):f=t;var u=new Map,b=function(e){u.forEach(e),e(d)},l=function(e){return b((function(t){return t.error(e)}))},h=0,p=!1,m=new o.OperatorSubscriber(d,(function(t){try{var i=e(t),b=u.get(i);if(!b){u.set(i,b=s?s():new c.Subject);var y=(x=i,v=b,(w=new r.Observable((function(e){h++;var t=v.subscribe(e);return function(){t.unsubscribe(),0==--h&&p&&m.unsubscribe()}}))).key=x,w);if(d.next(y),a){var g=o.createOperatorSubscriber(b,(function(){b.complete(),null==g||g.unsubscribe()}),void 0,void 0,(function(){return u.delete(i)}));m.add(n.innerFrom(a(y)).subscribe(g))}}b.next(f?f(t):t)}catch(e){l(e)}var x,v,w}),(function(){return b((function(e){return e.complete()}))}),l,(function(){return u.clear()}),(function(){return p=!0,0===h}));i.subscribe(m)}))}},89186:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var r=a(16097),n=a(37326),c=a(37116);t.ignoreElements=function(){return r.operate((function(e,t){e.subscribe(n.createOperatorSubscriber(t,c.noop))}))}},27757:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var r=a(16097),n=a(37326);t.isEmpty=function(){return r.operate((function(e,t){e.subscribe(n.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},72208:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var r=a(98987),n=a(9364),c=a(65250),i=a(36086),o=a(29867);t.joinAllInternals=function(e,t){return c.pipe(o.toArray(),i.mergeMap((function(t){return e(t)})),t?n.mapOneOrManyArgs(t):r.identity)}},83374:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var r=a(99088),n=a(47261),c=a(74125),i=a(21332),o=a(24562),s=a(98987);t.last=function(e,t){var a=arguments.length>=2;return function(d){return d.pipe(e?n.filter((function(t,a){return e(t,a,d)})):s.identity,c.takeLast(1),a?o.defaultIfEmpty(t):i.throwIfEmpty((function(){return new r.EmptyError})))}}},56269:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var r=a(16097),n=a(37326);t.map=function(e,t){return r.operate((function(a,r){var c=0;a.subscribe(n.createOperatorSubscriber(r,(function(a){r.next(e.call(t,a,c++))})))}))}},55471:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var r=a(56269);t.mapTo=function(e){return r.map((function(){return e}))}},21160:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var r=a(79828),n=a(16097),c=a(37326);t.materialize=function(){return n.operate((function(e,t){e.subscribe(c.createOperatorSubscriber(t,(function(e){t.next(r.Notification.createNext(e))}),(function(){t.next(r.Notification.createComplete()),t.complete()}),(function(e){t.next(r.Notification.createError(e)),t.complete()})))}))}},91890:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var r=a(78083),n=a(42935);t.max=function(e){return r.reduce(n.isFunction(e)?function(t,a){return e(t,a)>0?t:a}:function(e,t){return e>t?e:t})}},33982:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var r=a(36086),n=a(98987);t.mergeAll=function(e){return void 0===e&&(e=1/0),r.mergeMap(n.identity,e)}},25926:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var r=a(16958),n=a(75267),c=a(37326);t.mergeInternals=function(e,t,a,i,o,s,d,f){var u=[],b=0,l=0,h=!1,p=function(){!h||u.length||b||t.complete()},m=function(e){return b{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var r=a(56269),n=a(16958),c=a(16097),i=a(25926),o=a(42935);t.mergeMap=function e(t,a,s){return void 0===s&&(s=1/0),o.isFunction(a)?e((function(e,c){return r.map((function(t,r){return a(e,t,c,r)}))(n.innerFrom(t(e,c)))}),s):("number"==typeof a&&(s=a),c.operate((function(e,a){return i.mergeInternals(e,a,t,s)})))}},71244:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var r=a(36086),n=a(42935);t.mergeMapTo=function(e,t,a){return void 0===a&&(a=1/0),n.isFunction(t)?r.mergeMap((function(){return e}),t,a):("number"==typeof t&&(a=t),r.mergeMap((function(){return e}),a))}},23699:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var r=a(16097),n=a(25926);t.mergeScan=function(e,t,a){return void 0===a&&(a=1/0),r.operate((function(r,c){var i=t;return n.mergeInternals(r,c,(function(t,a){return e(i,t,a)}),a,(function(e){i=e}),!1,void 0,(function(){return i=null}))}))}},98220:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var r=a(78083),n=a(42935);t.min=function(e){return r.reduce(n.isFunction(e)?function(t,a){return e(t,a)<0?t:a}:function(e,t){return e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var r=a(87165),n=a(42935),c=a(65561);t.multicast=function(e,t){var a=n.isFunction(e)?e:function(){return e};return n.isFunction(t)?c.connect(t,{connector:a}):function(e){return new r.ConnectableObservable(e,a)}}},89314:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var r=a(75267),n=a(16097),c=a(37326);t.observeOn=function(e,t){return void 0===t&&(t=0),n.operate((function(a,n){a.subscribe(c.createOperatorSubscriber(n,(function(a){return r.executeSchedule(n,e,(function(){return n.next(a)}),t)}),(function(){return r.executeSchedule(n,e,(function(){return n.complete()}),t)}),(function(a){return r.executeSchedule(n,e,(function(){return n.error(a)}),t)})))}))}},31899:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var r=a(16097),n=a(37326);t.pairwise=function(){return r.operate((function(e,t){var a,r=!1;e.subscribe(n.createOperatorSubscriber(t,(function(e){var n=a;a=e,r&&t.next([n,e]),r=!0})))}))}},9857:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var r=a(38781),n=a(47261);t.partition=function(e,t){return function(a){return[n.filter(e,t)(a),n.filter(r.not(e,t))(a)]}}},39532:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var r=a(56269);t.pluck=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var r=a(55294),n=a(68413),c=a(65561);t.publish=function(e){return e?function(t){return c.connect(e)(t)}:function(e){return n.multicast(new r.Subject)(e)}}},48103:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var r=a(61577),n=a(87165);t.publishBehavior=function(e){return function(t){var a=new r.BehaviorSubject(e);return new n.ConnectableObservable(t,(function(){return a}))}}},22610:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var r=a(69960),n=a(87165);t.publishLast=function(){return function(e){var t=new r.AsyncSubject;return new n.ConnectableObservable(e,(function(){return t}))}}},45299:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var r=a(68806),n=a(68413),c=a(42935);t.publishReplay=function(e,t,a,i){a&&!c.isFunction(a)&&(i=a);var o=c.isFunction(a)?a:void 0;return function(a){return n.multicast(new r.ReplaySubject(e,t,i),o)(a)}}},26699:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var r=a(87235),n=a(16097);t.reduce=function(e,t){return n.operate(r.scanInternals(e,t,arguments.length>=2,!1,!0))}},14508:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var r=a(16097),n=a(37326);t.refCount=function(){return r.operate((function(e,t){var a=null;e._refCount++;var r=n.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)a=null;else{var r=e._connection,n=a;a=null,!r||n&&r!==n||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(a=e.connect())}))}},72588:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var r=a(26929),n=a(16097),c=a(37326),i=a(16958),o=a(18069);t.repeat=function(e){var t,a,s=1/0;return null!=e&&("object"==typeof e?(t=e.count,s=void 0===t?1/0:t,a=e.delay):s=e),s<=0?function(){return r.EMPTY}:n.operate((function(e,t){var r,n=0,d=function(){if(null==r||r.unsubscribe(),r=null,null!=a){var e="number"==typeof a?o.timer(a):i.innerFrom(a(n)),s=c.createOperatorSubscriber(t,(function(){s.unsubscribe(),f()}));e.subscribe(s)}else f()},f=function(){var a=!1;r=e.subscribe(c.createOperatorSubscriber(t,void 0,(function(){++n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var r=a(16958),n=a(55294),c=a(16097),i=a(37326);t.repeatWhen=function(e){return c.operate((function(t,a){var c,o,s=!1,d=!1,f=!1,u=function(){return f&&d&&(a.complete(),!0)},b=function(){f=!1,c=t.subscribe(i.createOperatorSubscriber(a,void 0,(function(){f=!0,!u()&&(o||(o=new n.Subject,r.innerFrom(e(o)).subscribe(i.createOperatorSubscriber(a,(function(){c?b():s=!0}),(function(){d=!0,u()})))),o).next()}))),s&&(c.unsubscribe(),c=null,s=!1,b())};b()}))}},74486:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var r=a(16097),n=a(37326),c=a(98987),i=a(18069),o=a(16958);t.retry=function(e){var t;void 0===e&&(e=1/0);var a=(t=e&&"object"==typeof e?e:{count:e}).count,s=void 0===a?1/0:a,d=t.delay,f=t.resetOnSuccess,u=void 0!==f&&f;return s<=0?c.identity:r.operate((function(e,t){var a,r=0,c=function(){var f=!1;a=e.subscribe(n.createOperatorSubscriber(t,(function(e){u&&(r=0),t.next(e)}),void 0,(function(e){if(r++{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var r=a(16958),n=a(55294),c=a(16097),i=a(37326);t.retryWhen=function(e){return c.operate((function(t,a){var c,o,s=!1,d=function(){c=t.subscribe(i.createOperatorSubscriber(a,void 0,void 0,(function(t){o||(o=new n.Subject,r.innerFrom(e(o)).subscribe(i.createOperatorSubscriber(a,(function(){return c?d():s=!0})))),o&&o.next(t)}))),s&&(c.unsubscribe(),c=null,s=!1,d())};d()}))}},20778:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var r=a(16958),n=a(16097),c=a(37116),i=a(37326);t.sample=function(e){return n.operate((function(t,a){var n=!1,o=null;t.subscribe(i.createOperatorSubscriber(a,(function(e){n=!0,o=e}))),r.innerFrom(e).subscribe(i.createOperatorSubscriber(a,(function(){if(n){n=!1;var e=o;o=null,a.next(e)}}),c.noop))}))}},67701:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var r=a(17152),n=a(20778),c=a(88989);t.sampleTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),n.sample(c.interval(e,t))}},18167:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var r=a(16097),n=a(87235);t.scan=function(e,t){return r.operate(n.scanInternals(e,t,arguments.length>=2,!0))}},87235:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var r=a(37326);t.scanInternals=function(e,t,a,n,c){return function(i,o){var s=a,d=t,f=0;i.subscribe(r.createOperatorSubscriber(o,(function(t){var a=f++;d=s?e(d,t,a):(s=!0,t),n&&o.next(d)}),c&&function(){s&&o.next(d),o.complete()}))}}},57821:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var r=a(16097),n=a(37326),c=a(16958);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),r.operate((function(a,r){var i={buffer:[],complete:!1},o={buffer:[],complete:!1},s=function(e){r.next(e),r.complete()},d=function(e,a){var c=n.createOperatorSubscriber(r,(function(r){var n=a.buffer,c=a.complete;0===n.length?c?s(!1):e.buffer.push(r):!t(r,n.shift())&&s(!1)}),(function(){e.complete=!0;var t=a.complete,r=a.buffer;t&&s(0===r.length),null==c||c.unsubscribe()}));return c};a.subscribe(d(i,o)),c.innerFrom(e).subscribe(d(o,i))}))}},52645:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a0&&(t=new o.SafeSubscriber({next:function(e){return g.next(e)},error:function(e){h=!0,p(),r=d(m,n,e),g.error(e)},complete:function(){b=!0,p(),r=d(m,u),g.complete()}}),c.innerFrom(e).subscribe(t))}))(e)}}},27566:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var r=a(68806),n=a(52645);t.shareReplay=function(e,t,a){var c,i,o,s,d=!1;return e&&"object"==typeof e?(c=e.bufferSize,s=void 0===c?1/0:c,i=e.windowTime,t=void 0===i?1/0:i,d=void 0!==(o=e.refCount)&&o,a=e.scheduler):s=null!=e?e:1/0,n.share({connector:function(){return new r.ReplaySubject(s,t,a)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:d})}},44610:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var r=a(99088),n=a(57298),c=a(25722),i=a(16097),o=a(37326);t.single=function(e){return i.operate((function(t,a){var i,s=!1,d=!1,f=0;t.subscribe(o.createOperatorSubscriber(a,(function(r){d=!0,e&&!e(r,f++,t)||(s&&a.error(new n.SequenceError("Too many matching values")),s=!0,i=r)}),(function(){s?(a.next(i),a.complete()):a.error(d?new c.NotFoundError("No matching values"):new r.EmptyError)})))}))}},75735:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var r=a(47261);t.skip=function(e){return r.filter((function(t,a){return e<=a}))}},63252:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var r=a(98987),n=a(16097),c=a(37326);t.skipLast=function(e){return e<=0?r.identity:n.operate((function(t,a){var r=new Array(e),n=0;return t.subscribe(c.createOperatorSubscriber(a,(function(t){var c=n++;if(c{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var r=a(16097),n=a(37326),c=a(16958),i=a(37116);t.skipUntil=function(e){return r.operate((function(t,a){var r=!1,o=n.createOperatorSubscriber(a,(function(){null==o||o.unsubscribe(),r=!0}),i.noop);c.innerFrom(e).subscribe(o),t.subscribe(n.createOperatorSubscriber(a,(function(e){return r&&a.next(e)})))}))}},45454:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var r=a(16097),n=a(37326);t.skipWhile=function(e){return r.operate((function(t,a){var r=!1,c=0;t.subscribe(n.createOperatorSubscriber(a,(function(t){return(r||(r=!e(t,c++)))&&a.next(t)})))}))}},1923:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var r=a(3364),n=a(84544),c=a(16097);t.startWith=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var r=a(16097);t.subscribeOn=function(e,t){return void 0===t&&(t=0),r.operate((function(a,r){r.add(e.schedule((function(){return a.subscribe(r)}),t))}))}},91695:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var r=a(66649),n=a(98987);t.switchAll=function(){return r.switchMap(n.identity)}},66649:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var r=a(16958),n=a(16097),c=a(37326);t.switchMap=function(e,t){return n.operate((function(a,n){var i=null,o=0,s=!1,d=function(){return s&&!i&&n.complete()};a.subscribe(c.createOperatorSubscriber(n,(function(a){null==i||i.unsubscribe();var s=0,f=o++;r.innerFrom(e(a,f)).subscribe(i=c.createOperatorSubscriber(n,(function(e){return n.next(t?t(a,e,f,s++):e)}),(function(){i=null,d()})))}),(function(){s=!0,d()})))}))}},83054:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var r=a(66649),n=a(42935);t.switchMapTo=function(e,t){return n.isFunction(t)?r.switchMap((function(){return e}),t):r.switchMap((function(){return e}))}},62890:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var r=a(66649),n=a(16097);t.switchScan=function(e,t){return n.operate((function(a,n){var c=t;return r.switchMap((function(t,a){return e(c,t,a)}),(function(e,t){return c=t,t}))(a).subscribe(n),function(){c=null}}))}},29438:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var r=a(26929),n=a(16097),c=a(37326);t.take=function(e){return e<=0?function(){return r.EMPTY}:n.operate((function(t,a){var r=0;t.subscribe(c.createOperatorSubscriber(a,(function(t){++r<=e&&(a.next(t),e<=r&&a.complete())})))}))}},74125:function(e,t,a){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var n=a(26929),c=a(16097),i=a(37326);t.takeLast=function(e){return e<=0?function(){return n.EMPTY}:c.operate((function(t,a){var n=[];t.subscribe(i.createOperatorSubscriber(a,(function(t){n.push(t),e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var r=a(16097),n=a(37326),c=a(16958),i=a(37116);t.takeUntil=function(e){return r.operate((function(t,a){c.innerFrom(e).subscribe(n.createOperatorSubscriber(a,(function(){return a.complete()}),i.noop)),!a.closed&&t.subscribe(a)}))}},85884:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var r=a(16097),n=a(37326);t.takeWhile=function(e,t){return void 0===t&&(t=!1),r.operate((function(a,r){var c=0;a.subscribe(n.createOperatorSubscriber(r,(function(a){var n=e(a,c++);(n||t)&&r.next(a),!n&&r.complete()})))}))}},5383:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var r=a(42935),n=a(16097),c=a(37326),i=a(98987);t.tap=function(e,t,a){var o=r.isFunction(e)||t||a?{next:e,error:t,complete:a}:e;return o?n.operate((function(e,t){var a;null===(a=o.subscribe)||void 0===a||a.call(o);var r=!0;e.subscribe(c.createOperatorSubscriber(t,(function(e){var a;null===(a=o.next)||void 0===a||a.call(o,e),t.next(e)}),(function(){var e;r=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()}),(function(e){var a;r=!1,null===(a=o.error)||void 0===a||a.call(o,e),t.error(e)}),(function(){var e,t;r&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)})))})):i.identity}},11016:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.defaultThrottleConfig=void 0;var r=a(16097),n=a(37326),c=a(16958);t.defaultThrottleConfig={leading:!0,trailing:!1},t.throttle=function(e,a){return void 0===a&&(a=t.defaultThrottleConfig),r.operate((function(t,r){var i=a.leading,o=a.trailing,s=!1,d=null,f=null,u=!1,b=function(){null==f||f.unsubscribe(),f=null,o&&(p(),u&&r.complete())},l=function(){f=null,u&&r.complete()},h=function(t){return f=c.innerFrom(e(t)).subscribe(n.createOperatorSubscriber(r,b,l))},p=function(){if(s){s=!1;var e=d;d=null,r.next(e),!u&&h(e)}};t.subscribe(n.createOperatorSubscriber(r,(function(e){s=!0,d=e,(!f||f.closed)&&(i?p():h(e))}),(function(){u=!0,(!(o&&s&&f)||f.closed)&&r.complete()})))}))}},90567:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var r=a(17152),n=a(11016),c=a(18069);t.throttleTime=function(e,t,a){void 0===t&&(t=r.asyncScheduler),void 0===a&&(a=n.defaultThrottleConfig);var i=c.timer(e,t);return n.throttle((function(){return i}),a)}},21332:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var r=a(99088),n=a(16097),c=a(37326);function i(){return new r.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=i),n.operate((function(t,a){var r=!1;t.subscribe(c.createOperatorSubscriber(a,(function(e){r=!0,a.next(e)}),(function(){return r?a.complete():a.error(e())})))}))}},51149:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var r=a(17152),n=a(16097),c=a(37326);t.timeInterval=function(e){return void 0===e&&(e=r.asyncScheduler),n.operate((function(t,a){var r=e.now();t.subscribe(c.createOperatorSubscriber(a,(function(t){var n=e.now(),c=n-r;r=n,a.next(new i(t,c))})))}))};var i=function(e,t){this.value=e,this.interval=t};t.TimeInterval=i},54485:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var r=a(17152),n=a(14426),c=a(16097),i=a(16958),o=a(83126),s=a(37326),d=a(75267);function f(e){throw new t.TimeoutError(e)}t.TimeoutError=o.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var a=n.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,o=a.first,u=a.each,b=a.with,l=void 0===b?f:b,h=a.scheduler,p=void 0===h?null!=t?t:r.asyncScheduler:h,m=a.meta,y=void 0===m?null:m;if(null==o&&null==u)throw new TypeError("No timeout provided.");return c.operate((function(e,t){var a,r,n=null,c=0,f=function(e){r=d.executeSchedule(t,p,(function(){try{a.unsubscribe(),i.innerFrom(l({meta:y,lastValue:n,seen:c})).subscribe(t)}catch(e){t.error(e)}}),e)};a=e.subscribe(s.createOperatorSubscriber(t,(function(e){null==r||r.unsubscribe(),c++,t.next(n=e),u>0&&f(u)}),void 0,void 0,(function(){(null==r?void 0:r.closed)||null==r||r.unsubscribe(),n=null}))),!c&&f(null!=o?"number"==typeof o?o:+o-p.now():u)}))}},94972:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var r=a(17152),n=a(14426),c=a(54485);t.timeoutWith=function(e,t,a){var i,o,s;if(a=null!=a?a:r.async,n.isValidDate(e)?i=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(s=function(){return t},null==i&&null==o)throw new TypeError("No timeout provided.");return c.timeout({first:i,each:o,scheduler:a,with:s})}},11275:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var r=a(79168),n=a(56269);t.timestamp=function(e){return void 0===e&&(e=r.dateTimestampProvider),n.map((function(t){return{value:t,timestamp:e.now()}}))}},29867:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var r=a(78083),n=a(16097),c=function(e,t){return e.push(t),e};t.toArray=function(){return n.operate((function(e,t){r.reduce(c,[])(e).subscribe(t)}))}},17649:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var r=a(55294),n=a(16097),c=a(37326),i=a(37116),o=a(16958);t.window=function(e){return n.operate((function(t,a){var n=new r.Subject;a.next(n.asObservable());var s=function(e){n.error(e),a.error(e)};return t.subscribe(c.createOperatorSubscriber(a,(function(e){return null==n?void 0:n.next(e)}),(function(){n.complete(),a.complete()}),s)),o.innerFrom(e).subscribe(c.createOperatorSubscriber(a,(function(){n.complete(),a.next(n=new r.Subject)}),i.noop,s)),function(){null==n||n.unsubscribe(),n=null}}))}},75612:function(e,t,a){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var n=a(55294),c=a(16097),i=a(37326);t.windowCount=function(e,t){void 0===t&&(t=0);var a=t>0?t:e;return c.operate((function(t,c){var o=[new n.Subject],s=0;c.next(o[0].asObservable()),t.subscribe(i.createOperatorSubscriber(c,(function(t){var i,d;try{for(var f=r(o),u=f.next();!u.done;u=f.next())u.value.next(t)}catch(e){i={error:e}}finally{try{u&&!u.done&&(d=f.return)&&d.call(f)}finally{if(i)throw i.error}}var b=s-e+1;if(b>=0&&b%a==0&&o.shift().complete(),++s%a==0){var l=new n.Subject;o.push(l),c.next(l.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();c.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);c.error(e)}),(function(){o=null})))}))}},59972:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var r=a(55294),n=a(17152),c=a(44666),i=a(16097),o=a(37326),s=a(91291),d=a(84544),f=a(75267);t.windowTime=function(e){for(var t,a,u=[],b=1;b=0?f.executeSchedule(a,l,u,h,!0):i=!0,u();var b=function(e){return n.slice().forEach(e)},m=function(e){b((function(t){var a=t.window;return e(a)})),e(a),a.unsubscribe()};return t.subscribe(o.createOperatorSubscriber(a,(function(e){b((function(t){t.window.next(e),p<=++t.seen&&d(t)}))}),(function(){return m((function(e){return e.complete()}))}),(function(e){return m((function(t){return t.error(e)}))}))),function(){n=null}}))}},49593:function(e,t,a){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var n=a(55294),c=a(44666),i=a(16097),o=a(16958),s=a(37326),d=a(37116),f=a(91291);t.windowToggle=function(e,t){return i.operate((function(a,i){var u=[],b=function(e){for(;0{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var r=a(55294),n=a(16097),c=a(37326),i=a(16958);t.windowWhen=function(e){return n.operate((function(t,a){var n,o,s=function(e){n.error(e),a.error(e)},d=function(){var t;null==o||o.unsubscribe(),null==n||n.complete(),n=new r.Subject,a.next(n.asObservable());try{t=i.innerFrom(e())}catch(e){return void s(e)}t.subscribe(o=c.createOperatorSubscriber(a,d,d,s))};d(),t.subscribe(c.createOperatorSubscriber(a,(function(e){return n.next(e)}),(function(){n.complete(),a.complete()}),s,(function(){null==o||o.unsubscribe(),n=null})))}))}},35512:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var r=a(74981),n=a(72208);t.zipAll=function(e){return n.joinAllInternals(r.zip,e)}},97594:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var r=a(64174);t.scheduleArray=function(e,t){return new r.Observable((function(a){var r=0;return t.schedule((function(){r===e.length?a.complete():(a.next(e[r++]),a.closed||this.schedule())}))}))}},94271:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var r=a(64174),n=a(75267);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.Observable((function(a){n.executeSchedule(a,t,(function(){var r=e[Symbol.asyncIterator]();n.executeSchedule(a,t,(function(){r.next().then((function(e){e.done?a.complete():a.next(e.value)}))}),0,!0)}))}))}},82485:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var r=a(64174),n=a(17630),c=a(42935),i=a(75267);t.scheduleIterable=function(e,t){return new r.Observable((function(a){var r;return i.executeSchedule(a,t,(function(){r=e[n.iterator](),i.executeSchedule(a,t,(function(){var e,t,n;try{t=(e=r.next()).value,n=e.done}catch(e){return void a.error(e)}n?a.complete():a.next(t)}),0,!0)})),function(){return c.isFunction(null==r?void 0:r.return)&&r.return()}}))}},55892:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var r=a(16958),n=a(89314),c=a(79130);t.scheduleObservable=function(e,t){return r.innerFrom(e).pipe(c.subscribeOn(t),n.observeOn(t))}},66976:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var r=a(16958),n=a(89314),c=a(79130);t.schedulePromise=function(e,t){return r.innerFrom(e).pipe(c.subscribeOn(t),n.observeOn(t))}},34260:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var r=a(94271),n=a(42221);t.scheduleReadableStreamLike=function(e,t){return r.scheduleAsyncIterable(n.readableStreamLikeToAsyncGenerator(e),t)}},42862:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var r=a(55892),n=a(66976),c=a(75125),i=a(82485),o=a(94271),s=a(33124),d=a(94283),f=a(5445),u=a(98131),b=a(83260),l=a(17756),h=a(42221),p=a(34260);t.scheduled=function(e,t){if(null!=e){if(s.isInteropObservable(e))return r.scheduleObservable(e,t);if(f.isArrayLike(e))return c.scheduleArray(e,t);if(d.isPromise(e))return n.schedulePromise(e,t);if(b.isAsyncIterable(e))return o.scheduleAsyncIterable(e,t);if(u.isIterable(e))return i.scheduleIterable(e,t);if(h.isReadableStreamLike(e))return p.scheduleReadableStreamLike(e,t)}throw l.createInvalidObservableTypeError(e)}},12502:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var c=function(e){function t(t,a){return e.call(this)||this}return n(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(a(44666).Subscription);t.Action=c},32142:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;var c=a(49462),i=a(29015),o=function(e){function t(t,a){var r=e.call(this,t,a)||this;return r.scheduler=t,r.work=a,r}return n(t,e),t.prototype.requestAsyncId=function(t,a,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,a,r):(t.actions.push(this),t._scheduled||(t._scheduled=i.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,a,r){var n;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,a,r);var c=t.actions;null!=a&&(null===(n=c[c.length-1])||void 0===n?void 0:n.id)!==a&&(i.animationFrameProvider.cancelAnimationFrame(a),t._scheduled=void 0)},t}(c.AsyncAction);t.AnimationFrameAction=o},37104:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var a,r=this.actions;e=e||r.shift();do{if(a=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,a){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw a}},t}(a(19812).AsyncScheduler);t.AnimationFrameScheduler=c},94151:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;var c=a(49462),i=a(14409),o=function(e){function t(t,a){var r=e.call(this,t,a)||this;return r.scheduler=t,r.work=a,r}return n(t,e),t.prototype.requestAsyncId=function(t,a,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,a,r):(t.actions.push(this),t._scheduled||(t._scheduled=i.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,a,r){var n;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,a,r);var c=t.actions;null!=a&&(null===(n=c[c.length-1])||void 0===n?void 0:n.id)!==a&&(i.immediateProvider.clearImmediate(a),t._scheduled=void 0)},t}(c.AsyncAction);t.AsapAction=o},94726:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var a,r=this.actions;e=e||r.shift();do{if(a=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,a){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw a}},t}(a(19812).AsyncScheduler);t.AsapScheduler=c},49462:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var c=a(12502),i=a(27549),o=a(91291),s=function(e){function t(t,a){var r=e.call(this,t,a)||this;return r.scheduler=t,r.work=a,r.pending=!1,r}return n(t,e),t.prototype.schedule=function(e,t){var a;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=null!==(a=this.id)&&void 0!==a?a:this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,a){return void 0===a&&(a=0),i.intervalProvider.setInterval(e.flush.bind(e,this),a)},t.prototype.recycleAsyncId=function(e,t,a){if(void 0===a&&(a=0),null!=a&&this.delay===a&&!1===this.pending)return t;null!=t&&i.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(e,t);if(a)return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var a,r=!1;try{this.work(e)}catch(e){r=!0,a=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),a},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,a=this.scheduler,r=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,o.arrRemove(r,this),null!=t&&(this.id=this.recycleAsyncId(a,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(c.Action);t.AsyncAction=s},19812:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var c=a(86949),i=function(e){function t(t,a){void 0===a&&(a=c.Scheduler.now);var r=e.call(this,t,a)||this;return r.actions=[],r._active=!1,r}return n(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var a;this._active=!0;do{if(a=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,a){for(;e=t.shift();)e.unsubscribe();throw a}}},t}(c.Scheduler);t.AsyncScheduler=i},85336:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;var c=function(e){function t(t,a){var r=e.call(this,t,a)||this;return r.scheduler=t,r.work=a,r}return n(t,e),t.prototype.schedule=function(t,a){return void 0===a&&(a=0),a>0?e.prototype.schedule.call(this,t,a):(this.delay=a,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,a){return a>0||this.closed?e.prototype.execute.call(this,t,a):this._execute(t,a)},t.prototype.requestAsyncId=function(t,a,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,a,r):(t.flush(this),0)},t}(a(49462).AsyncAction);t.QueueAction=c},24068:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(a(19812).AsyncScheduler);t.QueueScheduler=c},12929:function(e,t,a){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualAction=t.VirtualTimeScheduler=void 0;var c=a(49462),i=a(44666),o=function(e){function t(t,a){void 0===t&&(t=s),void 0===a&&(a=1/0);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=a,r.frame=0,r.index=-1,r}return n(t,e),t.prototype.flush=function(){for(var e,t,a=this.actions,r=this.maxFrames;(t=a[0])&&t.delay<=r&&(a.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=a.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(a(19812).AsyncScheduler);t.VirtualTimeScheduler=o;var s=function(e){function t(t,a,r){void 0===r&&(r=t.index+=1);var n=e.call(this,t,a)||this;return n.scheduler=t,n.work=a,n.index=r,n.active=!0,n.index=t.index=r,n}return n(t,e),t.prototype.schedule=function(a,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,a,r);this.active=!1;var n=new t(this.scheduler,this.work);return this.add(n),n.schedule(a,r)}return i.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,a,r){void 0===r&&(r=0),this.delay=e.frame+r;var n=e.actions;return n.push(this),n.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,t,a){void 0===a&&(a=0)},t.prototype._execute=function(t,a){if(!0===this.active)return e.prototype._execute.call(this,t,a)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(c.AsyncAction);t.VirtualAction=s},34965:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var r=a(32142),n=a(37104);t.animationFrameScheduler=new n.AnimationFrameScheduler(r.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},29015:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var r=a(94151),n=a(94726);t.asapScheduler=new n.AsapScheduler(r.AsapAction),t.asap=t.asapScheduler},17152:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var r=a(49462),n=a(19812);t.asyncScheduler=new n.AsyncScheduler(r.AsyncAction),t.async=t.asyncScheduler},79168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},14409:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},r=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},84093:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var r=a(85336),n=a(24068);t.queueScheduler=new n.QueueScheduler(r.QueueAction),t.queue=t.queueScheduler},81577:function(e,t){"use strict";var a=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},r=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=a,t.iterator=a()},34595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},53659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19216:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var r=a(83126);t.ArgumentOutOfRangeError=r.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},99088:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var r=a(83126);t.EmptyError=r.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},50998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var a,r=1,n={};function c(e){return e in n&&(delete n[e],!0)}t.Immediate={setImmediate:function(e){var t=r++;return n[t]=!0,a||(a=Promise.resolve()),a.then((function(){return c(t)&&e()})),t},clearImmediate:function(e){c(e)}},t.TestTools={pending:function(){return Object.keys(n).length}}},25722:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var r=a(83126);t.NotFoundError=r.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},68499:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var r=a(83126);t.ObjectUnsubscribedError=r.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},57298:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var r=a(83126);t.SequenceError=r.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},54043:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var r=a(83126);t.UnsubscriptionError=r.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},84544:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var r=a(42935),n=a(19668);function c(e){return e[e.length-1]}t.popResultSelector=function(e){return r.isFunction(c(e))?e.pop():void 0},t.popScheduler=function(e){return n.isScheduler(c(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof c(e)?e.pop():t}},82398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var a=Array.isArray,r=Object.getPrototypeOf,n=Object.prototype,c=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(a(t))return{args:t,keys:null};if((o=t)&&"object"==typeof o&&r(o)===n){var i=c(t);return{args:i.map((function(e){return t[e]})),keys:i}}}var o;return{args:e,keys:null}}},35034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var a=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&a(e[0])?e[0]:e}},91291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var a=e.indexOf(t);0<=a&&e.splice(a,1)}}},83126:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},64800:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,a,r){return e[a]=t[r],e}),{})}},10977:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var r=a(19179),n=null;t.errorContext=function(e){if(r.config.useDeprecatedSynchronousErrorHandling){var t=!n;if(t&&(n={errorThrown:!1,error:null}),e(),t){var a=n,c=a.errorThrown,i=a.error;if(n=null,c)throw i}}else e()},t.captureError=function(e){r.config.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=e)}},75267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,a,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var c=t.schedule((function(){a(),n?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(c),!n)return c}},98987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},5445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},83260:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var r=a(42935);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&r.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},14426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},42935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},33124:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var r=a(34595),n=a(42935);t.isInteropObservable=function(e){return n.isFunction(e[r.observable])}},98131:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var r=a(17630),n=a(42935);t.isIterable=function(e){return n.isFunction(null==e?void 0:e[r.iterator])}},83659:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var r=a(64174),n=a(42935);t.isObservable=function(e){return!!e&&(e instanceof r.Observable||n.isFunction(e.lift)&&n.isFunction(e.subscribe))}},94283:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var r=a(42935);t.isPromise=function(e){return r.isFunction(null==e?void 0:e.then)}},42221:function(e,t,a){"use strict";var r=this&&this.__generator||function(e,t){var a,r,n,c,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return c={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(c){return function(o){return function(c){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((n=(n=i.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]1||s(e,t)}))})}function s(e,t){try{(a=c[e](t)).value instanceof n?Promise.resolve(a.value.v).then(d,f):u(i[0][2],a)}catch(e){u(i[0][3],e)}var a}function d(e){s("next",e)}function f(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var i=a(42935);t.readableStreamLikeToAsyncGenerator=function(e){return c(this,arguments,(function(){var t,a,c;return r(this,(function(r){switch(r.label){case 0:t=e.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,n(t.read())];case 3:return a=r.sent(),c=a.value,a.done?[4,n(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,n(c)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t.isReadableStreamLike=function(e){return i.isFunction(null==e?void 0:e.getReader)}},19668:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var r=a(42935);t.isScheduler=function(e){return e&&r.isFunction(e.schedule)}},16097:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var r=a(42935);function n(e){return r.isFunction(null==e?void 0:e.lift)}t.hasLift=n,t.operate=function(e){return function(t){if(n(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},9364:function(e,t,a){"use strict";var r=this&&this.__read||function(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,n=e.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},38781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(a,r){return!e.call(t,a,r)}}},65250:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var r=a(98987);function n(e){return 0===e.length?r.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var r=a(19179),n=a(81577);t.reportUnhandledError=function(e){n.timeoutProvider.setTimeout((function(){var t=r.config.onUnhandledError;if(!t)throw e;t(e)}))}},17756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},39002:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var r=a(22605);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return r.audit}});var n=a(24152);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return n.auditTime}});var c=a(35149);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return c.buffer}});var i=a(33189);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return i.bufferCount}});var o=a(99459);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return o.bufferTime}});var s=a(68145);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return s.bufferToggle}});var d=a(27764);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return d.bufferWhen}});var f=a(73056);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return f.catchError}});var u=a(10498);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return u.combineAll}});var b=a(97484);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return b.combineLatestAll}});var l=a(6527);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return l.combineLatest}});var h=a(64755);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return h.combineLatestWith}});var p=a(3792);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return p.concat}});var m=a(90482);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return m.concatAll}});var y=a(31774);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return y.concatMap}});var g=a(63977);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return g.concatMapTo}});var x=a(67672);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return x.concatWith}});var v=a(65561);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return v.connect}});var w=a(78259);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return w.count}});var A=a(23473);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return A.debounce}});var k=a(78390);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return k.debounceTime}});var S=a(24562);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return S.defaultIfEmpty}});var E=a(58151);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return E.delay}});var I=a(40744);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return I.delayWhen}});var M=a(8590);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return M.dematerialize}});var C=a(28406);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return C.distinct}});var P=a(37300);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return P.distinctUntilChanged}});var T=a(84405);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return T.distinctUntilKeyChanged}});var O=a(42787);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return O.elementAt}});var N=a(11665);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return N.endWith}});var R=a(41511);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return R.every}});var B=a(42208);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return B.exhaust}});var D=a(62008);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return D.exhaustAll}});var V=a(84019);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return V.exhaustMap}});var L=a(29101);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return L.expand}});var j=a(47261);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return j.filter}});var U=a(55381);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return U.finalize}});var H=a(24127);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return H.find}});var F=a(69727);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return F.findIndex}});var z=a(87418);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return z.first}});var q=a(7533);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return q.groupBy}});var K=a(89186);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return K.ignoreElements}});var X=a(27757);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return X.isEmpty}});var W=a(83374);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return W.last}});var G=a(56269);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return G.map}});var Z=a(55471);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return Z.mapTo}});var J=a(21160);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return J.materialize}});var Y=a(91890);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return Y.max}});var Q=a(33982);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Q.merge}});var _=a(40400);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return _.mergeAll}});var $=a(89121);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return $.flatMap}});var ee=a(36086);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=a(71244);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var ae=a(23699);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return ae.mergeScan}});var re=a(98220);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return re.mergeWith}});var ne=a(90770);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ne.min}});var ce=a(68413);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ce.multicast}});var ie=a(89314);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ie.observeOn}});var oe=a(31899);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return oe.onErrorResumeNext}});var se=a(31186);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return se.pairwise}});var de=a(9857);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return de.partition}});var fe=a(39532);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return fe.pluck}});var ue=a(5745);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return ue.publish}});var be=a(48103);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return be.publishBehavior}});var le=a(22610);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return le.publishLast}});var he=a(45299);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return he.publishReplay}});var pe=a(26699);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return pe.race}});var me=a(73820);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return me.raceWith}});var ye=a(78083);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ye.reduce}});var ge=a(72588);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return ge.repeat}});var xe=a(79249);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return xe.repeatWhen}});var ve=a(74486);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return ve.retry}});var we=a(59112);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return we.retryWhen}});var Ae=a(14508);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return Ae.refCount}});var ke=a(20778);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return ke.sample}});var Se=a(67701);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Se.sampleTime}});var Ee=a(18167);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Ee.scan}});var Ie=a(57821);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Ie.sequenceEqual}});var Me=a(52645);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Me.share}});var Ce=a(27566);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ce.shareReplay}});var Pe=a(44610);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Pe.single}});var Te=a(75735);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Te.skip}});var Oe=a(63252);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Oe.skipLast}});var Ne=a(81779);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Ne.skipUntil}});var Re=a(45454);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Re.skipWhile}});var Be=a(1923);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Be.startWith}});var De=a(79130);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return De.subscribeOn}});var Ve=a(91695);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Ve.switchAll}});var Le=a(66649);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Le.switchMap}});var je=a(83054);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return je.switchMapTo}});var Ue=a(62890);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Ue.switchScan}});var He=a(29438);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return He.take}});var Fe=a(74125);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Fe.takeLast}});var ze=a(37549);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return ze.takeUntil}});var qe=a(85884);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return qe.takeWhile}});var Ke=a(5383);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Ke.tap}});var Xe=a(11016);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Xe.throttle}});var We=a(90567);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return We.throttleTime}});var Ge=a(21332);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Ge.throwIfEmpty}});var Ze=a(51149);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Ze.timeInterval}});var Je=a(54485);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Je.timeout}});var Ye=a(94972);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Ye.timeoutWith}});var Qe=a(11275);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Qe.timestamp}});var _e=a(29867);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return _e.toArray}});var $e=a(17649);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return $e.window}});var et=a(75612);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=a(59972);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var at=a(49593);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return at.windowToggle}});var rt=a(26307);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return rt.windowWhen}});var nt=a(35512);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return nt.withLatestFrom}});var ct=a(40586);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return ct.zip}});var it=a(81221);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return it.zipAll}});var ot=a(97594);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return ot.zipWith}})},3919:(e,t,a)=>{"use strict";a.d(t,{y:()=>u});var r=a(90471),n=a(20124),c=a(34105),i=a(69676);function o(e){return 0===e.length?i.y:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var s=a(64020),d=a(59126),f=a(24831),u=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var a=new e;return a.source=this,a.operator=t,a},e.prototype.subscribe=function(e,t,a){var c,i=this,o=(c=e)&&c instanceof r.Lv||function(e){return e&&(0,d.m)(e.next)&&(0,d.m)(e.error)&&(0,d.m)(e.complete)}(c)&&(0,n.Nn)(c)?e:new r.Hp(e,t,a);return(0,f.x)((function(){var e=i,t=e.operator,a=e.source;o.add(t?t.call(o,a):a?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var a=this;return new(t=b(t))((function(t,n){var c=new r.Hp({next:function(t){try{e(t)}catch(e){n(e),c.unsubscribe()}},error:n,complete:t});a.subscribe(c)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[c.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";a.d(t,{x:()=>d});var r=a(2995),n=a(3919),c=a(20124),i=(0,a(5589).d)((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),o=a(37990),s=a(24831),d=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,r.ZT)(t,e),t.prototype.lift=function(e){var t=new f(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new i},t.prototype.next=function(e){var t=this;(0,s.x)((function(){var a,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var c=(0,r.XA)(t.currentObservers),i=c.next();!i.done;i=c.next())i.value.next(e)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=c.return)&&n.call(c)}finally{if(a)throw a.error}}}}))},t.prototype.error=function(e){var t=this;(0,s.x)((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var a=t.observers;a.length;)a.shift().error(e)}}))},t.prototype.complete=function(){var e=this;(0,s.x)((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,a=this,r=a.hasError,n=a.isStopped,i=a.observers;return r||n?c.Lc:(this.currentObservers=null,i.push(e),new c.w0((function(){t.currentObservers=null,(0,o.P)(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,a=t.hasError,r=t.thrownError,n=t.isStopped;a?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new n.y;return e.source=this,e},t.create=function(e,t){return new f(e,t)},t}(n.y),f=function(e){function t(t,a){var r=e.call(this)||this;return r.destination=t,r.source=a,r}return(0,r.ZT)(t,e),t.prototype.next=function(e){var t,a;null===(a=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===a||a.call(t,e)},t.prototype.error=function(e){var t,a;null===(a=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===a||a.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,a;return null!==(a=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==a?a:c.Lc},t}(d)},90471:(e,t,a)=>{"use strict";a.d(t,{Hp:()=>y,Lv:()=>l});var r=a(2995),n=a(59126),c=a(20124),i=a(64020),o=a(66278);function s(){}var d=f("C",void 0,void 0);function f(e,t,a){return{kind:e,value:t,error:a}}var u=a(90561),b=a(24831),l=function(e){function t(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,(0,c.Nn)(t)&&t.add(a)):a.destination=v,a}return(0,r.ZT)(t,e),t.create=function(e,t,a){return new y(e,t,a)},t.prototype.next=function(e){this.isStopped?x(function(e){return f("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?x(f("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?x(d,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(c.w0),h=Function.prototype.bind;function p(e,t){return h.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){g(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){g(e)}else g(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){g(e)}},e}(),y=function(e){function t(t,a,r){var c,o,s=e.call(this)||this;return(0,n.m)(t)||!t?c={next:null!=t?t:void 0,error:null!=a?a:void 0,complete:null!=r?r:void 0}:s&&i.v.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},c={next:t.next&&p(t.next,o),error:t.error&&p(t.error,o),complete:t.complete&&p(t.complete,o)}):c=t,s.destination=new m(c),s}return(0,r.ZT)(t,e),t}(l);function g(e){i.v.useDeprecatedSynchronousErrorHandling?(0,b.O)(e):(0,o.h)(e)}function x(e,t){var a=i.v.onStoppedNotification;a&&u.z.setTimeout((function(){return a(e,t)}))}var v={closed:!0,next:s,error:function(e){throw e},complete:s}},20124:(e,t,a)=>{"use strict";a.d(t,{Lc:()=>s,w0:()=>o,Nn:()=>d});var r=a(2995),n=a(59126),c=(0,a(5589).d)((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}})),i=a(37990),o=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,a,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var d=(0,r.XA)(s),u=d.next();!u.done;u=d.next())u.value.remove(this)}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else s.remove(this);var b=this.initialTeardown;if((0,n.m)(b))try{b()}catch(e){o=e instanceof c?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var h=(0,r.XA)(l),p=h.next();!p.done;p=h.next()){var m=p.value;try{f(m)}catch(e){o=null!=o?o:[],e instanceof c?o=(0,r.ev)((0,r.ev)([],(0,r.CR)(o)),(0,r.CR)(e.errors)):o.push(e)}}}catch(e){a={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(a)throw a.error}}}if(o)throw new c(o)}},e.prototype.add=function(t){var a;if(t&&t!==this)if(this.closed)f(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(a=this._finalizers)&&void 0!==a?a:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,i.P)(t,e)},e.prototype.remove=function(t){var a=this._finalizers;a&&(0,i.P)(a,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),s=o.EMPTY;function d(e){return e instanceof o||e&&"closed"in e&&(0,n.m)(e.remove)&&(0,n.m)(e.add)&&(0,n.m)(e.unsubscribe)}function f(e){(0,n.m)(e)?e():e.unsubscribe()}},64020:(e,t,a)=>{"use strict";a.d(t,{v:()=>r});var r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},97674:(e,t,a)=>{"use strict";a.d(t,{Xf:()=>p});var r=a(2995),n=a(9361),c=a(51856),i=a(3919),o=a(31053),s=a(41305),d=a(62085),f=a(83651),u=a(42141),b=a(59126),l=a(66278),h=a(34105);function p(e){if(e instanceof i.y)return e;if(null!=e){if((0,o.c)(e))return g=e,new i.y((function(e){var t=g[h.L]();if((0,b.m)(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if((0,n.z)(e))return y=e,new i.y((function(e){for(var t=0;t{"use strict";a.d(t,{x:()=>n});var r=a(2995);function n(e,t,a,r,n){return new c(e,t,a,r,n)}var c=function(e){function t(t,a,r,n,c,i){var o=e.call(this,t)||this;return o.onFinalize=c,o.shouldUnsubscribe=i,o._next=a?function(e){try{a(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return(0,r.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;e.prototype.unsubscribe.call(this),!a&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(a(90471).Lv)},47009:(e,t,a)=>{"use strict";a.d(t,{K:()=>i});var r=a(97674),n=a(67394),c=a(1118);function i(e){return(0,c.e)((function(t,a){var c,o=null,s=!1;o=t.subscribe((0,n.x)(a,void 0,void 0,(function(n){c=(0,r.Xf)(e(n,i(e)(t))),o?(o.unsubscribe(),o=null,c.subscribe(a)):s=!0}))),s&&(o.unsubscribe(),o=null,c.subscribe(a))}))}},77984:(e,t,a)=>{"use strict";a.d(t,{U:()=>c});var r=a(1118),n=a(67394);function c(e,t){return(0,r.e)((function(a,r){var c=0;a.subscribe((0,n.x)(r,(function(a){r.next(e.call(t,a,c++))})))}))}},51986:(e,t,a)=>{"use strict";a.d(t,{_:()=>m});var r=a(2995),n=a(31148),c=a(53874),i=function(e){function t(t,a,r){void 0===t&&(t=1/0),void 0===a&&(a=1/0),void 0===r&&(r=c.l);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=a,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=a===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,a),n}return(0,r.ZT)(t,e),t.prototype.next=function(t){var a=this,r=a.isStopped,n=a._buffer,c=a._infiniteTimeWindow,i=a._timestampProvider,o=a._windowTime;r||(n.push(t),!c&&n.push(i.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),a=this._infiniteTimeWindow,r=this._buffer.slice(),n=0;n{"use strict";a.d(t,{x:()=>c});var r=a(1118),n=a(67394);function c(){return(0,r.e)((function(e,t){var a=null;e._refCount++;var r=(0,n.x)(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)a=null;else{var r=e._connection,n=a;a=null,!r||n&&r!==n||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(a=e.connect())}))}},11348:(e,t,a)=>{"use strict";a.d(t,{b:()=>o});var r=a(59126),n=a(1118),c=a(67394),i=a(69676);function o(e,t,a){var o=(0,r.m)(e)||t||a?{next:e,error:t,complete:a}:e;return o?(0,n.e)((function(e,t){var a;null===(a=o.subscribe)||void 0===a||a.call(o);var r=!0;e.subscribe((0,c.x)(t,(function(e){var a;null===(a=o.next)||void 0===a||a.call(o,e),t.next(e)}),(function(){var e;r=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()}),(function(e){var a;r=!1,null===(a=o.error)||void 0===a||a.call(o,e),t.error(e)}),(function(){var e,t;r&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)})))})):i.y}},53874:(e,t,a)=>{"use strict";a.d(t,{l:()=>r});var r={now:function(){return(r.delegate||Date).now()},delegate:void 0}},90561:(e,t,a)=>{"use strict";a.d(t,{z:()=>n});var r=a(2995),n={setTimeout:function(e,t){for(var a=[],c=2;c{"use strict";a.d(t,{h:()=>r});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},34105:(e,t,a)=>{"use strict";a.d(t,{L:()=>r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},37990:(e,t,a)=>{"use strict";function r(e,t){if(e){var a=e.indexOf(t);0<=a&&e.splice(a,1)}}a.d(t,{P:()=>r})},5589:(e,t,a)=>{"use strict";function r(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}a.d(t,{d:()=>r})},24831:(e,t,a)=>{"use strict";a.d(t,{O:()=>i,x:()=>c});var r=a(64020),n=null;function c(e){if(r.v.useDeprecatedSynchronousErrorHandling){var t=!n;if(t&&(n={errorThrown:!1,error:null}),e(),t){var a=n,c=a.errorThrown,i=a.error;if(n=null,c)throw i}}else e()}function i(e){r.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=e)}},69676:(e,t,a)=>{"use strict";function r(e){return e}a.d(t,{y:()=>r})},9361:(e,t,a)=>{"use strict";a.d(t,{z:()=>r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},41305:(e,t,a)=>{"use strict";a.d(t,{D:()=>n});var r=a(59126);function n(e){return Symbol.asyncIterator&&(0,r.m)(null==e?void 0:e[Symbol.asyncIterator])}},59126:(e,t,a)=>{"use strict";function r(e){return"function"==typeof e}a.d(t,{m:()=>r})},31053:(e,t,a)=>{"use strict";a.d(t,{c:()=>c});var r=a(34105),n=a(59126);function c(e){return(0,n.m)(e[r.L])}},83651:(e,t,a)=>{"use strict";a.d(t,{T:()=>c});var r=a(6149),n=a(59126);function c(e){return(0,n.m)(null==e?void 0:e[r.h])}},51856:(e,t,a)=>{"use strict";a.d(t,{t:()=>n});var r=a(59126);function n(e){return(0,r.m)(null==e?void 0:e.then)}},42141:(e,t,a)=>{"use strict";a.d(t,{L:()=>i,Q:()=>c});var r=a(2995),n=a(59126);function c(e){return(0,r.FC)(this,arguments,(function(){var t,a,n;return(0,r.Jh)(this,(function(c){switch(c.label){case 0:t=e.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,(0,r.qq)(t.read())];case 3:return a=c.sent(),n=a.value,a.done?[4,(0,r.qq)(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,(0,r.qq)(n)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function i(e){return(0,n.m)(null==e?void 0:e.getReader)}},1118:(e,t,a)=>{"use strict";a.d(t,{A:()=>n,e:()=>c});var r=a(59126);function n(e){return(0,r.m)(null==e?void 0:e.lift)}function c(e){return function(t){if(n(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},66278:(e,t,a)=>{"use strict";a.d(t,{h:()=>c});var r=a(64020),n=a(90561);function c(e){n.z.setTimeout((function(){var t=r.v.onUnhandledError;if(!t)throw e;t(e)}))}},62085:(e,t,a)=>{"use strict";function r(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}a.d(t,{z:()=>r})},2995:(e,t,a)=>{"use strict";a.d(t,{CR:()=>s,FC:()=>u,Jh:()=>i,KL:()=>b,XA:()=>o,ZT:()=>n,ev:()=>d,mG:()=>c,qq:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}function c(e,t,a,r){return new(a||(a=Promise))((function(n,c){function i(e){try{s(r.next(e))}catch(e){c(e)}}function o(e){try{s(r.throw(e))}catch(e){c(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,o)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var a,r,n,c,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return c={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(o){return function(s){return function(o){if(a)throw new TypeError("Generator is already executing.");for(;c&&(c=0,o[0]&&(i=0)),i;)try{if(a=1,r&&(n=2&o[0]?r.return:o[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;switch(r=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((n=(n=i.trys).length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i}function d(e,t,a){if(a||2===arguments.length)for(var r,n=0,c=t.length;n1||o(e,t)}))})}function o(e,t){try{(a=n[e](t)).value instanceof f?Promise.resolve(a.value.v).then(s,d):u(c[0][2],a)}catch(e){u(c[0][3],e)}var a}function s(e){o("next",e)}function d(e){o("throw",e)}function u(e,t){e(t),c.shift(),c.length&&o(c[0][0],c[0][1])}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,a=e[Symbol.asyncIterator];return a?a.call(e):(e=o(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(a){t[a]=e[a]&&function(t){return new Promise((function(r,n){!function(e,t,a,r){Promise.resolve(r).then((function(t){e({value:t,done:a})}),t)}(r,n,(t=e[a](t)).done,t.value)}))}}}Object.create,Object.create},77834:(e,t,a)=>{var r=a(48834),n=r.Buffer;function c(e,t){for(var a in e)t[a]=e[a]}function i(e,t,a){return n(e,t,a)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(c(r,t),t.Buffer=i),i.prototype=Object.create(n.prototype),c(n,i),i.from=function(e,t,a){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,a)},i.alloc=function(e,t,a){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof a?r.fill(t,a):r.fill(t):r.fill(0),r},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},27654:(e,t,a)=>{"use strict";var r,n=a(34406),c=a(48834),i=c.Buffer,o={};for(r in c)c.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(o[r]=c[r]);var s=o.Buffer={};for(r in i)i.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=i[r]);if(o.Buffer.prototype=i.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,a){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return i(e,t,a)}),s.alloc||(s.alloc=function(e,t,a){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=i(e);return t&&0!==t.length?"string"==typeof a?r.fill(t,a):r.fill(t):r.fill(0),r}),!o.kStringMaxLength)try{o.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(e){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),e.exports=o},14689:function(e){"use strict";!function(t){const a=2147483647;function r(e){const t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let a=1779033703,r=3144134277,n=1013904242,c=2773480762,i=1359893119,o=2600822924,s=528734635,d=1541459225;const f=new Uint32Array(64);function u(e){let u=0,b=e.length;for(;b>=64;){let l,h,p,m,y,g=a,x=r,v=n,w=c,A=i,k=o,S=s,E=d;for(h=0;h<16;h++)p=u+4*h,f[h]=(255&e[p])<<24|(255&e[p+1])<<16|(255&e[p+2])<<8|255&e[p+3];for(h=16;h<64;h++)l=f[h-2],m=(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10,l=f[h-15],y=(l>>>7|l<<25)^(l>>>18|l<<14)^l>>>3,f[h]=(m+f[h-7]|0)+(y+f[h-16]|0)|0;for(h=0;h<64;h++)m=(((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&k^~A&S)|0)+(E+(t[h]+f[h]|0)|0)|0,y=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&x^g&v^x&v)|0,E=S,S=k,k=A,A=w+m|0,w=v,v=x,x=g,g=m+y|0;a=a+g|0,r=r+x|0,n=n+v|0,c=c+w|0,i=i+A|0,o=o+k|0,s=s+S|0,d=d+E|0,u+=64,b-=64}}u(e);let b,l=e.length%64,h=e.length/536870912|0,p=e.length<<3,m=l<56?56:120,y=e.slice(e.length-l,e.length);for(y.push(128),b=l+1;b>>24&255),y.push(h>>>16&255),y.push(h>>>8&255),y.push(h>>>0&255),y.push(p>>>24&255),y.push(p>>>16&255),y.push(p>>>8&255),y.push(p>>>0&255),u(y),[a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,d>>>24&255,d>>>16&255,d>>>8&255,d>>>0&255]}function n(e,t,a){e=e.length<=64?e:r(e);const n=64+t.length+4,c=new Array(n),i=new Array(64);let o,s=[];for(o=0;o<64;o++)c[o]=54;for(o=0;o=n-4;e--){if(c[e]++,c[e]<=255)return;c[e]=0}}for(;a>=32;)d(),s=s.concat(r(i.concat(r(c)))),a-=32;return a>0&&(d(),s=s.concat(r(i.concat(r(c))).slice(0,a))),s}function c(e,t,a,r,n){let c;for(d(e,16*(2*a-1),n,0,16),c=0;c<2*a;c++)s(e,16*c,n,16),o(n,r),d(n,0,e,t+16*c,16);for(c=0;c>>32-t}function o(e,t){d(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=i(t[0]+t[12],7),t[8]^=i(t[4]+t[0],9),t[12]^=i(t[8]+t[4],13),t[0]^=i(t[12]+t[8],18),t[9]^=i(t[5]+t[1],7),t[13]^=i(t[9]+t[5],9),t[1]^=i(t[13]+t[9],13),t[5]^=i(t[1]+t[13],18),t[14]^=i(t[10]+t[6],7),t[2]^=i(t[14]+t[10],9),t[6]^=i(t[2]+t[14],13),t[10]^=i(t[6]+t[2],18),t[3]^=i(t[15]+t[11],7),t[7]^=i(t[3]+t[15],9),t[11]^=i(t[7]+t[3],13),t[15]^=i(t[11]+t[7],18),t[1]^=i(t[0]+t[3],7),t[2]^=i(t[1]+t[0],9),t[3]^=i(t[2]+t[1],13),t[0]^=i(t[3]+t[2],18),t[6]^=i(t[5]+t[4],7),t[7]^=i(t[6]+t[5],9),t[4]^=i(t[7]+t[6],13),t[5]^=i(t[4]+t[7],18),t[11]^=i(t[10]+t[9],7),t[8]^=i(t[11]+t[10],9),t[9]^=i(t[8]+t[11],13),t[10]^=i(t[9]+t[8],18),t[12]^=i(t[15]+t[14],7),t[13]^=i(t[12]+t[15],9),t[14]^=i(t[13]+t[12],13),t[15]^=i(t[14]+t[13],18);for(let a=0;a<16;++a)e[a]+=t[a]}function s(e,t,a,r){for(let n=0;n=256)return!1}return!0}function u(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function b(e,t,r,i,o,b,l){if(r=u(r,"N"),i=u(i,"r"),o=u(o,"p"),b=u(b,"dkLen"),0===r||0!=(r&r-1))throw new Error("N must be power of 2");if(r>a/128/i)throw new Error("N too large");if(i>a/128/o)throw new Error("r too large");if(!f(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!f(t))throw new Error("salt must be an array or buffer");t=Array.prototype.slice.call(t);let h=n(e,t,128*o*i);const p=new Uint32Array(32*o*i);for(let e=0;eP&&(t=P);for(let e=0;eP&&(t=P);for(let e=0;e>0&255),h.push(p[e]>>8&255),h.push(p[e]>>16&255),h.push(p[e]>>24&255);const a=n(e,h,b);return l&&l(null,1,a),a}l&&T(O)};if(!l)for(;;){const e=O();if(null!=e)return e}O()}const l={scrypt:function(e,t,a,r,n,c,i){return new Promise((function(o,s){let d=0;i&&i(0),b(e,t,a,r,n,c,(function(e,t,a){if(e)s(e);else if(a)i&&1!==d&&i(1),o(new Uint8Array(a));else if(i&&t!==d)return d=t,i(t)}))}))},syncScrypt:function(e,t,a,r,n,c){return new Uint8Array(b(e,t,a,r,n,c))}};e.exports=l}()},97637:(e,t,a)=>{e.exports=a(15880)(a(39930))},39930:(e,t,a)=>{const r=new(0,a(87554).ec)("secp256k1"),n=r.curve,c=n.n.constructor;function i(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let a=new c(t);if(a.cmp(n.p)>=0)return null;a=a.toRed(n.red);let i=a.redSqr().redIMul(a).redIAdd(n.b).redSqrt();return 3===e!==i.isOdd()&&(i=i.redNeg()),r.keyPair({pub:{x:a,y:i}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,a){let i=new c(t),o=new c(a);if(i.cmp(n.p)>=0||o.cmp(n.p)>=0)return null;if(i=i.toRed(n.red),o=o.toRed(n.red),(6===e||7===e)&&o.isOdd()!==(7===e))return null;const s=i.redSqr().redIMul(i);return o.redSqr().redISub(s.redIAdd(n.b)).isZero()?r.keyPair({pub:{x:i,y:o}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function o(e,t){const a=t.encode(null,33===e.length);for(let t=0;t0,privateKeyVerify(e){const t=new c(e);return t.cmp(n.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new c(e),a=n.n.sub(t).umod(n.n).toArrayLike(Uint8Array,"be",32);return e.set(a),0},privateKeyTweakAdd(e,t){const a=new c(t);if(a.cmp(n.n)>=0)return 1;if(a.iadd(new c(e)),a.cmp(n.n)>=0&&a.isub(n.n),a.isZero())return 1;const r=a.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul(e,t){let a=new c(t);if(a.cmp(n.n)>=0||a.isZero())return 1;a.imul(new c(e)),a.cmp(n.n)>=0&&(a=a.umod(n.n));const r=a.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:e=>null===i(e)?1:0,publicKeyCreate(e,t){const a=new c(t);return a.cmp(n.n)>=0||a.isZero()?1:(o(e,r.keyFromPrivate(t).getPublic()),0)},publicKeyConvert(e,t){const a=i(t);return null===a?1:(o(e,a.getPublic()),0)},publicKeyNegate(e,t){const a=i(t);if(null===a)return 1;const r=a.getPublic();return r.y=r.y.redNeg(),o(e,r),0},publicKeyCombine(e,t){const a=new Array(t.length);for(let e=0;e=0)return 2;const s=r.getPublic().add(n.g.mul(a));return s.isInfinity()?2:(o(e,s),0)},publicKeyTweakMul(e,t,a){const r=i(t);return null===r?1:(a=new c(a)).cmp(n.n)>=0||a.isZero()?2:(o(e,r.getPublic().mul(a)),0)},signatureNormalize(e){const t=new c(e.subarray(0,32)),a=new c(e.subarray(32,64));return t.cmp(n.n)>=0||a.cmp(n.n)>=0?1:(1===a.cmp(r.nh)&&e.set(n.n.sub(a).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const a=t.subarray(0,32),r=t.subarray(32,64);if(new c(a).cmp(n.n)>=0)return 1;if(new c(r).cmp(n.n)>=0)return 1;const{output:i}=e;let o=i.subarray(4,37);o[0]=0,o.set(a,1);let s=33,d=0;for(;s>1&&0===o[d]&&!(128&o[d+1]);--s,++d);if(o=o.subarray(d),128&o[0])return 1;if(s>1&&0===o[0]&&!(128&o[1]))return 1;let f=i.subarray(39,72);f[0]=0,f.set(r,1);let u=33,b=0;for(;u>1&&0===f[b]&&!(128&f[b+1]);--u,++b);return f=f.subarray(b),128&f[0]||u>1&&0===f[0]&&!(128&f[1])?1:(e.outputlen=6+s+u,i[0]=48,i[1]=e.outputlen-2,i[2]=2,i[3]=o.length,i.set(o,4),i[4+s]=2,i[5+s]=f.length,i.set(f,6+s),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const a=t[3];if(0===a)return 1;if(5+a>=t.length)return 1;if(2!==t[4+a])return 1;const r=t[5+a];if(0===r)return 1;if(6+a+r!==t.length)return 1;if(128&t[4])return 1;if(a>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[a+6])return 1;if(r>1&&0===t[a+6]&&!(128&t[a+7]))return 1;let i=t.subarray(4,4+a);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let o=t.subarray(6+a);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw new Error("S length is too long");let s=new c(i);s.cmp(n.n)>=0&&(s=new c(0));let d=new c(t.subarray(6+a));return d.cmp(n.n)>=0&&(d=new c(0)),e.set(s.toArrayLike(Uint8Array,"be",32),0),e.set(d.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,a,i,o){if(o){const e=o;o=r=>{const n=e(t,a,null,i,r);if(!(n instanceof Uint8Array&&32===n.length))throw new Error("This is the way");return new c(n)}}const s=new c(a);if(s.cmp(n.n)>=0||s.isZero())return 1;let d;try{d=r.sign(t,a,{canonical:!0,k:o,pers:i})}catch(e){return 1}return e.signature.set(d.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(d.s.toArrayLike(Uint8Array,"be",32),32),e.recid=d.recoveryParam,0},ecdsaVerify(e,t,a){const o={r:e.subarray(0,32),s:e.subarray(32,64)},s=new c(o.r),d=new c(o.s);if(s.cmp(n.n)>=0||d.cmp(n.n)>=0)return 1;if(1===d.cmp(r.nh)||s.isZero()||d.isZero())return 3;const f=i(a);if(null===f)return 2;const u=f.getPublic();return r.verify(t,o,u)?0:3},ecdsaRecover(e,t,a,i){const s={r:t.slice(0,32),s:t.slice(32,64)},d=new c(s.r),f=new c(s.s);if(d.cmp(n.n)>=0||f.cmp(n.n)>=0)return 1;if(d.isZero()||f.isZero())return 2;let u;try{u=r.recoverPubKey(i,s,a)}catch(e){return 2}return o(e,u),0},ecdh(e,t,a,o,s,d,f){const u=i(t);if(null===u)return 1;const b=new c(a);if(b.cmp(n.n)>=0||b.isZero())return 2;const l=u.getPublic().mul(b);if(void 0===s){const t=l.encode(null,!0),a=r.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=a[t]}else{d||(d=new Uint8Array(32));const t=l.getX().toArray("be",32);for(let e=0;e<32;++e)d[e]=t[e];f||(f=new Uint8Array(32));const a=l.getY().toArray("be",32);for(let e=0;e<32;++e)f[e]=a[e];const r=s(d,f,o);if(!(r instanceof Uint8Array&&r.length===e.length))return 2;e.set(r)}return 0}}},15880:e=>{const t="Impossible case. Please create issue.",a="The tweak was out of range or the resulted private key is invalid",r="The tweak was out of range or equal to zero",n="Public Key could not be parsed",c="Public Key serialization error",i="Signature could not be parsed";function o(e,t){if(!e)throw new Error(t)}function s(e,t,a){if(o(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==a)if(Array.isArray(a)){const r=`Expected ${e} to be an Uint8Array with length [${a.join(", ")}]`;o(a.includes(t.length),r)}else{const r=`Expected ${e} to be an Uint8Array with length ${a}`;o(t.length===a,r)}}function d(e){o("Boolean"===u(e),"Expected compressed to be a Boolean")}function f(e=(e=>new Uint8Array(e)),t){return"function"==typeof e&&(e=e(t)),s("output",e,t),e}function u(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=e=>({contextRandomize(t){if(o(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&s("seed",t,32),1===e.contextRandomize(t))throw new Error("Unknow error on context randomization")},privateKeyVerify:t=>(s("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(a){switch(s("private key",a,32),e.privateKeyNegate(a)){case 0:return a;case 1:throw new Error(t)}},privateKeyTweakAdd(t,r){switch(s("private key",t,32),s("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(a)}},privateKeyTweakMul(t,a){switch(s("private key",t,32),s("tweak",a,32),e.privateKeyTweakMul(t,a)){case 0:return t;case 1:throw new Error(r)}},publicKeyVerify:t=>(s("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,a=!0,r){switch(s("private key",t,32),d(a),r=f(r,a?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(c)}},publicKeyConvert(t,a=!0,r){switch(s("public key",t,[33,65]),d(a),r=f(r,a?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(n);case 2:throw new Error(c)}},publicKeyNegate(a,r=!0,i){switch(s("public key",a,[33,65]),d(r),i=f(i,r?33:65),e.publicKeyNegate(i,a)){case 0:return i;case 1:throw new Error(n);case 2:throw new Error(t);case 3:throw new Error(c)}},publicKeyCombine(t,a=!0,r){o(Array.isArray(t),"Expected public keys to be an Array"),o(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)s("public key",e,[33,65]);switch(d(a),r=f(r,a?33:65),e.publicKeyCombine(r,t)){case 0:return r;case 1:throw new Error(n);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(c)}},publicKeyTweakAdd(t,r,c=!0,i){switch(s("public key",t,[33,65]),s("tweak",r,32),d(c),i=f(i,c?33:65),e.publicKeyTweakAdd(i,t,r)){case 0:return i;case 1:throw new Error(n);case 2:throw new Error(a)}},publicKeyTweakMul(t,a,c=!0,i){switch(s("public key",t,[33,65]),s("tweak",a,32),d(c),i=f(i,c?33:65),e.publicKeyTweakMul(i,t,a)){case 0:return i;case 1:throw new Error(n);case 2:throw new Error(r)}},signatureNormalize(t){switch(s("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(i)}},signatureExport(a,r){s("signature",a,64);const n={output:r=f(r,72),outputlen:72};switch(e.signatureExport(n,a)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(i);case 2:throw new Error(t)}},signatureImport(a,r){switch(s("signature",a),r=f(r,64),e.signatureImport(r,a)){case 0:return r;case 1:throw new Error(i);case 2:throw new Error(t)}},ecdsaSign(a,r,n={},c){s("message",a,32),s("private key",r,32),o("Object"===u(n),"Expected options to be an Object"),void 0!==n.data&&s("options.data",n.data),void 0!==n.noncefn&&o("Function"===u(n.noncefn),"Expected options.noncefn to be a Function");const i={signature:c=f(c,64),recid:null};switch(e.ecdsaSign(i,a,r,n.data,n.noncefn)){case 0:return i;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(t)}},ecdsaVerify(t,a,r){switch(s("signature",t,64),s("message",a,32),s("public key",r,[33,65]),e.ecdsaVerify(t,a,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(i);case 2:throw new Error(n)}},ecdsaRecover(a,r,n,c=!0,b){switch(s("signature",a,64),o("Number"===u(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),s("message",n,32),d(c),b=f(b,c?33:65),e.ecdsaRecover(b,a,r,n)){case 0:return b;case 1:throw new Error(i);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(t)}},ecdh(t,a,r={},c){switch(s("public key",t,[33,65]),s("private key",a,32),o("Object"===u(r),"Expected options to be an Object"),void 0!==r.data&&s("options.data",r.data),void 0!==r.hashfn?(o("Function"===u(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&s("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&s("options.ybuf",r.ybuf,32),s("output",c)):c=f(c,32),e.ecdh(c,t,a,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return c;case 1:throw new Error(n);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}})},73327:(e,t,a)=>{var r=a(77834).Buffer;function n(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var a=this._block,n=this._blockSize,c=e.length,i=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var r=(4294967295&a)>>>0,n=(a-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var c=this._hash();return e?c.toString(e):c},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},9065:(e,t,a)=>{var r=e.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=a(8820),r.sha1=a(17885),r.sha224=a(58321),r.sha256=a(74424),r.sha384=a(90213),r.sha512=a(55596)},8820:(e,t,a)=>{var r=a(91285),n=a(73327),c=a(77834).Buffer,i=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}function d(e){return e<<30|e>>>2}function f(e,t,a,r){return 0===e?t&a|~t&r:2===e?t&a|t&r|a&r:t^a^r}r(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,a=this._w,r=0|this._a,n=0|this._b,c=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)a[u]=e.readInt32BE(4*u);for(;u<80;++u)a[u]=a[u-3]^a[u-8]^a[u-14]^a[u-16];for(var b=0;b<80;++b){var l=~~(b/20),h=0|((t=r)<<5|t>>>27)+f(l,n,c,o)+s+a[b]+i[l];s=o,o=c,c=d(n),n=r,r=h}this._a=r+this._a|0,this._b=n+this._b|0,this._c=c+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=c.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=s},17885:(e,t,a)=>{var r=a(91285),n=a(73327),c=a(77834).Buffer,i=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}function d(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function u(e,t,a,r){return 0===e?t&a|~t&r:2===e?t&a|t&r|a&r:t^a^r}r(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,a=this._w,r=0|this._a,n=0|this._b,c=0|this._c,o=0|this._d,s=0|this._e,b=0;b<16;++b)a[b]=e.readInt32BE(4*b);for(;b<80;++b)a[b]=(t=a[b-3]^a[b-8]^a[b-14]^a[b-16])<<1|t>>>31;for(var l=0;l<80;++l){var h=~~(l/20),p=d(r)+u(h,n,c,o)+s+a[l]+i[h]|0;s=o,o=c,c=f(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=c+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=c.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=s},58321:(e,t,a)=>{var r=a(91285),n=a(74424),c=a(73327),i=a(77834).Buffer,o=new Array(64);function s(){this.init(),this._w=o,c.call(this,64,56)}r(s,n),s.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},s.prototype._hash=function(){var e=i.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=s},74424:(e,t,a)=>{var r=a(91285),n=a(73327),c=a(77834).Buffer,i=[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],o=new Array(64);function s(){this.init(),this._w=o,n.call(this,64,56)}function d(e,t,a){return a^e&(t^a)}function f(e,t,a){return e&t|a&(e|t)}function u(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function b(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}r(s,n),s.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},s.prototype._update=function(e){for(var t,a=this._w,r=0|this._a,n=0|this._b,c=0|this._c,o=0|this._d,s=0|this._e,h=0|this._f,p=0|this._g,m=0|this._h,y=0;y<16;++y)a[y]=e.readInt32BE(4*y);for(;y<64;++y)a[y]=0|(((t=a[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+a[y-7]+l(a[y-15])+a[y-16];for(var g=0;g<64;++g){var x=m+b(s)+d(s,h,p)+i[g]+a[g]|0,v=u(r)+f(r,n,c)|0;m=p,p=h,h=s,s=o+x|0,o=c,c=n,n=r,r=x+v|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=c+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=h+this._f|0,this._g=p+this._g|0,this._h=m+this._h|0},s.prototype._hash=function(){var e=c.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=s},90213:(e,t,a)=>{var r=a(91285),n=a(55596),c=a(73327),i=a(77834).Buffer,o=new Array(160);function s(){this.init(),this._w=o,c.call(this,128,112)}r(s,n),s.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},s.prototype._hash=function(){var e=i.allocUnsafe(48);function t(t,a,r){e.writeInt32BE(t,r),e.writeInt32BE(a,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s},55596:(e,t,a)=>{var r=a(91285),n=a(73327),c=a(77834).Buffer,i=[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],o=new Array(160);function s(){this.init(),this._w=o,n.call(this,128,112)}function d(e,t,a){return a^e&(t^a)}function f(e,t,a){return e&t|a&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function b(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 h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(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 y(e,t){return e>>>0>>0?1:0}r(s,n),s.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},s.prototype._update=function(e){for(var t=this._w,a=0|this._ah,r=0|this._bh,n=0|this._ch,c=0|this._dh,o=0|this._eh,s=0|this._fh,g=0|this._gh,x=0|this._hh,v=0|this._al,w=0|this._bl,A=0|this._cl,k=0|this._dl,S=0|this._el,E=0|this._fl,I=0|this._gl,M=0|this._hl,C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){var P=t[C-30],T=t[C-30+1],O=l(P,T),N=h(T,P),R=p(P=t[C-4],T=t[C-4+1]),B=m(T,P),D=t[C-14],V=t[C-14+1],L=t[C-32],j=t[C-32+1],U=N+V|0,H=O+D+y(U,N)|0;H=(H=H+R+y(U=U+B|0,B)|0)+L+y(U=U+j|0,j)|0,t[C]=H,t[C+1]=U}for(var F=0;F<160;F+=2){H=t[F],U=t[F+1];var z=f(a,r,n),q=f(v,w,A),K=u(a,v),X=u(v,a),W=b(o,S),G=b(S,o),Z=i[F],J=i[F+1],Y=d(o,s,g),Q=d(S,E,I),_=M+G|0,$=x+W+y(_,M)|0;$=($=($=$+Y+y(_=_+Q|0,Q)|0)+Z+y(_=_+J|0,J)|0)+H+y(_=_+U|0,U)|0;var ee=X+q|0,te=K+z+y(ee,X)|0;x=g,M=I,g=s,I=E,s=o,E=S,o=c+$+y(S=k+_|0,k)|0,c=n,k=A,n=r,A=w,r=a,w=v,a=$+te+y(v=_+ee|0,_)|0}this._al=this._al+v|0,this._bl=this._bl+w|0,this._cl=this._cl+A|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+E|0,this._gl=this._gl+I|0,this._hl=this._hl+M|0,this._ah=this._ah+a+y(this._al,v)|0,this._bh=this._bh+r+y(this._bl,w)|0,this._ch=this._ch+n+y(this._cl,A)|0,this._dh=this._dh+c+y(this._dl,k)|0,this._eh=this._eh+o+y(this._el,S)|0,this._fh=this._fh+s+y(this._fl,E)|0,this._gh=this._gh+g+y(this._gl,I)|0,this._hh=this._hh+x+y(this._hl,M)|0},s.prototype._hash=function(){var e=c.allocUnsafe(64);function t(t,a,r){e.writeInt32BE(t,r),e.writeInt32BE(a,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s},23729:(e,t,a)=>{var r=a(98595),n=a(88120),c=[a(30225)];e.exports=r.createStore(n,c)},30225:(e,t,a)=>{e.exports=function(){return a(35414),{}}},35414:()=>{"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,t){var a,r,n,c,i,o=gap,s=t[e];switch(s&&"object"==typeof s&&"function"==typeof s.toJSON&&(s=s.toJSON(e)),"function"==typeof rep&&(s=rep.call(t,e,s)),typeof s){case"string":return quote(s);case"number":return isFinite(s)?String(s):"null";case"boolean":case"null":return String(s);case"object":if(!s)return"null";if(gap+=indent,i=[],"[object Array]"===Object.prototype.toString.apply(s)){for(c=s.length,a=0;a{var r=a(49511),n=r.slice,c=r.pluck,i=r.each,o=r.bind,s=r.create,d=r.isList,f=r.isFunction,u=r.isObject;e.exports={createStore:l};var b={version:"2.0.12",enabled:!1,get:function(e,t){var a=this.storage.read(this._namespacePrefix+e);return this._deserialize(a,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each((function(a,r){e.call(t,t._deserialize(a),(r||"").replace(t._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return l.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return l(this.storage,this.plugins,e)}};function l(e,t,a){a||(a=""),e&&!d(e)&&(e=[e]),t&&!d(t)&&(t=[t]);var r=a?"__storejs_"+a+"_":"",l=a?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h={_namespacePrefix:r,_namespaceRegexp:l,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var a=e.read(t)===t;return e.remove(t),a}catch(e){return!1}},_assignPluginFnProp:function(e,t){var a=this[t];this[t]=function(){var t=n(arguments,0),r=this;function c(){if(a)return i(arguments,(function(e,a){t[a]=e})),a.apply(r,t)}var o=[c].concat(t);return e.apply(r,o)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var a="";try{a=JSON.parse(e)}catch(t){a=e}return void 0!==a?a:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(d(e))i(e,(function(e){t._addPlugin(e)}));else if(!c(this.plugins,(function(t){return e===t}))){if(this.plugins.push(e),!f(e))throw new Error("Plugins must be function values that return objects");var a=e.call(this);if(!u(a))throw new Error("Plugins must return an object of function properties");i(a,(function(a,r){if(!f(a))throw new Error("Bad plugin property: "+r+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(a,r)}))}},addStorage:function(e){!function(){var e="undefined"==typeof console?null:console;e&&(e.warn?e.warn:e.log).apply(e,arguments)}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},p=s(h,b,{plugins:[]});return p.raw={},i(p,(function(e,t){f(e)&&(p.raw[t]=o(p,e))})),i(e,(function(e){p._addStorage(e)})),i(t,(function(e){p._addPlugin(e)})),p}},49511:(e,t,a)=>{var r=Object.assign?Object.assign:function(e,t,a,r){for(var n=1;n{e.exports=[a(19367),a(50026),a(70240),a(65362),a(90109),a(71884)]},65362:(e,t,a)=>{var r=a(49511),n=r.Global,c=r.trim;e.exports={name:"cookieStorage",read:function(e){if(!e||!d(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(i.cookie.replace(new RegExp(t),"$1"))},write:function(e,t){e&&(i.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")},each:o,remove:s,clearAll:function(){o((function(e,t){s(t)}))}};var i=n.document;function o(e){for(var t=i.cookie.split(/; ?/g),a=t.length-1;a>=0;a--)if(c(t[a])){var r=t[a].split("="),n=unescape(r[0]);e(unescape(r[1]),n)}}function s(e){e&&d(e)&&(i.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function d(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(i.cookie)}},19367:(e,t,a)=>{var r=a(49511).Global;function n(){return r.localStorage}function c(e){return n().getItem(e)}e.exports={name:"localStorage",read:c,write:function(e,t){return n().setItem(e,t)},each:function(e){for(var t=n().length-1;t>=0;t--){var a=n().key(t);e(c(a),a)}},remove:function(e){return n().removeItem(e)},clearAll:function(){return n().clear()}}},71884:e=>{e.exports={name:"memoryStorage",read:function(e){return t[e]},write:function(e,a){t[e]=a},each:function(e){for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},remove:function(e){delete t[e]},clearAll:function(e){t={}}};var t={}},50026:(e,t,a)=>{var r=a(49511).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return n[e]},write:function(e,t){n[e]=t},each:c,remove:function(e){return n.removeItem(e)},clearAll:function(){c((function(e,t){delete n[e]}))}};var n=r.globalStorage;function c(e){for(var t=n.length-1;t>=0;t--){var a=n.key(t);e(n[a],a)}}},70240:(e,t,a)=>{var r=a(49511).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(!o){var a=d(e);i((function(e){e.setAttribute(a,t),e.save(n)}))}},read:function(e){if(!o){var t=d(e),a=null;return i((function(e){a=e.getAttribute(t)})),a}},each:function(e){i((function(t){for(var a=t.XMLDocument.documentElement.attributes,r=a.length-1;r>=0;r--){var n=a[r];e(t.getAttribute(n.name),n.name)}}))},remove:function(e){var t=d(e);i((function(e){e.removeAttribute(t),e.save(n)}))},clearAll:function(){i((function(e){var t=e.XMLDocument.documentElement.attributes;e.load(n);for(var a=t.length-1;a>=0;a--)e.removeAttribute(t[a].name);e.save(n)}))}};var n="storejs",c=r.document,i=function(){if(!c||!c.documentElement||!c.documentElement.addBehavior)return null;var e,t,a;try{(t=new ActiveXObject("htmlfile")).open(),t.write('