PageSourceSearch

https://asi1.ai/_next/static/chunks/72792-ce3d7a1f77dc7470.js?dpl=dpl_2e1aosKWKmxHYvqTA1oYSNDg6gKU

js asi1.ai collected 2026-10-03 23:46:30 UTC 1,753,929 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="eba28332-c545-4e32-9f59-fce0610cc35f",e._sentryDebugIdIdentifier="sentry-dbid-eba28332-c545-4e32-9f59-fce0610cc35f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72792],{151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketClient=t.instanceOfRpcStreamingClient=t.HttpClient=t.HttpBatchClient=void 0;var n=r(52956);Object.defineProperty(t,"HttpBatchClient",{enumerable:!0,get:function(){return n.HttpBatchClient}});var i=r(98558);Object.defineProperty(t,"HttpClient",{enumerable:!0,get:function(){return i.HttpClient}});var o=r(86091);Object.defineProperty(t,"instanceOfRpcStreamingClient",{enumerable:!0,get:function(){return o.instanceOfRpcStreamingClient}});var a=r(90071);Object.defineProperty(t,"WebsocketClient",{enumerable:!0,get:function(){return a.WebsocketClient}})},251:(e,t,r)=>{e.exports=r(31291)},551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.smallIntToApi=t.apiToBigInt=t.apiToSmallInt=void 0;let n=r(73297),i=r(20865);t.apiToSmallInt=function(e){return("number"==typeof e?new n.Int53(e):n.Int53.fromString(e)).toNumber()},t.apiToBigInt=function(e){if((0,i.assertString)(e),!e.match(/^-?[0-9]+$/))throw Error("Invalid string format");return BigInt(e)},t.smallIntToApi=function(e){return new n.Int53(e).toString()}},649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Responses=t.Params=void 0;var n=r(62929);Object.defineProperty(t,"Params",{enumerable:!0,get:function(){return n.Params}});var i=r(85485);Object.defineProperty(t,"Responses",{enumerable:!0,get:function(){return i.Responses}})},662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropDuplicates=void 0,t.dropDuplicates=function(e){return t=>{let r=new Set;return t.filter(t=>!r.has(e(t))).debug(t=>r.add(e(t)))}}},789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOfflineDirectSigner=void 0,t.isOfflineDirectSigner=function(e){return void 0!==e.signDirect}},833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Responses=t.decodeValidatorInfo=t.decodeValidatorGenesis=t.decodeValidatorUpdate=t.decodeEvent=void 0;let n=r(25918),i=r(63688),o=r(74194),a=r(551),s=r(62710),d=r(25749),l=r(24810);function c(e){return{data:e.data,lastBlockHeight:(0,d.may)(a.apiToSmallInt,e.last_block_height),lastBlockAppHash:(0,d.may)(n.fromBase64,e.last_block_app_hash)}}function u(e){return{ops:e.ops.map(e=>({type:e.type,key:(0,n.fromBase64)(e.key),data:(0,n.fromBase64)(e.data)}))}}function p(e){return{key:(0,n.fromBase64)((0,d.assertString)(e.key??"")),value:(0,n.fromBase64)((0,d.assertString)(e.value??"")),proof:(0,d.may)(u,e.proofOps),height:(0,d.may)(a.apiToSmallInt,e.height),code:(0,d.may)(a.apiToSmallInt,e.code),codespace:(0,d.assertString)(e.codespace??""),index:(0,d.may)(a.apiToSmallInt,e.index),log:e.log,info:(0,d.assertString)(e.info??"")}}function f(e){return{key:(0,d.assertNotEmpty)(e.key),value:e.value??""}}function h(e){return(0,d.assertArray)(e).map(f)}function g(e){return{type:e.type,attributes:e.attributes?h(e.attributes):[]}}function m(e){return(0,d.assertArray)(e).map(g)}function y(e){return{code:(0,a.apiToSmallInt)((0,d.assertNumber)(e.code??0)),codespace:e.codespace,log:e.log,data:(0,d.may)(n.fromBase64,e.data),events:e.events?m(e.events):[],gasWanted:(0,a.apiToBigInt)(e.gas_wanted??"0"),gasUsed:(0,a.apiToBigInt)(e.gas_used??"0")}}function b(e){if("Sum"in e){let[[t,r]]=Object.entries(e.Sum.value);return(0,i.assert)("ed25519"===t||"secp256k1"===t,`unknown pubkey type: ${t}`),{algorithm:t,data:(0,n.fromBase64)((0,d.assertNotEmpty)(r))}}switch(e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.value))};default:throw Error(`unknown pubkey type: ${e.type}`)}}function v(e){return{maxBytes:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_bytes)),maxGas:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_gas))}}function S(e){return{maxAgeNumBlocks:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_age_num_blocks)),maxAgeDuration:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_age_duration))}}function A(e){return{block:v((0,d.assertObject)(e.block)),evidence:S((0,d.assertObject)(e.evidence))}}function w(e){return{pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)(e.power??"0")}}function _(e){return{height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),results:(e.txs_results||[]).map(y),validatorUpdates:(e.validator_updates||[]).map(w),consensusUpdates:(0,d.may)(A,e.consensus_param_updates),beginBlockEvents:m(e.begin_block_events||[]),endBlockEvents:m(e.end_block_events||[])}}function P(e){return{hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),parts:{total:(0,d.assertNotEmpty)(e.parts.total),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.parts.hash))}}}function k(e){return{block:(0,a.apiToSmallInt)(e.block),app:(0,a.apiToSmallInt)(e.app??0)}}function R(e){return{version:k(e.version),chainId:(0,d.assertNotEmpty)(e.chain_id),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),time:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.time)),lastBlockId:e.last_block_id.hash?P(e.last_block_id):null,lastCommitHash:(0,n.fromHex)((0,d.assertSet)(e.last_commit_hash)),dataHash:(0,n.fromHex)((0,d.assertSet)(e.data_hash)),validatorsHash:(0,n.fromHex)((0,d.assertSet)(e.validators_hash)),nextValidatorsHash:(0,n.fromHex)((0,d.assertSet)(e.next_validators_hash)),consensusHash:(0,n.fromHex)((0,d.assertSet)(e.consensus_hash)),appHash:(0,n.fromHex)((0,d.assertSet)(e.app_hash)),lastResultsHash:(0,n.fromHex)((0,d.assertSet)(e.last_results_hash)),evidenceHash:(0,n.fromHex)((0,d.assertSet)(e.evidence_hash)),proposerAddress:(0,n.fromHex)((0,d.assertNotEmpty)(e.proposer_address))}}function O(e){return{blockId:P(e.block_id),blockSize:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.block_size)),header:R(e.header),numTxs:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.num_txs))}}function I(e){return{lastHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.last_height)),blockMetas:(0,d.assertArray)(e.block_metas).map(O)}}function B(e){return{...y(e),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash))}}function x(e){let t=e.tx_result?y(e.tx_result):void 0;return{height:(0,a.apiToSmallInt)(e.height),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),checkTx:y((0,d.assertObject)(e.check_tx)),deliverTx:t,txResult:t}}function E(e){return(0,i.assert)(e in s.BlockIdFlag),e}function T(e){return{blockIdFlag:E(e.block_id_flag),validatorAddress:e.validator_address?(0,n.fromHex)(e.validator_address):void 0,timestamp:e.timestamp?(0,o.fromRfc3339WithNanoseconds)(e.timestamp):void 0,signature:e.signature?(0,n.fromBase64)(e.signature):void 0}}function N(e){return{blockId:P((0,d.assertObject)(e.block_id)),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),round:(0,a.apiToSmallInt)(e.round),signatures:(0,d.assertArray)(e.signatures).map(T)}}function C(e){return{canonical:(0,d.assertBoolean)(e.canonical),header:R(e.signed_header.header),commit:N(e.signed_header.commit)}}function M(e){return{address:(0,n.fromHex)((0,d.assertNotEmpty)(e.address)),pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)((0,d.assertNotEmpty)(e.power))}}function U(e){return{genesisTime:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.genesis_time)),chainId:(0,d.assertNotEmpty)(e.chain_id),consensusParams:A(e.consensus_params),validators:e.validators?(0,d.assertArray)(e.validators).map(M):[],appHash:(0,n.fromHex)((0,d.assertSet)(e.app_hash)),appState:e.app_state}}function D(e){return{pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)((0,d.assertNotEmpty)(e.voting_power)),address:(0,n.fromHex)((0,d.assertNotEmpty)(e.address)),proposerPriority:e.proposer_priority?(0,a.apiToSmallInt)(e.proposer_priority):void 0}}function J(e){return{id:(0,n.fromHex)((0,d.assertNotEmpty)(e.id)),listenAddr:(0,d.assertNotEmpty)(e.listen_addr),network:(0,d.assertNotEmpty)(e.network),version:(0,d.assertString)(e.version),channels:(0,d.assertString)(e.channels),moniker:(0,d.assertNotEmpty)(e.moniker),other:(0,d.dictionaryToStringMap)(e.other),protocolVersion:{app:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.app)),block:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.block)),p2p:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.p2p))}}}function H(e){let t=e.earliest_block_height?(0,a.apiToSmallInt)(e.earliest_block_height):void 0,r=e.earliest_block_time?(0,o.fromRfc3339WithNanoseconds)(e.earliest_block_time):void 0;return{earliestAppHash:e.earliest_app_hash?(0,n.fromHex)(e.earliest_app_hash):void 0,earliestBlockHash:e.earliest_block_hash?(0,n.fromHex)(e.earliest_block_hash):void 0,earliestBlockHeight:t||void 0,earliestBlockTime:r?.getTime()?r:void 0,latestBlockHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.latest_block_hash)),latestAppHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.latest_app_hash)),latestBlockTime:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.latest_block_time)),latestBlockHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.latest_block_height)),catchingUp:(0,d.assertBoolean)(e.catching_up)}}function V(e){return{nodeInfo:J(e.node_info),syncInfo:H(e.sync_info),validatorInfo:D(e.validator_info)}}function q(e){return{data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.data)),rootHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.root_hash)),proof:{total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.proof.total)),index:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.proof.index)),leafHash:(0,n.fromBase64)((0,d.assertNotEmpty)(e.proof.leaf_hash)),au
1nts:(0,d.assertArray)(e.proof.aunts).map(n.fromBase64)}}}function L(e){return{tx:(0,n.fromBase64)((0,d.assertNotEmpty)(e.tx)),result:y((0,d.assertObject)(e.tx_result)),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),index:(0,a.apiToSmallInt)((0,d.assertNumber)(e.index)),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),proof:(0,d.may)(q,e.proof)}}function j(e){return{totalCount:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_count)),txs:(0,d.assertArray)(e.txs).map(L)}}function F(e){let t=(0,n.fromBase64)((0,d.assertNotEmpty)(e.tx));return{tx:t,hash:(0,l.hashTx)(t),result:y(e.result),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height))}}function W(e){return{blockHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.block_height)),validators:(0,d.assertArray)(e.validators).map(D),count:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.count)),total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total))}}function Q(e){return{header:R((0,d.assertObject)(e.header)),lastCommit:e.last_commit.block_id.hash?N((0,d.assertObject)(e.last_commit)):null,txs:e.data.txs?(0,d.assertArray)(e.data.txs).map(n.fromBase64):[],evidence:e.evidence?.evidence??[]}}function G(e){return{blockId:P(e.block_id),block:Q(e.block)}}function z(e){return{totalCount:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_count)),blocks:(0,d.assertArray)(e.blocks).map(G)}}function K(e){return{total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total)),totalBytes:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_bytes))}}t.decodeEvent=g,t.decodeValidatorUpdate=w,t.decodeValidatorGenesis=M,t.decodeValidatorInfo=D;class Y{static decodeAbciInfo(e){return c((0,d.assertObject)(e.result.response))}static decodeAbciQuery(e){return p((0,d.assertObject)(e.result.response))}static decodeBlock(e){return G(e.result)}static decodeBlockResults(e){return _(e.result)}static decodeBlockSearch(e){return z(e.result)}static decodeBlockchain(e){return I(e.result)}static decodeBroadcastTxSync(e){return B(e.result)}static decodeBroadcastTxAsync(e){return Y.decodeBroadcastTxSync(e)}static decodeBroadcastTxCommit(e){return x(e.result)}static decodeCommit(e){return C(e.result)}static decodeGenesis(e){return U((0,d.assertObject)(e.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(e){return K(e.result)}static decodeStatus(e){return V(e.result)}static decodeNewBlockEvent(e){return Q(e.data.value.block)}static decodeNewBlockHeaderEvent(e){return R(e.data.value.header)}static decodeTxEvent(e){return F(e.data.value.TxResult)}static decodeTx(e){return L(e.result)}static decodeTxSearch(e){return j(e.result)}static decodeValidators(e){return W(e.result)}}t.Responses=Y},954:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(15940).call(n,i)},1065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsgSendEncodeObject=t.bankTypes=void 0;let n=r(13942);t.bankTypes=[["/cosmos.bank.v1beta1.MsgMultiSend",n.MsgMultiSend],["/cosmos.bank.v1beta1.MsgSend",n.MsgSend]],t.isMsgSendEncodeObject=function(e){return"/cosmos.bank.v1beta1.MsgSend"===e.typeUrl}},1091:e=>{"use strict";e.exports=Object},1486:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},1809:(e,t,r)=>{"use strict";var n=r(8495),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},d=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};function l(e){return"[object Array]"===i.call(e)}e.exports=function(e,t,r){var i;if(!n(t))throw TypeError("iterator must be a function");arguments.length>=3&&(i=r),l(e)?a(e,t,i):"string"==typeof e?s(e,t,i):d(e,t,i)}},1863:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.lastValue=t.asArray=t.countStream=t.Reducer=void 0;class r{constructor(e,t,r){this.stream=e,this.reducer=t,this.state=r,this.completed=new Promise((e,t)=>{let r=this.stream.subscribe({next:e=>{this.state=this.reducer(this.state,e)},complete:()=>{e(),r.unsubscribe()},error:e=>{t(e),r.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}}function n(e,t){return e+1}function i(e,t){return[...e,t]}function o(e,t){return t}t.Reducer=r,t.countStream=function(e){return new r(e,n,0)},t.asArray=function(e){return new r(e,i,[])},t.lastValue=function(e){return new r(e,o,void 0)}},2479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupFeegrantExtension=void 0;let n=r(39942),i=r(51324);t.setupFeegrantExtension=function(e){let t=(0,i.createProtobufRpcClient)(e),r=new n.QueryClientImpl(t);return{feegrant:{allowance:async(e,t)=>await r.Allowance({granter:e,grantee:t}),allowances:async(e,t)=>await r.Allowances({grantee:e,pagination:(0,i.createPagination)(t)})}}}},2496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.Minter=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{inflation:"",annualProvisions:""}}function a(){return{mintDenom:"",inflationRateChange:"",inflationMax:"",inflationMin:"",goalBonded:"",blocksPerYear:BigInt(0)}}t.protobufPackage="cosmos.mint.v1beta1",t.Minter={typeUrl:"/cosmos.mint.v1beta1.Minter",encode:(e,t=n.BinaryWriter.create())=>(""!==e.inflation&&t.uint32(10).string(e.inflation),""!==e.annualProvisions&&t.uint32(18).string(e.annualProvisions),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.inflation=r.string();break;case 2:a.annualProvisions=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.inflation)&&(t.inflation=String(e.inflation)),(0,i.isSet)(e.annualProvisions)&&(t.annualProvisions=String(e.annualProvisions)),t},toJSON(e){let t={};return void 0!==e.inflation&&(t.inflation=e.inflation),void 0!==e.annualProvisions&&(t.annualProvisions=e.annualProvisions),t},fromPartial(e){let t=o();return t.inflation=e.inflation??"",t.annualProvisions=e.annualProvisions??"",t}},t.Params={typeUrl:"/cosmos.mint.v1beta1.Params",encode:(e,t=n.BinaryWriter.create())=>(""!==e.mintDenom&&t.uint32(10).string(e.mintDenom),""!==e.inflationRateChange&&t.uint32(18).string(e.inflationRateChange),""!==e.inflationMax&&t.uint32(26).string(e.inflationMax),""!==e.inflationMin&&t.uint32(34).string(e.inflationMin),""!==e.goalBonded&&t.uint32(42).string(e.goalBonded),e.blocksPerYear!==BigInt(0)&&t.uint32(48).uint64(e.blocksPerYear),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.mintDenom=r.string();break;case 2:o.inflationRateChange=r.string();break;case 3:o.inflationMax=r.string();break;case 4:o.inflationMin=r.string();break;case 5:o.goalBonded=r.string();break;case 6:o.blocksPerYear=r.uint64();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=a();return(0,i.isSet)(e.mintDenom)&&(t.mintDenom=String(e.mintDenom)),(0,i.isSet)(e.inflationRateChange)&&(t.inflationRateChange=String(e.inflationRateChange)),(0,i.isSet)(e.inflationMax)&&(t.inflationMax=String(e.inflationMax)),(0,i.isSet)(e.inflationMin)&&(t.inflationMin=String(e.inflationMin)),(0,i.isSet)(e.goalBonded)&&(t.goalBonded=String(e.goalBonded)),(0,i.isSet)(e.blocksPerYear)&&(t.blocksPerYear=BigInt(e.blocksPerYear.toString())),t},toJSON(e){let t={};return void 0!==e.mintDenom&&(t.mintDenom=e.mintDenom),void 0!==e.inflationRateChange&&(t.inflationRateChange=e.inflationRateChange),void 0!==e.inflationMax&&(t.inflationMax=e.inflationMax),void 0!==e.inflationMin&&(t.inflationMin=e.inflationMin),void 0!==e.goalBonded&&(t.goalBonded=e.goalBonded),void 0!==e.blocksPerYear&&(t.blocksPerYear=(e.blocksPerYear||BigInt(0)).toString()),t},fromPartial(e){let t=a();return t.mintDenom=e.mintDenom??"",t.inflationRateChange=e.inflationRateChange??"",t.inflationMax=e.inflationMax??"",t.inflationMin=e.inflationMin??"",t.goalBonded=e.goalBonded??"",void 0!==e.blocksPerYear&&null!==e.blocksPerYear&&(t.blocksPerYear=BigInt(e.blocksPerYear.toString())),t}}},2869:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.createVestingAminoConverters=t.isAminoMsgCreateVestingAccount=void 0,t.isAminoMsgCreateVestingAccount=function(e){return"cosmos-sdk/MsgCreateVestingAccount"===e.type},t.createVestingAminoConverters=function(){return{"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":{aminoType:"cosmos-sdk/MsgCreateVestingAccount",toAmino:({fromAddress:e,toAddress:t,amount:r,endTime:n,delayed:i})=>({from_address:e,to_address:t,amount:[...r],end_time:n.toString(),delayed:i}),fromAmino:({from_address:e,to_address:t,amount:r,end_time:n,delayed:i})=>({fromAddress:e,toAddress:t,amount:[...r],endTime:BigInt(n),delayed:i})}}}},3039:(e,t,r)=>{"use strict";function n(e,t,r){let n=t.split("|").map(e=>e.trim());for(let r=0;r<n.length;r++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}let i=Error(`invalid value for type ${t}`);throw i.code="INVALID_ARGUMENT",i.argument=`value.${r}`,i.value=e,i}async function i(e){let t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,r,n)=>(e[t[n]]=r,e),{})}function o(e,t,r){for(let i in t){let o=t[i],a=r?r[i]:null;a&&n(o,a,i),Object.defineProperty(e,i,{enumerable:!0,value:o,writable:!1})}}r.d(t,{k:()=>i,n:()=>o})},3832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=t.supportedAlgorithms=t.executeKdf=t.cosmjsSalt=void 0;let n=r(97470);async function i(e,r){if("argon2id"===r.algorithm){let i=r.params;if(!(0,n.isArgon2idOptions)(i))throw Error("Invalid format of argon2id params");return n.Argon2id.execute(e,t.cosmjsSalt,i)}throw Error("Unsupported KDF algorithm")}async function o(e,r,i){if(i.algorithm===t.supportedAlgorithms.xchacha20poly1305Ietf){let t=n.Random.getBytes(n.xchacha20NonceLength);return new Uint8Array([...t,...await n.Xchacha20poly1305Ietf.encrypt(e,r,t)])}throw Error(`Unsupported encryption algorithm: '${i.algorithm}'`)}async function a(e,r,i){if(i.algorithm===t.supportedAlgorithms.xchacha20poly1305Ietf){let t=e.slice(0,n.xchacha20NonceLength);return n.Xchacha20poly1305Ietf.decrypt(e.slice(n.xchacha20NonceLength),r,t)}throw Error(`Unsupported encryption algorithm: '${i.algorithm}'`)}t.cosmjsSalt=(0,r(25918).toAscii)("The CosmJS salt."),t.executeKdf=i,t.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},t.encrypt=o,t.decrypt=a},4118:(e,t,r)=>{"use strict";var n=r(6257).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},4696:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryWriter=t.BinaryReader=t.WireType=void 0;let i=r(80194),o=r(11283);!function(e){e[e.Varint=0]="Varint",e[e.Fixed64=1]="Fixed64",e[e.Bytes=2]="Bytes",e[e.Fixed32=5]="Fixed32"}(n||(t.WireType=n={}));class a{assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}constructor(e){this.buf=new Uint8Array(e||0),this.pos=0,this.type=0,this.len=this.buf.length}tag(){let e=this.uint32(),t=e>>>3,r=7&e;if(t<=0||r<0||r>5)throw Error("illegal tag: field no "+t+" wire type "+r);return[t,r,e]}skip(e){if("number"==typeof e){if(this.pos+e>this.len)throw p(this,e);this.pos+=e}else do if(this.pos>=this.len)throw p(this);while(128&this.buf[this.pos++]);return this}skipType(e){switch(e){case n.Varint:this.skip();break;case n.Fixed64:this.skip(8);break;case n.Bytes:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case n.Fixed32:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this}uint32(){return o.varint32read.bind(this)()}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e%2==1?-((e+1)/2):e/2}fixed32(){let e=(0,o.readUInt32)(this.buf,this.pos);return this.pos+=4,e}sfixed32(){let e=(0,o.readInt32)(this.buf,this.pos);return this.pos+=4,e}int64(){let[e,t]=o.varint64read.bind(this)();return BigInt((0,o.int64ToString)(e,t))}uint64(){let[e,t]=o.varint64read.bind(this)();return BigInt((0,o.uInt64ToString)(e,t))}sint64(){let[e,t]=o.varint64read.bind(this)();return[e,t]=(0,o.zzDecode)(e,t),BigInt((0,o.int64ToString)(e,t))}fixed64(){let e=this.sfixed32(),t=this.sfixed32();return BigInt((0,o.uInt64ToString)(e,t))}sfixed64(){let e=this.sfixed32(),t=this.sfixed32();return BigInt((0,o.int64ToString)(e,t))}float(){throw Error("float not supported")}double(){throw Error("double not supported")}bool(){let[e,t]=o.varint64read.bind(this)();return 0!==e||0!==t}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){let e=this.bytes();return(0,i.utf8Read)(e,0,e.length)}}t.BinaryReader=a;class s{constructor(e,t,r){this.fn=e,this.len=t,this.val=r}proceed(e,t){this.fn&&this.fn(this.val,e,t)}}class d{constructor(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}}class l{constructor(){this.len=0,this.uint64=l.prototype.int64,this.sfixed64=l.prototype.fixed64,this.sfixed32=l.prototype.fixed32,this.head=new s(null,0,0),this.tail=this.head,this.states=null}static create(){return new l}static alloc(e){return"undefined"!=typeof Uint8Array?u(e=>new Uint8Array(e),Uint8Array.prototype.subarray)(e):Array(e)}
1_push(e,t,r){return this.tail=this.tail.next=new s(e,t,r),this.len+=t,this}finish(){let e=this.head.next,t=0,r=l.alloc(this.len);for(;e;)e.proceed(r,t),t+=e.len,e=e.next;return r}fork(){return this.states=new d(this),this.head=this.tail=new s(null,0,0),this.len=0,this}reset(){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(null,0,0),this.len=0),this}ldelim(){let e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this}tag(e,t){return this.uint32((e<<3|t)>>>0)}uint32(e){return this.len+=(this.tail=this.tail.next=new s(o.writeVarint32,(e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this}int32(e){return e<0?this._push(o.writeVarint64,10,(0,o.int64FromString)(e.toString())):this.uint32(e)}sint32(e){return this.uint32((e<<1^e>>31)>>>0)}int64(e){let{lo:t,hi:r}=(0,o.int64FromString)(e.toString());return this._push(o.writeVarint64,(0,o.int64Length)(t,r),{lo:t,hi:r})}sint64(e){let{lo:t,hi:r}=(0,o.int64FromString)(e.toString());return[t,r]=(0,o.zzEncode)(t,r),this._push(o.writeVarint64,(0,o.int64Length)(t,r),{lo:t,hi:r})}fixed64(e){let{lo:t,hi:r}=(0,o.int64FromString)(e.toString());return this._push(o.writeFixed32,4,t)._push(o.writeFixed32,4,r)}bool(e){return this._push(o.writeByte,1,+!!e)}fixed32(e){return this._push(o.writeFixed32,4,e>>>0)}float(e){throw Error("float not supported"+e)}double(e){throw Error("double not supported"+e)}bytes(e){let t=e.length>>>0;return t?this.uint32(t)._push(c,t,e):this._push(o.writeByte,1,0)}string(e){let t=(0,i.utf8Length)(e);return t?this.uint32(t)._push(i.utf8Write,t,e):this._push(o.writeByte,1,0)}}function c(e,t,r){if("undefined"!=typeof Uint8Array)t.set(e,r);else for(let n=0;n<e.length;++n)t[r+n]=e[n]}function u(e,t,r){let n=r||8192,i=n>>>1,o=null,a=n;return function(r){if(r<1||r>i)return e(r);a+r>n&&(o=e(n),a=0);let s=t.call(o,a,a+=r);return 7&a&&(a=(7|a)+1),s}}function p(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}t.BinaryWriter=l},5559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;let n=r(93005),i=r(60401),o=r(14112),a=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),s=new Uint32Array(64);class d extends n.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)s[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=s[e-15],r=s[e-2],n=(0,o.rotr)(t,7)^(0,o.rotr)(t,18)^t>>>3,i=(0,o.rotr)(r,17)^(0,o.rotr)(r,19)^r>>>10;s[e]=i+s[e-7]+n+s[e-16]|0}let{A:r,B:i,C:d,D:l,E:c,F:u,G:p,H:f}=this;for(let e=0;e<64;e++){let t=f+((0,o.rotr)(c,6)^(0,o.rotr)(c,11)^(0,o.rotr)(c,25))+(0,n.Chi)(c,u,p)+a[e]+s[e]|0,h=((0,o.rotr)(r,2)^(0,o.rotr)(r,13)^(0,o.rotr)(r,22))+(0,n.Maj)(r,i,d)|0;f=p,p=u,u=c,c=l+t|0,l=d,d=i,i=r,r=t+h|0}r=r+this.A|0,i=i+this.B|0,d=d+this.C|0,l=l+this.D|0,c=c+this.E|0,u=u+this.F|0,p=p+this.G|0,f=f+this.H|0,this.set(r,i,d,l,c,u,p,f)}roundClean(){(0,o.clean)(s)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,o.clean)(this.buffer)}}t.SHA256=d;class l extends d{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}t.SHA224=l;let c=i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),u=c[0],p=c[1],f=new Uint32Array(80),h=new Uint32Array(80);class g extends n.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:d,El:l,Fh:c,Fl:u,Gh:p,Gl:f,Hh:h,Hl:g}=this;return[e,t,r,n,i,o,a,s,d,l,c,u,p,f,h,g]}set(e,t,r,n,i,o,a,s,d,l,c,u,p,f,h,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|d,this.El=0|l,this.Fh=0|c,this.Fl=0|u,this.Gh=0|p,this.Gl=0|f,this.Hh=0|h,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)f[r]=e.getUint32(t),h[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|f[e-15],r=0|h[e-15],n=i.rotrSH(t,r,1)^i.rotrSH(t,r,8)^i.shrSH(t,r,7),o=i.rotrSL(t,r,1)^i.rotrSL(t,r,8)^i.shrSL(t,r,7),a=0|f[e-2],s=0|h[e-2],d=i.rotrSH(a,s,19)^i.rotrBH(a,s,61)^i.shrSH(a,s,6),l=i.rotrSL(a,s,19)^i.rotrBL(a,s,61)^i.shrSL(a,s,6),c=i.add4L(o,l,h[e-7],h[e-16]),u=i.add4H(c,n,d,f[e-7],f[e-16]);f[e]=0|u,h[e]=0|c}let{Ah:r,Al:n,Bh:o,Bl:a,Ch:s,Cl:d,Dh:l,Dl:c,Eh:g,El:m,Fh:y,Fl:b,Gh:v,Gl:S,Hh:A,Hl:w}=this;for(let e=0;e<80;e++){let t=i.rotrSH(g,m,14)^i.rotrSH(g,m,18)^i.rotrBH(g,m,41),_=i.rotrSL(g,m,14)^i.rotrSL(g,m,18)^i.rotrBL(g,m,41),P=g&y^~g&v,k=m&b^~m&S,R=i.add5L(w,_,k,p[e],h[e]),O=i.add5H(R,A,t,P,u[e],f[e]),I=0|R,B=i.rotrSH(r,n,28)^i.rotrBH(r,n,34)^i.rotrBH(r,n,39),x=i.rotrSL(r,n,28)^i.rotrBL(r,n,34)^i.rotrBL(r,n,39),E=r&o^r&s^o&s,T=n&a^n&d^a&d;A=0|v,w=0|S,v=0|y,S=0|b,y=0|g,b=0|m,({h:g,l:m}=i.add(0|l,0|c,0|O,0|I)),l=0|s,c=0|d,s=0|o,d=0|a,o=0|r,a=0|n;let N=i.add3L(I,x,T);r=i.add3H(N,O,B,E),n=0|N}({h:r,l:n}=i.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:a}=i.add(0|this.Bh,0|this.Bl,0|o,0|a)),({h:s,l:d}=i.add(0|this.Ch,0|this.Cl,0|s,0|d)),({h:l,l:c}=i.add(0|this.Dh,0|this.Dl,0|l,0|c)),({h:g,l:m}=i.add(0|this.Eh,0|this.El,0|g,0|m)),({h:y,l:b}=i.add(0|this.Fh,0|this.Fl,0|y,0|b)),({h:v,l:S}=i.add(0|this.Gh,0|this.Gl,0|v,0|S)),({h:A,l:w}=i.add(0|this.Hh,0|this.Hl,0|A,0|w)),this.set(r,n,o,a,s,d,l,c,g,m,y,b,v,S,A,w)}roundClean(){(0,o.clean)(f,h)}destroy(){(0,o.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=g;class m extends g{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}t.SHA384=m;let y=Uint32Array.from([0x8c3d37c8,0x19544da2,0x73e19966,0x89dcd4d6,0x1dfab7ae,0x32ff9c82,0x679dd514,0x582f9fcf,0xf6d2b69,0x7bd44da8,0x77e36f73,0x4c48942,0x3f9d85a8,0x6a1d36c8,0x1112e6ad,0x91d692a1]),b=Uint32Array.from([0x22312194,0xfc2bf72c,0x9f555fa3,0xc84c64c2,0x2393b8
16b,0x6f53b151,0x96387719,0x5940eabd,0x96283ee2,0xa88effe3,0xbe5e1e25,0x53863992,0x2b0199fc,0x2c85b8aa,0xeb72ddc,0x81c52ca2]);class v extends g{constructor(){super(28),this.Ah=0|y[0],this.Al=0|y[1],this.Bh=0|y[2],this.Bl=0|y[3],this.Ch=0|y[4],this.Cl=0|y[5],this.Dh=0|y[6],this.Dl=0|y[7],this.Eh=0|y[8],this.El=0|y[9],this.Fh=0|y[10],this.Fl=0|y[11],this.Gh=0|y[12],this.Gl=0|y[13],this.Hh=0|y[14],this.Hl=0|y[15]}}t.SHA512_224=v;class S extends g{constructor(){super(32),this.Ah=0|b[0],this.Al=0|b[1],this.Bh=0|b[2],this.Bl=0|b[3],this.Ch=0|b[4],this.Cl=0|b[5],this.Dh=0|b[6],this.Dl=0|b[7],this.Eh=0|b[8],this.El=0|b[9],this.Fh=0|b[10],this.Fl=0|b[11],this.Gh=0|b[12],this.Gl=0|b[13],this.Hh=0|b[14],this.Hl=0|b[15]}}t.SHA512_256=S,t.sha256=(0,o.createHasher)(()=>new d),t.sha224=(0,o.createHasher)(()=>new l),t.sha512=(0,o.createHasher)(()=>new g),t.sha384=(0,o.createHasher)(()=>new m),t.sha512_256=(0,o.createHasher)(()=>new S),t.sha512_224=(0,o.createHasher)(()=>new v)},5585:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},5843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupDistributionExtension=void 0;let n=r(38002),i=r(51324);t.setupDistributionExtension=function(e){let t=(0,i.createProtobufRpcClient)(e),r=new n.QueryClientImpl(t);return{distribution:{communityPool:async()=>await r.CommunityPool({}),delegationRewards:async(e,t)=>await r.DelegationRewards({delegatorAddress:e,validatorAddress:t}),delegationTotalRewards:async e=>await r.DelegationTotalRewards({delegatorAddress:e}),delegatorValidators:async e=>await r.DelegatorValidators({delegatorAddress:e}),delegatorWithdrawAddress:async e=>await r.DelegatorWithdrawAddress({delegatorAddress:e}),params:async()=>await r.Params({}),validatorCommission:async e=>await r.ValidatorCommission({validatorAddress:e}),validatorOutstandingRewards:async e=>await r.ValidatorOutstandingRewards({validatorAddress:e}),validatorSlashes:async(e,t,n,o)=>await r.ValidatorSlashes({validatorAddress:e,startingHeight:BigInt(t),endingHeight:BigInt(n),pagination:(0,i.createPagination)(o)})}}}},6157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupTxExtension=void 0;let n=r(11717),i=r(36843),o=r(22767),a=r(13788),s=r(51324);t.setupTxExtension=function(e){let t=(0,s.createProtobufRpcClient)(e),r=new o.ServiceClientImpl(t);return{tx:{getTx:async e=>{let t={hash:e};return await r.GetTx(t)},simulate:async(e,t,s,d)=>{let l=a.Tx.fromPartial({authInfo:a.AuthInfo.fromPartial({fee:a.Fee.fromPartial({}),signerInfos:[{publicKey:(0,n.encodePubkey)(s),sequence:BigInt(d),modeInfo:{single:{mode:i.SignMode.SIGN_MODE_UNSPECIFIED}}}]}),body:a.TxBody.fromPartial({messages:Array.from(e),memo:t}),signatures:[new Uint8Array]}),c=o.SimulateRequest.fromPartial({txBytes:a.Tx.encode(l).finish()});return await r.Simulate(c)}}}}},6257:(e,t,r)=>{"use strict";var n=r(98270);function i(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function o(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(45381),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:(i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},t.zero2=a,t.zero8=s,t.join32=function(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),d=0,l=t;d<s.length;d++,l+=4)o="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],s[d]=o>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=+(o<n)+r+i;e[t]=a>>>
10,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return+(t+n>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var d,l=t;return e+r+i+a+(d=0+ +((l=l+n>>>0)<t)+ +((l=l+o>>>0)<o)+ +((l=l+s>>>0)<s))>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,d,l){var c,u=t;return e+r+i+a+d+(c=0+ +((u=u+n>>>0)<t)+ +((u=u+o>>>0)<o)+ +((u=u+s>>>0)<s)+ +((u=u+l>>>0)<l))>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,d,l){return t+n+o+s+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},6805:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hmac=void 0;class r{constructor(e,t){let r=new e().blockSize;this.hash=t=>new e().update(t).digest();let n=t;if(n.length>r&&(n=this.hash(n)),n.length<r){let e=new Uint8Array(r-n.length);n=new Uint8Array([...n,...e])}this.oKeyPad=n.map(e=>92^e),this.iKeyPad=n.map(e=>54^e),this.messageHasher=new e,this.blockSize=r,this.update(this.iKeyPad)}update(e){return this.messageHasher.update(e),this}digest(){let e=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...e]))}}t.Hmac=r},6922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgCommunityPoolSpendResponse=t.MsgCommunityPoolSpend=t.MsgUpdateParamsResponse=t.MsgUpdateParams=t.MsgFundCommunityPoolResponse=t.MsgFundCommunityPool=t.MsgWithdrawValidatorCommissionResponse=t.MsgWithdrawValidatorCommission=t.MsgWithdrawDelegatorRewardResponse=t.MsgWithdrawDelegatorReward=t.MsgSetWithdrawAddressResponse=t.MsgSetWithdrawAddress=t.protobufPackage=void 0;let n=r(91794),i=r(79340),o=r(4696),a=r(92242);function s(){return{delegatorAddress:"",withdrawAddress:""}}function d(){return{}}function l(){return{delegatorAddress:"",validatorAddress:""}}function c(){return{amount:[]}}function u(){return{validatorAddress:""}}function p(){return{amount:[]}}function f(){return{amount:[],depositor:""}}function h(){return{}}function g(){return{authority:"",params:i.Params.fromPartial({})}}function m(){return{}}function y(){return{authority:"",recipient:"",amount:[]}}function b(){return{}}t.protobufPackage="cosmos.distribution.v1beta1",t.MsgSetWithdrawAddress={typeUrl:"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.withdrawAddress&&t.uint32(18).string(e.withdrawAddress),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=s();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.withdrawAddress=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=s();return(0,a.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,a.isSet)(e.withdrawAddress)&&(t.withdrawAddress=String(e.withdrawAddress)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.withdrawAddress&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial(e){let t=s();return t.delegatorAddress=e.delegatorAddress??"",t.withdrawAddress=e.withdrawAddress??"",t}},t.MsgSetWithdrawAddressResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=d();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>d(),toJSON:e=>({}),fromPartial:e=>d()},t.MsgWithdrawDelegatorReward={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=l();return(0,a.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,a.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=l();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t}},t.MsgWithdrawDelegatorRewardResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.amount)n.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.amount.push(n.Coin.decode(r,r.uint32())):r.skipType(7&e)}return a},fromJSON(e){let t=c();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>
1n.Coin.fromJSON(e))),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(e=>e?n.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=c();return t.amount=e.amount?.map(e=>n.Coin.fromPartial(e))||[],t}},t.MsgWithdrawValidatorCommission={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",encode:(e,t=o.BinaryWriter.create())=>(""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.validatorAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=u();return(0,a.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=u();return t.validatorAddress=e.validatorAddress??"",t}},t.MsgWithdrawValidatorCommissionResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.amount)n.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=p();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.amount.push(n.Coin.decode(r,r.uint32())):r.skipType(7&e)}return a},fromJSON(e){let t=p();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>n.Coin.fromJSON(e))),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(e=>e?n.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=p();return t.amount=e.amount?.map(e=>n.Coin.fromPartial(e))||[],t}},t.MsgFundCommunityPool={typeUrl:"/cosmos.distribution.v1beta1.MsgFundCommunityPool",encode(e,t=o.BinaryWriter.create()){for(let r of e.amount)n.Coin.encode(r,t.uint32(10).fork()).ldelim();return""!==e.depositor&&t.uint32(18).string(e.depositor),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=f();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.amount.push(n.Coin.decode(r,r.uint32()));break;case 2:a.depositor=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=f();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>n.Coin.fromJSON(e))),(0,a.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(e=>e?n.Coin.toJSON(e):void 0):t.amount=[],void 0!==e.depositor&&(t.depositor=e.depositor),t},fromPartial(e){let t=f();return t.amount=e.amount?.map(e=>n.Coin.fromPartial(e))||[],t.depositor=e.depositor??"",t}},t.MsgFundCommunityPoolResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>h(),toJSON:e=>({}),fromPartial:e=>h()},t.MsgUpdateParams={typeUrl:"/cosmos.distribution.v1beta1.MsgUpdateParams",encode:(e,t=o.BinaryWriter.create())=>(""!==e.authority&&t.uint32(10).string(e.authority),void 0!==e.params&&i.Params.encode(e.params,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.authority=r.string();break;case 2:a.params=i.Params.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=g();return(0,a.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,a.isSet)(e.params)&&(t.params=i.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.authority&&(t.authority=e.authority),void 0!==e.params&&(t.params=e.params?i.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=g();return t.authority=e.authority??"",void 0!==e.params&&null!==e.params&&(t.params=i.Params.fromPartial(e.params)),t}},t.MsgUpdateParamsResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgUpdateParamsResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>m(),toJSON:e=>({}),fromPartial:e=>m()},t.MsgCommunityPoolSpend={typeUrl:"/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.authority&&t.uint32(10).string(e.authority),""!==e.recipient&&t.uint32(18).string(e.recipient),e.amount))n.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=y();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.authority=r.string();break;case 2:a.recipient=r.string();break;case 3:a.amount.push(n.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=y();return(0,a.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,a.isSet)(e.recipient)&&(t.recipient=String(e.recipient)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>
1n.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.authority&&(t.authority=e.authority),void 0!==e.recipient&&(t.recipient=e.recipient),e.amount?t.amount=e.amount.map(e=>e?n.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=y();return t.authority=e.authority??"",t.recipient=e.recipient??"",t.amount=e.amount?.map(e=>n.Coin.fromPartial(e))||[],t}},t.MsgCommunityPoolSpendResponse={typeUrl:"/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>b(),toJSON:e=>({}),fromPartial:e=>b()};class v{constructor(e){this.rpc=e,this.SetWithdrawAddress=this.SetWithdrawAddress.bind(this),this.WithdrawDelegatorReward=this.WithdrawDelegatorReward.bind(this),this.WithdrawValidatorCommission=this.WithdrawValidatorCommission.bind(this),this.FundCommunityPool=this.FundCommunityPool.bind(this),this.UpdateParams=this.UpdateParams.bind(this),this.CommunityPoolSpend=this.CommunityPoolSpend.bind(this)}SetWithdrawAddress(e){let r=t.MsgSetWithdrawAddress.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",r).then(e=>t.MsgSetWithdrawAddressResponse.decode(new o.BinaryReader(e)))}WithdrawDelegatorReward(e){let r=t.MsgWithdrawDelegatorReward.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",r).then(e=>t.MsgWithdrawDelegatorRewardResponse.decode(new o.BinaryReader(e)))}WithdrawValidatorCommission(e){let r=t.MsgWithdrawValidatorCommission.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",r).then(e=>t.MsgWithdrawValidatorCommissionResponse.decode(new o.BinaryReader(e)))}FundCommunityPool(e){let r=t.MsgFundCommunityPool.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",r).then(e=>t.MsgFundCommunityPoolResponse.decode(new o.BinaryReader(e)))}UpdateParams(e){let r=t.MsgUpdateParams.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","UpdateParams",r).then(e=>t.MsgUpdateParamsResponse.decode(new o.BinaryReader(e)))}CommunityPoolSpend(e){let r=t.MsgCommunityPoolSpend.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","CommunityPoolSpend",r).then(e=>t.MsgCommunityPoolSpendResponse.decode(new o.BinaryReader(e)))}}t.MsgClientImpl=v},7260:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchTxsResult=t.TxMsgData=t.MsgData=t.SimulationResponse=t.Result=t.GasInfo=t.Attribute=t.StringEvent=t.ABCIMessageLog=t.TxResponse=t.protobufPackage=void 0;let n=r(54573),i=r(18341),o=r(4696),a=r(92242);function s(){return{height:BigInt(0),txhash:"",codespace:"",code:0,data:"",rawLog:"",logs:[],info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),tx:void 0,timestamp:"",events:[]}}function d(){return{msgIndex:0,log:"",events:[]}}function l(){return{type:"",attributes:[]}}function c(){return{key:"",value:""}}function u(){return{gasWanted:BigInt(0),gasUsed:BigInt(0)}}function p(){return{data:new Uint8Array,log:"",events:[],msgResponses:[]}}function f(){return{gasInfo:t.GasInfo.fromPartial({}),result:void 0}}function h(){return{msgType:"",data:new Uint8Array}}function g(){return{data:[],msgResponses:[]}}function m(){return{totalCount:BigInt(0),count:BigInt(0),pageNumber:BigInt(0),pageTotal:BigInt(0),limit:BigInt(0),txs:[]}}t.protobufPackage="cosmos.base.abci.v1beta1",t.TxResponse={typeUrl:"/cosmos.base.abci.v1beta1.TxResponse",encode(e,r=o.BinaryWriter.create()){for(let n of(e.height!==BigInt(0)&&r.uint32(8).int64(e.height),""!==e.txhash&&r.uint32(18).string(e.txhash),""!==e.codespace&&r.uint32(26).string(e.codespace),0!==e.code&&r.uint32(32).uint32(e.code),""!==e.data&&r.uint32(42).string(e.data),""!==e.rawLog&&r.uint32(50).string(e.rawLog),e.logs))t.ABCIMessageLog.encode(n,r.uint32(58).fork()).ldelim();for(let t of(""!==e.info&&r.uint32(66).string(e.info),e.gasWanted!==BigInt(0)&&r.uint32(72).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&r.uint32(80).int64(e.gasUsed),void 0!==e.tx&&n.Any.encode(e.tx,r.uint32(90).fork()).ldelim(),""!==e.timestamp&&r.uint32(98).string(e.timestamp),e.events))i.Event.encode(t,r.uint32(106).fork()).ldelim();return r},decode(e,r){let a=e instanceof o.BinaryReader?e:new o.BinaryReader(e),d=void 0===r?a.len:a.pos+r,l=s();for(;a.pos<d;){let e=a.uint32();switch(e>>>3){case 1:l.height=a.int64();break;case 2:l.txhash=a.string();break;case 3:l.codespace=a.string();break;case 4:l.code=a.uint32();break;case 5:l.data=a.string();break;case 6:l.rawLog=a.string();break;case 7:l.logs.push(t.ABCIMessageLog.decode(a,a.uint32()));break;case 8:l.info=a.string();break;case 9:l.gasWanted=a.int64();break;case 10:l.gasUsed=a.int64();break;case 11:l.tx=n.Any.decode(a,a.uint32());break;case 12:l.timestamp=a.string();break;case 13:l.events.push(i.Event.decode(a,a.uint32()));break;default:a.skipType(7&e)}}return l},fromJSON(e){let r=s();return(0,a.isSet)(e.height)&&(r.height=BigInt(e.height.toString())),(0,a.isSet)(e.txhash)&&(r.txhash=String(e.txhash)),(0,a.isSet)(e.codespace)&&(r.codespace=String(e.codespace)),(0,a.isSet)(e.code)&&(r.code=Number(e.code)),(0,a.isSet)(e.data)&&(r.data=String(e.data)),(0,a.isSet)(e.rawLog)&&(r.rawLog=String(e.rawLog)),Array.isArray(e?.logs)&&(r.logs=e.logs.map(e=>t.ABCIMessageLog.fromJSON(e))),(0,a.isSet)(e.info)&&(r.info=String(e.info)),(0,a.isSet)(e.gasWanted)&&(r.gasWanted=BigInt(e.gasWanted.toString())),(0,a.isSet)(e.gasUsed)&&(r.gasUsed=BigInt(e.gasUsed.toString())),(0,a.isSet)(e.tx)&&(r.tx=n.Any.fromJSON(e.tx)),(0,a.isSet)(e.timestamp)&&(r.timestamp=String(e.timestamp)),Array.isArray(e?.events)&&(r.events=e.events.map(e=>i.Event.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.height&&(r.height=(e.height||BigInt(0)).toString()),void 0!==e.txhash&&(r.txhash=e.txhash),void 0!==e.codespace&&(r.codespace=e.codespace),void 0!==e.code&&(r.code=Math.round(e.code)),void 0!==e.data&&(r.data=e.data),void 0!==e.rawLog&&(r.rawLog=e.rawLog),e.logs?r.logs=e.logs.map(e=>e?t.ABCIMessageLog.toJSON(e):void 0):r.logs=[],void 0!==e.info&&(r.info=e.info),void 0!==e.gasWanted&&(r.gasWanted=(e.gasWanted||BigInt(0)).toString()),void 0!==e.gasUsed&&(r.gasUsed=(e.gasUsed||BigInt(0)).toString()),void 0!==e.tx&&(r.tx=e.tx?n.Any.toJSON(e.tx):void 0),void 0!==e.timestamp&&(r.timestamp=e.timestamp),e.events?r.events=e.events.map(e=>e?i.Event.toJSON(e):void 0):r.events=[],r},fromPartial(e){let r=s();return void 0!==e.height&&null!==e.height&&(r.height=BigInt(e.height.toString())),r.txhash=e.txhash??"",r.codespace=e.codespace??"",r.code=e.code??0,r.data=e.data??"",r.rawLog=e.rawLog??"",r.logs=e.logs?.map(e=>t.ABCIMessageLog.fromPartial(e))||[],r.info=e.info??"",void 0!==e.gasWanted&&null!==e.gasWanted&&(r.gasWanted=BigInt(e.gasWanted.toString())),void 0!==e.gasUsed&&null!==e.gasUsed&&(r.gasUsed=BigInt(e.gasUsed.toString())),void 0!==e.tx&&null!==e.tx&&(r.tx=n.Any.fromPartial(e.tx)),r.timestamp=e.timestamp??"",r.events=e.events?.map(e=>i.Event.fromPartial(e))||[],r}},t.ABCIMessageLog={typeUrl:"/cosmos.base.abci.v1beta1.ABCIMessageLog",encode(e,r=o.BinaryWriter.create()){for(let n of(0!==e.msgIndex&&r.uint32(8).uint32(e.msgIndex),""!==e.log&&r.uint32(18).string(e.log),e.events))t.StringEvent.encode(n,r.uint32(26).fork()).ldelim();return r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=d();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.msgIndex=n.uint32();break;case 2:a.log=n.string();break;case 3:a.events.push(t.StringEvent.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=d();return(0,a.isSet)(e.msgIndex)&&(r.msgIndex=Number(e.msgIndex)),(0,a.isSet)(e.log)&&(r.log=String(e.log)),Array.isArray(e?.events)&&(r.events=e.events.map(e=>t.StringEvent.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.msgIndex&&(r.msgIndex=Math.round(e.msgIndex)),void 0!==e.log&&(r.log=e.log),e.events?r.events=e.events.map(e=>e?t.StringEvent.toJSON(e):void 0):r.events=[],r},fromPartial(e){let r=d();return r.msgIndex=e.msgIndex??0,r.log=e.log??"",r.events=e.events?.map(e=>t.StringEvent.fromPartial(e))||[],r}},t.StringEvent={typeUrl:"/cosmos.base.abci.v1beta1.StringEvent",encode(e,r=o.BinaryWriter.create()){for(let n of(""!==e.type&&r.uint32(10).string(e.type),e.attributes))t.Attribute.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.type=n.string();break;case 2:a.attributes.push(t.Attribute.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=l();return(0,a.isSet)(e.type)&&(r.type=String(e.type)),Array.isArray(e?.attributes)&&(r.attributes=e.attributes.map(e=>t.Attribute.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.type&&(r.type=e.type),e.attributes?r.attributes=e.attributes.map(e=>e?t.Attribute.toJSON(e):void 0):r.attributes=[],r},fromPartial(e){let r=l();return r.type=e.type??"",r.attributes=e.attributes?.map(e=>t.Attribute.fromPartial(e))||[],r}},t.Attribute={typeUrl:"/cosmos.base.abci.v1beta1.Attribute",encode:(e,t=o.BinaryWriter.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.key=r.string();break;case 2:i.value=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=c();
1return(0,a.isSet)(e.key)&&(t.key=String(e.key)),(0,a.isSet)(e.value)&&(t.value=String(e.value)),t},toJSON(e){let t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){let t=c();return t.key=e.key??"",t.value=e.value??"",t}},t.GasInfo={typeUrl:"/cosmos.base.abci.v1beta1.GasInfo",encode:(e,t=o.BinaryWriter.create())=>(e.gasWanted!==BigInt(0)&&t.uint32(8).uint64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(16).uint64(e.gasUsed),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.gasWanted=r.uint64();break;case 2:i.gasUsed=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=u();return(0,a.isSet)(e.gasWanted)&&(t.gasWanted=BigInt(e.gasWanted.toString())),(0,a.isSet)(e.gasUsed)&&(t.gasUsed=BigInt(e.gasUsed.toString())),t},toJSON(e){let t={};return void 0!==e.gasWanted&&(t.gasWanted=(e.gasWanted||BigInt(0)).toString()),void 0!==e.gasUsed&&(t.gasUsed=(e.gasUsed||BigInt(0)).toString()),t},fromPartial(e){let t=u();return void 0!==e.gasWanted&&null!==e.gasWanted&&(t.gasWanted=BigInt(e.gasWanted.toString())),void 0!==e.gasUsed&&null!==e.gasUsed&&(t.gasUsed=BigInt(e.gasUsed.toString())),t}},t.Result={typeUrl:"/cosmos.base.abci.v1beta1.Result",encode(e,t=o.BinaryWriter.create()){for(let r of(0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.log&&t.uint32(18).string(e.log),e.events))i.Event.encode(r,t.uint32(26).fork()).ldelim();for(let r of e.msgResponses)n.Any.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=p();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.data=r.bytes();break;case 2:s.log=r.string();break;case 3:s.events.push(i.Event.decode(r,r.uint32()));break;case 4:s.msgResponses.push(n.Any.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=p();return(0,a.isSet)(e.data)&&(t.data=(0,a.bytesFromBase64)(e.data)),(0,a.isSet)(e.log)&&(t.log=String(e.log)),Array.isArray(e?.events)&&(t.events=e.events.map(e=>i.Event.fromJSON(e))),Array.isArray(e?.msgResponses)&&(t.msgResponses=e.msgResponses.map(e=>n.Any.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.data&&(t.data=(0,a.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),e.events?t.events=e.events.map(e=>e?i.Event.toJSON(e):void 0):t.events=[],e.msgResponses?t.msgResponses=e.msgResponses.map(e=>e?n.Any.toJSON(e):void 0):t.msgResponses=[],t},fromPartial(e){let t=p();return t.data=e.data??new Uint8Array,t.log=e.log??"",t.events=e.events?.map(e=>i.Event.fromPartial(e))||[],t.msgResponses=e.msgResponses?.map(e=>n.Any.fromPartial(e))||[],t}},t.SimulationResponse={typeUrl:"/cosmos.base.abci.v1beta1.SimulationResponse",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.gasInfo&&t.GasInfo.encode(e.gasInfo,r.uint32(10).fork()).ldelim(),void 0!==e.result&&t.Result.encode(e.result,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.gasInfo=t.GasInfo.decode(n,n.uint32());break;case 2:a.result=t.Result.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=f();return(0,a.isSet)(e.gasInfo)&&(r.gasInfo=t.GasInfo.fromJSON(e.gasInfo)),(0,a.isSet)(e.result)&&(r.result=t.Result.fromJSON(e.result)),r},toJSON(e){let r={};return void 0!==e.gasInfo&&(r.gasInfo=e.gasInfo?t.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(r.result=e.result?t.Result.toJSON(e.result):void 0),r},fromPartial(e){let r=f();return void 0!==e.gasInfo&&null!==e.gasInfo&&(r.gasInfo=t.GasInfo.fromPartial(e.gasInfo)),void 0!==e.result&&null!==e.result&&(r.result=t.Result.fromPartial(e.result)),r}},t.MsgData={typeUrl:"/cosmos.base.abci.v1beta1.MsgData",encode:(e,t=o.BinaryWriter.create())=>(""!==e.msgType&&t.uint32(10).string(e.msgType),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.msgType=r.string();break;case 2:i.data=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,a.isSet)(e.msgType)&&(t.msgType=String(e.msgType)),(0,a.isSet)(e.data)&&(t.data=(0,a.bytesFromBase64)(e.data)),t},toJSON(e){let t={};return void 0!==e.msgType&&(t.msgType=e.msgType),void 0!==e.data&&(t.data=(0,a.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){let t=h();return t.msgType=e.msgType??"",t.data=e.data??new Uint8Array,t}},t.TxMsgData={typeUrl:"/cosmos.base.abci.v1beta1.TxMsgData",encode(e,r=o.BinaryWriter.create()){for(let n of e.data)t.MsgData.encode(n,r.uint32(10).fork()).ldelim();for(let t of e.msgResponses)n.Any.encode(t,r.uint32(18).fork()).ldelim();return r},decode(e,r){let i=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===r?i.len:i.pos+r,s=g();for(;i.pos<a;){let e=i.uint32();switch(e>>>3){case 1:s.data.push(t.MsgData.decode(i,i.uint32()));break;case 2:s.msgResponses.push(n.Any.decode(i,i.uint32()));break;default:i.skipType(7&e)}}return s},fromJSON(e){let r=g();return Array.isArray(e?.data)&&(r.data=e.data.map(e=>t.MsgData.fromJSON(e))),Array.isArray(e?.msgResponses)&&(r.msgResponses=e.msgResponses.map(e=>n.Any.fromJSON(e))),r},toJSON(e){let r={};return e.data?r.data=e.data.map(e=>e?t.MsgData.toJSON(e):void 0):r.data=[],e.msgResponses?r.msgResponses=e.msgResponses.map(e=>e?n.Any.toJSON(e):void 0):r.msgResponses=[],r},fromPartial(e){let r=g();return r.data=e.data?.map(e=>t.MsgData.fromPartial(e))||[],r.msgResponses=e.msgResponses?.map(e=>n.Any.fromPartial(e))||[],r}},t.SearchTxsResult={typeUrl:"/cosmos.base.abci.v1beta1.SearchTxsResult",encode(e,r=o.BinaryWriter.create()){for(let n of(e.totalCount!==BigInt(0)&&r.uint32(8).uint64(e.totalCount),e.count!==BigInt(0)&&r.uint32(16).uint64(e.count),e.pageNumber!==BigInt(0)&&r.uint32(24).uint64(e.pageNumber),e.pageTotal!==BigInt(0)&&r.uint32(32).uint64(e.pageTotal),e.limit!==BigInt(0)&&r.uint32(40).uint64(e.limit),e.txs))t.TxResponse.encode(n,r.uint32(50).fork()).ldelim();return r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=m();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.totalCount=n.uint64();break;case 2:a.count=n.uint64();break;case 3:a.pageNumber=n.uint64();break;case 4:a.pageTotal=n.uint64();break;case 5:a.limit=n.uint64();break;case 6:a.txs.push(t.TxResponse.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=m();return(0,a.isSet)(e.totalCount)&&(r.totalCount=BigInt(e.totalCount.toString())),(0,a.isSet)(e.count)&&(r.count=BigInt(e.count.toString())),(0,a.isSet)(e.pageNumber)&&(r.pageNumber=BigInt(e.pageNumber.toString())),(0,a.isSet)(e.pageTotal)&&(r.pageTotal=BigInt(e.pageTotal.toString())),(0,a.isSet)(e.limit)&&(r.limit=BigInt(e.limit.toString())),Array.isArray(e?.txs)&&(r.txs=e.txs.map(e=>t.TxResponse.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.totalCount&&(r.totalCount=(e.totalCount||BigInt(0)).toString()),void 0!==e.count&&(r.count=(e.count||BigInt(0)).toString()),void 0!==e.pageNumber&&(r.pageNumber=(e.pageNumber||BigInt(0)).toString()),void 0!==e.pageTotal&&(r.pageTotal=(e.pageTotal||BigInt(0)).toString()),void 0!==e.limit&&(r.limit=(e.limit||BigInt(0)).toString()),e.txs?r.txs=e.txs.map(e=>e?t.TxResponse.toJSON(e):void 0):r.txs=[],r},fromPartial(e){let r=m();return void 0!==e.totalCount&&null!==e.totalCount&&(r.totalCount=BigInt(e.totalCount.toString())),void 0!==e.count&&null!==e.count&&(r.count=BigInt(e.count.toString())),void 0!==e.pageNumber&&null!==e.pageNumber&&(r.pageNumber=BigInt(e.pageNumber.toString())),void 0!==e.pageTotal&&null!==e.pageTotal&&(r.pageTotal=BigInt(e.pageTotal.toString())),void 0!==e.limit&&null!==e.limit&&(r.limit=BigInt(e.limit.toString())),r.txs=e.txs?.map(e=>t.TxResponse.fromPartial(e))||[],r}}},7574: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"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},7735:(e,t,r)=>{"use strict";var n=r(9894),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(48746),d=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}
1,l=r(52967)(),c=function(e,t,r,n){if(t in e){if(!0===n){if(e[t]===r)return}else if(!d(n)||!n())return}l?s(e,t,r,!0):s(e,t,r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],r[o[s]])};u.supportsDescriptors=!!l,e.exports=u},7915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LegacyAminoPubKey=t.protobufPackage=void 0;let n=r(54573),i=r(4696),o=r(92242);function a(){return{threshold:0,publicKeys:[]}}t.protobufPackage="cosmos.crypto.multisig",t.LegacyAminoPubKey={typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",encode(e,t=i.BinaryWriter.create()){for(let r of(0!==e.threshold&&t.uint32(8).uint32(e.threshold),e.publicKeys))n.Any.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=a();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.threshold=r.uint32();break;case 2:s.publicKeys.push(n.Any.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=a();return(0,o.isSet)(e.threshold)&&(t.threshold=Number(e.threshold)),Array.isArray(e?.publicKeys)&&(t.publicKeys=e.publicKeys.map(e=>n.Any.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.threshold&&(t.threshold=Math.round(e.threshold)),e.publicKeys?t.publicKeys=e.publicKeys.map(e=>e?n.Any.toJSON(e):void 0):t.publicKeys=[],t},fromPartial(e){let t=a();return t.threshold=e.threshold??0,t.publicKeys=e.publicKeys?.map(e=>n.Any.fromPartial(e))||[],t}}},8080:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isMsgVoteWeightedEncodeObject=t.isMsgVoteEncodeObject=t.isMsgUndelegateEncodeObject=t.isMsgTransferEncodeObject=t.isMsgSubmitProposalEncodeObject=t.isMsgSendEncodeObject=t.isMsgEditValidatorEncodeObject=t.isMsgDepositEncodeObject=t.isMsgDelegateEncodeObject=t.isMsgCreateValidatorEncodeObject=t.isMsgCancelUnbondingDelegationEncodeObject=t.isMsgBeginRedelegateEncodeObject=t.isAminoMsgWithdrawValidatorCommission=t.isAminoMsgWithdrawDelegatorReward=t.isAminoMsgVoteWeighted=t.isAminoMsgVote=t.isAminoMsgVerifyInvariant=t.isAminoMsgUnjail=t.isAminoMsgUndelegate=t.isAminoMsgTransfer=t.isAminoMsgSubmitProposal=t.isAminoMsgSubmitEvidence=t.isAminoMsgSetWithdrawAddress=t.isAminoMsgSend=t.isAminoMsgMultiSend=t.isAminoMsgFundCommunityPool=t.isAminoMsgEditValidator=t.isAminoMsgDeposit=t.isAminoMsgDelegate=t.isAminoMsgCreateVestingAccount=t.isAminoMsgCreateValidator=t.isAminoMsgBeginRedelegate=t.createVestingAminoConverters=t.createStakingAminoConverters=t.createSlashingAminoConverters=t.createIbcAminoConverters=t.createGroupAminoConverters=t.createGovAminoConverters=t.createFeegrantAminoConverters=t.createEvidenceAminoConverters=t.createDistributionAminoConverters=t.createCrysisAminoConverters=t.createBankAminoConverters=t.createAuthzAminoConverters=t.logs=t.GasPrice=t.calculateFee=t.fromTendermintEvent=t.AminoTypes=t.accountFromAny=void 0,t.parseCoins=t.makeCosmoshubPath=t.coins=t.coin=t.TimeoutError=t.StargateClient=t.isDeliverTxSuccess=t.isDeliverTxFailure=t.BroadcastTxError=t.assertIsDeliverTxSuccess=t.assertIsDeliverTxFailure=t.SigningStargateClient=t.defaultRegistryTypes=t.createDefaultAminoConverters=t.isSearchTxQueryArray=t.QueryClient=t.decodeCosmosSdkDecFromProto=t.createProtobufRpcClient=t.createPagination=t.makeMultisignedTxBytes=t.makeMultisignedTx=t.setupTxExtension=t.setupStakingExtension=t.setupSlashingExtension=t.setupMintExtension=t.setupIbcExtension=t.setupGovExtension=t.setupFeegrantExtension=t.setupDistributionExtension=t.setupBankExtension=t.setupAuthzExtension=t.setupAuthExtension=t.isMsgWithdrawDelegatorRewardEncodeObject=void 0;var a=r(48236);Object.defineProperty(t,"accountFromAny",{enumerable:!0,get:function(){return a.accountFromAny}});var s=r(10095);Object.defineProperty(t,"AminoTypes",{enumerable:!0,get:function(){return s.AminoTypes}});var d=r(46757);Object.defineProperty(t,"fromTendermintEvent",{enumerable:!0,get:function(){return d.fromTendermintEvent}});var l=r(99612);Object.defineProperty(t,"calculateFee",{enumerable:!0,get:function(){return l.calculateFee}}),Object.defineProperty(t,"GasPrice",{enumerable:!0,get:function(){return l.GasPrice}}
1),t.logs=o(r(53931));var c=r(11082);Object.defineProperty(t,"createAuthzAminoConverters",{enumerable:!0,get:function(){return c.createAuthzAminoConverters}}),Object.defineProperty(t,"createBankAminoConverters",{enumerable:!0,get:function(){return c.createBankAminoConverters}}),Object.defineProperty(t,"createCrysisAminoConverters",{enumerable:!0,get:function(){return c.createCrysisAminoConverters}}),Object.defineProperty(t,"createDistributionAminoConverters",{enumerable:!0,get:function(){return c.createDistributionAminoConverters}}),Object.defineProperty(t,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return c.createEvidenceAminoConverters}}),Object.defineProperty(t,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return c.createFeegrantAminoConverters}}),Object.defineProperty(t,"createGovAminoConverters",{enumerable:!0,get:function(){return c.createGovAminoConverters}}),Object.defineProperty(t,"createGroupAminoConverters",{enumerable:!0,get:function(){return c.createGroupAminoConverters}}),Object.defineProperty(t,"createIbcAminoConverters",{enumerable:!0,get:function(){return c.createIbcAminoConverters}}),Object.defineProperty(t,"createSlashingAminoConverters",{enumerable:!0,get:function(){return c.createSlashingAminoConverters}}),Object.defineProperty(t,"createStakingAminoConverters",{enumerable:!0,get:function(){return c.createStakingAminoConverters}}),Object.defineProperty(t,"createVestingAminoConverters",{enumerable:!0,get:function(){return c.createVestingAminoConverters}}),Object.defineProperty(t,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return c.isAminoMsgBeginRedelegate}}),Object.defineProperty(t,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return c.isAminoMsgCreateValidator}}),Object.defineProperty(t,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return c.isAminoMsgCreateVestingAccount}}),Object.defineProperty(t,"isAminoMsgDelegate",{enumerable:!0,get:function(){return c.isAminoMsgDelegate}}),Object.defineProperty(t,"isAminoMsgDeposit",{enumerable:!0,get:function(){return c.isAminoMsgDeposit}}),Object.defineProperty(t,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return c.isAminoMsgEditValidator}}),Object.defineProperty(t,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return c.isAminoMsgFundCommunityPool}}),Object.defineProperty(t,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return c.isAminoMsgMultiSend}}),Object.defineProperty(t,"isAminoMsgSend",{enumerable:!0,get:function(){return c.isAminoMsgSend}}),Object.defineProperty(t,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return c.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(t,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return c.isAminoMsgSubmitEvidence}}),Object.defineProperty(t,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return c.isAminoMsgSubmitProposal}}),Object.defineProperty(t,"isAminoMsgTransfer",{enumerable:!0,get:function(){return c.isAminoMsgTransfer}}),Object.defineProperty(t,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return c.isAminoMsgUndelegate}}),Object.defineProperty(t,"isAminoMsgUnjail",{enumerable:!0,get:function(){return c.isAminoMsgUnjail}}),Object.defineProperty(t,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return c.isAminoMsgVerifyInvariant}}),Object.defineProperty(t,"isAminoMsgVote",{enumerable:!0,get:function(){return c.isAminoMsgVote}}),Object.defineProperty(t,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return c.isAminoMsgVoteWeighted}}),Object.defineProperty(t,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return c.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(t,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return c.isAminoMsgWithdrawValidatorCommission}}),Object.defineProperty(t,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return c.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(t,"isMsgCancelUnbondingDelegationEncodeObject",{enumerable:!0,get:function(){return c.isMsgCancelUnbondingDelegationEncodeObject}}),Object.defineProperty(t,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return c.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(t,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return c.isMsgDelegateEncodeObject}}),Object.defineProperty(t,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return c.isMsgDepositEncodeObject}}),Object.defineProperty(t,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return c.isMsgEditValidatorEncodeObject}}),Object.defineProperty(t,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return c.isMsgSendEncodeObject}}),Object.defineProperty(t,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return c.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(t,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return c.isMsgTransferEncodeObject}}),Object.defineProperty(t,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return c.isMsgUndelegateEncodeObject}}),Object.defineProperty(t,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return c.isMsgVoteEncodeObject}}),Object.defineProperty(t,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return c.isMsgVoteWeightedEncodeObject}}),Object.defineProperty(t,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return c.isMsgWithdrawDelegatorRewardEncodeObject}}),Object.defineProperty(t,"setupAuthExtension",{enumerable:!0,get:function(){return c.setupAuthExtension}}),Object.defineProperty(t,"setupAuthzExtension",{enumerable:!0,get:function(){return c.setupAuthzExtension}}),Object.defineProperty(t,"setupBankExtension",{enumerable:!0,get:function(){return c.setupBankExtension}}),Object.defineProperty(t,"setupDistributionExtension",{enumerable:!0,get:function(){return c.setupDistributionExtension}}),Object.defineProperty(t,"setupFeegrantExtension",{enumerable:!0,get:function(){return c.setupFeegrantExtension}}),Object.defineProperty(t,"setupGovExtension",{enumerable:!0,get:function(){return c.setupGovExtension}}),Object.defineProperty(t,"setupIbcExtension",{enumerable:!0,get:function(){return c.setupIbcExtension}}),Object.defineProperty(t,"setupMintExtension",{enumerable:!0,get:function(){return c.setupMintExtension}}),Object.defineProperty(t,"setupSlashingExtension",{enumerable:!0,get:function(){return c.setupSlashingExtension}}),Object.defineProperty(t,"setupStakingExtension",{enumerable:!0,get:function(){return c.setupStakingExtension}}),Object.defineProperty(t,"setupTxExtension",{enumerable:!0,get:function(){return c.setupTxExtension}});var u=r(54133);Object.defineProperty(t,"makeMultisignedTx",{enumerable:!0,get:function(){return u.makeMultisignedTx}}),Object.defineProperty(t,"makeMultisignedTxBytes",{enumerable:!0,get:function(){return u.makeMultisignedTxBytes}});var p=r(51324);Object.defineProperty(t,"createPagination",{enumerable:!0,get:function(){return p.createPagination}}),Object.defineProperty(t,"createProtobufRpcClient",{enumerable:!0,get:function(){return p.createProtobufRpcClient}}),Object.defineProperty(t,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return p.decodeCosmosSdkDecFromProto}}),Object.defineProperty(t,"QueryClient",{enumerable:!0,get:function(){return p.QueryClient}});var f=r(83804);Object.defineProperty(t,"isSearchTxQueryArray",{enumerable:!0,get:function(){return f.isSearchTxQueryArray}});var h=r(34515);Object.defineProperty(t,"createDefaultAminoConverters",{enumerable:!0,get:function(){return h.createDefaultAminoConverters}}),Object.defineProperty(t,"defaultRegistryTypes",{enumerable:!0,get:function(){return h.defaultRegistryTypes}}),Object.defineProperty(t,"SigningStargateClient",{enumerable:!0,get:function(){return h.SigningStargateClient}});var g=r(62776);Object.defineProperty(t,"assertIsDeliverTxFailure",{enumerable:!0,get:function(){return g.assertIsDeliverTxFailure}}),Object.defineProperty(t,"assertIsDeliverTxSuccess",{enumerable:!0,get:function(){return g.assertIsDeliverTxSuccess}}),Object.defineProperty(t,"BroadcastTxError",{enumerable:!0,get:function(){return g.BroadcastTxError}}),Object.defineProperty(t,"isDeliverTxFailure",{enumerable:!0,get:function(){return g.isDeliverTxFailure}}),Object.defineProperty(t,"isDeliverTxSuccess",{enumerable:!0,get:function(){return g.isDeliverTxSuccess}}),Object.defineProperty(t,"StargateClient",{enumerable:!0,get:function(){return g.StargateClient}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return g.TimeoutError}});var m=r(11717);Object.defineProperty(t,"coin",{enumerable:!0,get:function(){return m.coin}}),Object.defineProperty(t,"coins",{enumerable:!0,get:function(){return m.coins}}),Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return m.makeCosmoshubPath}}),Object.defineProperty(t,"parseCoins",{enumerable:!0,get:function(){return m.parseCoins}})},8151:(e,t,r)=>{"use strict";var n=r(15940),i=r(96649),o=r(61259);e.exports=r(8656)||n.call(o,i)},8398:e=>{"use strict";let t=(function*(){}).constructor;e.exports=()=>t},8464:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleVersion=t.CancelSoftwareUpgradeProposal=t.SoftwareUpgradeProposal=t.Plan=t.protobufPackage=void 0;let n=r(37375),i=r(54573),o=r(4696),a=r(92242);function s(){return{name:"",time:n.Timestamp.fromPartial({}),height:BigInt(0),info:"",upgradedClientState:void 0}}function d(){return{title:"",description:"",plan:t.Plan.fromPartial({})}}function l(){return{title:"",description:""}}function c(){return{name:"",version:BigInt(0)}}t.protobufPackage="cosmos.upgrade.v1beta1",t.Plan={typeUrl:"/cosmos.upgrade.v1beta1.Plan",encode:(e,t=o.BinaryWriter.create())=>(""!==e.name&&t.uint32(10).string(e.name),void 0!==e.time&&n.Timestamp.encode(e.time,t.uint32(18).fork()).ldelim(),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),""!==e.info&&t.uint32(34).string(e.info),void 0!==e.upgradedClientState&&i.Any.encode(e.upgradedClientState,t.uint32(42).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=s();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.name=r.string();break;case 2:d.time=n.Timestamp.decode(r,r.uint32());break;case 3:d.height=r.int64();break;case 4:d.info=r.string();break;case 5:d.upgradedClientState=i.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=s();return(0,a.isSet)(e.name)&&(t.name=String(e.name)),(0,a.isSet)(e.time)&&(t.time=(0,a.fromJsonTimestamp)(e.time)),(0,a.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,a.isSet)(e.info)&&(t.info=String(e.info)),(0,a.isSet)(e.upgradedClientState)&&(t.upgradedClientState=i.Any.fromJSON(e.upgradedClientState)),t},toJSON(e){let t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.time&&(t.time=(0,a.fromTimestamp)(e.time).toISOString()),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.info&&(t.info=e.info),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?i.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){let t=s();return t.name=e.name??"",void 0!==e.time&&null!==e.time&&(t.time=n.Timestamp.fromPartial(e.time)),void 0!==e.height&&null!==e.height&&(t.height=BigInt(e.height.toString())),t.info=e.info??"",void 0!==e.upgradedClientState&&null!==e.upgradedClientState&&(t.upgradedClientState=i.Any.fromPartial(e.upgradedClientState)),t}},t.SoftwareUpgradeProposal={typeUrl:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",encode:(e,r=o.BinaryWriter.create())=>(""!==e.title&&r.uint32(10).string(e.title),""!==e.description&&r.uint32(18).string(e.description),void 0!==e.plan&&t.Plan.encode(e.plan,r.uint32(26).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=d();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.plan=t.Plan.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=d();return(0,a.isSet)(e.title)&&(r.title=String(e.title)),(0,a.isSet)(e.description)&&(r.description=String(e.description)),(0,a.isSet)(e.plan)&&(r.plan=t.Plan.fromJSON(e.plan)),r},toJSON(e){let r={};return void 0!==e.title&&(r.title=e.title),void 0!==e.description&&(r.description=e.description),void 0!==e.plan&&(r.plan=e.plan?t.Plan.toJSON(e.plan):void 0),r},fromPartial(e){let r=d();return r.title=e.title??"",r.description=e.description??"",void 0!==e.plan&&null!==e.plan&&(r.plan=t.Plan.fromPartial(e.plan)),r}},t.CancelSoftwareUpgradeProposal={typeUrl:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",encode:(e,t=o.BinaryWriter.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=l();return(0,a.isSet)(e.title)&&(t.title=String(e.title)),(0,a.isSet)(e.description)&&(t.description=String(e.description)),t},toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial(e){let t=l();return t.title=e.title??"",t.description=e.description??"",t}},t.ModuleVersion={typeUrl:"/cosmos.upgrade.v1beta1.ModuleVersion",encode:(e,t=o.BinaryWriter.create())=>(""!==e.name&&t.uint32(10).string(e.name),e.version!==BigInt(0)&&t.uint32(16).uint64(e.version),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.name=r.string();break;case 2:i.version=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=c();return(0,a.isSet)(e.name)&&(t.name=String(e.name)),(0,a.isSet)(e.version)&&(t.version=BigInt(e.version.toString())),t},toJSON(e){let t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.version&&(t.version=(e.version||BigInt(0)).toString()),t},fromPartial(e){let t=c();return t.name=e.name??"",void 0!==e.version&&null!==e.version&&(t.version=BigInt(e.version.toString())),t}}},8495:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},d=Object.prototype.toString,l="[object Object]",c="[object Function]",u="[object GeneratorFunction]",p="[object HTMLAllCollection]",f="[object HTML document.all class]",h="[object HTMLCollection]",g="function"==typeof Symbol&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if("object"==typeof document){var b=document.all;d.call(b)===d.call(document.all)&&(y=function(e){if((m||!e)&&(void 0===e||"object"==typeof e))try{var t=d.call(e);return(t===p||t===f||t===h||t===l)&&null==e("")}catch(e){}return!1})}
1e.exports=i?function(e){if(y(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(y(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(g)return s(e);if(a(e))return!1;var t=d.call(e);return(t===c||t===u||!!/^\[object HTML/.test(t))&&s(e)}},8579:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ValueAndUpdates=t.toListPromise=t.fromListPromise=t.firstEvent=t.dropDuplicates=t.DefaultValueProducer=t.concat=void 0;var o=r(9569);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return o.concat}});var a=r(39085);Object.defineProperty(t,"DefaultValueProducer",{enumerable:!0,get:function(){return a.DefaultValueProducer}});var s=r(662);Object.defineProperty(t,"dropDuplicates",{enumerable:!0,get:function(){return s.dropDuplicates}});var d=r(80846);Object.defineProperty(t,"firstEvent",{enumerable:!0,get:function(){return d.firstEvent}}),Object.defineProperty(t,"fromListPromise",{enumerable:!0,get:function(){return d.fromListPromise}}),Object.defineProperty(t,"toListPromise",{enumerable:!0,get:function(){return d.toListPromise}}),i(r(1863),t);var l=r(30760);Object.defineProperty(t,"ValueAndUpdates",{enumerable:!0,get:function(){return l.ValueAndUpdates}})},8656:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},8789:(e,t,r)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.Acknowledgement=t.PacketId=t.PacketState=t.Packet=t.Counterparty=t.IdentifiedChannel=t.Channel=t.orderToJSON=t.orderFromJSON=t.Order=t.stateToJSON=t.stateFromJSON=t.State=t.protobufPackage=void 0;let o=r(22421),a=r(4696),s=r(92242);function d(e){switch(e){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return n.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return n.STATE_INIT;case 2:case"STATE_TRYOPEN":return n.STATE_TRYOPEN;case 3:case"STATE_OPEN":return n.STATE_OPEN;case 4:case"STATE_CLOSED":return n.STATE_CLOSED;default:return n.UNRECOGNIZED}}function l(e){switch(e){case n.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case n.STATE_INIT:return"STATE_INIT";case n.STATE_TRYOPEN:return"STATE_TRYOPEN";case n.STATE_OPEN:return"STATE_OPEN";case n.STATE_CLOSED:return"STATE_CLOSED";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(e){switch(e){case 0:case"ORDER_NONE_UNSPECIFIED":return i.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return i.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return i.ORDER_ORDERED;default:return i.UNRECOGNIZED}}function u(e){switch(e){case i.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case i.ORDER_UNORDERED:return"ORDER_UNORDERED";case i.ORDER_ORDERED:return"ORDER_ORDERED";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(){return{state:0,ordering:0,counterparty:t.Counterparty.fromPartial({}),connectionHops:[],version:""}}function f(){return{state:0,ordering:0,counterparty:t.Counterparty.fromPartial({}),connectionHops:[],version:"",portId:"",channelId:""}}function h(){return{portId:"",channelId:""}}function g(){return{sequence:BigInt(0),sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",data:new Uint8Array,timeoutHeight:o.Height.fromPartial({}),timeoutTimestamp:BigInt(0)}}function m(){return{portId:"",channelId:"",sequence:BigInt(0),data:new Uint8Array}}function y(){return{portId:"",channelId:"",sequence:BigInt(0)}}function b(){return{result:void 0,error:void 0}}t.protobufPackage="ibc.core.channel.v1",function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.STATE_CLOSED=4]="STATE_CLOSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.State=n={})),t.stateFromJSON=d,t.stateToJSON=l,function(e){e[e.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",e[e.ORDER_UNORDERED=1]="ORDER_UNORDERED",e[e.ORDER_ORDERED=2]="ORDER_ORDERED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(t.Order=i={})),t.orderFromJSON=c,t.orderToJSON=u,t.Channel={typeUrl:"/ibc.core.channel.v1.Channel",encode(e,r=a.BinaryWriter.create()){for(let n of(0!==e.state&&r.uint32(8).int32(e.state),0!==e.ordering&&r.uint32(16).int32(e.ordering),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,r.uint32(26).fork()).ldelim(),e.connectionHops))r.uint32(34).string(n);return""!==e.version&&r.uint32(42).string(e.version),r},decode(e,r){let n=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=p();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.state=n.int32();break;case 2:o.ordering=n.int32();break;case 3:o.counterparty=t.Counterparty.decode(n,n.uint32());break;case 4:o.connectionHops.push(n.string());break;case 5:o.version=n.string();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=p();return(0,s.isSet)(e.state)&&(r.state=d(e.state)),(0,s.isSet)(e.ordering)&&(r.ordering=c(e.ordering)),(0,s.isSet)(e.counterparty)&&(r.counterparty=t.Counterparty.fromJSON(e.counterparty)),Array.isArray(e?.connectionHops)&&(r.connectionHops=e.connectionHops.map(e=>String(e))),(0,s.isSet)(e.version)&&(r.version=String(e.version)),r},toJSON(e){let r={};return void 0!==e.state&&(r.state=l(e.state)),void 0!==e.ordering&&(r.ordering=u(e.ordering)),void 0!==e.counterparty&&(r.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?r.connectionHops=e.connectionHops.map(e=>e):r.connectionHops=[],void 0!==e.version&&(r.version=e.version),r},fromPartial(e){let r=p();return r.state=e.state??0,r.ordering=e.ordering??0,void 0!==e.counterparty&&null!==e.counterparty&&(r.counterparty=t.Counterparty.fromPartial(e.counterparty)),r.connectionHops=e.connectionHops?.map(e=>e)||[],r.version=e.version??"",r}},t.IdentifiedChannel={typeUrl:"/ibc.core.channel.v1.IdentifiedChannel",encode(e,r=a.BinaryWriter.create()){for(let n of(0!==e.state&&r.uint32(8).int32(e.state),0!==e.ordering&&r.uint32(16).int32(e.ordering),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,r.uint32(26).fork()).ldelim(),e.connectionHops))r.uint32(34).string(n);return""!==e.version&&r.uint32(42).string(e.version),""!==e.portId&&r.uint32(50).string(e.portId),""!==e.channelId&&r.uint32(58).string(e.channelId),r},decode(e,r){let n=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.state=n.int32();break;case 2:o.ordering=n.int32();break;case 3:o.counterparty=t.Counterparty.decode(n,n.uint32());break;case 4:o.connectionHops.push(n.string());break;case 5:o.version=n.string();break;case 6:o.portId=n.string();break;case 7:o.channelId=n.string();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=f();return(0,s.isSet)(e.state)&&(r.state=d(e.state)),(0,s.isSet)(e.ordering)&&(r.ordering=c(e.ordering)),(0,s.isSet)(e.counterparty)&&(r.counterparty=t.Counterparty.fromJSON(e.counterparty)),Array.isArray(e?.connectionHops)&&(r.connectionHops=e.connectionHops.map(e=>String(e))),(0,s.isSet)(e.version)&&(r.version=String(e.version)),(0,s.isSet)(e.portId)&&(r.portId=String(e.portId)),(0,s.isSet)(e.channelId)&&(r.channelId=String(e.channelId)),r},toJSON(e){let r={};return void 0!==e.state&&(r.state=l(e.state)),void 0!==e.ordering&&(r.ordering=u(e.ordering)),void 0!==e.counterparty&&(r.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?r.connectionHops=e.connectionHops.map(e=>e):r.connectionHops=[],void 0!==e.version&&(r.version=e.version),void 0!==e.portId&&(r.portId=e.portId),void 0!==e.channelId&&(r.channelId=e.channelId),r},fromPartial(e){let r=f();return r.state=e.state??0,r.ordering=e.ordering??0,void 0!==e.counterparty&&null!==e.counterparty&&(r.counterparty=t.Counterparty.fromPartial(e.counterparty)),r.connectionHops=e.connectionHops?.map(e=>e)||[],r.version=e.version??"",r.portId=e.portId??"",r.channelId=e.channelId??"",r}},t.Counterparty={typeUrl:"/ibc.core.channel.v1.Counterparty",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){let t=h();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}},t.Packet={typeUrl:"/ibc.core.channel.v1.Packet",encode:(e,t=a.BinaryWriter.create())=>(e.sequence!==BigInt(0)&&t.uint32(8).uint64(e.sequence),""!==e.sourcePort&&t.uint32(18).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(26).string(e.sourceChannel),""!==e.destinationPort&&t.uint32(34).string(e.destinationPort),""!==e.destinationChannel&&t.uint32(42).string(e.destinationChannel),
10!==e.data.length&&t.uint32(50).bytes(e.data),void 0!==e.timeoutHeight&&o.Height.encode(e.timeoutHeight,t.uint32(58).fork()).ldelim(),e.timeoutTimestamp!==BigInt(0)&&t.uint32(64).uint64(e.timeoutTimestamp),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.sequence=r.uint64();break;case 2:i.sourcePort=r.string();break;case 3:i.sourceChannel=r.string();break;case 4:i.destinationPort=r.string();break;case 5:i.destinationChannel=r.string();break;case 6:i.data=r.bytes();break;case 7:i.timeoutHeight=o.Height.decode(r,r.uint32());break;case 8:i.timeoutTimestamp=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,s.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),(0,s.isSet)(e.sourcePort)&&(t.sourcePort=String(e.sourcePort)),(0,s.isSet)(e.sourceChannel)&&(t.sourceChannel=String(e.sourceChannel)),(0,s.isSet)(e.destinationPort)&&(t.destinationPort=String(e.destinationPort)),(0,s.isSet)(e.destinationChannel)&&(t.destinationChannel=String(e.destinationChannel)),(0,s.isSet)(e.data)&&(t.data=(0,s.bytesFromBase64)(e.data)),(0,s.isSet)(e.timeoutHeight)&&(t.timeoutHeight=o.Height.fromJSON(e.timeoutHeight)),(0,s.isSet)(e.timeoutTimestamp)&&(t.timeoutTimestamp=BigInt(e.timeoutTimestamp.toString())),t},toJSON(e){let t={};return void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.destinationPort&&(t.destinationPort=e.destinationPort),void 0!==e.destinationChannel&&(t.destinationChannel=e.destinationChannel),void 0!==e.data&&(t.data=(0,s.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?o.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=(e.timeoutTimestamp||BigInt(0)).toString()),t},fromPartial(e){let t=g();return void 0!==e.sequence&&null!==e.sequence&&(t.sequence=BigInt(e.sequence.toString())),t.sourcePort=e.sourcePort??"",t.sourceChannel=e.sourceChannel??"",t.destinationPort=e.destinationPort??"",t.destinationChannel=e.destinationChannel??"",t.data=e.data??new Uint8Array,void 0!==e.timeoutHeight&&null!==e.timeoutHeight&&(t.timeoutHeight=o.Height.fromPartial(e.timeoutHeight)),void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp&&(t.timeoutTimestamp=BigInt(e.timeoutTimestamp.toString())),t}},t.PacketState={typeUrl:"/ibc.core.channel.v1.PacketState",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),0!==e.data.length&&t.uint32(34).bytes(e.data),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;case 4:i.data=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,s.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),(0,s.isSet)(e.data)&&(t.data=(0,s.bytesFromBase64)(e.data)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),void 0!==e.data&&(t.data=(0,s.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){let t=m();return t.portId=e.portId??"",t.channelId=e.channelId??"",void 0!==e.sequence&&null!==e.sequence&&(t.sequence=BigInt(e.sequence.toString())),t.data=e.data??new Uint8Array,t}},t.PacketId={typeUrl:"/ibc.core.channel.v1.PacketId",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,s.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=y();return t.portId=e.portId??"",t.channelId=e.channelId??"",void 0!==e.sequence&&null!==e.sequence&&(t.sequence=BigInt(e.sequence.toString())),t}},t.Acknowledgement={typeUrl:"/ibc.core.channel.v1.Acknowledgement",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.result&&t.uint32(170).bytes(e.result),void 0!==e.error&&t.uint32(178).string(e.error),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 21:i.result=r.bytes();break;case 22:i.error=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,s.isSet)(e.result)&&(t.result=(0,s.bytesFromBase64)(e.result)),(0,s.isSet)(e.error)&&(t.error=String(e.error)),t},toJSON(e){let t={};return void 0!==e.result&&(t.result=void 0!==e.result?(0,s.base64FromBytes)(e.result):void 0),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){let t=b();return t.result=e.result??void 0,t.error=e.error??void 0,t}}},8829:(e,t,r)=>{"use strict";r.d(t,{Ab:()=>u,Dg:()=>h,JJ:()=>l,Ro:()=>m,ST:()=>d,WZ:()=>g,c4:()=>b,dK:()=>c,nD:()=>v,up:()=>y});var n=r(28014),i=r(42984);let o=BigInt(0),a=BigInt(1),s=0x1fffffffffffff;function d(e,t){let r=p(e,"value"),n=BigInt(g(t,"width"));return((0,i.vA)(r>>n===o,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>n-a)?-((~r&(a<<n)-a)+a):r}function l(e,t){let r=u(e,"value"),n=BigInt(g(t,"width")),s=a<<n-a;return r<o?(r=-r,(0,i.vA)(r<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),(~r&(a<<n)-a)+a):((0,i.vA)(r<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),r)}function c(e,t){return p(e,"value")&(a<<BigInt(g(t,"bits")))-a}function u(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,i.MR)(Number.isInteger(e),"underflow",t||"value",e),(0,i.MR)(e>=-s&&e<=s,"overflow",t||"value",e),BigInt(e);
1case"string":try{if(""===e)throw Error("empty string");if("-"===e[0]&&"-"!==e[1])return-BigInt(e.substring(1));return BigInt(e)}catch(r){(0,i.MR)(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}(0,i.MR)(!1,"invalid BigNumberish value",t||"value",e)}function p(e,t){let r=u(e,t);return(0,i.vA)(r>=o,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}let f="0123456789abcdef";function h(e){if(e instanceof Uint8Array){let t="0x0";for(let r of e)t+=f[r>>4],t+=f[15&r];return BigInt(t)}return u(e)}function g(e,t){switch(typeof e){case"bigint":return(0,i.MR)(e>=-s&&e<=s,"overflow",t||"value",e),Number(e);case"number":return(0,i.MR)(Number.isInteger(e),"underflow",t||"value",e),(0,i.MR)(e>=-s&&e<=s,"overflow",t||"value",e),e;case"string":try{if(""===e)throw Error("empty string");return g(BigInt(e),t)}catch(r){(0,i.MR)(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}(0,i.MR)(!1,"invalid numeric value",t||"value",e)}function m(e){return g(h(e))}function y(e,t){let r=p(e,"value"),n=r.toString(16);if(null==t)n.length%2&&(n="0"+n);else{let a=g(t,"width");if(0===a&&r===o)return"0x";for((0,i.vA)(2*a>=n.length,`value exceeds width (${a} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*a;)n="0"+n}return"0x"+n}function b(e,t){let r=p(e,"value");if(r===o)return new Uint8Array(null!=t?g(t,"width"):0);let n=r.toString(16);if(n.length%2&&(n="0"+n),null!=t){let r=g(t,"width");for(;n.length<2*r;)n="00"+n;(0,i.vA)(2*r===n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeArray",fault:"overflow",value:e})}let a=new Uint8Array(n.length/2);for(let e=0;e<a.length;e++){let t=2*e;a[e]=parseInt(n.substring(t,t+2),16)}return a}function v(e){let t=(0,n.c$)((0,n.f)(e)?e:b(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},9545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromUtf8=t.toUtf8=void 0,t.toUtf8=function(e){return new TextEncoder().encode(e)},t.fromUtf8=function(e,t=!1){return new TextDecoder("utf-8",{fatal:!t}).decode(e)}},9569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;let n=r(29268);t.concat=function(...e){let t=[],r=[],i=new Set,o=0;function a(){for(;t.length>0;)t.shift().unsubscribe();r.length=0,i.clear(),o=0}let s={start:n=>{function s(e){for(;;){let t=r[e].shift();if(void 0===t)return;n.next(t)}}function d(){return o>=e.length}if(e.forEach(e=>r.push([])),d())return void n.complete();e.forEach((e,l)=>{t.push(e.subscribe({next:e=>{l===o?n.next(e):r[l].push(e)},complete:()=>{for(i.add(l);i.has(o);)s(o),o++;d()?n.complete():s(o)},error:e=>{n.error(e),a()}}))})},stop:()=>{a()}};return n.Stream.create(s)}},9894:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(1486),o=Object.keys,a=o?function(e){return o(e)}:r(79864),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},9982:(e,t,r)=>{"use strict";var n=r(91697),i=r(95488),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function d(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function l(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)return void e.push(t);var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=d(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=d(e,r);if(!1===a||(128&e[r.place])!=0)return!1;var l=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var c=d(e,r);if(!1===c||e.length!==c+r.place||(128&e[r.place])!=0)return!1;var u=e.slice(r.place,c+r.place);if(0===l[0])if(!(128&l[1]))return!1;else l=l.slice(1);if(0===u[0])if(!(128&u[1]))return!1;else u=u.slice(1);return this.r=new n(l),this.s=new n(u),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=l(t),r=l(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},10081:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.Ripemd160=void 0;let n=r(18637),i=r(53963);class o{constructor(e){this.blockSize=64,this.impl=n.ripemd160.create(),e&&this.update(e)}update(e){return this.impl.update((0,i.toRealUint8Array)(e)),this}digest(){return this.impl.digest()}}t.Ripemd160=o,t.ripemd160=function(e){return new o(e).digest()}},10095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AminoTypes=void 0;class r{constructor(e){this.register=e}toAmino({typeUrl:e,value:t}){let r=this.register[e];if(!r)throw Error(`Type URL '${e}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);return{type:r.aminoType,value:r.toAmino(t)}}fromAmino({type:e,value:t}){let r=Object.entries(this.register).filter(([t,{aminoType:r}])=>r===e);switch(r.length){case 0:throw Error(`Amino type identifier '${e}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);case 1:{let[e,n]=r[0];return{typeUrl:e,value:n.fromAmino(t)}}default:throw Error(`Multiple types are registered with Amino type identifier '${e}': '`+r.map(([e,t])=>e).sort().join("', '")+"'. Thus fromAmino cannot be performed.")}}}t.AminoTypes=r},10436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;let n=r(5559);t.SHA256=n.SHA256,t.sha256=n.sha256,t.SHA224=n.SHA224,t.sha224=n.sha224},10446:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryNextSequenceReceiveResponse=t.QueryNextSequenceReceiveRequest=t.QueryUnreceivedAcksResponse=t.QueryUnreceivedAcksRequest=t.QueryUnreceivedPacketsResponse=t.QueryUnreceivedPacketsRequest=t.QueryPacketAcknowledgementsResponse=t.QueryPacketAcknowledgementsRequest=t.QueryPacketAcknowledgementResponse=t.QueryPacketAcknowledgementRequest=t.QueryPacketReceiptResponse=t.QueryPacketReceiptRequest=t.QueryPacketCommitmentsResponse=t.QueryPacketCommitmentsRequest=t.QueryPacketCommitmentResponse=t.QueryPacketCommitmentRequest=t.QueryChannelConsensusStateResponse=t.QueryChannelConsensusStateRequest=t.QueryChannelClientStateResponse=t.QueryChannelClientStateRequest=t.QueryConnectionChannelsResponse=t.QueryConnectionChannelsRequest=t.QueryChannelsResponse=t.QueryChannelsRequest=t.QueryChannelResponse=t.QueryChannelRequest=t.protobufPackage=void 0;let n=r(64094),i=r(8789),o=r(22421),a=r(54573),s=r(4696),d=r(92242);function l(){return{portId:"",channelId:""}}function c(){return{channel:void 0,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function u(){return{pagination:void 0}}function p(){return{channels:[],pagination:void 0,height:o.Height.fromPartial({})}}function f(){return{connection:"",pagination:void 0}}function h(){return{channels:[],pagination:void 0,height:o.Height.fromPartial({})}}function g(){return{portId:"",channelId:""}}function m(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function y(){return{portId:"",channelId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}function b(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function v(){return{portId:"",channelId:"",sequence:BigInt(0)}}function S(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function A(){return{portId:"",channelId:"",pagination:void 0}}function w(){return{commitments:[],pagination:void 0,height:o.Height.fromPartial({})}}function _(){return{portId:"",channelId:"",sequence:BigInt(0)}}function P(){return{received:!1,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function k(){return{portId:"",channelId:"",sequence:BigInt(0)}}function R(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function O(){return{portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]}}function I(){return{acknowledgements:[],pagination:void 0,height:o.Height.fromPartial({})}}function B(){return{portId:"",channelId:"",packetCommitmentSequences:[]}}function x(){return{sequences:[],height:o.Height.fromPartial({})}}function E(){return{portId:"",channelId:"",packetAckSequences:[]}}function T(){return{sequences:[],height:o.Height.fromPartial({})}}function N(){return{portId:"",channelId:""}}function C(){return{nextSequenceReceive:BigInt(0),proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}
1t.protobufPackage="ibc.core.channel.v1",t.QueryChannelRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=l();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){let t=l();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}},t.QueryChannelResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.channel&&i.Channel.encode(e.channel,t.uint32(10).fork()).ldelim(),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.channel=i.Channel.decode(r,r.uint32());break;case 2:a.proof=r.bytes();break;case 3:a.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=c();return(0,d.isSet)(e.channel)&&(t.channel=i.Channel.fromJSON(e.channel)),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.channel&&(t.channel=e.channel?i.Channel.toJSON(e.channel):void 0),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=c();return void 0!==e.channel&&null!==e.channel&&(t.channel=i.Channel.fromPartial(e.channel)),t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.pagination=n.PageRequest.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=u();return(0,d.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u();return void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",encode(e,t=s.BinaryWriter.create()){for(let r of e.channels)i.IdentifiedChannel.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&o.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=p();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.channels.push(i.IdentifiedChannel.decode(r,r.uint32()));break;case 2:d.pagination=n.PageResponse.decode(r,r.uint32());break;case 3:d.height=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=p();return Array.isArray(e?.channels)&&(t.channels=e.channels.map(e=>i.IdentifiedChannel.fromJSON(e))),(0,d.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),(0,d.isSet)(e.height)&&(t.height=o.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.channels?t.channels=e.channels.map(e=>e?i.IdentifiedChannel.toJSON(e):void 0):t.channels=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?o.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=p();return t.channels=e.channels?.map(e=>i.IdentifiedChannel.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),void 0!==e.height&&null!==e.height&&(t.height=o.Height.fromPartial(e.height)),t}},t.QueryConnectionChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.connection&&t.uint32(10).string(e.connection),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=f();for(;r.pos<i;){let e=r.uint32();switch(e>>>
13){case 1:o.connection=r.string();break;case 2:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=f();return(0,d.isSet)(e.connection)&&(t.connection=String(e.connection)),(0,d.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.connection&&(t.connection=e.connection),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=f();return t.connection=e.connection??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryConnectionChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",encode(e,t=s.BinaryWriter.create()){for(let r of e.channels)i.IdentifiedChannel.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&o.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=h();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.channels.push(i.IdentifiedChannel.decode(r,r.uint32()));break;case 2:d.pagination=n.PageResponse.decode(r,r.uint32());break;case 3:d.height=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=h();return Array.isArray(e?.channels)&&(t.channels=e.channels.map(e=>i.IdentifiedChannel.fromJSON(e))),(0,d.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),(0,d.isSet)(e.height)&&(t.height=o.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.channels?t.channels=e.channels.map(e=>e?i.IdentifiedChannel.toJSON(e):void 0):t.channels=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?o.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=h();return t.channels=e.channels?.map(e=>i.IdentifiedChannel.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),void 0!==e.height&&null!==e.height&&(t.height=o.Height.fromPartial(e.height)),t}},t.QueryChannelClientStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){let t=g();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}},t.QueryChannelClientStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.identifiedClientState&&o.IdentifiedClientState.encode(e.identifiedClientState,t.uint32(10).fork()).ldelim(),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.identifiedClientState=o.IdentifiedClientState.decode(r,r.uint32());break;case 2:i.proof=r.bytes();break;case 3:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,d.isSet)(e.identifiedClientState)&&(t.identifiedClientState=o.IdentifiedClientState.fromJSON(e.identifiedClientState)),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.identifiedClientState&&(t.identifiedClientState=e.identifiedClientState?o.IdentifiedClientState.toJSON(e.identifiedClientState):void 0),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=m();return void 0!==e.identifiedClientState&&null!==e.identifiedClientState&&(t.identifiedClientState=o.IdentifiedClientState.fromPartial(e.identifiedClientState)),t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryChannelConsensusStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.revisionNumber!==BigInt(0)&&t.uint32(24).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&t.uint32(32).uint64(e.revisionHeight),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.revisionNumber=r.uint64();break;case 4:i.revisionHeight=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,d.isSet)(e.revisionNumber)&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),(0,d.isSet)(e.revisionHeight)&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.revisionNumber&&(t.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),void 0!==e.revisionHeight&&(t.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),t},fromPartial(e){let t=y();return t.portId=e.portId??"",t.channelId=e.channelId??"",void 0!==e.revisionNumber&&null!==e.revisionNumber&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),void 0!==e.revisionHeight&&null!==e.revisionHeight&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t}},t.QueryChannelConsensusStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.consensusState&&a.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),""!==e.clientId&&t.uint32(18).string(e.clientId),0!==e.proof.length&&t.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.consensusState=a.Any.decode(r,r.uint32());break;case 2:i.clientId=r.string();break;case 3:i.proof=r.bytes();break;case 4:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,d.isSet)(e.consensusState)&&(t.consensusState=a.Any.fromJSON(e.consensusState)),(0,d.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.consensusState&&(t.consensusState=e.consensusState?a.Any.toJSON(e.consensusState):void 0),void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=b();return void 0!==e.consensusState&&null!==e.consensusState&&(t.consensusState=a.Any.fromPartial(e.consensusState)),t.clientId=e.clientId??"",t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryPacketCommitmentRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=v();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,d.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=v();return t.portId=e.portId??"",t.channelId=e.channelId??"",void 0!==e.sequence&&null!==e.sequence&&(t.sequence=BigInt(e.sequence.toString())),t}},t.QueryPacketCommitmentResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",encode:(e,t=s.BinaryWriter.create())=>(0!==e.commitment.length&&t.uint32(10).bytes(e.commitment),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.commitment=r.bytes();break;case 2:i.proof=r.bytes();break;case 3:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=S();return(0,d.isSet)(e.commitment)&&(t.commitment=(0,d.bytesFromBase64)(e.commitment)),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.commitment&&(t.commitment=(0,d.base64FromBytes)(void 0!==e.commitment?e.commitment:new Uint8Array)),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=S();return t.commitment=e.commitment??new Uint8Array,t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryPacketCommitmentsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=A();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.portId=r.string();break;case 2:o.channelId=r.string();break;case 3:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=A();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,d.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=A();return t.portId=e.portId??"",t.channelId=e.channelId??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryPacketCommitmentsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",encode(e,t=s.BinaryWriter.create()){for(let r of e.commitments)i.PacketState.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&o.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=w();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.commitments.push(i.PacketState.decode(r,r.uint32()));break;case 2:d.pagination=n.PageResponse.decode(r,r.uint32());break;case 3:d.height=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=w();return Array.isArray(e?.commitments)&&(t.commitments=e.commitments.map(e=>i.PacketState.fromJSON(e))),(0,d.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),(0,d.isSet)(e.height)&&(t.height=o.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.commitments?t.commitments=e.commitments.map(e=>e?i.PacketState.toJSON(e):void 0):t.commitments=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?o.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=w();return t.commitments=e.commitments?.map(e=>i.PacketState.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),void 0!==e.height&&null!==e.height&&(t.height=o.Height.fromPartial(e.height)),t}},t.QueryPacketReceiptRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=_();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,d.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=_();return t.portId=e.portId??"",t.channelId=e.channelId??"",void 0!==e.sequence&&null!==e.sequence&&(t.sequence=BigInt(e.sequence.toString())),t}},t.QueryPacketReceiptResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",encode:(e,t=s.BinaryWriter.create())=>(!0===e.received&&t.uint32(16).bool(e.received),0!==e.proof.length&&t.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=P();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 2:i.received=r.bool();break;case 3:i.proof=r.bytes();break;case 4:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=P();return(0,d.isSet)(e.received)&&(t.received=!!e.received),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.received&&(t.received=e.received),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=P();return t.received=e.received??!1,t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryPacketAcknowledgementRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&t.uint32(24).uint64(e.sequence),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=k();for(;r.pos<n;){let
1 e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=k();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,d.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=k();return t.portId=e.portId??"",t.channelId=e.channelId??"",void 0!==e.sequence&&null!==e.sequence&&(t.sequence=BigInt(e.sequence.toString())),t}},t.QueryPacketAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",encode:(e,t=s.BinaryWriter.create())=>(0!==e.acknowledgement.length&&t.uint32(10).bytes(e.acknowledgement),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=R();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.acknowledgement=r.bytes();break;case 2:i.proof=r.bytes();break;case 3:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=R();return(0,d.isSet)(e.acknowledgement)&&(t.acknowledgement=(0,d.bytesFromBase64)(e.acknowledgement)),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.acknowledgement&&(t.acknowledgement=(0,d.base64FromBytes)(void 0!==e.acknowledgement?e.acknowledgement:new Uint8Array)),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=R();return t.acknowledgement=e.acknowledgement??new Uint8Array,t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryPacketAcknowledgementsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",encode(e,t=s.BinaryWriter.create()){for(let r of(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(26).fork()).ldelim(),t.uint32(34).fork(),e.packetCommitmentSequences))t.uint64(r);return t.ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=O();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.portId=r.string();break;case 2:o.channelId=r.string();break;case 3:o.pagination=n.PageRequest.decode(r,r.uint32());break;case 4:if((7&e)==2){let e=r.uint32()+r.pos;for(;r.pos<e;)o.packetCommitmentSequences.push(r.uint64())}else o.packetCommitmentSequences.push(r.uint64());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=O();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,d.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),Array.isArray(e?.packetCommitmentSequences)&&(t.packetCommitmentSequences=e.packetCommitmentSequences.map(e=>BigInt(e.toString()))),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),e.packetCommitmentSequences?t.packetCommitmentSequences=e.packetCommitmentSequences.map(e=>(e||BigInt(0)).toString()):t.packetCommitmentSequences=[],t},fromPartial(e){let t=O();return t.portId=e.portId??"",t.channelId=e.channelId??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t.packetCommitmentSequences=e.packetCommitmentSequences?.map(e=>BigInt(e.toString()))||[],t}},t.QueryPacketAcknowledgementsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",encode(e,t=s.BinaryWriter.create()){for(let r of e.acknowledgements)i.PacketState.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&o.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=I();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.acknowledgements.push(i.PacketState.decode(r,r.uint32()));break;case 2:d.pagination=n.PageResponse.decode(r,r.uint32());break;case 3:d.height=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=I();return Array.isArray(e?.acknowledgements)&&(t.acknowledgements=e.acknowledgements.map(e=>i.PacketState.fromJSON(e))),(0,d.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),(0,d.isSet)(e.height)&&(t.height=o.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.acknowledgements?t.acknowledgements=e.acknowledgements.map(e=>e?i.PacketState.toJSON(e):void 0):t.acknowledgements=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?o.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=I();return t.acknowledgements=e.acknowledgements?.map(e=>i.PacketState.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),void 0!==e.height&&null!==e.height&&(t.height=o.Height.fromPartial(e.height)),t}},t.QueryUnreceivedPacketsRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",encode(e,t=s.BinaryWriter.create()){for(let r of(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t.uint32(26).fork(),e.packetCommitmentSequences))t.uint64(r);return t.ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=B();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:if((7&e)==2){let e=r.uint32()+r.pos;for(;r.pos<e;)i.packetCommitmentSequences.push(r.uint64())}else i.packetCommitmentSequences.push(r.uint64());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=B();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),Array.isArray(e?.packetCommitmentSequences)&&(t.packetCommitmentSequences=e.packetCommitmentSequences.map(e=>BigInt(e.toString()))),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),e.packetCommitmentSequences?t.packetCommitmentSequences=e.packetCommitmentSequences.map(e=>(e||BigInt(0)).toString()):t.packetCommitmentSequences=[],t},fromPartial(e){let t=B();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.packetCommitmentSequences=e.packetCommitmentSequences?.map(e=>BigInt(e.toString()))||[],t}},t.QueryUnreceivedPacketsResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",encode(e,t=s.BinaryWriter.create()){for(let r of(t.uint32(10).fork(),e.sequences))t.uint64(r);return t.ldelim(),void 0!==e.height&&o.Height.encode(e.height,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=x();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if((7&e)==2){let e=r.uint32()+r.pos;for(;r.pos<e;)i.sequences.push(r.uint64())}else i.sequences.push(r.uint64());break;case 2:i.height=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=x();return Array.isArray(e?.sequences)&&(t.sequences=e.sequences.map(e=>BigInt(e.toString()))),(0,d.isSet)(e.height)&&(t.height=o.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.sequences?t.sequences=e.sequences.map(e=>(e||BigInt(0)).toString()):t.sequences=[],void 0!==e.height&&(t.height=e.height?o.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=x();return t.sequences=e.sequences?.map(e=>BigInt(e.toString()))||[],void 0!==e.height&&null!==e.height&&(t.height=o.Height.fromPartial(e.height)),t}},t.QueryUnreceivedAcksRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",encode(e,t=s.BinaryWriter.create()){for(let r of(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t.uint32(26).fork(),e.packetAckSequences))t.uint64(r);return t.ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=E();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:if((7&e)==2){let e=r.uint32()+r.pos;for(;r.pos<e;)i.packetAckSequences.push(r.uint64())}else i.packetAckSequences.push(r.uint64());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=E();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),Array.isArray(e?.packetAckSequences)&&(t.packetAckSequences=e.packetAckSequences.map(e=>BigInt(e.toString()))),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),e.packetAckSequences?t.packetAckSequences=e.packetAckSequences.map(e=>(e||BigInt(0)).toString()):t.packetAckSequences=[],t},fromPartial(e){let t=E();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.packetAckSequences=e.packetAckSequences?.map(e=>BigInt(e.toString()))||[],t}},t.QueryUnreceivedAcksResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",encode(e,t=s.BinaryWriter.create()){for(let r of(t.uint32(10).fork(),e.sequences))t.uint64(r);return t.ldelim(),void 0!==e.height&&o.Height.encode(e.height,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=T();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if((7&e)==2){let e=r.uint32()+r.pos;for(;r.pos<e;)i.sequences.push(r.uint64())}else i.sequences.push(r.uint64());break;case 2:i.height=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=T();return Array.isArray(e?.sequences)&&(t.sequences=e.sequences.map(e=>BigInt(e.toString()))),(0,d.isSet)(e.height)&&(t.height=o.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.sequences?t.sequences=e.sequences.map(e=>(e||BigInt(0)).toString()):t.sequences=[],void 0!==e.height&&(t.height=e.height?o.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=T();return t.sequences=e.sequences?.map(e=>BigInt(e.toString()))||[],void 0!==e.height&&null!==e.height&&(t.height=o.Height.fromPartial(e.height)),t}},t.QueryNextSequenceReceiveRequest={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=N();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=N();return(0,d.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,d.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){let t=N();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}},t.QueryNextSequenceReceiveResponse={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",encode:(e,t=s.BinaryWriter.create())=>(e.nextSequenceReceive!==BigInt(0)&&t.uint32(8).uint64(e.nextSequenceReceive),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=C();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.nextSequenceReceive=r.uint64();break;case 2:i.proof=r.bytes();break;case 3:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=C();return(0,d.isSet)(e.nextSequenceReceive)&&(t.nextSequenceReceive=BigInt(e.nextSequenceReceive.toString())),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.nextSequenceReceive&&(t.nextSequenceReceive=(e.nextSequenceReceive||BigInt(0)).toString()),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=C();return void 0!==e.nextSequenceReceive&&null!==e.nextSequenceReceive&&(t.nextSequenceReceive=BigInt(e.nextSequenceReceive.toString())),t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}};class M{constructor(e){this.rpc=e,this.Channel=this.Channel.bind(this),this.Channels=this.Channels.bind(this),this.ConnectionChannels=this.ConnectionChannels.bind(this),this.ChannelClientState=this.ChannelClientState.bind(this),this.ChannelConsensusState=this.ChannelConsensusState.bind(this),this.PacketCommitment=this.PacketCommitment.bind(this),this.PacketCommitments=this.PacketCommitments.bind(this),this.PacketReceipt=this.PacketReceipt.bind(this),this.PacketAcknowledgement=this.PacketAcknowledgement.bind(this),this.PacketAcknowledgements=this.PacketAcknowledgements.bind(this),this.UnreceivedPackets=this.UnreceivedPackets.bind(this),this.UnreceivedAcks=this.UnreceivedAcks.bind(this),this.NextSequenceReceive=this.NextSequenceReceive.bind(this)}Channel(e){let r=t.QueryChannelRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","Channel",r).then(e=>t.QueryChannelResponse.decode(new s.BinaryReader(e)))}Channels(e={pagination:n.PageRequest.fromPartial({})}){let r=t.QueryChannelsRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","Channels",r).then(e=>t.QueryChannelsResponse.decode(new s.BinaryReader(e)))}ConnectionChannels(e){let r=t.QueryConnectionChannelsRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","ConnectionChannels",r).then(e=>t.QueryConnectionChannelsResponse.decode(new s.BinaryReader(e)))}ChannelClientState(e){let r=t.QueryChannelClientStateRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","ChannelClientState",r).then(e=>t.QueryChannelClientStateResponse.decode(new s.BinaryReader(e)))}ChannelConsensusState(e){let r=t.QueryChannelConsensusStateRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","ChannelConsensusState",r).then(e=>t.QueryChannelConsensusStateResponse.decode(new s.BinaryReader(e)))}PacketCommitment(e){let r=t.QueryPacketCommitmentRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketCommitment",r).then(e=>t.QueryPacketCommitmentResponse.decode(new s.BinaryReader(e)))}PacketCommitments(e){let r=t.QueryPacketCommitmentsRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketCommitments",r).then(e=>t.QueryPacketCommitmentsResponse.decode(new s.BinaryReader(e)))}PacketReceipt(e){let r=t.QueryPacketReceiptRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketReceipt",r).then(e=>t.QueryPacketReceiptResponse.decode(new s.BinaryReader(e)))}PacketAcknowledgement(e){let r=t.QueryPacketAcknowledgementRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgement",r).then(e=>t.QueryPacketAcknowledgementResponse.decode(new s.BinaryReader(e)))}PacketAcknowledgements(e){let r=t.QueryPacketAcknowledgementsRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgements",r).then(e=>t.QueryPacketAcknowledgementsResponse.decode(new s.BinaryReader(e)))}UnreceivedPackets(e){let r=t.QueryUnreceivedPacketsRequest.encode(e).fini
1sh();return this.rpc.request("ibc.core.channel.v1.Query","UnreceivedPackets",r).then(e=>t.QueryUnreceivedPacketsResponse.decode(new s.BinaryReader(e)))}UnreceivedAcks(e){let r=t.QueryUnreceivedAcksRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","UnreceivedAcks",r).then(e=>t.QueryUnreceivedAcksResponse.decode(new s.BinaryReader(e)))}NextSequenceReceive(e){let r=t.QueryNextSequenceReceiveRequest.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Query","NextSequenceReceive",r).then(e=>t.QueryNextSequenceReceiveResponse.decode(new s.BinaryReader(e)))}}t.QueryClientImpl=M},10795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EvidenceList=t.LightClientAttackEvidence=t.DuplicateVoteEvidence=t.Evidence=t.protobufPackage=void 0;let n=r(58887),i=r(37375),o=r(91372),a=r(4696),s=r(92242);function d(){return{duplicateVoteEvidence:void 0,lightClientAttackEvidence:void 0}}function l(){return{voteA:void 0,voteB:void 0,totalVotingPower:BigInt(0),validatorPower:BigInt(0),timestamp:i.Timestamp.fromPartial({})}}function c(){return{conflictingBlock:void 0,commonHeight:BigInt(0),byzantineValidators:[],totalVotingPower:BigInt(0),timestamp:i.Timestamp.fromPartial({})}}function u(){return{evidence:[]}}t.protobufPackage="tendermint.types",t.Evidence={typeUrl:"/tendermint.types.Evidence",encode:(e,r=a.BinaryWriter.create())=>(void 0!==e.duplicateVoteEvidence&&t.DuplicateVoteEvidence.encode(e.duplicateVoteEvidence,r.uint32(10).fork()).ldelim(),void 0!==e.lightClientAttackEvidence&&t.LightClientAttackEvidence.encode(e.lightClientAttackEvidence,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=d();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.duplicateVoteEvidence=t.DuplicateVoteEvidence.decode(n,n.uint32());break;case 2:o.lightClientAttackEvidence=t.LightClientAttackEvidence.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=d();return(0,s.isSet)(e.duplicateVoteEvidence)&&(r.duplicateVoteEvidence=t.DuplicateVoteEvidence.fromJSON(e.duplicateVoteEvidence)),(0,s.isSet)(e.lightClientAttackEvidence)&&(r.lightClientAttackEvidence=t.LightClientAttackEvidence.fromJSON(e.lightClientAttackEvidence)),r},toJSON(e){let r={};return void 0!==e.duplicateVoteEvidence&&(r.duplicateVoteEvidence=e.duplicateVoteEvidence?t.DuplicateVoteEvidence.toJSON(e.duplicateVoteEvidence):void 0),void 0!==e.lightClientAttackEvidence&&(r.lightClientAttackEvidence=e.lightClientAttackEvidence?t.LightClientAttackEvidence.toJSON(e.lightClientAttackEvidence):void 0),r},fromPartial(e){let r=d();return void 0!==e.duplicateVoteEvidence&&null!==e.duplicateVoteEvidence&&(r.duplicateVoteEvidence=t.DuplicateVoteEvidence.fromPartial(e.duplicateVoteEvidence)),void 0!==e.lightClientAttackEvidence&&null!==e.lightClientAttackEvidence&&(r.lightClientAttackEvidence=t.LightClientAttackEvidence.fromPartial(e.lightClientAttackEvidence)),r}},t.DuplicateVoteEvidence={typeUrl:"/tendermint.types.DuplicateVoteEvidence",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.voteA&&n.Vote.encode(e.voteA,t.uint32(10).fork()).ldelim(),void 0!==e.voteB&&n.Vote.encode(e.voteB,t.uint32(18).fork()).ldelim(),e.totalVotingPower!==BigInt(0)&&t.uint32(24).int64(e.totalVotingPower),e.validatorPower!==BigInt(0)&&t.uint32(32).int64(e.validatorPower),void 0!==e.timestamp&&i.Timestamp.encode(e.timestamp,t.uint32(42).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=l();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.voteA=n.Vote.decode(r,r.uint32());break;case 2:s.voteB=n.Vote.decode(r,r.uint32());break;case 3:s.totalVotingPower=r.int64();break;case 4:s.validatorPower=r.int64();break;case 5:s.timestamp=i.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=l();return(0,s.isSet)(e.voteA)&&(t.voteA=n.Vote.fromJSON(e.voteA)),(0,s.isSet)(e.voteB)&&(t.voteB=n.Vote.fromJSON(e.voteB)),(0,s.isSet)(e.totalVotingPower)&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),(0,s.isSet)(e.validatorPower)&&(t.validatorPower=BigInt(e.validatorPower.toString())),(0,s.isSet)(e.timestamp)&&(t.timestamp=(0,s.fromJsonTimestamp)(e.timestamp)),t},toJSON(e){let t={};return void 0!==e.voteA&&(t.voteA=e.voteA?n.Vote.toJSON(e.voteA):void 0),void 0!==e.voteB&&(t.voteB=e.voteB?n.V
1ote.toJSON(e.voteB):void 0),void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),void 0!==e.validatorPower&&(t.validatorPower=(e.validatorPower||BigInt(0)).toString()),void 0!==e.timestamp&&(t.timestamp=(0,s.fromTimestamp)(e.timestamp).toISOString()),t},fromPartial(e){let t=l();return void 0!==e.voteA&&null!==e.voteA&&(t.voteA=n.Vote.fromPartial(e.voteA)),void 0!==e.voteB&&null!==e.voteB&&(t.voteB=n.Vote.fromPartial(e.voteB)),void 0!==e.totalVotingPower&&null!==e.totalVotingPower&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),void 0!==e.validatorPower&&null!==e.validatorPower&&(t.validatorPower=BigInt(e.validatorPower.toString())),void 0!==e.timestamp&&null!==e.timestamp&&(t.timestamp=i.Timestamp.fromPartial(e.timestamp)),t}},t.LightClientAttackEvidence={typeUrl:"/tendermint.types.LightClientAttackEvidence",encode(e,t=a.BinaryWriter.create()){for(let r of(void 0!==e.conflictingBlock&&n.LightBlock.encode(e.conflictingBlock,t.uint32(10).fork()).ldelim(),e.commonHeight!==BigInt(0)&&t.uint32(16).int64(e.commonHeight),e.byzantineValidators))o.Validator.encode(r,t.uint32(26).fork()).ldelim();return e.totalVotingPower!==BigInt(0)&&t.uint32(32).int64(e.totalVotingPower),void 0!==e.timestamp&&i.Timestamp.encode(e.timestamp,t.uint32(42).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),s=void 0===t?r.len:r.pos+t,d=c();for(;r.pos<s;){let e=r.uint32();switch(e>>>3){case 1:d.conflictingBlock=n.LightBlock.decode(r,r.uint32());break;case 2:d.commonHeight=r.int64();break;case 3:d.byzantineValidators.push(o.Validator.decode(r,r.uint32()));break;case 4:d.totalVotingPower=r.int64();break;case 5:d.timestamp=i.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=c();return(0,s.isSet)(e.conflictingBlock)&&(t.conflictingBlock=n.LightBlock.fromJSON(e.conflictingBlock)),(0,s.isSet)(e.commonHeight)&&(t.commonHeight=BigInt(e.commonHeight.toString())),Array.isArray(e?.byzantineValidators)&&(t.byzantineValidators=e.byzantineValidators.map(e=>o.Validator.fromJSON(e))),(0,s.isSet)(e.totalVotingPower)&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),(0,s.isSet)(e.timestamp)&&(t.timestamp=(0,s.fromJsonTimestamp)(e.timestamp)),t},toJSON(e){let t={};return void 0!==e.conflictingBlock&&(t.conflictingBlock=e.conflictingBlock?n.LightBlock.toJSON(e.conflictingBlock):void 0),void 0!==e.commonHeight&&(t.commonHeight=(e.commonHeight||BigInt(0)).toString()),e.byzantineValidators?t.byzantineValidators=e.byzantineValidators.map(e=>e?o.Validator.toJSON(e):void 0):t.byzantineValidators=[],void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),void 0!==e.timestamp&&(t.timestamp=(0,s.fromTimestamp)(e.timestamp).toISOString()),t},fromPartial(e){let t=c();return void 0!==e.conflictingBlock&&null!==e.conflictingBlock&&(t.conflictingBlock=n.LightBlock.fromPartial(e.conflictingBlock)),void 0!==e.commonHeight&&null!==e.commonHeight&&(t.commonHeight=BigInt(e.commonHeight.toString())),t.byzantineValidators=e.byzantineValidators?.map(e=>o.Validator.fromPartial(e))||[],void 0!==e.totalVotingPower&&null!==e.totalVotingPower&&(t.totalVotingPower=BigInt(e.totalVotingPower.toString())),void 0!==e.timestamp&&null!==e.timestamp&&(t.timestamp=i.Timestamp.fromPartial(e.timestamp)),t}},t.EvidenceList={typeUrl:"/tendermint.types.EvidenceList",encode(e,r=a.BinaryWriter.create()){for(let n of e.evidence)t.Evidence.encode(n,r.uint32(10).fork()).ldelim();return r},decode(e,r){let n=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=u();for(;n.pos<i;){let e=n.uint32();e>>>3==1?o.evidence.push(t.Evidence.decode(n,n.uint32())):n.skipType(7&e)}return o},fromJSON(e){let r=u();return Array.isArray(e?.evidence)&&(r.evidence=e.evidence.map(e=>t.Evidence.fromJSON(e))),r},toJSON(e){let r={};return e.evidence?r.evidence=e.evidence.map(e=>e?t.Evidence.toJSON(e):void 0):r.evidence=[],r},fromPartial(e){let r=u();return r.evidence=e.evidence?.map(e=>t.Evidence.fromPartial(e))||[],r}}},11082:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.isAminoMsgCreateValidator=t.isAminoMsgBeginRedelegate=t.createStakingAminoConverters=t.setupSlashingExtension=t.isAminoMsgUnjail=t.createSlashingAminoConverters=t.setupMintExtension=t.setupIbcExtension=t.isMsgTransferEncodeObject=t.ibcTypes=t.isAminoMsgTransfer=t.createIbcAminoConverters=t.groupTypes=t.createGroupAminoConverters=t.setupGovExtension=t.isMsgVoteWeightedEncodeObject=t.isMsgVoteEncodeObject=t.isMsgSubmitProposalEncodeObject=t.isMsgDepositEncodeObject=t.govTypes=t.isAminoMsgVoteWeighted=t.isAminoMsgVote=t.isAminoMsgSubmitProposal=t.isAminoMsgDeposit=t.createGovAminoConverters=t.setupFeegrantExtension=t.feegrantTypes=t.createFeegrantAminoConverters=t.isAminoMsgSubmitEvidence=t.createEvidenceAminoConverters=t.setupDistributionExtension=t.isMsgWithdrawDelegatorRewardEncodeObject=t.distributionTypes=t.isAminoMsgWithdrawValidatorCommission=t.isAminoMsgWithdrawDelegatorReward=t.isAminoMsgSetWithdrawAddress=t.isAminoMsgFundCommunityPool=t.createDistributionAminoConverters=t.isAminoMsgVerifyInvariant=t.createCrysisAminoConverters=t.setupBankExtension=t.isMsgSendEncodeObject=t.bankTypes=t.isAminoMsgSend=t.isAminoMsgMultiSend=t.createBankAminoConverters=t.setupAuthzExtension=t.authzTypes=t.createAuthzAminoConverters=t.setupAuthExtension=void 0,t.vestingTypes=t.isAminoMsgCreateVestingAccount=t.createVestingAminoConverters=t.setupTxExtension=t.setupStakingExtension=t.stakingTypes=t.isMsgUndelegateEncodeObject=t.isMsgEditValidatorEncodeObject=t.isMsgDelegateEncodeObject=t.isMsgCreateValidatorEncodeObject=t.isMsgCancelUnbondingDelegationEncodeObject=t.isMsgBeginRedelegateEncodeObject=t.isAminoMsgUndelegate=t.isAminoMsgEditValidator=t.isAminoMsgDelegate=void 0;var n=r(61671);Object.defineProperty(t,"setupAuthExtension",{enumerable:!0,get:function(){return n.setupAuthExtension}});var i=r(78355);Object.defineProperty(t,"createAuthzAminoConverters",{enumerable:!0,get:function(){return i.createAuthzAminoConverters}});var o=r(11515);Object.defineProperty(t,"authzTypes",{enumerable:!0,get:function(){return o.authzTypes}});var a=r(60829);Object.defineProperty(t,"setupAuthzExtension",{enumerable:!0,get:function(){return a.setupAuthzExtension}});var s=r(96661);Object.defineProperty(t,"createBankAminoConverters",{enumerable:!0,get:function(){return s.createBankAminoConverters}}),Object.defineProperty(t,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return s.isAminoMsgMultiSend}}),Object.defineProperty(t,"isAminoMsgSend",{enumerable:!0,get:function(){return s.isAminoMsgSend}});var d=r(1065);Object.defineProperty(t,"bankTypes",{enumerable:!0,get:function(){return d.bankTypes}}),Object.defineProperty(t,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return d.isMsgSendEncodeObject}});var l=r(29303);Object.defineProperty(t,"setupBankExtension",{enumerable:!0,get:function(){return l.setupBankExtension}});var c=r(64702);Object.defineProperty(t,"createCrysisAminoConverters",{enumerable:!0,get:function(){return c.createCrysisAminoConverters}}),Object.defineProperty(t,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return c.isAminoMsgVerifyInvariant}});var u=r(23041);Object.defineProperty(t,"createDistributionAminoConverters",{enumerable:!0,get:function(){return u.createDistributionAminoConverters}}),Object.defineProperty(t,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return u.isAminoMsgFundCommunityPool}}),Object.defineProperty(t,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return u.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(t,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return u.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(t,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return u.isAminoMsgWithdrawValidatorCommission}});var p=r(61365);Object.defineProperty(t,"distributionTypes",{enumerable:!0,get:function(){return p.distributionTypes}}),Object.defineProperty(t,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return p.isMsgWithdrawDelegatorRewardEncodeObject}});var f=r(5843);Object.defineProperty(t,"setupDistributionExtension",{enumerable:!0,get:function(){return f.setupDistributionExtension}});var h=r(16554);Object.defineProperty(t,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return h.createEvidenceAminoConverters}}),Object.defineProperty(t,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return h.isAminoMsgSubmitEvidence}});var g=r(39149);Object.defineProperty(t,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return g.createFeegrantAminoConverters}});var m=r(14577);Object.defineProperty(t,"feegrantTypes",{enumerable:!0,get:function(){return m.feegrantTypes}});var y=r(2479);Object.defineProperty(t,"setupFeegrantExtension",{enumerable:!0,get:function(){return y.setupFeegrantExtension}});var b=r(37639);Object.defineProperty(t,"createGovAminoConverters",{enumerable:!0,get:function(){return b.createGovAminoConverters}}),Object.defineProperty(t,"isAminoMsgDeposit",{enumerable:!0,get:function(){return b.isAminoMsgDeposit}}),Object.defineProperty(t,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return b.isAminoMsgSubmitProposal}}),Object.defineProperty(t,"isAminoMsgVote",{enumerable:!0,get:function(){return b.isAminoMsgVote}}),Object.defineProperty(t,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return b.isAminoMsgVoteWeighted}});var v=r(84879);Object.defineProperty(t,"govTypes",{enumerable:!0,get:function(){return v.govTypes}}),Object.defineProperty(t,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return v.isMsgDepositEncodeObject}}),Object.defineProperty(t,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return v.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(t,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return v.isMsgVoteEncodeObject}}),Object.defineProperty(t,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return v.isMsgVoteWeightedEncodeObject}});var S=r(39201);Object.defineProperty(t,"setupGovExtension",{enumerable:!0,get:function(){return S.setupGovExtension}});var A=r(58544);Object.defineProperty(t,"createGroupAminoConverters",{enumerable:!0,get:function(){return A.createGroupAminoConverters}});var w=r(74950);Object.defineProperty(t,"groupTypes",{enumerable:!0,get:function(){return w.groupTypes}});var _=r(92071);Object.defineProperty(t,"createIbcAminoConverters",{enumerable:!0,get:function(){return _.createIbcAminoConverters}}),Object.defineProperty(t,"isAminoMsgTransfer",{enumerable:!0,get:function(){return _.isAminoMsgTransfer}});var P=r(26671);Object.defineProperty(t,"ibcTypes",{enumerable:!0,get:function(){return P.ibcTypes}}),Object.defineProperty(t,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return P.isMsgTransferEncodeObject}});var k=r(46465);Object.defineProperty(t,"setupIbcExtension",{enumerable:!0,get:function(){return k.setupIbcExtension}});var R=r(80305);Object.defineProperty(t,"setupMintExtension",{enumerable:!0,get:function(){return R.setupMintExtension}});var O=r(96412);Object.defineProperty(t,"createSlashingAminoConverters",{enumerable:!0,get:function(){return O.createSlashingAminoConverters}}),Object.defineProperty(t,"isAminoMsgUnjail",{enumerable:!0,get:function(){return O.isAminoMsgUnjail}});var I=r(91534);Object.defineProperty(t,"setupSlashingExtension",{enumerable:!0,get:function(){return I.setupSlashingExtension}});var B=r(23362);Object.defineProperty(t,"createStakingAminoConverters",{enumerable:!0,get:function(){return B.createStakingAminoConverters}}),Object.defineProperty(t,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return B.isAminoMsgBeginRedelegate}}),Object.defineProperty(t,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return B.isAminoMsgCreateValidator}}),Object.defineProperty(t,"isAminoMsgDelegate",{enumerable:!0,get:function(){return B.isAminoMsgDelegate}}),Object.defineProperty(t,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return B.isAminoMsgEditValidator}}),Object.defineProperty(t,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return B.isAminoMsgUndelegate}});var x=r(63388);Object.defineProperty(t,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return x.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(t,"isMsgCancelUnbondingDelegationEncodeObject",{enumerable:!0,get:function(){return x.isMsgCancelUnbondingDelegationEncodeObject}}),Object.defineProperty(t,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return x.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(t,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return x.isMsgDelegateEncodeObject}}),Object.defineProperty(t,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return x.isMsgEditValidatorEncodeObject}}),Object.defineProperty(t,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return x.isMsgUndelegateEncodeObject}}),Object.defineProperty(t,"stakingTypes",{enumerable:!0,get:function(){return x.stakingTypes}});var E=r(36548);Object.defineProperty(t,"setupStakingExtension",{enumerable:!0,get:function(){return E.setupStakingExtension}});var T=r(6157);Object.defineProperty(t,"setupTxExtension",{enumerable:!0,get:function(){return T.
1setupTxExtension}});var N=r(2869);Object.defineProperty(t,"createVestingAminoConverters",{enumerable:!0,get:function(){return N.createVestingAminoConverters}}),Object.defineProperty(t,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return N.isAminoMsgCreateVestingAccount}});var C=r(37705);Object.defineProperty(t,"vestingTypes",{enumerable:!0,get:function(){return C.vestingTypes}})},11283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeByte=t.writeFixed32=t.int64Length=t.writeVarint64=t.writeVarint32=t.readInt32=t.readUInt32=t.zzDecode=t.zzEncode=t.varint32read=t.varint32write=t.uInt64ToString=t.int64ToString=t.int64FromString=t.varint64write=t.varint64read=void 0,t.varint64read=function(){let e=0,t=0;for(let r=0;r<28;r+=7){let n=this.buf[this.pos++];if(e|=(127&n)<<r,(128&n)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(15&r)<<28,t=(112&r)>>4,(128&r)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let n=this.buf[this.pos++];if(t|=(127&n)<<r,(128&n)==0)return this.assertBounds(),[e,t]}throw Error("invalid varint")},t.varint64write=function(e,t,r){for(let n=0;n<28;n+=7){let i=e>>>n,o=i>>>7!=0||0!=t,a=(o?128|i:i)&255;if(r.push(a),!o)return}let n=e>>>28&15|(7&t)<<4,i=t>>3!=0;if(r.push((i?128|n:n)&255),i){for(let e=3;e<31;e+=7){let n=t>>>e,i=n>>>7!=0,o=(i?128|n:n)&255;if(r.push(o),!i)return}r.push(t>>>31&1)}};let r=0x100000000;function n(e,t){if({lo:e,hi:t}=i(e,t),t<=2097151)return String(r*t+e);let n=0xffffff&e,o=(e>>>24|t<<8)&0xffffff,a=t>>16&65535,d=n+6777216*o+6710656*a,l=o+8147497*a,c=2*a,u=1e7;return d>=1e7&&(l+=Math.floor(d/u),d%=u),l>=u&&(c+=Math.floor(l/u),l%=u),c.toString()+s(l)+s(d)}function i(e,t){return{lo:e>>>0,hi:t>>>0}}function o(e,t){return{lo:0|e,hi:0|t}}function a(e,t){return t=~t,e?e=~e+1:t+=1,o(e,t)}t.int64FromString=function(e){let t="-"===e[0];t&&(e=e.slice(1));let n=1e6,i=0,s=0;function d(t,o){let a=Number(e.slice(t,o));s*=n,(i=i*n+a)>=r&&(s+=i/r|0,i%=r)}return d(-24,-18),d(-18,-12),d(-12,-6),d(-6),t?a(i,s):o(i,s)},t.int64ToString=function(e,t){let r=o(e,t),i=0x80000000&r.hi;i&&(r=a(r.lo,r.hi));let s=n(r.lo,r.hi);return i?"-"+s:s},t.uInt64ToString=n;let s=e=>{let t=String(e);return"0000000".slice(t.length)+t};t.varint32write=function(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let r=0;r<9;r++)t.push(127&e|128),e>>=7;t.push(1)}},t.varint32read=function(){let e=this.buf[this.pos++],t=127&e;if((128&e)==0||(t|=(127&(e=this.buf[this.pos++]))<<7,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<14,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<21,(128&e)==0))return this.assertBounds(),t;t|=(15&(e=this.buf[this.pos++]))<<28;for(let t=5;(128&e)!=0&&t<10;t++)e=this.buf[this.pos++];if((128&e)!=0)throw Error("invalid varint");return this.assertBounds(),t>>>0},t.zzEncode=function(e,t){let r=t>>31;return t=((t<<1|e>>>31)^r)>>>0,[e=(e<<1^r)>>>0,t]},t.zzDecode=function(e,t){let r=-(1&e);return[e=((e>>>1|t<<31)^r)>>>0,t=(t>>>1^r)>>>0]},t.readUInt32=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+0x1000000*e[t+3]},t.readInt32=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)},t.writeVarint32=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},t.writeVarint64=function(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo},t.int64Length=function(e,t){let r=e,n=(e>>>28|t<<4)>>>0,i=t>>>24;return 0===i?0===n?r<16384?r<128?1:2:r<2097152?3:4:n<16384?n<128?5:6:n<2097152?7:8:i<128?9:10},t.writeFixed32=function(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24},t.writeByte=function(e,t,r){t[r]=255&e}},11515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authzTypes=void 0;let n=r(35756);t.authzTypes=[["/cosmos.authz.v1beta1.MsgExec",n.MsgExec],["/cosmos.authz.v1beta1.MsgGrant",n.MsgGrant],["/cosmos.authz.v1beta1.MsgRevoke",n.MsgRevoke]]},11717:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoins=t.coins=t.coin=t.executeKdf=t.makeSignDoc=t.makeSignBytes=t.makeAuthInfoBytes=t.isOfflineDirectSigner=t.Registry=t.isTxBodyEncodeObject=t.isTsProtoGeneratedType=t.isPbjsGeneratedType=t.encodePubkey=t.decodePubkey=t.decodeOptionalPubkey=t.anyToSinglePubkey=t.makeCosmoshubPath=t.DirectSecp256k1Wallet=t.extractKdfConfiguration=t.DirectSecp256k1HdWallet=t.decodeTxRaw=void 0;var n=r(37753);Object.defineProperty(t,"decodeTxRaw",{enumerable:!0,get:function(){return n.decodeTxRaw}});var i=r(27243);Object.defineProperty(t,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return i.DirectSecp256k1HdWallet}}),Object.defineProperty(t,"extractKdfConfiguration",{enumerable:!0,get:function(){return i.extractKdfConfiguration}});var o=r(88631);Object.defineProperty(t,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return o.DirectSecp256k1Wallet}});var a=r(55921);Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return a.makeCosmoshubPath}});var s=r(50413);Object.defineProperty(t,"anyToSinglePubkey",{enumerable:!0,get:function(){return s.anyToSinglePubkey}}),Object.defineProperty(t,"decodeOptionalPubkey",{enumerable:!0,get:function(){return s.decodeOptionalPubkey}}),Object.defineProperty(t,"decodePubkey",{enumerable:!0,get:function(){return s.decodePubkey}}),Object.defineProperty(t,"encodePubkey",{enumerable:!0,get:function(){return s.encodePubkey}});var d=r(98020);Object.defineProperty(t,"isPbjsGeneratedType",{enumerable:!0,get:function(){return d.isPbjsGeneratedType}}),Object.defineProperty(t,"isTsProtoGeneratedType",{enumerable:!0,get:function(){return d.isTsProtoGeneratedType}}),Object.defineProperty(t,"isTxBodyEncodeObject",{enumerable:!0,get:function(){return d.isTxBodyEncodeObject}}),Object.defineProperty(t,"Registry",{enumerable:!0,get:function(){return d.Registry}});var l=r(789);Object.defineProperty(t,"isOfflineDirectSigner",{enumerable:!0,get:function(){return l.isOfflineDirectSigner}});var c=r(88598);Object.defineProperty(t,"makeAuthInfoBytes",{enumerable:!0,get:function(){return c.makeAuthInfoBytes}}),Object.defineProperty(t,"makeSignBytes",{enumerable:!0,get:function(){return c.makeSignBytes}}),Object.defineProperty(t,"makeSignDoc",{enumerable:!0,get:function(){return c.makeSignDoc}});var u=r(30942);Object.defineProperty(t,"executeKdf",{enumerable:!0,get:function(){return u.executeKdf}});var p=r(32715);Object.defineProperty(t,"coin",{enumerable:!0,get:function(){return p.coin}}),Object.defineProperty(t,"coins",{enumerable:!0,get:function(){return p.coins}}),Object.defineProperty(t,"parseCoins",{enumerable:!0,get:function(){return p.parseCoins}})},12623:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;let n=r(97470);t.makeCosmoshubPath=function(e){return[n.Slip10RawIndex.hardened(44),n.Slip10RawIndex.hardened(118),n.Slip10RawIndex.hardened(0),n.Slip10RawIndex.normal(0),n.Slip10RawIndex.normal(e)]}},12669:(e,t,r)=>{"use strict";var n=t;n.base=r(16010),n.short=r(95963),n.mont=r(88009),n.edwards=r(49969)},12686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{signatures:[]}}function a(){return{extraBitsStored:0,elems:new Uint8Array}}t.protobufPackage="cosmos.crypto.multisig.v1beta1",t.MultiSignature={typeUrl:"/cosmos.crypto.multisig.v1beta1.MultiSignature",encode(e,t=n.BinaryWriter.create()){for(let r of e.signatures)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.signatures.push(r.bytes()):r.skipType(7&e)}return a},fromJSON(e){let t=o();return Array.isArray(e?.signatures)&&(t.signatures=e.signatures.map(e=>(0,i.bytesFromBase64)(e))),t},toJSON(e){let t={};return e.signatures?t.signatures=e.signatures.map(e=>(0,i.base64FromBytes)(void 0!==e?e:new Uint8Array)):t.signatures=[],t},fromPartial(e){let t=o();return t.signatures=e.signatures?.map(e=>e)||[],t}},t.CompactBitArray={typeUrl:"/cosmos.crypto.multisig.v1beta1.CompactBitArray",encode:(e,t=n.BinaryWriter.create())=>(0!==e.extraBitsStored&&t.uint32(8).uint32(e.extraBitsStored),0!==e.elems.length&&t.uint32(18).bytes(e.elems),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.extraBitsStored=r.uint32();break;case 2:o.elems=r.bytes();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=a();return(0,i.isSet)(e.extraBitsStored)&&(t.extraBitsStored=Number(e.extraBitsStored)),(0,i.isSet)(e.elems)&&(t.elems=(0,i.bytesFromBase64)(e.elems)),t},toJSON(e){let t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=Math.round(e.extraBitsStored)),void 0!==e.elems&&(t.elems=(0,i.base64FromBytes)(void 0!==e.elems?e.elems:new Uint8Array)),t},fromPartial(e){let t=a();return t.extraBitsStored=e.extraBitsStored??0,t.elems=e.elems??new Uint8Array,t}}},12814:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.VoteType=t.broadcastTxCommitSuccess=t.broadcastTxSyncSuccess=void 0,t.broadcastTxSyncSuccess=function(e){return 0===e.code},t.broadcastTxCommitSuccess=function(e){return 0===e.checkTx.code&&!!e.deliverTx&&0===e.deliverTx.code},function(e){e[e.PreVote=1]="PreVote",e[e.PreCommit=2]="PreCommit"}(r=t.VoteType||(t.VoteType={}))},12838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashBlock=t.hashTx=void 0;let n=r(97470),i=r(13184);function o(e){if(e<1)throw Error("Cannot split an empty tree");let t=2**Math.floor(Math.log2(e));return t<e?t:t/2}function a(e){let t=new n.Sha256(Uint8Array.from([0]));return t.update(e),t.digest()}function s(e,t){let r=new n.Sha256(Uint8Array.from([1]));return r.update(e),r.update(t),r.digest()}function d(e){switch(e.length){case 0:throw Error("Cannot hash empty tree");case 1:return a(e[0]);
1default:{let t=o(e.length);return s(d(e.slice(0,t)),d(e.slice(t)))}}}t.hashTx=function(e){return(0,n.sha256)(e)},t.hashBlock=function(e){if(!e.lastBlockId)throw Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");return d([(0,i.encodeVersion)(e.version),(0,i.encodeString)(e.chainId),(0,i.encodeUvarint)(e.height),(0,i.encodeTime)(e.time),(0,i.encodeBlockId)(e.lastBlockId),(0,i.encodeBytes)(e.lastCommitHash),(0,i.encodeBytes)(e.dataHash),(0,i.encodeBytes)(e.validatorsHash),(0,i.encodeBytes)(e.nextValidatorsHash),(0,i.encodeBytes)(e.consensusHash),(0,i.encodeBytes)(e.appHash),(0,i.encodeBytes)(e.lastResultsHash),(0,i.encodeBytes)(e.evidenceHash),(0,i.encodeBytes)(e.proposerAddress)])}},13184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBlockId=t.encodeVersion=t.encodeBytes=t.encodeTime=t.encodeUvarint=t.encodeString=t.dictionaryToStringMap=t.may=t.assertNotEmpty=t.assertObject=t.assertArray=t.assertNumber=t.assertString=t.assertBoolean=t.assertSet=void 0;let n=r(25918);function i(e){if(void 0===e)throw Error("Value must not be undefined");if(null===e)throw Error("Value must not be null");return e}function o(e){return e>=128?Uint8Array.from([255&e|128,...o(e>>7)]):Uint8Array.from([255&e])}t.assertSet=i,t.assertBoolean=function(e){if(i(e),"boolean"!=typeof e)throw Error("Value must be a boolean");return e},t.assertString=function(e){if(i(e),"string"!=typeof e)throw Error("Value must be a string");return e},t.assertNumber=function(e){if(i(e),"number"!=typeof e)throw Error("Value must be a number");return e},t.assertArray=function(e){if(i(e),!Array.isArray(e))throw Error("Value must be a an array");return e},t.assertObject=function(e){if(i(e),"object"!=typeof e)throw Error("Value must be an object");if("[object Object]"!==Object.prototype.toString.call(e))throw Error("Value must be a simple object");return e},t.assertNotEmpty=function(e){if(i(e),"number"==typeof e&&0===e)throw Error("must provide a non-zero value");if(0===e.length)throw Error("must provide a non-empty value");return e},t.may=function(e,t){return null==t?void 0:e(t)},t.dictionaryToStringMap=function(e){let t=new Map;for(let r of Object.keys(e)){let n=e[r];if("string"!=typeof n)throw Error("Found dictionary value of type other than string");t.set(r,n)}return t},t.encodeString=function(e){let t=(0,n.toUtf8)(e);return Uint8Array.from([t.length,...t])},t.encodeUvarint=o,t.encodeTime=function(e){let t=e.getTime(),r=Math.floor(t/1e3),n=r?[8,...o(r)]:new Uint8Array,i=(e.nanoseconds||0)+t%1e3*1e6,a=i?[16,...o(i)]:new Uint8Array;return Uint8Array.from([...n,...a])},t.encodeBytes=function(e){if(e.length>=128)throw Error("Not implemented for byte arrays of length 128 or more");return e.length?Uint8Array.from([e.length,...e]):new Uint8Array},t.encodeVersion=function(e){let t=e.block?Uint8Array.from([8,...o(e.block)]):new Uint8Array,r=e.app?Uint8Array.from([16,...o(e.app)]):new Uint8Array;return Uint8Array.from([...t,...r])},t.encodeBlockId=function(e){return Uint8Array.from([10,e.hash.length,...e.hash,18,e.parts.hash.length+4,8,e.parts.total,18,e.parts.hash.length,...e.parts.hash])}},13245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.DenomTrace=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{path:"",baseDenom:""}}function a(){return{sendEnabled:!1,receiveEnabled:!1}}t.protobufPackage="ibc.applications.transfer.v1",t.DenomTrace={typeUrl:"/ibc.applications.transfer.v1.DenomTrace",encode:(e,t=n.BinaryWriter.create())=>(""!==e.path&&t.uint32(10).string(e.path),""!==e.baseDenom&&t.uint32(18).string(e.baseDenom),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.path=r.string();break;case 2:a.baseDenom=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.path)&&(t.path=String(e.path)),(0,i.isSet)(e.baseDenom)&&(t.baseDenom=String(e.baseDenom)),t},toJSON(e){let t={};return void 0!==e.path&&(t.path=e.path),void 0!==e.baseDenom&&(t.baseDenom=e.baseDenom),t},fromPartial(e){let t=o();return t.path=e.path??"",t.baseDenom=e.baseDenom??"",t}},t.Params={typeUrl:"/ibc.applications.transfer.v1.Params",encode:(e,t=n.BinaryWriter.create())=>(!0===e.sendEnabled&&t.uint32(8).bool(e.sendEnabled),!0===e.receiveEnabled&&t.uint32(16).bool(e.receiveEnabled),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.sendEnabled=r.bool();break;case 2:o.receiveEnabled=r.bool();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=a();return(0,i.isSet)(e.sendEnabled)&&(t.sendEnabled=!!e.sendEnabled),(0,i.isSet)(e.receiveEnabled)&&(t.receiveEnabled=!!e.receiveEnabled),t},toJSON(e){let t={};return void 0!==e.sendEnabled&&(t.sendEnabled=e.sendEnabled),void 0!==e.receiveEnabled&&(t.receiveEnabled=e.receiveEnabled),t},fromPartial(e){let t=a();return t.sendEnabled=e.sendEnabled??!1,t.receiveEnabled=e.receiveEnabled??!1,t}}},13309:(e,t,r)=>{"use strict";var n=r(6257),i=r(98270);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
1t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},13788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuxSignerData=t.Tip=t.Fee=t.ModeInfo_Multi=t.ModeInfo_Single=t.ModeInfo=t.SignerInfo=t.AuthInfo=t.TxBody=t.SignDocDirectAux=t.SignDoc=t.TxRaw=t.Tx=t.protobufPackage=void 0;let n=r(54573),i=r(36843),o=r(12686),a=r(91794),s=r(4696),d=r(92242);function l(){return{body:void 0,authInfo:void 0,signatures:[]}}function c(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}function u(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:BigInt(0)}}function p(){return{bodyBytes:new Uint8Array,publicKey:void 0,chainId:"",accountNumber:BigInt(0),sequence:BigInt(0),tip:void 0}}function f(){return{messages:[],memo:"",timeoutHeight:BigInt(0),extensionOptions:[],nonCriticalExtensionOptions:[]}}function h(){return{signerInfos:[],fee:void 0,tip:void 0}}function g(){return{publicKey:void 0,modeInfo:void 0,sequence:BigInt(0)}}function m(){return{single:void 0,multi:void 0}}function y(){return{mode:0}}function b(){return{bitarray:void 0,modeInfos:[]}}function v(){return{amount:[],gasLimit:BigInt(0),payer:"",granter:""}}function S(){return{amount:[],tipper:""}}function A(){return{address:"",signDoc:void 0,mode:0,sig:new Uint8Array}}t.protobufPackage="cosmos.tx.v1beta1",t.Tx={typeUrl:"/cosmos.tx.v1beta1.Tx",encode(e,r=s.BinaryWriter.create()){for(let n of(void 0!==e.body&&t.TxBody.encode(e.body,r.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,r.uint32(18).fork()).ldelim(),e.signatures))r.uint32(26).bytes(n);return r},decode(e,r){let n=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.body=t.TxBody.decode(n,n.uint32());break;case 2:o.authInfo=t.AuthInfo.decode(n,n.uint32());break;case 3:o.signatures.push(n.bytes());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=l();return(0,d.isSet)(e.body)&&(r.body=t.TxBody.fromJSON(e.body)),(0,d.isSet)(e.authInfo)&&(r.authInfo=t.AuthInfo.fromJSON(e.authInfo)),Array.isArray(e?.signatures)&&(r.signatures=e.signatures.map(e=>(0,d.bytesFromBase64)(e))),r},toJSON(e){let r={};return void 0!==e.body&&(r.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(r.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?r.signatures=e.signatures.map(e=>(0,d.base64FromBytes)(void 0!==e?e:new Uint8Array)):r.signatures=[],r},fromPartial(e){let r=l();return void 0!==e.body&&null!==e.body&&(r.body=t.TxBody.fromPartial(e.body)),void 0!==e.authInfo&&null!==e.authInfo&&(r.authInfo=t.AuthInfo.fromPartial(e.authInfo)),r.signatures=e.signatures?.map(e=>e)||[],r}},t.TxRaw={typeUrl:"/cosmos.tx.v1beta1.TxRaw",encode(e,t=s.BinaryWriter.create()){for(let r of(0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),e.signatures))t.uint32(26).bytes(r);return t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.bodyBytes=r.bytes();break;case 2:i.authInfoBytes=r.bytes();break;case 3:i.signatures.push(r.bytes());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=c();return(0,d.isSet)(e.bodyBytes)&&(t.bodyBytes=(0,d.bytesFromBase64)(e.bodyBytes)),(0,d.isSet)(e.authInfoBytes)&&(t.authInfoBytes=(0,d.bytesFromBase64)(e.authInfoBytes)),Array.isArray(e?.signatures)&&(t.signatures=e.signatures.map(e=>(0,d.bytesFromBase64)(e))),t},toJSON(e){let t={};return void 0!==e.bodyBytes&&(t.bodyBytes=(0,d.base64FromBytes)(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=(0,d.base64FromBytes)(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map(e=>(0,d.base64FromBytes)(void 0!==e?e:new Uint8Array)):t.signatures=[],t},fromPartial(e){let t=c();return t.bodyBytes=e.bodyBytes??new Uint8Array,t.authInfoBytes=e.authInfoBytes??new Uint8Array,t.signatures=e.signatures?.map(e=>e)||[],t}},t.SignDoc={typeUrl:"/cosmos.tx.v1beta1.SignDoc",encode:(e,t=s.BinaryWriter.create())=>(0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),""!==e.chainId&&t.uint32(26).string(e.chainId),e.accountNumber!==BigInt(0)&&t.uint32(32).uint64(e.accountNumber),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.bodyBytes=r.bytes();break;case 2:i.authInfoBytes=r.bytes();break;case 3:i.chainId=r.string();break;case 4:i.accountNumber=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=u();return(0,d.isSet)(e.bodyBytes)&&(t.bodyBytes=(0,d.bytesFromBase64)(e.bodyBytes)),(0,d.isSet)(e.authInfoBytes)&&(t.authInfoBytes=(0,d.bytesFromBase64)(e.authInfoBytes)),(0,d.isSet)(e.chainId)&&(t.chainId=String(e.chainId)),(0,d.isSet)(e.accountNumber)&&(t.accountNumber=BigInt(e.accountNumber.toString())),t},toJSON(e){let t={};return void 0!==e.bodyBytes&&(t.bodyBytes=(0,d.base64FromBytes)(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=(0,d.base64FromBytes)(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||BigInt(0)).toString()),t},fromPartial(e){let t=u();return t.bodyBytes=e.bodyBytes??new Uint8Array,t.authInfoBytes=e.authInfoBytes??new Uint8Array,t.chainId=e.chainId??"",void 0!==e.accountNumber&&null!==e.accountNumber&&(t.accountNumber=BigInt(e.accountNumber.toString())),t}},t.SignDocDirectAux={typeUrl:"/cosmos.tx.v1beta1.SignDocDirectAux",encode:(e,r=s.BinaryWriter.create())=>(0!==e.bodyBytes.length&&r.uint32(10).bytes(e.bodyBytes),void 0!==e.publicKey&&n.Any.encode(e.publicKey,r.uint32(18).fork()).ldelim(),""!==e.chainId&&r.uint32(26).string(e.chainId),e.accountNumber!==BigInt(0)&&r.uint32(32).uint64(e.accountNumber),e.sequence!==BigInt(0)&&r.uint32(40).uint64(e.sequence),void 0!==e.tip&&t.Tip.encode(e.tip,r.uint32(50).fork()).ldelim(),r),decode(e,r){let i=e instanceof s.BinaryReader?e:new s.BinaryReader(e),o=void 0===r?i.len:i.pos+r,a=p();for(;i.pos<o;){let e=i.uint32();switch(e>>>3){case 1:a.bodyBytes=i.bytes();break;case 2:a.publicKey=n.Any.decode(i,i.uint32());break;case 3:a.chainId=i.string();break;case 4:a.accountNumber=i.uint64();break;case 5:a.sequence=i.uint64();break;case 6:a.tip=t.Tip.decode(i,i.uint32());break;default:i.skipType(7&e)}}return a},fromJSON(e){let r=p();return(0,d.isSet)(e.bodyBytes)&&(r.bodyBytes=(0,d.bytesFromBase64)(e.bodyBytes)),(0,d.isSet)(e.publicKey)&&(r.publicKey=n.Any.fromJSON(e.publicKey)),(0,d.isSet)(e.chainId)&&(r.chainId=String(e.chainId)),(0,d.isSet)(e.accountNumber)&&(r.accountNumber=BigInt(e.accountNumber.toString())),(0,d.isSet)(e.sequence)&&(r.sequence=BigInt(e.sequence.toString())),(0,d.isSet)(e.tip)&&(r.tip=t.Tip.fromJSON(e.tip)),r},toJSON(e){let r={};return void 0!==e.bodyBytes&&(r.bodyBytes=(0,d.base64FromBytes)(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.publicKey&&(r.publicKey=e.publicKey?n.Any.toJSON(e.publicKey):void 0),void 0!==e.chainId&&(r.chainId=e.chainId),void 0!==e.accountNumber&&(r.accountNumber=(e.accountNumber||BigInt(0)).toString()),void 0!==e.sequence&&(r.sequence=(e.sequence||BigInt(0)).toString()),void 0!==e.tip&&(r.tip=e.tip?t.Tip.toJSON(e.tip):void 0),r},fromPartial(e){let r=p();return r.bodyBytes=e.bodyBytes??new Uint8Array,void 0!==e.publicKey&&null!==e.publicKey&&(r.publicKey=n.Any.fromPartial(e.publicKey)),r.chainId=e.chainId??"",void 0!==e.accountNumber&&null!==e.accountNumber&&(r.accountNumber=BigInt(e.accountNumber.toString())),void 0!==e.sequence&&null!==e.sequence&&(r.sequence=BigInt(e.sequence.toString())),void 0!==e.tip&&null!==e.tip&&(r.tip=t.Tip.fromPartial(e.tip)),r}},t.TxBody={typeUrl:"/cosmos.tx.v1beta1.TxBody",encode(e,t=s.BinaryWriter.create()){for(let r of e.messages)n.Any.encode(r,t.uint32(10).fork()).ldelim();for(let r of(""!==e.memo&&t.uint32(18).string(e.memo),e.timeoutHeight!==BigInt(0)&&t.uint32(24).uint64(e.timeoutHeight),e.extensionOptions))n.Any.encode(r,t.uint32(8186).fork()).ldelim();for(let r of e.nonCriticalExtensionOptions)n.Any.encode(r,t.uint32(16378).fork()).ldelim();return t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=f();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.messages.push(n.Any.decode(r,r.uint32()));break;case 2:o.memo=r.string();break;case 3:o.timeoutHeight=r.uint64();break;case 1023:o.extensionOptions.push(n.Any.decode(r,r.uint32()));break;case 2047:o.nonCriticalExtensionOptions.push(n.Any.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=f();return Array.isArray(e?.messages)&&(t.messages=e.messages.map(e=>n.Any.fromJSON(e))),(0,d.isSet)(e.memo)&&(t.memo=String(e.memo)),(0,d.isSet)(e.timeoutHeight)&&(t.timeoutHeight=BigInt(e.timeoutHeight.toString())),Array.isArray(e?.extensionOptions)&&(t.extensionOptions=e.extensionOptions.map(e=>n.Any.fromJSON(e))),Array.isArray(e?.nonCriticalExtensionOptions)&&(t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(e=>n.Any.fromJSON(e))),t},toJSON(e){let t={};return e.messages?t.messages=e.messages.map(e=>e?n.Any.toJSON(e):void 0):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||BigInt(0)).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map(e=>e?n.Any.toJSON(e):void 0):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(e=>e?n.Any.toJSON(e):void 0):t.nonCriticalExtensionOptions=[],t},fromPartial(e){let t=f();return t.messages=e.messages?.map(e=>n.Any.fromPartial(e))||[],t.memo=e.memo??"",void 0!==e.timeoutHeight&&null!==e.timeoutHeight&&(t.timeoutHeight=BigInt(e.timeoutHeight.toString())),t.extensionOptions=e.extensionOptions?.map(e=>n.Any.fromPartial(e))||[],t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions?.map(e=>n.Any.fromPartial(e))||[],t}},t.AuthInfo={typeUrl:"/cosmos.tx.v1beta1.AuthInfo",encode(e,r=s.BinaryWriter.create()){for(let n of e.signerInfos)t.SignerInfo.encode(n,r.uint32(10).fork()).ldelim();return void 0!==e.fee&&t.Fee.encode(e.fee,r.uint32(18).fork()).ldelim(),void 0!==e.tip&&t.Tip.encode(e.tip,r.uint32(26).fork()).ldelim(),r},decode(e,r){let n=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=h();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.signerInfos.push(t.SignerInfo.decode(n,n.uint32()));break;case 2:o.fee=t.Fee.decode(n,n.uint32());break;case 3:o.tip=t.Tip.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=h();return Array.isArray(e?.signerInfos)&&(r.signerInfos=e.signerInfos.map(e=>t.SignerInfo.fromJSON(e))),(0,d.isSet)(e.fee)&&(r.fee=t.Fee.fromJSON(e.fee)),(0,d.isSet)(e.tip)&&(r.tip=t.Tip.fromJSON(e.tip)),r},toJSON(e){let r={};return e.signerInfos?r.signerInfos=e.signerInfos.map(e=>e?t.SignerInfo.toJSON(e):void 0):r.signerInfos=[],void 0!==e.fee&&(r.fee=e.fee?t.Fee.toJSON(e.fee):void 0),void 0!==e.tip&&(r.tip=e.tip?t.Tip.toJSON(e.tip):void 0),r},fromPartial(e){let r=h();return r.signerInfos=e.signerInfos?.map(e=>t.SignerInfo.fromPartial(e))||[],void 0!==e.fee&&null!==e.fee&&(r.fee=t.Fee.fromPartial(e.fee)),void 0!==e.tip&&null!==e.tip&&(r.tip=t.Tip.fromPartial(e.tip)),r}},t.SignerInfo={typeUrl:"/cosmos.tx.v1beta1.SignerInfo",encode:(e,r=s.BinaryWriter.create())=>(void 0!==e.publicKey&&n.Any.encode(e.publicKey,r.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,r.uint32(18).fork()).ldelim(),e.sequence!==BigInt(0)&&r.uint32(24).uint64(e.sequence),r),decode(e,r){let i=e instanceof s.BinaryReader?e:new s.BinaryReader(e),o=void 0===r?i.len:i.pos+r,a=g();for(;i.pos<o;){let e=i.uint32();switch(e>>>3){case 1:a.publicKey=n.Any.decode(i,i.uint32());break;case 2:a.modeInfo=t.ModeInfo.decode(i,i.uint32());break;case 3:a.sequence=i.uint64();break;default:i.skipType(7&e)}}return a},fromJSON(e){let r=g();return(0,d.isSet)(e.publicKey)&&(r.publicKey=n.Any.fromJSON(e.publicKey)),(0,d.isSet)(e.modeInfo)&&(r.modeInfo=t.ModeInfo.fromJSON(e.modeInfo)),(0,d.isSet)(e.sequence)&&(r.sequence=BigInt(e.sequence.toString())),r},toJSON(e){let r={};return void 0!==e.publicKey&&(r.publicKey=e.publicKey?n.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(r.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(r.sequence=(e.sequence||BigInt(0)).toString()),r},fromPartial(e){let r=g();return void 0!==e.publicKey&&null!==e.publicKey&&(r.publicKey=n.Any.fromPartial(e.publicKey)),void 0!==e.modeInfo&&null!==e.modeInfo&&(r.modeInfo=t.ModeInfo.fromPartial(e.modeInfo)),void 0!==e.sequence&&null!==e.sequence&&(r.sequence=BigInt(e.sequence.toString())),r}},t.ModeInfo={typeUrl:"/cosmos.tx.v1beta1.ModeInfo",encode:(e,r=s.BinaryWriter.create())=>(void 0!==e.single&&t.ModeInfo_Single.encode(e.single,r.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=m();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.single=t.ModeInfo_Single.decode(n,n.uint32());break;case 2:o.multi=t.ModeInfo_Multi.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=m();return(0,d.isSet)(e.single)&&(r.single=t.ModeInfo_Single.fromJSON(e.single)),(0,d.isSet)(e.multi)&&(r.multi=t.ModeInfo_Multi.fromJSON(e.multi)),r},toJSON(e){let r={};return void 0!==e.single&&(r.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(r.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),r},fromPartial(e){let r=m();return void 0!==e.single&&null!==e.single&&(r.single=t.ModeInfo_Single.fromPartial(e.single)),void 0!==e.multi&&null!==e.multi&&(r.multi=t.ModeInfo_Multi.fromPartial(e.multi)),r}},t.ModeInfo_Single={typeUrl:"/cosmos.tx.v1beta1.Single",encode:(e,t=s.BinaryWriter.create())=>(0!==e.mode&&t.uint32(8).int32(e.mode),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.mode=r.int32():r.skipType(7&e)}return i},fromJSON(e){let t=y();return(0,d.isSet)(e.mode)&&(t.mode=(0,i.signModeFromJSON)(e.mode)),t},toJSON(e){let t={};return void 0!==e.mode&&(t.mode=(0,i.signModeToJSON)(e.mode)),t},fromPartial(e){let t=y();return t.mode=e.mode??0,t}},t.ModeInfo_Multi={typeUrl:"/cosmos.tx.v1beta1.Multi",encode(e,r=s.BinaryWriter.create()){for(let n of(void 0!==e.bitarray&&o.CompactBitArray.encode(e.bitarray,r.uint32(10).fork()).ldelim(),e.modeInfos))t.ModeInfo.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){let n=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=b();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.bitarray=o.CompactBitArray.decode(n,n.uint32());break;case 2:a.modeInfos.push(t.ModeInfo.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a}
1,fromJSON(e){let r=b();return(0,d.isSet)(e.bitarray)&&(r.bitarray=o.CompactBitArray.fromJSON(e.bitarray)),Array.isArray(e?.modeInfos)&&(r.modeInfos=e.modeInfos.map(e=>t.ModeInfo.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.bitarray&&(r.bitarray=e.bitarray?o.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?r.modeInfos=e.modeInfos.map(e=>e?t.ModeInfo.toJSON(e):void 0):r.modeInfos=[],r},fromPartial(e){let r=b();return void 0!==e.bitarray&&null!==e.bitarray&&(r.bitarray=o.CompactBitArray.fromPartial(e.bitarray)),r.modeInfos=e.modeInfos?.map(e=>t.ModeInfo.fromPartial(e))||[],r}},t.Fee={typeUrl:"/cosmos.tx.v1beta1.Fee",encode(e,t=s.BinaryWriter.create()){for(let r of e.amount)a.Coin.encode(r,t.uint32(10).fork()).ldelim();return e.gasLimit!==BigInt(0)&&t.uint32(16).uint64(e.gasLimit),""!==e.payer&&t.uint32(26).string(e.payer),""!==e.granter&&t.uint32(34).string(e.granter),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.amount.push(a.Coin.decode(r,r.uint32()));break;case 2:i.gasLimit=r.uint64();break;case 3:i.payer=r.string();break;case 4:i.granter=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=v();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>a.Coin.fromJSON(e))),(0,d.isSet)(e.gasLimit)&&(t.gasLimit=BigInt(e.gasLimit.toString())),(0,d.isSet)(e.payer)&&(t.payer=String(e.payer)),(0,d.isSet)(e.granter)&&(t.granter=String(e.granter)),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(e=>e?a.Coin.toJSON(e):void 0):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLim
1it||BigInt(0)).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t},fromPartial(e){let t=v();return t.amount=e.amount?.map(e=>a.Coin.fromPartial(e))||[],void 0!==e.gasLimit&&null!==e.gasLimit&&(t.gasLimit=BigInt(e.gasLimit.toString())),t.payer=e.payer??"",t.granter=e.granter??"",t}},t.Tip={typeUrl:"/cosmos.tx.v1beta1.Tip",encode(e,t=s.BinaryWriter.create()){for(let r of e.amount)a.Coin.encode(r,t.uint32(10).fork()).ldelim();return""!==e.tipper&&t.uint32(18).string(e.tipper),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.amount.push(a.Coin.decode(r,r.uint32()));break;case 2:i.tipper=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=S();return Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>a.Coin.fromJSON(e))),(0,d.isSet)(e.tipper)&&(t.tipper=String(e.tipper)),t},toJSON(e){let t={};return e.amount?t.amount=e.amount.map(e=>e?a.Coin.toJSON(e):void 0):t.amount=[],void 0!==e.tipper&&(t.tipper=e.tipper),t},fromPartial(e){let t=S();return t.amount=e.amount?.map(e=>a.Coin.fromPartial(e))||[],t.tipper=e.tipper??"",t}},t.AuxSignerData={typeUrl:"/cosmos.tx.v1beta1.AuxSignerData",encode:(e,r=s.BinaryWriter.create())=>(""!==e.address&&r.uint32(10).string(e.address),void 0!==e.signDoc&&t.SignDocDirectAux.encode(e.signDoc,r.uint32(18).fork()).ldelim(),0!==e.mode&&r.uint32(24).int32(e.mode),0!==e.sig.length&&r.uint32(34).bytes(e.sig),r),decode(e,r){let n=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=A();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.address=n.string();break;case 2:o.signDoc=t.SignDocDirectAux.decode(n,n.uint32());break;case 3:o.mode=n.int32();break;case 4:o.sig=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=A();return(0,d.isSet)(e.address)&&(r.address=String(e.address)),(0,d.isSet)(e.signDoc)&&(r.signDoc=t.SignDocDirectAux.fromJSON(e.signDoc)),(0,d.isSet)(e.mode)&&(r.mode=(0,i.signModeFromJSON)(e.mode)),(0,d.isSet)(e.sig)&&(r.sig=(0,d.bytesFromBase64)(e.sig)),r},toJSON(e){let r={};return void 0!==e.address&&(r.address=e.address),void 0!==e.signDoc&&(r.signDoc=e.signDoc?t.SignDocDirectAux.toJSON(e.signDoc):void 0),void 0!==e.mode&&(r.mode=(0,i.signModeToJSON)(e.mode)),void 0!==e.sig&&(r.sig=(0,d.base64FromBytes)(void 0!==e.sig?e.sig:new Uint8Array)),r},fromPartial(e){let r=A();return r.address=e.address??"",void 0!==e.signDoc&&null!==e.signDoc&&(r.signDoc=t.SignDocDirectAux.fromPartial(e.signDoc)),r.mode=e.mode??0,r.sig=e.sig??new Uint8Array,r}}},13864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryAnnualProvisionsResponse=t.QueryAnnualProvisionsRequest=t.QueryInflationResponse=t.QueryInflationRequest=t.QueryParamsResponse=t.QueryParamsRequest=t.protobufPackage=void 0;let n=r(2496),i=r(4696),o=r(92242);function a(){return{}}function s(){return{params:n.Params.fromPartial({})}}function d(){return{}}function l(){return{inflation:new Uint8Array}}function c(){return{}}function u(){return{annualProvisions:new Uint8Array}}t.protobufPackage="cosmos.mint.v1beta1",t.QueryParamsRequest={typeUrl:"/cosmos.mint.v1beta1.QueryParamsRequest",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>a(),toJSON:e=>({}),fromPartial:e=>a()},t.QueryParamsResponse={typeUrl:"/cosmos.mint.v1beta1.QueryParamsResponse",encode:(e,t=i.BinaryWriter.create())=>(void 0!==e.params&&n.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<o;){let e=r.uint32();e>>>3==1?a.params=n.Params.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=s();return(0,o.isSet)(e.params)&&(t.params=n.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?n.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=s();return void 0!==e.params&&null!==e.params&&(t.params=n.Params.fromPartial(e.params)),t}},t.QueryInflationRequest={typeUrl:"/cosmos.mint.v1beta1.QueryInflationRequest",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=d();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>d(),toJSON:e=>({}),fromPartial:e=>d()},t.QueryInflationResponse={typeUrl:"/cosmos.mint.v1beta1.QueryInflationResponse",encode:(e,t=i.BinaryWriter.create())=>(0!==e.inflation.length&&t.uint32(10).bytes(e.inflation),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.inflation=r.bytes():r.skipType(7&e)}return o},fromJSON(e){let t=l();return(0,o.isSet)(e.inflation)&&(t.inflation=(0,o.bytesFromBase64)(e.inflation)),t},toJSON(e){let t={};return void 0!==e.inflation&&(t.inflation=(0,o.base64FromBytes)(void 0!==e.inflation?e.inflation:new Uint8Array)),t},fromPartial(e){let t=l();return t.inflation=e.inflation??new Uint8Array,t}},t.QueryAnnualProvisionsRequest={typeUrl:"/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=c();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>c(),toJSON:e=>({}),fromPartial:e=>c()},t.QueryAnnualProvisionsResponse={typeUrl:"/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse",encode:(e,t=i.BinaryWriter.create())=>(0!==e.annualProvisions.length&&t.uint32(10).bytes(e.annualProvisions),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.annualProvisions=r.bytes():r.skipType(7&e)}return o},fromJSON(e){let t=u();return(0,o.isSet)(e.annualProvisions)&&(t.annualProvisions=(0,o.bytesFromBase64)(e.annualProvisions)),t},toJSON(e){let t={};return void 0!==e.annualProvisions&&(t.annualProvisions=(0,o.base64FromBytes)(void 0!==e.annualProvisions?e.annualProvisions:new Uint8Array)),t},fromPartial(e){let t=u();return t.annualProvisions=e.annualProvisions??new Uint8Array,t}};class p{constructor(e){this.rpc=e,this.Params=this.Params.bind(this),this.Inflation=this.Inflation.bind(this),this.AnnualProvisions=this.AnnualProvisions.bind(this)}Params(e={}){let r=t.QueryParamsRequest.encode(e).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","Params",r).then(e=>t.QueryParamsResponse.decode(new i.BinaryReader(e)))}Inflation(e={}){let r=t.QueryInflationRequest.encode(e).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","Inflation",r).then(e=>t.QueryInflationResponse.decode(new i.BinaryReader(e)))}AnnualProvisions(e={}){let r=t.QueryAnnualProvisionsRequest.encode(e).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","AnnualProvisions",r).then(e=>t.QueryAnnualProvisionsResponse.decode(new i.BinaryReader(e)))}}t.QueryClientImpl=p},13942:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgSetSendEnabledResponse=t.MsgSetSendEnabled=t.MsgUpdateParamsResponse=t.MsgUpdateParams=t.MsgMultiSendResponse=t.MsgMultiSend=t.MsgSendResponse=t.MsgSend=t.protobufPackage=void 0;let n=r(91794),i=r(82876),o=r(4696),a=r(92242);function s(){return{fromAddress:"",toAddress:"",amount:[]}}function d(){return{}}function l(){return{inputs:[],outputs:[]}}function c(){return{}}function u(){return{authority:"",params:i.Params.fromPartial({})}}function p(){return{}}function f(){return{authority:"",sendEnabled:[],useDefaultFor:[]}}function h(){return{}}t.protobufPackage="cosmos.bank.v1beta1",t.MsgSend={typeUrl:"/cosmos.bank.v1beta1.MsgSend",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),e.amount))n.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.fromAddress=r.string();break;case 2:a.toAddress=r.string();break;case 3:a.amount.push(n.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return(0,a.isSet)(e.fromAddress)&&(t.fromAddress=String(e.fromAddress)),(0,a.isSet)(e.toAddress)&&(t.toAddress=String(e.toAddress)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>n.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(e=>e?n.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=s();return t.fromAddress=e.fromAddress??"",t.toAddress=e.toAddress??"",t.amount=e.amount?.map(e=>n.Coin.fromPartial(e))||[],t}},t.MsgSendResponse={typeUrl:"/cosmos.bank.v1beta1.MsgSendResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=d();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>d(),toJSON:e=>({}),fromPartial:e=>d()},t.MsgMultiSend={typeUrl:"/cosmos.bank.v1beta1.MsgMultiSend",encode(e,t=o.BinaryWriter.create()){for(let r of e.inputs)i.Input.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.outputs)i.Output.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.inputs.push(i.Input.decode(r,r.uint32()));break;case 2:a.outputs.push(i.Output.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=l();return Array.isArray(e?.inputs)&&(t.inputs=e.inputs.map(e=>i.Input.fromJSON(e))),Array.isArray(e?.outputs)&&(t.outputs=e.outputs.map(e=>i.Output.fromJSON(e))),t},toJSON(e){let t={};return e.inputs?t.inputs=e.inputs.map(e=>e?i.Input.toJSON(e):void 0):t.inputs=[],e.outputs?t.outputs=e.outputs.map(e=>e?i.Output.toJSON(e):void 0):t.outputs=[],t},fromPartial(e){let t=l();return t.inputs=e.inputs?.map(e=>i.Input.fromPartial(e))||[],t.outputs=e.outputs?.map(e=>i.Output.fromPartial(e))||[],t}},t.MsgMultiSendResponse={typeUrl:"/cosmos.bank.v1beta1.MsgMultiSendResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>c(),toJSON:e=>({}),fromPartial:e=>c()},t.MsgUpdateParams={typeUrl:"/cosmos.bank.v1beta1.MsgUpdateParams",encode:(e,t=o.BinaryWriter.create())=>(""!==e.authority&&t.uint32(10).string(e.authority),void 0!==e.params&&i.Params.encode(e.params,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.authority=r.string();break;case 2:a.params=i.Params.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=u();return(0,a.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,a.isSet)(e.params)&&(t.params=i.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.authority&&(t.authority=e.authority),void 0!==e.params&&(t.params=e.params?i.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=u();return t.authority=e.authority??"",void 0!==e.params&&null!==e.params&&(t.params=i.Params.fromPartial(e.params)),t}},t.MsgUpdateParamsResponse={typeUrl:"/cosmos.bank.v1beta1.MsgUpdateParamsResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>p(),toJSON:e=>({}),fromPartial:e=>p()},t.MsgSetSendEnabled={typeUrl:"/cosmos.bank.v1beta1.MsgSetSendEnabled",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.authority&&t.uint32(10).string(e.authority),e.sendEnabled))i.SendEnabled.encode(r,t.uint32(18).fork()).ldelim();for(let r of e.useDefaultFor)t.uint32(26).string(r);return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=f();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.authority=r.string();break;case 2:a.sendEnabled.push(i.SendEnabled.decode(r,r.uint32()));break;case 3:a.useDefaultFor.push(r.string());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=f();return(0,a.isSet)(e.authority)&&(t.authority=String(e.authority)),Array.isArray(e?.sendEnabled)&&(t.sendEnabled=e.sendEnabled.map(e=>i.SendEnabled.fromJSON(e))),Array.isArray(e?.useDefaultFor)&&(t.useDefaultFor=e.useDefaultFor.map(e=>String(e))),t},toJSON(e){let t={};return void 0!==e.authority&&(t.authority=e.authority),e.sendEnabled?t.sendEnabled=e.sendEnabled.map(e=>e?i.SendEnabled.toJSON(e):void 0):t.sendEnabled=[],e.useDefaultFor?t.useDefaultFor=e.useDefaultFor.map(e=>e):t.useDefaultFor=[],t},fromPartial(e){let t=f();return t.authority=e.authority??"",t.sendEnabled=e.sendEnabled?.map(e=>i.SendEnabled.fromPartial(e))||[],t.useDefaultFor=e.useDefaultFor?.map(e=>e)||[],t}},t.MsgSetSendEnabledResponse={typeUrl:"/cosmos.bank.v1beta1.MsgSetSendEnabledResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>h(),toJSON:e=>({}),fromPartial:e=>h()};class g{constructor(e){this.rpc=e,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this),this.UpdateParams=this.UpdateParams.bind(this),this.SetSendEnabled=this.SetSendEnabled.bind(this)}Send(e){let r=t.MsgSend.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",r).then(e=>
1t.MsgSendResponse.decode(new o.BinaryReader(e)))}MultiSend(e){let r=t.MsgMultiSend.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",r).then(e=>t.MsgMultiSendResponse.decode(new o.BinaryReader(e)))}UpdateParams(e){let r=t.MsgUpdateParams.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","UpdateParams",r).then(e=>t.MsgUpdateParamsResponse.decode(new o.BinaryReader(e)))}SetSendEnabled(e){let r=t.MsgSetSendEnabled.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","SetSendEnabled",r).then(e=>t.MsgSetSendEnabledResponse.decode(new o.BinaryReader(e)))}}t.MsgClientImpl=g},14112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=i,t.anumber=o,t.abytes=a,t.ahash=s,t.aexists=d,t.aoutput=l,t.u8=c,t.u32=u,t.clean=p,t.createView=f,t.rotr=h,t.rotl=g,t.byteSwap=m,t.byteSwap32=y,t.bytesToHex=S,t.hexToBytes=_,t.asyncLoop=P,t.utf8ToBytes=k,t.bytesToUtf8=R,t.toBytes=O,t.kdfInputToBytes=I,t.concatBytes=B,t.checkOpts=x,t.createHasher=T,t.createOptHasher=N,t.createXOFer=C,t.randomBytes=M;let n=r(90326);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function a(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)}function d(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function l(e,t){a(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)}function c(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function u(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function p(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function f(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function h(e,t){return e<<32-t|e>>>t}function g(e,t){return e<<t|e>>>32-t>>>0}function m(e){return e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255}function y(e){for(let t=0;t<e.length;t++)e[t]=m(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>m(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:y;let b="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,v=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function S(e){if(a(e),b)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=v[e[r]];return t}let A={_0:48,_9:57,A:65,F:70,a:97,f:102};function w(e){return e>=A._0&&e<=A._9?e-A._0:e>=A.A&&e<=A.F?e-(A.A-10):e>=A.a&&e<=A.f?e-(A.a-10):void 0}function _(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(b)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=w(e.charCodeAt(i)),o=w(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}async function P(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);let e=Date.now()-i;e>=0&&e<r||(await (0,t.nextTick)(),i+=e)}}function k(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function R(e){return new TextDecoder().decode(e)}function O(e){return"string"==typeof e&&(e=k(e)),a(e),e}function I(e){return"string"==typeof e&&(e=k(e)),a(e),e}function B(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];a(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}function x(e,t){if(void 0!==t&&"[object Object]"!==({}).toString.call(t))throw Error("options should be object or undefined");return Object.assign(e,t)}t.nextTick=async()=>{};class E{}function T(e){let t=t=>e().update(O(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function N(e){let t=(t,r)=>e(r).update(O(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function C(e){let t=(t,r)=>e(r).update(O(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function M(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}t.Hash=E,t.wrapConstructor=T,t.wrapConstructorWithOpts=N,t.wrapXOFConstructorWithOpts=C},14430:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Consensus=t.App=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{protocol:BigInt(0),software:""}}function a(){return{block:BigInt(0),app:BigInt(0)}}t.protobufPackage="tendermint.version",t.App={typeUrl:"/tendermint.version.App",encode:(e,t=n.BinaryWriter.create())=>(e.protocol!==BigInt(0)&&t.uint32(8).uint64(e.protocol),""!==e.software&&t.uint32(18).string(e.software),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.protocol=r.uint64();break;case 2:a.software=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.protocol)&&(t.protocol=BigInt(e.protocol.toString())),(0,i.isSet)(e.software)&&(t.software=String(e.software)),t},toJSON(e){let t={};return void 0!==e.protocol&&(t.protocol=(e.protocol||BigInt(0)).toString()),void 0!==e.software&&(t.software=e.software),t},fromPartial(e){let t=o();return void 0!==e.protocol&&null!==e.protocol&&(t.protocol=BigInt(e.protocol.toString())),t.software=e.software??"",t}},t.Consensus={typeUrl:"/tendermint.version.Consensus",encode:(e,t=n.BinaryWriter.create())=>(e.block!==BigInt(0)&&t.uint32(8).uint64(e.block),e.app!==BigInt(0)&&t.uint32(16).uint64(e.app),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.block=r.uint64();break;case 2:o.app=r.uint64();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=a();return(0,i.isSet)(e.block)&&(t.block=BigInt(e.block.toString())),(0,i.isSet)(e.app)&&(t.app=BigInt(e.app.toString())),t},toJSON(e){let t={};return void 0!==e.block&&(t.block=(e.block||BigInt(0)).toString()),void 0!==e.app&&(t.app=(e.app||BigInt(0)).toString()),t},fromPartial(e){let t=a();return void 0!==e.block&&null!==e.block&&(t.block=BigInt(e.block.toString())),void 0!==e.app&&null!==e.app&&(t.app=BigInt(e.app.toString())),t}}},14577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.feegrantTypes=void 0;let n=r(67726);t.feegrantTypes=[["/cosmos.feegrant.v1beta1.MsgGrantAllowance",n.MsgGrantAllowance],["/cosmos.feegrant.v1beta1.MsgRevokeAllowance",n.MsgRevokeAllowance]]},14882:(e,t)=>{"use strict";function r(e){return"object"==typeof e.error}Object.defineProperty(t,"__esModule",{value:!0}),t.jsonRpcCode=t.isJsonRpcSuccessResponse=t.isJsonRpcErrorResponse=void 0,t.isJsonRpcErrorResponse=r,t.isJsonRpcSuccessResponse=function(e){return!r(e)},t.jsonRpcCode={parseError:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internalError:-32603,serverError:{default:-32e3}}},15412:(e,t,r)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.TallyParams=t.VotingParams=t.DepositParams=t.Vote=t.TallyResult=t.Proposal=t.Deposit=t.TextProposal=t.WeightedVoteOption=t.proposalStatusToJSON=t.proposalStatusFromJSON=t.ProposalStatus=t.voteOptionToJSON=t.voteOptionFromJSON=t.VoteOption=t.protobufPackage=void 0;let o=r(91794),a=r(54573),s=r(37375),d=r(19393),l=r(4696),c=r(92242);function u(e){switch(e){case 0:case"VOTE_OPTION_UNSPECIFIED":return n.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return n.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return n.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return n.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return n.VOTE_OPTION_NO_WITH_VETO;default:return n.UNRECOGNIZED}}function p(e){switch(e){case n.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case n.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case n.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case n.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case n.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return i.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return i.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return i.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return i.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return i.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return i.PROPOSAL_STATUS_FAILED;default:return i.UNRECOGNIZED}}function h(e){switch(e){case i.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case i.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case i.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case i.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case i.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case i.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(){return{option:0,weight:""}}function m(){return{title:"",description:""}}function y(){return{proposalId:BigInt(0),depositor:"",amount:[]}}function b(){return{proposalId:BigInt(0),content:void 0,status:0,finalTallyResult:t.TallyResult.fromPartial({}),submitTime:s.Timestamp.fromPartial({}),depositEndTime:s.Timestamp.fromPartial({}),totalDeposit:[],votingStartTime:s.Timestamp.fromPartial({}),votingEndTime:s.Timestamp.fromPartial({})}}function v(){return{yes:"",abstain:"",no:"",noWithVeto:""}}function S(){return{proposalId:BigInt(0),voter:"",option:0,options:[]}}function A(){return{minDeposit:[],maxDepositPeriod:d.Duration.fromPartial({})}}function w(){return{votingPeriod:d.Duration.fromPartial({})}}function _(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}t.protobufPackage="cosmos.gov.v1beta1",function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",e[e.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",e[e.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",e[e.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",e[e.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.VoteOption=n={})),t.voteOptionFromJSON=u,t.voteOptionToJSON=p,function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",e[e.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",e[e.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",e[e.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",e[e.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",e[e.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(t.ProposalStatus=i={})),t.proposalStatusFromJSON=f,t.proposalStatusToJSON=h,t.WeightedVoteOption={typeUrl:"/cosmos.gov.v1beta1.WeightedVoteOption",encode:(e,t=l.BinaryWriter.create())=>(0!==e.option&&t.uint32(8).int32(e.option),""!==e.weight&&t.uint32(18).string(e.weight),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.option=r.int32();break;case 2:i.weight=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,c.isSet)(e.option)&&(t.option=u(e.option)),(0,c.isSet)(e.weight)&&(t.weight=String(e.weight)),t},toJSON(e){let t={};return void 0!==e.option&&(t.option=p(e.option)),void 0!==e.weight&&(t.weight=e.weight),t},fromPartial(e){let t=g();return t.option=e.option??0,t.weight=e.weight??"",t}},t.TextProposal={typeUrl:"/cosmos.gov.v1beta1.TextProposal",encode:(e,t=l.BinaryWriter.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,c.isSet)(e.title)&&(t.title=String(e.title)),(0,c.isSet)(e.description)&&(t.description=String(e.description)),t},toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial(e){let t=m();return t.title=e.title??"",t.description=e.description??"",t}},t.Deposit={typeUrl:"/cosmos.gov.v1beta1.Deposit",encode(e,t=l.BinaryWriter.create()){for(let r of(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor),e.amount))o.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.depositor=r.string();break;case 3:i.amount.push(o.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return(0,c.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,c.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>o.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(e=>e?o.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=y();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t.amount=e.amount?.map(e=>o.Coin.fromPartial(e))||[],t}},t.Proposal={typeUrl:"/cosmos.gov.v1beta1.Proposal",encode(e,r=l.BinaryWriter.create()){for(let n of(e.proposalId!==BigInt(0)&&r.uint32(8).uint64(e.proposalId),void 0!==e.content&&a.Any.encode(e.content,r.uint32(18).fork()).ldelim(),0!==e.status&&r.uint32(24).int32(e.status),void 0!==e.finalTallyResult&&t.TallyResult.encode(e.finalTallyResult,r.uint32(34).fork()).ldelim(),void 0!==e.submitTime&&s.Timestamp.encode(e.submitTime,r.uint32(42).fork()).ldelim(),void 0!==e.depositEndTime&&s.Timestamp.encode(e.depositEndTime,r.uint32(50).fork()).ldelim(),e.totalDeposit))o.Coin.encode(n,r.uint32(58).fork()).ldelim();return void 0!==e.votingStartTime&&s.Timestamp.encode(e.votingStartTime,r.uint32(66).fork()).ldelim(),void 0!==e.votingEndTime&&s.Timestamp.encode(e.votingEndTime,r.uint32(74).fork()).ldelim(),r},decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,d=b();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:d.proposalId=n.uint64();break;case 2:d.content=a.Any.decode(n,n.uint32());break;case 3:d.status=n.int32();break;case 4:d.finalTallyResult=t.TallyResult.decode(n,n.uint32());break;case 5:d.submitTime=s.Timestamp.decode(n,n.uint32());break;case 6:d.depositEndTime=s.Timestamp.decode(n,n.uint32());break;case 7:d.totalDeposit.push(o.Coin.decode(n,n.uint32()));break;case 8:d.votingStartTime=s.Timestamp.decode(n,n.uint32());break;case 9:d.votingEndTime=s.Timestamp.decode(n,n.uint32());break;default:n.skipType(7&e)}}return d}
1,fromJSON(e){let r=b();return(0,c.isSet)(e.proposalId)&&(r.proposalId=BigInt(e.proposalId.toString())),(0,c.isSet)(e.content)&&(r.content=a.Any.fromJSON(e.content)),(0,c.isSet)(e.status)&&(r.status=f(e.status)),(0,c.isSet)(e.finalTallyResult)&&(r.finalTallyResult=t.TallyResult.fromJSON(e.finalTallyResult)),(0,c.isSet)(e.submitTime)&&(r.submitTime=(0,c.fromJsonTimestamp)(e.submitTime)),(0,c.isSet)(e.depositEndTime)&&(r.depositEndTime=(0,c.fromJsonTimestamp)(e.depositEndTime)),Array.isArray(e?.totalDeposit)&&(r.totalDeposit=e.totalDeposit.map(e=>o.Coin.fromJSON(e))),(0,c.isSet)(e.votingStartTime)&&(r.votingStartTime=(0,c.fromJsonTimestamp)(e.votingStartTime)),(0,c.isSet)(e.votingEndTime)&&(r.votingEndTime=(0,c.fromJsonTimestamp)(e.votingEndTime)),r},toJSON(e){let r={};return void 0!==e.proposalId&&(r.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.content&&(r.content=e.content?a.Any.toJSON(e.content):void 0),void 0!==e.status&&(r.status=h(e.status)),void 0!==e.finalTallyResult&&(r.finalTallyResult=e.finalTallyResult?t.TallyResult.toJSON(e.finalTallyResult):void 0),void 0!==e.submitTime&&(r.submitTime=(0,
1c.fromTimestamp)(e.submitTime).toISOString()),void 0!==e.depositEndTime&&(r.depositEndTime=(0,c.fromTimestamp)(e.depositEndTime).toISOString()),e.totalDeposit?r.totalDeposit=e.totalDeposit.map(e=>e?o.Coin.toJSON(e):void 0):r.totalDeposit=[],void 0!==e.votingStartTime&&(r.votingStartTime=(0,c.fromTimestamp)(e.votingStartTime).toISOString()),void 0!==e.votingEndTime&&(r.votingEndTime=(0,c.fromTimestamp)(e.votingEndTime).toISOString()),r},fromPartial(e){let r=b();return void 0!==e.proposalId&&null!==e.proposalId&&(r.proposalId=BigInt(e.proposalId.toString())),void 0!==e.content&&null!==e.content&&(r.content=a.Any.fromPartial(e.content)),r.status=e.status??0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult&&(r.finalTallyResult=t.TallyResult.fromPartial(e.finalTallyResult)),void 0!==e.submitTime&&null!==e.submitTime&&(r.submitTime=s.Timestamp.fromPartial(e.submitTime)),void 0!==e.depositEndTime&&null!==e.depositEndTime&&(r.depositEndTime=s.Timestamp.fromPartial(e.depositEndTime)),r.totalDeposit=e.totalDeposit?.map(e=>o.Coin.fromPartial(e))||[],void 0!==e.votingStartTime&&null!==e.votingStartTime&&(r.votingStartTime=s.Timestamp.fromPartial(e.votingStartTime)),void 0!==e.votingEndTime&&null!==e.votingEndTime&&(r.votingEndTime=s.Timestamp.fromPartial(e.votingEndTime)),r}},t.TallyResult={typeUrl:"/cosmos.gov.v1beta1.TallyResult",encode:(e,t=l.BinaryWriter.create())=>(""!==e.yes&&t.uint32(10).string(e.yes),""!==e.abstain&&t.uint32(18).string(e.abstain),""!==e.no&&t.uint32(26).string(e.no),""!==e.noWithVeto&&t.uint32(34).string(e.noWithVeto),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.yes=r.string();break;case 2:i.abstain=r.string();break;case 3:i.no=r.string();break;case 4:i.noWithVeto=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=v();return(0,c.isSet)(e.yes)&&(t.yes=String(e.yes)),(0,c.isSet)(e.abstain)&&(t.abstain=String(e.abstain)),(0,c.isSet)(e.no)&&
1(t.no=String(e.no)),(0,c.isSet)(e.noWithVeto)&&(t.noWithVeto=String(e.noWithVeto)),t},toJSON(e){let t={};return void 0!==e.yes&&(t.yes=e.yes),void 0!==e.abstain&&(t.abstain=e.abstain),void 0!==e.no&&(t.no=e.no),void 0!==e.noWithVeto&&(t.noWithVeto=e.noWithVeto),t},fromPartial(e){let t=v();return t.yes=e.yes??"",t.abstain=e.abstain??"",t.no=e.no??"",t.noWithVeto=e.noWithVeto??"",t}},t.Vote={typeUrl:"/cosmos.gov.v1beta1.Vote",encode(e,r=l.BinaryWriter.create()){for(let n of(e.proposalId!==BigInt(0)&&r.uint32(8).uint64(e.proposalId),""!==e.voter&&r.uint32(18).string(e.voter),0!==e.option&&r.uint32(24).int32(e.option),e.options))t.WeightedVoteOption.encode(n,r.uint32(34).fork()).ldelim();return r},decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=S();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.proposalId=n.uint64();break;case 2:o.voter=n.string();break;case 3:o.option=n.int32();break;case 4:o.options.push(t.WeightedVoteOption.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=S();return(0,c.isSet)(e.proposalId)&&(r.proposalId=BigInt(e.proposalId.toString())),(0,c.isSet)(e.voter)&&(r.voter=String(e.voter)),(0,c.isSet)(e.option)&&(r.option=u(e.option)),Array.isArray(e?.options)&&(r.options=e.options.map(e=>t.WeightedVoteOption.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.proposalId&&(r.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(r.voter=e.voter),void 0!==e.option&&(r.option=p(e.option)),e.options?r.options=e.options.map(e=>e?t.WeightedVoteOption.toJSON(e):void 0):r.options=[],r},fromPartial(e){let r=S();return void 0!==e.proposalId&&null!==e.proposalId&&(r.proposalId=BigInt(e.proposalId.toString())),r.voter=e.voter??"",r.option=e.option??0,r.options=e.options?.map(e=>t.WeightedVoteOption.fromPartial(e))||[],r}},t.DepositParams={typeUrl:"/cosmos.gov.v1beta1.DepositParams",encode(e,t=l.BinaryWriter.create()){for(let r of e.minDeposit)o.Coin.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.maxDepositPeriod&&d.Duration.encode(e.maxDepositPeriod,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.minDeposit.push(o.Coin.decode(r,r.uint32()));break;case 2:i.maxDepositPeriod=d.Duration.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=A();return Array.isArray(e?.minDeposit)&&(t.minDeposit=e.minDeposit.map(e=>o.Coin.fromJSON(e))),(0,c.isSet)(e.maxDepositPeriod)&&(t.maxDepositPeriod=d.Duration.fromJSON(e.maxDepositPeriod)),t},toJSON(e){let t={};return e.minDeposit?t.minDeposit=e.minDeposit.map(e=>e?o.Coin.toJSON(e):void 0):t.minDeposit=[],void 0!==e.maxDepositPeriod&&(t.maxDepositPeriod=e.maxDepositPeriod?d.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial(e){let t=A();return t.minDeposit=e.minDeposit?.map(e=>o.Coin.fromPartial(e))||[],void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod&&(t.maxDepositPeriod=d.Duration.fromPartial(e.maxDepositPeriod)),t}},t.VotingParams={typeUrl:"/cosmos.gov.v1beta1.VotingParams",encode:(e,t=l.BinaryWriter.create())=>(void 0!==e.votingPeriod&&d.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.votingPeriod=d.Duration.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=w();return(0,c.isSet)(e.votingPeriod)&&(t.votingPeriod=d.Duration.fromJSON(e.votingPeriod)),t},toJSON(e){let t={};return void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?d.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial(e){let t=w();return void 0!==e.votingPeriod&&null!==e.votingPeriod&&(t.votingPeriod=d.Duration.fromPartial(e.votingPeriod)),t}},t.TallyParams={typeUrl:"/cosmos.gov.v1beta1.TallyParams",encode:(e,t=l.BinaryWriter.create())=>(0!==e.quorum.length&&t.uint32(10).bytes(e.quorum),0!==e.threshold.length&&t.uint32(18).bytes(e.threshold),0!==e.vetoThreshold.length&&t.uint32(26).bytes(e.vetoThreshold),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.quorum=r.bytes();break;case 2:i.threshold=r.bytes();break;case 3:i.vetoThreshold=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=_();return(0,c.isSet)(e.quorum)&&(t.quorum=(0,c.bytesFromBase64)(e.quorum)),(0,c.isSet)(e.threshold)&&(t.threshold=(0,c.bytesFromBase64)(e.threshold)),(0,c.isSet)(e.vetoThreshold)&&(t.vetoThreshold=(0,c.bytesFromBase64)(e.vetoThreshold)),t},toJSON(e){let t={};return void 0!==e.quorum&&(t.quorum=(0,c.base64FromBytes)(void 0!==e.quorum?e.quorum:new Uint8Array)),void 0!==e.threshold&&(t.threshold=(0,c.base64FromBytes)(void 0!==e.threshold?e.threshold:new Uint8Array)),void 0!==e.vetoThreshold&&(t.vetoThreshold=(0,c.base64FromBytes)(void 0!==e.vetoThreshold?e.vetoThreshold:new Uint8Array)),t},fromPartial(e){let t=_();return t.quorum=e.quorum??new Uint8Array,t.threshold=e.threshold??new Uint8Array,t.vetoThreshold=e.vetoThreshold??new Uint8Array,t}}},15684:(e,t,r)=>{"use strict";var n,i=r(69395),o=r(94719)(),a=r(954),s=r(26600);if(o){var d=i("RegExp.prototype.exec"),l={},c=function(){throw l}
vendor: 4,159 bytes, line 1
1,u={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(u[Symbol.toPrimitive]=c),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{d(e,u)}catch(e){return e===l}}}else{var p=i("Object.prototype.toString"),f="[object RegExp]";n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&p(e)===f}}e.exports=n},15940:(e,t,r)=>{"use strict";var n=r(58154);e.exports=Function.prototype.bind||n},16010:(e,t,r)=>{"use strict";var n=r(91697),i=r(95488),o=i.getNAF,a=i.getJSF,s=i.assert;function d(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=d,d.prototype.point=function(){throw Error("Not implemented")},d.prototype.validate=function(){throw Error("Not implemented")},d.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r,n,i=e._getDoubles(),a=o(t,1,this._bitLength),d=(1<<i.step+1)-(i.step%2==0?2:1);d/=3;var l=[];for(r=0;r<a.length;r+=i.step){n=0;for(var c=r+i.step-1;c>=r;c--)n=(n<<1)+a[c];l.push(n)}for(var u=this.jpoint(null,null,null),p=this.jpoint(null,null,null),f=d;f>0;f--){for(r=0;r<l.length;r++)(n=l[r])===f?p=p.mixedAdd(i.points[r]):n===-f&&(p=p.mixedAdd(i.points[r].neg()));u=u.add(p)}return u.toP()},d.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),d=this.jpoint(null,null,null),l=a.length-1;l>=0;l--){for(var c=0;l>=0&&0===a[l];l--)c++;if(l>=0&&c++,d=d.dblp(c),l<0)break;var u=a[l];s(0!==u),d="affine"===e.type?u>0?d.mixedAdd(i[u-1>>1]):d.mixedAdd(i[-u-1>>1].neg()):u>0?d.add(i[u-1>>1]):d.add(i[-u-1>>1].neg())}return"affine"===e.type?d.toP():d},d.prototype._wnafMulAdd=function(e,t,r,n,i){var s,d,l,c=this._wnafT1,u=this._wnafT2,p=this._wnafT3,f=0;for(s=0;s<n;s++){var h=(l=t[s])._getNAFPoints(e);c[s]=h.wnd,u[s]=h.points}for(s=n-1;s>=1;s-=2){var g=s-1,m=s;if(1!==c[g]||1!==c[m]){p[g]=o(r[g],c[g],this._bitLength),p[m]=o(r[m],c[m],this._bitLength),f=Math.max(p[g].length,f),f=Math.max(p[m].length,f);continue}var y=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(y[1]=t[g].add(t[m]),y[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(y[1]=t[g].toJ().mixedAdd(t[m]),y[2]=t[g].add(t[m].neg())):(y[1]=t[g].toJ().mixedAdd(t[m]),y[2]=t[g].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[g],r[m]);for(d=0,f=Math.max(v[0].length,f),p[g]=Array(f),p[m]=Array(f);d<f;d++){var S=0|v[0][d],A=0|v[1][d];p[g][d]=b[(S+1)*3+(A+1)],p[m][d]=0,u[g]=y}}var w=this.jpoint(null,null,null),_=this._wnafT4;for(s=f;s>=0;s--){for(var P=0;s>=0;){var k=!0;for(d=0;d<n;d++)_[d]=0|p[d][s],0!==_[d]&&(k=!1);if(!k)break;P++,s--}if(s>=0&&P++,w=w.dblp(P),s<0)break;for(d=0;d<n;d++){var R=_[d];0!==R&&(R>0?l=u[d][R-1>>1]:R<0&&(l=u[d][-R-1>>1].neg()),w="affine"===l.type?w.mixedAdd(l):w.add(l))}}for(s=0;s<n;s++)u[s]=null;return i?w:w.toP()},d.BasePoint=l,l.prototype.eq=function(){throw Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},d.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)}
1,l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},16038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignDoc=t.escapeCharacters=t.makeSignDoc=t.sortedJsonStringify=void 0;let n=r(25918),i=r(73297);function o(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(o);let t=Object.keys(e).sort(),r={};return t.forEach(t=>{r[t]=o(e[t])}),r}function a(e){return JSON.stringify(o(e))}function s(e){let t=/&/g,r=/</g,n=/>/g;return e.replace(t,"\\u0026").replace(r,"\\u003c").replace(n,"\\u003e")}t.sortedJsonStringify=a,t.makeSignDoc=function(e,t,r,n,o,a,s){return{chain_id:r,account_number:i.Uint53.fromString(o.toString()).toString(),sequence:i.Uint53.fromString(a.toString()).toString(),fee:t,msgs:e,memo:n||"",...s&&{timeout_height:s.toString()}}},t.escapeCharacters=s,t.serializeSignDoc=function(e){let t=s(a(e));return(0,n.toUtf8)(t)}},16405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MerkleProof=t.MerklePath=t.MerklePrefix=t.MerkleRoot=t.protobufPackage=void 0;let n=r(93562),i=r(4696),o=r(92242);function a(){return{hash:new Uint8Array}}function s(){return{keyPrefix:new Uint8Array}}function d(){return{keyPath:[]}}function l(){return{proofs:[]}}t.protobufPackage="ibc.core.commitment.v1",t.MerkleRoot={typeUrl:"/ibc.core.commitment.v1.MerkleRoot",encode:(e,t=i.BinaryWriter.create())=>(0!==e.hash.length&&t.uint32(10).bytes(e.hash),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.hash=r.bytes():r.skipType(7&e)}return o},fromJSON(e){let t=a();return(0,o.isSet)(e.hash)&&(t.hash=(0,o.bytesFromBase64)(e.hash)),t},toJSON(e){let t={};return void 0!==e.hash&&(t.hash=(0,o.base64FromBytes)(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial(e){let t=a();return t.hash=e.hash??new Uint8Array,t}},t.MerklePrefix={typeUrl:"/ibc.core.commitment.v1.MerklePrefix",encode:(e,t=i.BinaryWriter.create())=>(0!==e.keyPrefix.length&&t.uint32(10).bytes(e.keyPrefix),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=s();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.keyPrefix=r.bytes():r.skipType(7&e)}return o},fromJSON(e){let t=s();return(0,o.isSet)(e.keyPrefix)&&(t.keyPrefix=(0,o.bytesFromBase64)(e.keyPrefix)),t},toJSON(e){let t={};
1return void 0!==e.keyPrefix&&(t.keyPrefix=(0,o.base64FromBytes)(void 0!==e.keyPrefix?e.keyPrefix:new Uint8Array)),t},fromPartial(e){let t=s();return t.keyPrefix=e.keyPrefix??new Uint8Array,t}},t.MerklePath={typeUrl:"/ibc.core.commitment.v1.MerklePath",encode(e,t=i.BinaryWriter.create()){for(let r of e.keyPath)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=d();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.keyPath.push(r.string()):r.skipType(7&e)}return o},fromJSON(e){let t=d();return Array.isArray(e?.keyPath)&&(t.keyPath=e.keyPath.map(e=>String(e))),t},toJSON(e){let t={};return e.keyPath?t.keyPath=e.keyPath.map(e=>e):t.keyPath=[],t},fromPartial(e){let t=d();return t.keyPath=e.keyPath?.map(e=>e)||[],t}},t.MerkleProof={typeUrl:"/ibc.core.commitment.v1.MerkleProof",encode(e,t=i.BinaryWriter.create()){for(let r of e.proofs)n.CommitmentProof.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<o;){let e=r.uint32();e>>>3==1?a.proofs.push(n.CommitmentProof.decode(r,r.uint32())):r.skipType(7&e)}return a},fromJSON(e){let t=l();return Array.isArray(e?.proofs)&&(t.proofs=e.proofs.map(e=>n.CommitmentProof.fromJSON(e))),t},toJSON(e){let t={};return e.proofs?t.proofs=e.proofs.map(e=>e?n.CommitmentProof.toJSON(e):void 0):t.proofs=[],t},fromPartial(e){let t=l();return t.proofs=e.proofs?.map(e=>n.CommitmentProof.fromPartial(e))||[],t}}},16554:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEvidenceAminoConverters=t.isAminoMsgSubmitEvidence=void 0,t.isAminoMsgSubmitEvidence=function(e){return"cosmos-sdk/MsgSubmitEvidence"===e.type},t.createEvidenceAminoConverters=function(){throw Error("Not implemented")}},16750:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgTransferResponse=t.MsgTransfer=t.protobufPackage=void 0;let n=r(91794),i=r(22421),o=r(4696),a=r(92242);function s(){return{sourcePort:"",sourceChannel:"",token:n.Coin.fromPartial({}),sender:"",receiver:"",timeoutHeight:i.Height.fromPartial({}),timeoutTimestamp:BigInt(0),memo:""}}function d(){return{sequence:BigInt(0)}}t.protobufPackage="ibc.applications.transfer.v1",t.MsgTransfer={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",encode:(e,t=o.BinaryWriter.create())=>(""!==e.sourcePort&&t.uint32(10).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(18).string(e.sourceChannel),void 0!==e.token&&n.Coin.encode(e.token,t.uint32(26).fork()).ldelim(),""!==e.sender&&t.uint32(34).string(e.sender),""!==e.receiver&&t.uint32(42).string(e.receiver),void 0!==e.timeoutHeight&&i.Height.encode(e.timeoutHeight,t.uint32(50).fork()).ldelim(),e.timeoutTimestamp!==BigInt(0)&&t.uint32(56).uint64(e.timeoutTimestamp),""!==e.memo&&t.uint32(66).string(e.memo),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=s();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.sourcePort=r.string();break;case 2:d.sourceChannel=r.string();break;case 3:d.token=n.Coin.decode(r,r.uint32());break;case 4:d.sender=r.string();break;case 5:d.receiver=r.string();break;case 6:d.timeoutHeight=i.Height.decode(r,r.uint32());break;case 7:d.timeoutTimestamp=r.uint64();break;case 8:d.memo=r.string();break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=s();return(0,a.isSet)(e.sourcePort)&&(t.sourcePort=String(e.sourcePort)),(0,a.isSet)(e.sourceChannel)&&(t.sourceChannel=String(e.sourceChannel)),(0,a.isSet)(e.token)&&(t.token=n.Coin.fromJSON(e.token)),(0,a.isSet)(e.sender)&&(t.sender=String(e.sender)),(0,a.isSet)(e.receiver)&&(t.receiver=String(e.receiver)),(0,a.isSet)(e.timeoutHeight)&&(t.timeoutHeight=i.Height.fromJSON(e.timeoutHeight)),(0,a.isSet)(e.timeoutTimestamp)&&(t.timeoutTimestamp=BigInt(e.timeoutTimestamp.toString())),(0,a.isSet)(e.memo)&&(t.memo=String(e.memo)),t},toJSON(e){let t={};return void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.token&&(t.token=e.token?n.Coin.toJSON(e.token):void 0),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?i.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=(e.timeoutTimestamp||BigInt(0)).toString()),void 0!==e.memo&&(t.memo=e.memo),t},fromPartial(e){let t=s();return t.sourcePort=e.sourcePort??"",t.sourceChannel=e.sourceChannel??"",void 0!==e.token&&null!==e.token&&(t.token=n.Coin.fromPartial(e.token)),t.sender=e.sender??"",t.receiver=e.receiver??"",void 0!==e.timeoutHeight&&null!==e.timeoutHeight&&(t.timeoutHeight=i.Height.fromPartial(e.timeoutHeight)),void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp&&(t.timeoutTimestamp=BigInt(e.timeoutTimestamp.toString())),t.memo=e.memo??"",t}},t.MsgTransferResponse={typeUrl:"/ibc.applications.transfer.v1.MsgTransferResponse",encode:(e,t=o.BinaryWriter.create())=>(e.sequence!==BigInt(0)&&t.uint32(8).uint64(e.sequence),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=d();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.sequence=r.uint64():r.skipType(7&e)}return i},fromJSON(e){let t=d();return(0,a.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=d();return void 0!==e.sequence&&null!==e.sequence&&(t.sequence=BigInt(e.sequence.toString())),t}};class l{constructor(e){this.rpc=e,this.Transfer=this.Transfer.bind(this)}Transfer(e){let r=t.MsgTransfer.encode(e).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",r).then(e=>t.MsgTransferResponse.decode(new o.BinaryReader(e)))}}t.MsgClientImpl=l},16877:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
1(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;let a=r(25918),s=r(551),d=r(56662),l=r(25749),c=o(r(70707));function u(e){return{height:(0,l.may)(s.smallIntToApi,e.height)}}function p(e){return{minHeight:(0,l.may)(s.smallIntToApi,e.minHeight),maxHeight:(0,l.may)(s.smallIntToApi,e.maxHeight)}}function f(e){return{query:e.query,page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page),order_by:e.order_by}}function h(e){return{path:(0,l.assertNotEmpty)(e.path),data:(0,a.toHex)(e.data),height:(0,l.may)(s.smallIntToApi,e.height),prove:e.prove}}function g(e){return{tx:(0,a.toBase64)((0,l.assertNotEmpty)(e.tx))}}function m(e){return{hash:(0,a.toBase64)((0,l.assertNotEmpty)(e.hash)),prove:e.prove}}function y(e){return{query:e.query,prove:e.prove,page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page),order_by:e.order_by}}function b(e){return{height:(0,l.may)(s.smallIntToApi,e.height),page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page)}}class v{static encodeAbciInfo(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeAbciQuery(e){return(0,d.createJsonRpcRequest)(e.method,h(e.params))}static encodeBlock(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeBlockchain(e){return(0,d.createJsonRpcRequest)(e.method,p(e.params))}static encodeBlockResults(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeBlockSearch(e){return(0,d.createJsonRpcRequest)(e.method,f(e.params))}static encodeBroadcastTx(e){return(0,d.createJsonRpcRequest)(e.method,g(e.params))}static encodeCommit(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeGenesis(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeHealth(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeNumUnconfirmedTxs(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeStatus(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeSubscribe(e){let t={key:"tm.event",value:e.query.type},r=c.buildQuery({tags:[t],raw:e.query.raw});return(0,d.createJsonRpcRequest)("subscribe",{query:r})}static encodeTx(e){return(0,d.createJsonRpcRequest)(e.method,m(e.params))}static encodeTxSearch(e){return(0,d.createJsonRpcRequest)(e.method,y(e.params))}static encodeValidators(e){return(0,d.createJsonRpcRequest)(e.method,b(e.params))}}t.Params=v},17188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeJsonRpcId=void 0;let r=1e4;t.makeJsonRpcId=function(){return r+=1}},17715:(e,t,r)=>{"use strict";e.exports=r(1091).getPrototypeOf||null},18432:(e,t,r)=>{var n=r(60996),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},18637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;let n=r(91936);t.RIPEMD160=n.RIPEMD160,t.ripemd160=n.ripemd160},19130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrivKey=t.PubKey=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{key:new Uint8Array}}function a(){return{key:new Uint8Array}}t.protobufPackage="cosmos.crypto.ed25519",t.PubKey={typeUrl:"/cosmos.crypto.ed25519.Pub
1Key",encode:(e,t=n.BinaryWriter.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.key=r.bytes():r.skipType(7&e)}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.key)&&(t.key=(0,i.bytesFromBase64)(e.key)),t},toJSON(e){let t={};return void 0!==e.key&&(t.key=(0,i.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial(e){let t=o();return t.key=e.key??new Uint8Array,t}},t.PrivKey={typeUrl:"/cosmos.crypto.ed25519.PrivKey",encode:(e,t=n.BinaryWriter.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.key=r.bytes():r.skipType(7&e)}return o},fromJSON(e){let t=a();return(0,i.isSet)(e.key)&&(t.key=(0,i.bytesFromBase64)(e.key)),t},toJSON(e){let t={};return void 0!==e.key&&(t.key=(0,i.base64FromBytes)(void 0!==e.ke
1y?e.key:new Uint8Array)),t},fromPartial(e){let t=a();return t.key=e.key??new Uint8Array,t}}},19154:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;let a=r(25918),s=r(551),d=r(56662),l=r(13184),c=o(r(99292));function u(e){return{height:(0,l.may)(s.smallIntToApi,e.height)}}function p(e){return{minHeight:(0,l.may)(s.smallIntToApi,e.minHeight),maxHeight:(0,l.may)(s.smallIntToApi,e.maxHeight)}}function f(e){return{query:e.query,page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page),order_by:e.order_by}}function h(e){return{path:(0,l.assertNotEmpty)(e.path),data:(0,a.toHex)(e.data),height:(0,l.may)(s.smallIntToApi,e.height),prove:e.prove}}function g(e){return{tx:(0,a.toBase64)((0,l.assertNotEmpty)(e.tx))}}function m(e){return{hash:(0,a.toBase64)((0,l.assertNotEmpty)(e.hash)),prove:e.prove}}function y(e){return{query:e.query,prove:e.prove,page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page),order_by:e.order_by}}function b(e){return{height:(0,l.may)(s.smallIntToApi,e.height),page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page)}}class v{static encodeAbciInfo(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeAbciQuery(e){return(0,d.createJsonRpcRequest)(e.method,h(e.params))}static encodeBlock(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeBlockchain(e){return(0,d.createJsonRpcRequest)(e.method,p(e.params))}static encodeBlockResults(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeBlockSearch(e){return(0,d.createJsonRpcRequest)(e.method,f(e.params))}static encodeBroadcastTx(e){return(0,d.createJsonRpcRequest)(e.method,g(e.params))}static encodeCommit(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeGenesis(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeHealth(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeNumUnconfirmedTxs(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeStatus(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeSubscribe(e){let t={key:"tm.event",value:e.query.type},r=c.buildQuery({tags:[t],raw:e.query.raw});return(0,d.createJsonRpcRequest)("subscribe",{query:r})}static encodeTx(e){return(0,d.createJsonRpcRequest)(e.method,m(e.params))}static encodeTxSearch(e){return(0,d.createJsonRpcRequest)(e.method,y(e.params))}static encodeValidators(e){return(0,d.createJsonRpcRequest)(e.method,b(e.params))}}t.Params=v},19393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Duration=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{seconds:BigInt(0),nanos:0}}t.protobufPackage="google.protobuf",t.Duration={typeUrl:"/google.protobuf.Duration",encode:(e,t=n.BinaryWriter.create())=>(e.seconds!==BigInt(0)&&t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.seconds=r.int64();break;case 2:a.nanos=r.int32();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.seconds)&&(t.seconds=BigInt(e.seconds.toString())),(0,i.isSet)(e.nanos)&&(t.nanos=Number(e.nanos)),t},toJSON(e){let t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||BigInt(0)).toString()),void 0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){let t=o();return void 0!==e.seconds&&null!==e.seconds&&(t.seconds=BigInt(e.seconds.toString())),t.nanos=e.nanos??0,t}}},19692:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=t.Keccak256=void 0;let n=r(52804),i=r(53963);class o{constructor(e){this.blockSize=64,this.impl=n.keccak_256.create(),e&&this.update(e)}update(e){return this.impl.update((0,i.toRealUint8Array)(e)),this}digest(){return this.impl.digest()}}t.Keccak256=o,t.keccak256=function(e){return new o(e).digest()}},20865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBlockId=t.encodeVersion=t.encodeBytes=t.encodeTime=t.encodeUvarint=t.encodeString=t.dictionaryToStringMap=t.may=t.assertNotEmpty=t.assertObject=t.assertArray=t.assertNumber=t.assertString=t.assertBoolean=t.assertSet=void 0;let n=r(25918);function i(e){if(void 0===e)throw Error("Value must not be undefined");if(null===e)throw Error("Value must not be null");return e}function o(e){return e>=128?Uint8Array.from([255&e|128,...o(e>>7)]):Uint8Array.from([255&e])}t.assertSet=i,t.assertBoolean=function(e){if(i(e),"boolean"!=typeof e)throw Error("Value must be a boolean");return e},t.assertString=function(e){if(i(e),"string"!=typeof e)throw Error("Value must be a string");return e},t.assertNumber=function(e){if(i(e),"number"!=typeof e)throw Error("Value must be a number");return e},t.assertArray=function(e){if(i(e),!Array.isArray(e))throw Error("Value must be a an array");return e},t.assertObject=function(e){if(i(e),"object"!=typeof e)throw Error("Value must be an object");if("[object Object]"!==Object.prototype.toString.call(e))throw Error("Value must be a simple object");return e},t.assertNotEmpty=function(e){if(i(e),"number"==typeof e&&0===e)throw Error("must provide a non-zero value");if(0===e.length)throw Error("must provide a non-empty value");return e},t.may=function(e,t){return null==t?void 0:e(t)},t.dictionaryToStringMap=function(e){let t=new Map;for(let r of Object.keys(e)){let n=e[r];if("string"!=typeof n)throw Error("Found dictionary value of type other than string");t.set(r,n)}return t},t.encodeString=function(e){let t=(0,n.toUtf8)(e);return Uint8Array.from([t.length,...t])},t.encodeUvarint=o,t.encodeTime=function(e){let t=e.getTime(),r=Math.floor(t/1e3),n=r?[8,...o(r)]:new Uint8Array,i=(e.nanoseconds||0)+t%1e3*1e6,a=i?[16,...o(i)]:new Uint8Array;return Uint8Array.from([...n,...a])},t.encodeBytes=function(e){if(e.length>=128)throw Error("Not implemented for byte arrays of length 128 or more");return e.length?Uint8Array.from([e.length,...e]):new Uint8Array},t.encodeVersion=function(e){let t=e.block?Uint8Array.from([8,...o(e.block)]):new Uint8Array,r=e.app?Uint8Array.from([16,...o(e.app)]):new Uint8Array;return Uint8Array.from([...t,...r])},t.encodeBlockId=function(e){return Uint8Array.from([10,e.hash.length,...e.hash,18,e.parts.hash.length+4,8,e.parts.total,18,e.parts.hash.length,...e.parts.hash])}},21083:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Sha512=t.pbkdf2Sha512Noble=t.pbkdf2Sha512NodeCrypto=t.pbkdf2Sha512Subtle=t.getSubtle=t.getNodeCrypto=void 0;let a=r(63688),s=r(76198),d=r(26761);async function l(){try{let e=await Promise.resolve().then(()=>o(r(56203)));if("object"==typeof e&&Object.keys(e).length<=1)return;return e}catch{return}}async function c(){let e=globalThis?.crypto?.subtle;return e||(e=globalThis?.crypto?.webcrypto?.subtle),e}async function u(e,t,r,n,i){return(0,a.assert)(e,"Argument subtle is falsy"),(0,a.assert)("object"==typeof e,"Argument subtle is not of type object"),(0,a.assert)("function"==typeof e.importKey,"subtle.importKey is not a function"),(0,a.assert)("function"==typeof e.deriveBits,"subtle.deriveBits is not a function"),e.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(t=>e.deriveBits({name:"PBKDF2",salt:r,iterations:n,hash:{name:"SHA-512"}},t,8*i).then(e=>new Uint8Array(e)))}async function p(e,t,r,n,i){return(0,a.assert)(e,"Argument nodeCrypto is falsy"),(0,a.assert)("object"==typeof e,"Argument nodeCrypto is not of type object"),(0,a.assert)("function"==typeof e.pbkdf2,"nodeCrypto.pbkdf2 is not a function"),new Promise((o,a)=>{e.pbkdf2(t,r,n,i,"sha512",(e,t)=>{e?a(e):o(Uint8Array.from(t))})})}async function f(e,t,r,n){return(0,s.pbkdf2Async)(d.sha512,e,t,{c:r,dkLen:n})}t.getNodeCrypto=l,t.getSubtle=c,t.pbkdf2Sha512Subtle=u,t.pbkdf2Sha512NodeCrypto=p,t.pbk
1df2Sha512Noble=f,t.pbkdf2Sha512=async function(e,t,r,n){let i=await c();if(i)return u(i,e,t,r,n);{let i=await l();return i?p(i,e,t,r,n):f(e,t,r,n)}}},21098:(e,t,r)=>{"use strict";var n=r(34246),i=r(48746),o=r(52967)(),a=r(26600),s=r(65436),d=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||d(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(l=!1)}return(n||l||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},21906:(e,t,r)=>{"use strict";var n=r(95488),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},21958:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgAcknowledgementResponse=t.MsgAcknowledgement=t.MsgTimeoutOnCloseResponse=t.MsgTimeoutOnClose=t.MsgTimeoutResponse=t.MsgTimeout=t.MsgRecvPacketResponse=t.MsgRecvPacket=t.MsgChannelCloseConfirmResponse=t.MsgChannelCloseConfirm=t.MsgChannelCloseInitResponse=t.MsgChannelCloseInit=t.MsgChannelOpenConfirmResponse=t.MsgChannelOpenConfirm=t.MsgChannelOpenAckResponse=t.MsgChannelOpenAck=t.MsgChannelOpenTryResponse=t.MsgChannelOpenTry=t.MsgChannelOpenInitResponse=t.MsgChannelOpenInit=t.responseResultTypeToJSON=t.responseResultTypeFromJSON=t.ResponseResultType=t.protobufPackage=void 0;let i=r(8789),o=r(22421),a=r(4696),s=r(92242);function d(e){switch(e){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return n.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return n.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return n.RESPONSE_RESULT_TYPE_SUCCESS;default:return n.UNRECOGNIZED}}function l(e){switch(e){case n.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case n.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case n.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(){return{portId:"",channel:i.Channel.fromPartial({}),signer:""}}function u(){return{channelId:"",version:""}}function p(){return{portId:"",previousChannelId:"",channel:i.Channel.fromPartial({}),counterpartyVersion:"",proofInit:new Uint8Array,proofHeight:o.Height.fromPartial({}),signer:""}}function f(){return{version:""}}function h(){return{portId:"",channelId:"",counterpartyChannelId:"",counterpartyVersion:"",proofTry:new Uint8Array,proofHeight:o.Height.fromPartial({}),signer:""}}function g(){return{}}function m(){return{portId:"",channelId:"",proofAck:new Uint8Array,proofHeight:o.Height.fromPartial({}),signer:""}}function y(){return{}}function b(){return{portId:"",channelId:"",signer:""}}function v(){return{}}function S(){return{portId:"",channelId:"",proofInit:new Uint8Array,proofHeight:o.Height.fromPartial({}),signer:""}}function A(){return{}}function w(){return{packet:i.Packet.fromPartial({}),proofCommitment:new Uint8Array,proofHeight:o.Height.fromPartial({}),signer:""}}function _(){return{result:0}}function P(){return{packet:i.Packet.fromPartial({}),proofUnreceived:new Uint8Array,proofHeight:o.Height.fromPartial({}),nextSequenceRecv:BigInt(0),signer:""}}function k(){return{result:0}}function R(){return{packet:i.Packet.fromPartial({}
1),proofUnreceived:new Uint8Array,proofClose:new Uint8Array,proofHeight:o.Height.fromPartial({}),nextSequenceRecv:BigInt(0),signer:""}}function O(){return{result:0}}function I(){return{packet:i.Packet.fromPartial({}),acknowledgement:new Uint8Array,proofAcked:new Uint8Array,proofHeight:o.Height.fromPartial({}),signer:""}}function B(){return{result:0}}t.protobufPackage="ibc.core.channel.v1",function(e){e[e.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",e[e.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",e[e.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.ResponseResultType=n={})),t.responseResultTypeFromJSON=d,t.responseResultTypeToJSON=l,t.MsgChannelOpenInit={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInit",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),void 0!==e.channel&&i.Channel.encode(e.channel,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.portId=r.string();break;case 2:o.channel=i.Channel.decode(r,r.uint32());break;case 3:o.signer=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=c();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.channel)&&(t.channel=i.Channel.fromJSON(e.channel)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channel&&(t.channel=e.channel?i.Channel.toJSON(e.channel):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=c();return t.portId=e.portId??"",void 0!==e.channel&&null!==e.channel&&(t.channel=i.Channel.fromPartial(e.channel)),t.signer=e.signer??"",t}},t.MsgChannelOpenInitResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInitResponse",encode:(e,t=a.BinaryWriter.create())=>(""!==e.channelId&&t.uint32(10).string(e.channelId),""!==e.version&&t.uint32(18).string(e.version),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.channelId=r.string();break;case 2:i.version=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=u();return(0,s.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,s.isSet)(e.version)&&(t.version=String(e.version)),t},toJSON(e){let t={};return void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.version&&(t.version=e.version),t},fromPartial(e){let t=u();return t.channelId=e.channelId??"",t.version=e.version??"",t}},t.MsgChannelOpenTry={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTry",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.previousChannelId&&t.uint32(18).string(e.previousChannelId),void 0!==e.channel&&i.Channel.encode(e.channel,t.uint32(26).fork()).ldelim(),""!==e.counterpartyVersion&&t.uint32(34).string(e.counterpartyVersion),0!==e.proofInit.length&&t.uint32(42).bytes(e.proofInit),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(50).fork()).ldelim(),""!==e.signer&&t.uint32(58).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=p();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.portId=r.string();break;case 2:s.previousChannelId=r.string();break;case 3:s.channel=i.Channel.decode(r,r.uint32());break;case 4:s.counterpartyVersion=r.string();break;case 5:s.proofInit=r.bytes();break;case 6:s.proofHeight=o.Height.decode(r,r.uint32());break;case 7:s.signer=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=p();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.previousChannelId)&&(t.previousChannelId=String(e.previousChannelId)),(0,s.isSet)(e.channel)&&(t.channel=i.Channel.fromJSON(e.channel)),(0,s.isSet)(e.counterpartyVersion)&&(t.counterpartyVersion=String(e.counterpartyVersion)),(0,s.isSet)(e.proofInit)&&(t.proofInit=(0,s.bytesFromBase64)(e.proofInit)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.previousChannelId&&(t.previousChannelId=e.previousChannelId),void 0!==e.channel&&(t.channel=e.channel?i.Channel.toJSON(e.channel):void 0),void 0!==e.counterpartyVersion&&(t.counterpartyVersion=e.counterpartyVersion),void 0!==e.proofInit&&(t.proofInit=(0,s.base64FromBytes)(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=p();return t.portId=e.portId??"",t.previousChannelId=e.previousChannelId??"",void 0!==e.channel&&null!==e.channel&&(t.channel=i.Channel.fromPartial(e.channel)),t.counterpartyVersion=e.counterpartyVersion??"",t.proofInit=e.proofInit??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}},t.MsgChannelOpenTryResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTryResponse",encode:(e,t=a.BinaryWriter.create())=>(""!==e.version&&t.uint32(10).string(e.version),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.version=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=f();return(0,s.isSet)(e.version)&&(t.version=String(e.version)),t},toJSON(e){let t={};return void 0!==e.version&&(t.version=e.version),t},fromPartial(e){let t=f();return t.version=e.version??"",t}},t.MsgChannelOpenAck={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAck",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),""!==e.counterpartyChannelId&&t.uint32(26).string(e.counterpartyChannelId),""!==e.counterpartyVersion&&t.uint32(34).string(e.counterpartyVersion),0!==e.proofTry.length&&t.uint32(42).bytes(e.proofTry
1),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(50).fork()).ldelim(),""!==e.signer&&t.uint32(58).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.counterpartyChannelId=r.string();break;case 4:i.counterpartyVersion=r.string();break;case 5:i.proofTry=r.bytes();break;case 6:i.proofHeight=o.Height.decode(r,r.uint32());break;case 7:i.signer=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,s.isSet)(e.counterpartyChannelId)&&(t.counterpartyChannelId=String(e.counterpartyChannelId)),(0,s.isSet)(e.counterpartyVersion)&&(t.counterpartyVersion=String(e.counterpartyVersion)),(0,s.isSet)(e.proofTry)&&(t.proofTry=(0,s.bytesFromBase64)(e.proofTry)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.counterpartyChannelId&&(t.counterpartyChannelId=e.counterpartyChannelId),void 0!==e.counterpartyVersion&&(t.counterpartyVersion=e.counterpartyVersion),void 0!==e.proofTry&&(t.proofTry=(0,s.base64FromBytes)(void 0!==e.proofTry?e.proofTry:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=h();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.counterpartyChannelId=e.counterpartyChannelId??"",t.counterpartyVersion=e.counterpartyVersion??"",t.proofTry=e.proofTry??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}},t.MsgChannelOpenAckResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAckResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>g(),toJSON:e=>({}),fromPartial:e=>g()},t.MsgChannelOpenConfirm={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirm",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),0!==e.proofAck.length&&t.uint32(26).bytes(e.proofAck),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.proofAck=r.bytes();break;case 4:i.proofHeight=o.Height.decode(r,r.uint32());break;case 5:i.signer=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,s.isSet)(e.proofAck)&&(t.proofAck=(0,s.bytesFromBase64)(e.proofAck)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.proofAck&&(t.proofAck=(0,s.base64FromBytes)(void 0!==e.proofAck?e.proofAck:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=m();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.proofAck=e.proofAck??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}},t.MsgChannelOpenConfirmResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirmResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>y(),toJSON:e=>({}),fromPartial:e=>y()},t.MsgChannelCloseInit={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInit",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),""!==e.signer&&t.uint32(26).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.signer=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=b();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.signer=e.signer??"",t}},t.MsgChannelCloseInitResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInitResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>v(),toJSON:e=>({}),fromPartial:e=>v()},t.MsgChannelCloseConfirm={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirm",encode:(e,t=a.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),0!==e.proofInit.length&&t.uint32(26).bytes(e.proofInit),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;case 3:i.proofInit=r.bytes();break;case 4:i.proofHeight=o.Height.decode(r,r.uint32());break;case 5:i.signer=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=S();return(0,s.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,s.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),(0,s.isSet)(e.proofInit)&&(t.proofInit=(0,s.bytesFromBase64)(e.proofInit)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.proofInit&&(t.proofInit=(0,s.base64FromBytes)(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=S();return t.portId=e.portId??"",t.channelId=e.channelId??"",t.proofInit=e.proofInit??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}},t.MsgChannelCloseConfirmResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirmResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>A(),toJSON:e=>({}),fromPartial:e=>A()},t.MsgRecvPacket={typeUrl:"/ibc.core.channel.v1.MsgRecvPacket",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.packet&&i.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofCommitment.length&&t.uint32(18).bytes(e.proofCommitment),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),""!==e.signer&&t.uint32(34).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=w();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.packet=i.Packet.decode(r,r.uint32());break;case 2:s.proofCommitment=r.bytes();break;case 3:s.proofHeight=o.Height.decode(r,r.uint32());break;case 4:s.signer=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=w();return(0,s.isSet)(e.packet)&&(t.packet=i.Packet.fromJSON(e.packet)),(0,s.isSet)(e.proofCommitment)&&(t.proofCommitment=(0,s.bytesFromBase64)(e.proofCommitment)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.packet&&(t.packet=e.packet?i.Packet.toJSON(e.packet):void 0),void 0!==e.proofCommitment&&(t.proofCommitment=(0,s.base64FromBytes)(void 0!==e.proofCommitment?e.proofCommitment:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=w();return void 0!==e.packet&&null!==e.packet&&(t.packet=i.Packet.fromPartial(e.packet)),t.proofCommitment=e.proofCommitment??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}},t.MsgRecvPacketResponse={typeUrl:"/ibc.core.channel.v1.MsgRecvPacketResponse",encode:(e,t=a.BinaryWriter.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.result=r.int32():r.skipType(7&e)}return i},fromJSON(e){let t=_();return(0,s.isSet)(e.result)&&(t.result=d(e.result)),t},toJSON(e){let t={};return void 0!==e.result&&(t.result=l(e.result)),t},fromPartial(e){let t=_();return t.result=e.result??0,t}},t.MsgTimeout={typeUrl:"/ibc.core.channel.v1.MsgTimeout",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.packet&&i.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofUnreceived.length&&t.uint32(18).bytes(e.proofUnreceived),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),e.nextSequenceRecv!==BigInt(0)&&t.uint32(32).uint64(e.nextSequenceRecv),""!==e.signer&&t.uint32(42).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=P();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.packet=i.Packet.decode(r,r.uint32());break;case 2:s.proofUnreceived=r.bytes();break;case 3:s.proofHeight=o.Height.decode(r,r.uint32());break;case 4:s.nextSequenceRecv=r.uint64();break;case 5:s.signer=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=P();return(0,s.isSet)(e.packet)&&(t.packet=i.Packet.fromJSON(e.packet)),(0,s.isSet)(e.proofUnreceived)&&(t.proofUnreceived=(0,s.bytesFromBase64)(e.proofUnreceived)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.nextSequenceRecv)&&(t.nextSequenceRecv=BigInt(e.nextSequenceRecv.toString())),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.packet&&(t.packet=e.packet?i.Packet.toJSON(e.packet):void 0),void 0!==e.proofUnreceived&&(t.proofUnreceived=(0,s.base64FromBytes)(void 0!==e.proofUnreceived?e.proofUnreceived:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.nextSequenceRecv&&(t.nextSequenceRecv=(e.nextSequenceRecv||BigInt(0)).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=P();return void 0!==e.packet&&null!==e.packet&&(t.packet=i.Packet.fromPartial(e.packet)),t.proofUnreceived=e.proofUnreceived??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv&&(t.nextSequenceRecv=BigInt(e.nextSequenceRecv.toString())),t.signer=e.signer??"",t}},t.MsgTimeoutResponse={typeUrl:"/ibc.core.channel.v1.MsgTimeoutResponse",encode:(e,t=a.BinaryWriter.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=k();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.result=r.int32():r.skipType(7&e)}return i},fromJSON(e){let t=k();return(0,s.isSet)(e.result)&&(t.result=d(e.result)),t},toJSON(e){let t={};return void 0!==e.result&&(t.result=l(e.result)),t},fromPartial(e){let t=k();return t.result=e.result??0,t}},t.MsgTimeoutOnClose={typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnClose",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.packet&&i.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofUnreceived.length&&t.uint32(18).bytes(e.proofUnreceived),0!==e.proofClose.length&&t.uint32(26).bytes(e.proofClose),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),e.nextSequenceRecv!==BigInt(0)&&t.uint32(40).uint64(e.nextSequenceRecv),""!==e.signer&&t.uint32(50).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=R();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.packet=i.Packet.decode(r,r.uint32());break;case 2:s.proofUnreceived=r.bytes();break;case 3:s.proofClose=r.bytes();break;case 4:s.proofHeight=o.Height.decode(r,r.uint32());break;case 5:s.nextSequenceRecv=r.uint64();break;case 6:s.signer=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=R();return(0,s.isSet)(e.packet)&&(t.packet=i.Packet.fromJSON(e.packet)),(0,s.isSet)(e.proofUnreceived)&&(t.proofUnreceived=(0,s.bytesFromBase64)(e.proofUnreceived)),(0,s.isSet)(e.proofClose)&&(t.proofClose=(0,s.bytesFromBase64)(e.proofClose)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.nextSequenceRecv)&&(t.nextSequenceRecv=BigInt(e.nextSequenceRecv.toString())),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.packet&&(t.packet=e.packet?i.Packet.toJSON(e.packet):void 0),void 0!==e.proofUnreceived&&(t.proofUnreceived=(0,s.base64FromBytes)(void 0!==e.proofUnreceived?e.proofUnreceived:new Uint8Array)),void 0!==e.proofClose&&(t.proofClose=(0,s.base64FromBytes)(void 0!==e.proofClose?e.proofClose:new 
1Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.nextSequenceRecv&&(t.nextSequenceRecv=(e.nextSequenceRecv||BigInt(0)).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=R();return void 0!==e.packet&&null!==e.packet&&(t.packet=i.Packet.fromPartial(e.packet)),t.proofUnreceived=e.proofUnreceived??new Uint8Array,t.proofClose=e.proofClose??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv&&(t.nextSequenceRecv=BigInt(e.nextSequenceRecv.toString())),t.signer=e.signer??"",t}},t.MsgTimeoutOnCloseResponse={typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnCloseResponse",encode:(e,t=a.BinaryWriter.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.result=r.int32():r.skipType(7&e)}return i},fromJSON(e){let t=O();return(0,s.isSet)(e.result)&&(t.result=d(e.result)),t},toJSON(e){let t={};return void 0!==e.result&&(t.result=l(e.result)),t},fromPartial(e){let t=O();return t.result=e.result??0,t}},t.MsgAcknowledgement={typeUrl:"/ibc.core.channel.v1.MsgAcknowledgement",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.packet&&i.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.acknowledgement.length&&t.uint32(18).bytes(e.acknowledgement),0!==e.proofAcked.length&&t.uint32(26).bytes(e.proofAcked),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=I();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.packet=i.Packet.decode(r,r.uint32());break;case 2:s.acknowledgement=r.bytes();break;case 3:s.proofAcked=r.bytes();break;case 4:s.proofHeight=o.Height.decode(r,r.uint32());break;case 5:s.signer=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=I();return(0,s.isSet)(e.packet)&&(t.packet=i.Packet.fromJSON(e.packet)),(0,s.isSet)(e.acknowledgement)&&(t.acknowledgement=(0,s.bytesFromBase64)(e.acknowledgement)),(0,s.isSet)(e.proofAcked)&&(t.proofAcked=(0,s.bytesFromBase64)(e.proofAcked)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.packet&&(t.packet=e.packet?i.Packet.toJSON(e.packet):void 0),void 0!==e.acknowledgement&&(t.acknowledgement=(0,s.base64FromBytes)(void 0!==e.acknowledgement?e.acknowledgement:new Uint8Array)),void 0!==e.proofAcked&&(t.proofAcked=(0,s.base64FromBytes)(void 0!==e.proofAcked?e.proofAcked:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=I();return void 0!==e.packet&&null!==e.packet&&(t.packet=i.Packet.fromPartial(e.packet)),t.acknowledgement=e.acknowledgement??new Uint8Array,t.proofAcked=e.proofAcked??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}},t.MsgAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.MsgAcknowledgementResponse",encode:(e,t=a.BinaryWriter.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=B();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.result=r.int32():r.skipType(7&e)}return i},fromJSON(e){let t=B();return(0,s.isSet)(e.result)&&(t.result=d(e.result)),t},toJSON(e){let t={};return void 0!==e.result&&(t.result=l(e.result)),t},fromPartial(e){let t=B();return t.result=e.result??0,t}};class x{constructor(e){this.rpc=e,this.ChannelOpenInit=this.ChannelOpenInit.bind(this),this.ChannelOpenTry=this.ChannelOpenTry.bind(this),this.ChannelOpenAck=this.ChannelOpenAck.bind(this),this.ChannelOpenConfirm=this.ChannelOpenConfirm.bind(this),this.ChannelCloseInit=this.ChannelCloseInit.bind(this),this.ChannelCloseConfirm=this.ChannelCloseConfirm.bind(this),this.RecvPacket=this.RecvPacket.bind(this),this.Timeout=this.Timeout.bind(this),this.TimeoutOnClose=this.TimeoutOnClose.bind(this),this.Acknowledgement=this.Acknowledgement.bind(this)}ChannelOpenInit(e){let r=t.MsgChannelOpenInit.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenInit",r).then(e=>t.MsgChannelOpenInitResponse.decode(new a.BinaryReader(e)))}ChannelOpenTry(e){let r=t.MsgChannelOpenTry.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenTry",r).then(e=>t.MsgChannelOpenTryResponse.decode(new a.BinaryReader(e)))}ChannelOpenAck(e){let r=t.MsgChannelOpenAck.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenAck",r).then(e=>t.MsgChannelOpenAckResponse.decode(new a.BinaryReader(e)))}ChannelOpenConfirm(e){let r=t.MsgChannelOpenConfirm.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenConfirm",r).then(e=>t.MsgChannelOpenConfirmResponse.decode(new a.BinaryReader(e)))}ChannelCloseInit(e){let r=t.MsgChannelCloseInit.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseInit",r).then(e=>t.MsgChannelCloseInitResponse.decode(new a.BinaryReader(e)))}ChannelCloseConfirm(e){let r=t.MsgChannelCloseConfirm.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseConfirm",r).then(e=>t.MsgChannelCloseConfirmResponse.decode(new a.BinaryReader(e)))}RecvPacket(e){let r=t.MsgRecvPacket.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","RecvPacket",r).then(e=>t.MsgRecvPacketResponse.decode(new a.BinaryReader(e)))}Timeout(e){let r=t.MsgTimeout.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Timeout",r).then(e=>t.MsgTimeoutResponse.decode(new a.BinaryReader(e)))}TimeoutOnClose(e){let r=t.MsgTimeoutOnClose.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","TimeoutOnClose",r).then(e=>t.MsgTimeoutOnCloseResponse.decode(new a.BinaryReader(e)))}Acknowledgement(e){let r=t.MsgAcknowledgement.encode(e).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Acknowledgement",r).then(e=>t.MsgAcknowledgementResponse.decode(new a.BinaryReader(e)))}}t.MsgClientImpl=x},22421:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.Height=t.UpgradeProposal=t.ClientUpdateProposal=t.ClientConsensusStates=t.ConsensusStateWithHeight=t.IdentifiedClientState=t.protobufPackage=void 0;let n=r(54573),i=r(8464),o=r(4696),a=r(92242);function s(){return{clientId:"",clientState:void 0}}function d(){return{height:t.Height.fromPartial({}),consensusState:void 0}}function l(){return{clientId:"",consensusStates:[]}}function c(){return{title:"",description:"",subjectClientId:"",substituteClientId:""}}function u(){return{title:"",description:"",plan:i.Plan.fromPartial({}),upgradedClientState:void 0}}function p(){return{revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}function f(){return{allowedClients:[]}}t.protobufPackage="ibc.core.client.v1",t.IdentifiedClientState={typeUrl:"/ibc.core.client.v1.IdentifiedClientState",encode:(e,t=o.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&n.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.clientId=r.string();break;case 2:a.clientState=n.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return(0,a.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,a.isSet)(e.clientState)&&(t.clientState=n.Any.fromJSON(e.clientState)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?n.Any.toJSON(e.clientState):void 0),t},fromPartial(e){let t=s();return t.clientId=e.clientId??"",void 0!==e.clientState&&null!==e.clientState&&(t.clientState=n.Any.fromPartial(e.clientState)),t}},t.ConsensusStateWithHeight={typeUrl:"/ibc.core.client.v1.ConsensusStateWithHeight",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.height&&t.Height.encode(e.height,r.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&n.Any.encode(e.consensusState,r.uint32(18).fork()).ldelim(),r),decode(e,r){let i=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===r?i.len:i.pos+r,s=d();for(;i.pos<a;){let e=i.uint32();switch(e>>>3){case 1:s.height=t.Height.decode(i,i.uint32());break;case 2:s.consensusState=n.Any.decode(i,i.uint32());break;default:i.skipType(7&e)}}return s},fromJSON(e){let r=d();return(0,a.isSet)(e.height)&&(r.height=t.Height.fromJSON(e.height)),(0,a.isSet)(e.consensusState)&&(r.consensusState=n.Any.fromJSON(e.consensusState)),r},toJSON(e){let r={};return void 0!==e.height&&(r.height=e.height?t.Height.toJSON(e.height):void 0),void 0!==e.consensusState&&(r.consensusState=e.consensusState?n.Any.toJSON(e.consensusState):void 0),r},fromPartial(e){let r=d();return void 0!==e.height&&null!==e.height&&(r.height=t.Height.fromPartial(e.height)),void 0!==e.consensusState&&null!==e.consensusState&&(r.consensusState=n.Any.fromPartial(e.consensusState)),r}},t.ClientConsensusStates={typeUrl:"/ibc.core.client.v1.ClientConsensusStates",encode(e,r=o.BinaryWriter.create()){for(let n of(""!==e.clientId&&r.uint32(10).string(e.clientId),e.consensusStates))t.ConsensusStateWithHeight.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.clientId=n.string();break;case 2:a.consensusStates.push(t.ConsensusStateWithHeight.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=l();return(0,a.isSet)(e.clientId)&&(r.clientId=String(e.clientId)),Array.isArray(e?.consensusStates)&&(r.consensusStates=e.consensusStates.map(e=>t.ConsensusStateWithHeight.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.clientId&&(r.clientId=e.clientId),e.consensusStates?r.consensusStates=e.consensusStates.map(e=>e?t.ConsensusStateWithHeight.toJSON(e):void 0):r.consensusStates=[],r},fromPartial(e){let r=l();return r.clientId=e.clientId??"",r.consensusStates=e.consensusStates?.map(e=>t.ConsensusStateWithHeight.fromPartial(e))||[],r}},t.ClientUpdateProposal={typeUrl:"/ibc.core.client.v1.ClientUpdateProposal",encode:(e,t=o.BinaryWriter.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.subjectClientId&&t.uint32(26).string(e.subjectClientId),""!==e.substituteClientId&&t.uint32(34).string(e.substituteClientId),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.subjectClientId=r.string();break;case 4:i.substituteClientId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=c();return(0,a.isSet)(e.title)&&(t.title=String(e.title)),(0,a.isSet)(e.description)&&(t.description=String(e.description)),(0,a.isSet)(e.subjectClientId)&&(t.subjectClientId=String(e.subjectClientId)),(0,a.isSet)(e.substituteClientId)&&(t.substituteClientId=String(e.substituteClientId)),t},toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.subjectClientId&&(t.subjectClientId=e.subjectClientId),void 0!==e.substituteClientId&&(t.substituteClientId=e.substituteClientId),t},fromPartial(e){let t=c();return t.title=e.title??"",t.description=e.description??"",t.subjectClientId=e.subjectClientId??"",t.substituteClientId=e.substituteClientId??"",t}},t.UpgradeProposal={typeUrl:"/ibc.core.client.v1.UpgradeProposal",encode:(e,t=o.BinaryWriter.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),void 0!==e.plan&&i.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),void 0!==e.upgradedClientState&&n.Any.encode(e.upgradedClientState,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=u();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.title=r.string();break;case 2:s.description=r.string();break;case 3:s.plan=i.Plan.decode(r,r.uint32());break;case 4:s.upgradedClientState=n.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=u();return(0,a.isSet)(e.title)&&(t.title=String(e.title)),(0,a.isSet)(e.description)&&(t.description=String(e.description)),(0,a.isSet)(e.plan)&&(t.plan=i.Plan.fromJSON(e.plan)),(0,a.isSet)(e.upgradedClientState)&&(t.upgradedClientState=n.Any.fromJSON(e.upgradedClientState)),t},toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.plan&&(t.plan=e.plan?i.Plan.toJSON(e.plan):void 0),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?n.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){let t=u();return t.title=e.title??"",t.description=e.description??"",void 0!==e.plan&&null!==e.plan&&(t.plan=i.Plan.fromPartial(e.plan)),void 0!==e.upgradedClientState&&null!==e.upgradedClientState&&(t.upgradedClientState=n.Any.fromPartial(e.upgradedClientState)),t}},t.Height={typeUrl:"/ibc.core.client.v1.Height",encode:(e,t=o.BinaryWriter.create())=>(e.revisionNumber!==BigInt(0)&&t.uint32(8).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&t.uint32(16).uint64(e.revisionHeight),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.revisionNumber=r.uint64();break;case 2:i.revisionHeight=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=p();return(0,a.isSet)(e.revisionNumber)&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),(0,a.isSet)(e.revisionHeight)&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t},toJSON(e){let t={};return void 0!==e.revisionNumber&&(t.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),void 0!==e.revisionHeight&&(t.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),t},fromPartial(e){let t=p();return void 0!==e.revisionNumber&&null!==e.revisionNumber&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),void 0!==e.revisionHeight&&null!==e.revisionHeight&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t}},t.Params={typeUrl:"/ibc.core.client.v1.Params",encode(e,t=o.BinaryWriter.create()){for(let r of e.allowedClients)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.allowedClients.push(r.string()):r.skipType(7&e)}return i},fromJSON(e){let t=f();return Array.isArray(e?.allowedClients)&&(t.allowedClients=e.allowedClients.map(e=>String(e))),t},toJSON(e){let t={};return e.allowedClients?t.allowedClients=e.allowedClients.map(e=>e):t.allowedClients=[],t},fromPartial(e){let t=f();return t.allowedClients=e.allowedClients?.map(e=>e)||[],t}}},22628:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Grant=t.AllowedMsgAllowance=t.PeriodicAllowance=t.BasicAllowance=t.protobufPackage=void 0;let n=r(91794),i=r(37375),o=r(19393),a=r(54573),s=r(4696),d=r(92242);function l(){return{spendLimit:[],expiration:void 0}}function c(){return{basic:t.BasicAllowance.fromPartial({}),period:o.Duration.fromPartial({}),periodSpendLimit:[],periodCanSpend:[],periodReset:i.Timestamp.fromPartial({})}}function u(){return{allowance:void 0,allowedMessages:[]}}function p(){return{granter:"",grantee:"",allowance:void 0}}t.protobufPackage="cosmos.feegrant.v1beta1",t.BasicAllowance={typeUrl:"/cosmos.feegrant.v1beta1.BasicAllowance",encode(e,t=s.BinaryWriter.create()){for(let r of e.spendLimit)n.Coin.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.expiration&&i.Timestamp.encode(e.expiration,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.spendLimit.push(n.Coin.decode(r,r.uint32()));break;case 2:a.expiration=i.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=l();return Array.isArray(e?.spendLimit)&&(t.spendLimit=e.spendLimit.map(e=>n.Coin.fromJSON(e))),(0,d.isSet)(e.expiration)&&(t.expiration=(0,d.fromJsonTimestamp)(e.expiration)),t},toJSON(e){let t={};return e.spendLimit?t.spendLimit=e.spendLimit.map(e=>e?n.Coin.toJSON(e):void 0):t.spendLimit=[],void 0!==e.expiration&&(t.expiration=(0,d.fromTimestamp)(e.expiration).toISOString()),t},fromPartial(e){let t=l();return t.spendLimit=e.spendLimit?.map(e=>n.Coin.fromPartial(e))||[],void 0!==e.expiration&&null!==e.expiration&&(t.expiration=i.Timestamp.fromPartial(e.expiration)),t}},t.PeriodicAllowance={typeUrl:"/cosmos.feegrant.v1beta1.PeriodicAllowance",encode(e,r=s.BinaryWriter.create()){for(let i of(void 0!==e.basic&&t.BasicAllowance.encode(e.basic,r.uint32(10).fork()).ldelim(),void 0!==e.period&&o.Duration.encode(e.period,r.uint32(18).fork()).ldelim(),e.periodSpendLimit))n.Coin.encode(i,r.uint32(26).fork()).ldelim();for(let t of e.periodCanSpend)n.Coin.encode(t,r.uint32(34).fork()).ldelim();return void 0!==e.periodReset&&i.Timestamp.encode(e.periodReset,r.uint32(42).fork()).ldelim(),r},decode(e,r){let a=e instanceof s.BinaryReader?e:new s.BinaryReader(e),d=void 0===r?a.len:a.pos+r,l=c();for(;a.pos<d;){let e=a.uint32();switch(e>>>3){case 1:l.basic=t.BasicAllowance.decode(a,a.uint32());break;case 2:l.period=o.Duration.decode(a,a.uint32());break;case 3:l.periodSpendLimit.push(n.Coin.decode(a,a.uint32()));break;case 4:l.periodCanSpend.push(n.Coin.decode(a,a.uint32()));break;case 5:l.periodReset=i.Timestamp.decode(a,a.uint32());break;default:a.skipType(7&e)}}return l},fromJSON(e){let r=c();return(0,d.isSet)(e.basic)&&(r.basic=t.BasicAllowance.fromJSON(e.basic)),(0,d.isSet)(e.period)&&(r.period=o.Duration.fromJSON(e.period)),Array.isArray(e?.periodSpendLimit)&&(r.periodSpendLimit=e.periodSpendLimit.map(e=>n.Coin.fromJSON(e))),Array.isArray(e?.periodCanSpend)&&(r.periodCanSpend=e.periodCanSpend.map(e=>n.Coin.fromJSON(e))),(0,d.isSet)(e.periodReset)&&(r.periodReset=(0,d.fromJsonTimestamp)(e.periodReset)),r},toJSON(e){let r={};return void 0!==e.basic&&(r.basic=e.basic?t.BasicAllowance.toJSON(e.basic):void 0),void 0!==e.period&&(r.period=e.period?o.Duration.toJSON(e.period):void 0),e.periodSpendLimit?r.periodSpendLimit=e.periodSpendLimit.map(e=>e?n.Coin.toJSON(e):void 0):r.periodSpendLimit=[],e.periodCanSpend?r.periodCanSpend=e.periodCanSpend.map(e=>e?n.Coin.toJSON(e):void 0):r.periodCanSpend=[],void 0!==e.periodReset&&(r.periodReset=(0,d.fromTimestamp)(e.periodReset).toISOString()),r},fromPartial(e){let r=c();return void 0!==e.basic&&null!==e.basic&&(r.basic=t.BasicAllowance.fromPartial(e.basic)),void 0!==e.period&&null!==e.period&&(r.period=o.Duration.fromPartial(e.period)),r.periodSpendLimit=e.periodSpendLimit?.map(e=>n.Coin.fromPartial(e))||[],r.periodCanSpend=e.periodCanSpend?.map(e=>n.Coin.fromPartial(e))||[],void 0!==e.periodReset&&null!==e.periodReset&&(r.periodReset=i.Timestamp.fromPartial(e.periodReset)),r}},t.AllowedMsgAllowance={typeUrl:"/cosmos.feegrant.v1beta1.AllowedMsgAllowance",encode(e,t=s.BinaryWriter.create()){for(let r of(void 0!==e.allowance&&a.Any.encode(e.allowance,t.uint32(10).fork()).ldelim(),e.allowedMessages))t.uint32(18).string(r);return t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.allowance=a.Any.decode(r,r.uint32());break;case 2:i.allowedMessages.push(r.string());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=u();return(0,d.isSet)(e.allowance)&&(t.allowance=a.Any.fromJSON(e.allowance)),Array.isArray(e?.allowedMessages)&&(t.allowedMessages=e.allowedMessages.map(e=>String(e))),t},toJSON(e){let t={};return void 0!==e.allowance&&(t.allowance=e.allowance?a.Any.toJSON(e.allowance):void 0),e.allowedMessages?t.allowedMessages=e.allowedMessages.map(e=>e):t.allowedMessages=[],t},fromPartial(e){let t=u();return void 0!==e.allowance&&null!==e.allowance&&(t.allowance=a.Any.fromPartial(e.allowance)),t.allowedMessages=e.allowedMessages?.map(e=>e)||[],t}},t.Grant={typeUrl:"/cosmos.feegrant.v1beta1.Grant",encode:(e,t=s.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.allowance&&a.Any.encode(e.allowance,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.granter=r.string();break;case 2:i.grantee=r.string();break;case 3:i.allowance=a.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=p();return(0,d.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,d.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,d.isSet)(e.allowance)&&(t.allowance=a.Any.fromJSON(e.allowance)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.allowance&&(t.allowance=e.allowance?a.Any.toJSON(e.allowance):void 0),t},fromPartial(e){let t=p();return t.granter=e.granter??"",t.grantee=e.grantee??"",void 0!==e.allowance&&null!==e.allowance&&(t.allowance=a.Any.fromPartial(e.allowance)),t}}},22767:(e,t,r)=>{"use strict";var n,i;
1Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceClientImpl=t.TxDecodeAminoResponse=t.TxDecodeAminoRequest=t.TxEncodeAminoResponse=t.TxEncodeAminoRequest=t.TxEncodeResponse=t.TxEncodeRequest=t.TxDecodeResponse=t.TxDecodeRequest=t.GetBlockWithTxsResponse=t.GetBlockWithTxsRequest=t.GetTxResponse=t.GetTxRequest=t.SimulateResponse=t.SimulateRequest=t.BroadcastTxResponse=t.BroadcastTxRequest=t.GetTxsEventResponse=t.GetTxsEventRequest=t.broadcastModeToJSON=t.broadcastModeFromJSON=t.BroadcastMode=t.orderByToJSON=t.orderByFromJSON=t.OrderBy=t.protobufPackage=void 0;let o=r(13788),a=r(64094),s=r(7260),d=r(58887),l=r(50327),c=r(4696),u=r(92242);function p(e){switch(e){case 0:case"ORDER_BY_UNSPECIFIED":return n.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return n.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return n.ORDER_BY_DESC;default:return n.UNRECOGNIZED}}function f(e){switch(e){case n.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case n.ORDER_BY_ASC:return"ORDER_BY_ASC";case n.ORDER_BY_DESC:return"ORDER_BY_DESC";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){switch(e){case 0:case"BROADCAST_MODE_UNSPECIFIED":return i.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return i.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return i.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return i.BROADCAST_MODE_ASYNC;default:return i.UNRECOGNIZED}}function g(e){switch(e){case i.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case i.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case i.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case i.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(){return{events:[],pagination:void 0,orderBy:0,page:BigInt(0),limit:BigInt(0)}}function y(){return{txs:[],txResponses:[],pagination:void 0,total:BigInt(0)}}function b(){return{txBytes:new Uint8Array,mode:0}}function v(){return{txResponse:void 0}}function S(){return{tx:void 0,txBytes:new Uint8Array}}function A(){return{gasInfo:void 0,result:void 0}}function w(){return{hash:""}}function _(){return{tx:void 0,txResponse:void 0}}function P(){return{height:BigInt(0),pagination:void 0}}function k(){return{txs:[],blockId:void 0,block:void 0,pagination:void 0}}function R(){return{txBytes:new Uint8Array}}function O(){return{tx:void 0}}function I(){return{tx:void 0}}function B(){return{txBytes:new Uint8Array}}function x(){return{aminoJson:""}}function E(){return{aminoBinary:new Uint8Array}}function T(){return{aminoBinary:new Uint8Array}}function N(){return{aminoJson:""}}t.protobufPackage="cosmos.tx.v1beta1",function(e){e[e.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",e[e.ORDER_BY_ASC=1]="ORDER_BY_ASC",e[e.ORDER_BY_DESC=2]="ORDER_BY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.OrderBy=n={})),t.orderByFromJSON=p,t.orderByToJSON=f,function(e){e[e.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",e[e.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",e[e.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",e[e.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(t.BroadcastMode=i={})),t.broadcastModeFromJSON=h,t.broadcastModeToJSON=g,t.GetTxsEventRequest={typeUrl:"/cosmos.tx.v1beta1.GetTxsEventRequest",encode(e,t=c.BinaryWriter.create()){for(let r of e.events)t.uint32(10).string(r);return void 0!==e.pagination&&a.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),0!==e.orderBy&&t.uint32(24).int32(e.orderBy),e.page!==BigInt(0)&&t.uint32(32).uint64(e.page),e.limit!==BigInt(0)&&t.uint32(40).uint64(e.limit),t},decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.events.push(r.string());break;case 2:i.pagination=a.PageRequest.decode(r,r.uint32());break;case 3:i.orderBy=r.int32();break;case 4:i.page=r.uint64();break;case 5:i.limit=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return Array.isArray(e?.events)&&(t.events=e.events.map(e=>String(e))),(0,u.isSet)(e.pagination)&&(t.pagination=a.PageRequest.fromJSON(e.pagination)),(0,u.
1isSet)(e.orderBy)&&(t.orderBy=p(e.orderBy)),(0,u.isSet)(e.page)&&(t.page=BigInt(e.page.toString())),(0,u.isSet)(e.limit)&&(t.limit=BigInt(e.limit.toString())),t},toJSON(e){let t={};return e.events?t.events=e.events.map(e=>e):t.events=[],void 0!==e.pagination&&(t.pagination=e.pagination?a.PageRequest.toJSON(e.pagination):void 0),void 0!==e.orderBy&&(t.orderBy=f(e.orderBy)),void 0!==e.page&&(t.page=(e.page||BigInt(0)).toString()),void 0!==e.limit&&(t.limit=(e.limit||BigInt(0)).toString()),t},fromPartial(e){let t=m();return t.events=e.events?.map(e=>e)||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=a.PageRequest.fromPartial(e.pagination)),t.orderBy=e.orderBy??0,void 0!==e.page&&null!==e.page&&(t.page=BigInt(e.page.toString())),void 0!==e.limit&&null!==e.limit&&(t.limit=BigInt(e.limit.toString())),t}},t.GetTxsEventResponse={typeUrl:"/cosmos.tx.v1beta1.GetTxsEventResponse",encode(e,t=c.BinaryWriter.create()){for(let r of e.txs)o.Tx.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.txResponses)s.TxResponse.encode(r,t.uint32(18).fork()).ldelim();return void 0!==e.pagination&&a.PageResponse.encode(e.pagination,t.uint32(26).fork()).ldelim(),e.total!==BigInt(0)&&t.uint32(32).uint64(e.total),t},decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.txs.push(o.Tx.decode(r,r.uint32()));break;case 2:i.txResponses.push(s.TxResponse.decode(r,r.uint32()));break;case 3:i.pagination=a.PageResponse.decode(r,r.uint32());break;case 4:i.total=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return Array.isArray(e?.txs)&&(t.txs=e.txs.map(e=>o.Tx.fromJSON(e))),Array.isArray(e?.txResponses)&&(t.txResponses=e.txResponses.map(e=>s.TxResponse.fromJSON(e))),(0,u.isSet)(e.pagination)&&(t.pagination=a.PageResponse.fromJSON(e.pagination)),(0,u.isSet)(e.total)&&(t.total=BigInt(e.total.toString())),t},toJSON(e){let t={};return e.txs?t.txs=e.txs.map(e=>e?o.Tx.toJSON(e):void 0):t.txs=[],e.txResponses?t.txResponses=e.txResponses.map(e=>e?s.TxResponse.toJSON(e):void 0):t.txResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?a.PageResponse.toJSON(e.pagination):void 0),void 0!==e.total&&(t.total=(e.total||BigInt(0)).toString()),t},fromPartial(e){let t=y();return t.txs=e.txs?.map(e=>o.Tx.fromPartial(e))||[],t.txResponses=e.txResponses?.map(e=>s.TxResponse.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=a.PageResponse.fromPartial(e.pagination)),void 0!==e.total&&null!==e.total&&(t.total=BigInt(e.total.toString())),t}},t.BroadcastTxRequest={typeUrl:"/cosmos.tx.v1beta1.BroadcastTxRequest",encode:(e,t=c.BinaryWriter.create())=>(0!==e.txBytes.length&&t.uint32(10).bytes(e.txBytes),0!==e.mode&&t.uint32(16).int32(e.mode),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.txBytes=r.bytes();break;case 2:i.mode=r.int32();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,u.isSet)(e.txBytes)&&(t.txBytes=(0,u.bytesFromBase64)(e.txBytes)),(0,u.isSet)(e.mode)&&(t.mode=h(e.mode)),t},toJSON(e){let t={};return void 0!==e.txBytes&&(t.txBytes=(0,u.base64FromBytes)(void 0!==e.txBytes?e.txBytes:new Uint8Array)),void 0!==e.mode&&(t.mode=g(e.mode)),t},fromPartial(e){let t=b();return t.txBytes=e.txBytes??new Uint8Array,t.mode=e.mode??0,t}},t.BroadcastTxResponse={typeUrl:"/cosmos.tx.v1beta1.BroadcastTxResponse",encode:(e,t=c.BinaryWriter.create())=>(void 0!==e.txResponse&&s.TxResponse.encode(e.txResponse,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.txResponse=s.TxResponse.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=v();return(0,u.isSet)(e.txResponse)&&(t.txResponse=s.TxResponse.fromJSON(e.txResponse)),t},toJSON(e){let t={};return void 0!==e.txResponse&&(t.txResponse=e.txResponse?s.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial(e){let t=v();return void 0!==e.txResponse&&null!==e.txResponse&&(t.txResponse=s.TxResponse.fromPartial(e.txResponse)),t}},t.SimulateRequest={typeUrl:"/cosmos.tx.v1beta1.SimulateRequest",encode:(e,t=c.BinaryWriter.create())=>(void 0!==e.tx&&o.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),0!==e.txBytes.length&&t.uint32(18).bytes(e.txBytes),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.tx=o.Tx.decode(r,r.uint32());break;case 2:i.txBytes=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=S();
1return(0,u.isSet)(e.tx)&&(t.tx=o.Tx.fromJSON(e.tx)),(0,u.isSet)(e.txBytes)&&(t.txBytes=(0,u.bytesFromBase64)(e.txBytes)),t},toJSON(e){let t={};return void 0!==e.tx&&(t.tx=e.tx?o.Tx.toJSON(e.tx):void 0),void 0!==e.txBytes&&(t.txBytes=(0,u.base64FromBytes)(void 0!==e.txBytes?e.txBytes:new Uint8Array)),t},fromPartial(e){let t=S();return void 0!==e.tx&&null!==e.tx&&(t.tx=o.Tx.fromPartial(e.tx)),t.txBytes=e.txBytes??new Uint8Array,t}},t.SimulateResponse={typeUrl:"/cosmos.tx.v1beta1.SimulateResponse",encode:(e,t=c.BinaryWriter.create())=>(void 0!==e.gasInfo&&s.GasInfo.encode(e.gasInfo,t.uint32(10).fork()).ldelim(),void 0!==e.result&&s.Result.encode(e.result,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.gasInfo=s.GasInfo.decode(r,r.uint32());break;case 2:i.result=s.Result.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=A();return(0,u.isSet)(e.gasInfo)&&(t.gasInfo=s.GasInfo.fromJSON(e.gasInfo)),(0,u.isSet)(e.result)&&(t.result=s.Result.fromJSON(e.result)),t},toJSON(e){let t={};return void 0!==e.gasInfo&&(t.gasInfo=e.gasInfo?s.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(t.result=e.result?s.Result.toJSON(e.result):void 0),t},fromPartial(e){let t=A();return void 0!==e.gasInfo&&null!==e.gasInfo&&(t.gasInfo=s.GasInfo.fromPartial(e.gasInfo)),void 0!==e.result&&null!==e.result&&(t.result=s.Result.fromPartial(e.result)),t}},t.GetTxRequest={typeUrl:"/cosmos.tx.v1beta1.GetTxRequest",encode:(e,t=c.BinaryWriter.create())=>(""!==e.hash&&t.uint32(10).string(e.hash),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.hash=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=w();return(0,u.isSet)(e.hash)&&(t.hash=String(e.hash)),t},toJSON(e){let t={};return void 0!==e.hash&&(t.hash=e.hash),t},fromPartial(e){let t=w();return t.hash=e.hash??"",t}},t.GetTxResponse={typeUrl:"/cosmos.tx.v1beta1.GetTxResponse",encode:(e,t=c.BinaryWriter.create())=>(void 0!==e.tx&&o.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),void 0!==e.txResponse&&s.TxResponse.encode(e.txResponse,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.tx=o.Tx.decode(r,r.uint32());break;case 2:i.txResponse=s.TxResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=_();return(0,u.isSet)(e.tx)&&(t.tx=o.Tx.fromJSON(e.tx)),(0,u.isSet)(e.txResponse)&&(t.txResponse=s.TxResponse.fromJSON(e.txResponse)),t},toJSON(e){let t={};return void 0!==e.tx&&(t.tx=e.tx?o.Tx.toJSON(e.tx):void 0),void 0!==e.txResponse&&(t.txResponse=e.txResponse?s.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial(e){let t=_();return void 0!==e.tx&&null!==e.tx&&(t.tx=o.Tx.fromPartial(e.tx)),void 0!==e.txResponse&&null!==e.txResponse&&(t.txResponse=s.TxResponse.fromPartial(e.txResponse)),t}},t.GetBlockWithTxsRequest={typeUrl:"/cosmos.tx.v1beta1.GetBlockWithTxsRequest",encode:(e,t=c.BinaryWriter.create())=>(e.height!==BigInt(0)&&t.uint32(8).int64(e.height),void 0!==e.pagination&&a.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=P();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.height=r.int64();break;case 2:i.pagination=a.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=P();return(0,u.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),(0,u.isSet)(e.pagination)&&(t.pagination=a.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.pagination&&(t.pagination=e.pagination?a.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=P();return void 0!==e.height&&null!==e.height&&(t.height=BigInt(e.height.toString())),void 0!==e.pagination&&null!==e.pagination&&(t.pagination=a.PageRequest.fromPartial(e.pagination)),t}},t.GetBlockWithTxsResponse={typeUrl:"/cosmos.tx.v1beta1.GetBlockWithTxsResponse",encode(e,t=c.BinaryWriter.create()){for(let r of e.txs)o.Tx.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.blockId&&d.BlockID.encode(e.blockId,t.uint32(18).fork()).ldelim(),void 0!==e.block&&l.Block.encode(e.block,t.uint32(26).fork()).ldelim(),void 0!==e.pagination&&a.PageResponse.encode(e.pagination,t.uint32(34).fork()).ldelim(),t},decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=k();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.txs.push(o.Tx.decode(r,r.uint32()));break;case 2:i.blockId=d.BlockID.decode(r,r.uint32());break;case 3:i.block=l.Block.decode(r,r.uint32());break;case 4:i.pagination=a.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=k();return Array.isArray(e?.txs)&&(t.txs=e.txs.map(e=>
1o.Tx.fromJSON(e))),(0,u.isSet)(e.blockId)&&(t.blockId=d.BlockID.fromJSON(e.blockId)),(0,u.isSet)(e.block)&&(t.block=l.Block.fromJSON(e.block)),(0,u.isSet)(e.pagination)&&(t.pagination=a.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.txs?t.txs=e.txs.map(e=>e?o.Tx.toJSON(e):void 0):t.txs=[],void 0!==e.blockId&&(t.blockId=e.blockId?d.BlockID.toJSON(e.blockId):void 0),void 0!==e.block&&(t.block=e.block?l.Block.toJSON(e.block):void 0),void 0!==e.pagination&&(t.pagination=e.pagination?a.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=k();return t.txs=e.txs?.map(e=>o.Tx.fromPartial(e))||[],void 0!==e.blockId&&null!==e.blockId&&(t.blockId=d.BlockID.fromPartial(e.blockId)),void 0!==e.block&&null!==e.block&&(t.block=l.Block.fromPartial(e.block)),void 0!==e.pagination&&null!==e.pagination&&(t.pagination=a.PageResponse.fromPartial(e.pagination)),t}},t.TxDecodeRequest={typeUrl:"/cosmos.tx.v1beta1.TxDecodeRequest",encode:(e,t=c.BinaryWriter.create())=>(0!==e.txBytes.length&&t.uint32(10).bytes(e.txBytes),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=R();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.txBytes=r.bytes():r.skipType(7&e)}return i},fromJSON(e){let t=R();return(0,u.isSet)(e.txBytes)&&(t.txBytes=(0,u.bytesFromBase64)(e.txBytes)),t},toJSON(e){let t={};return void 0!==e.txBytes&&(t.txBytes=(0,u.base64FromBytes)(void 0!==e.txBytes?e.txBytes:new Uint8Array)),t},fromPartial(e){let t=R();return t.txBytes=e.txBytes??new Uint8Array,t}},t.TxDecodeResponse={typeUrl:"/cosmos.tx.v1beta1.TxDecodeResponse",encode:(e,t=c.BinaryWriter.create())=>(void 0!==e.tx&&o.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.tx=o.Tx.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=O();return(0,u.isSet)(e.tx)&&(t.tx=o.Tx.fromJSON(e.tx)),t},toJSON(e){let t={};return void 0!==e.tx&&(t.tx=e.tx?o.Tx.toJSON(e.tx):void 0),t},fromPartial(e){let t=O();return void 0!==e.tx&&null!==e.tx&&(t.tx=o.Tx.fromPartial(e.tx)),t}},t.TxEncodeRequest={typeUrl:"/cosmos.tx.v1beta1.TxEncodeRequest",encode:(e,t=c.BinaryWriter.create())=>(void 0!==e.tx&&o.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=I();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.tx=o.Tx.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=I();return(0,u.isSet)(e.tx)&&(t.tx=o.Tx.fromJSON(e.tx)),t},toJSON(e){let t={};return void 0!==e.tx&&(t.tx=e.tx?o.Tx.toJSON(e.tx):void 0),t},fromPartial(e){let t=I();return void 0!==e.tx&&null!==e.tx&&(t.tx=o.Tx.fromPartial(e.tx)),t}},t.TxEncodeResponse={typeUrl:"/cosmos.tx.v1beta1.TxEncodeResponse",encode:(e,t=c.BinaryWriter.create())=>(0!==e.txBytes.length&&t.uint32(10).bytes(e.txBytes),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=B();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.txBytes=r.bytes():r.skipType(7&e)}return i},fromJSON(e){let t=B();return(0,u.isSet)(e.txBytes)&&(t.txBytes=(0,u.bytesFromBase64)(e.txBytes)),t},toJSON(e){let t={};return void 0!==e.txBytes&&(t.txBytes=(0,u.base64FromBytes)(void 0!==e.txBytes?e.txBytes:new Uint8Array)),t},fromPartial(e){let t=B();return t.txBytes=e.txBytes??new Uint8Array,t}},t.TxEncodeAminoRequest={typeUrl:"/cosmos.tx.v1beta1.TxEncodeAminoRequest",encode:(e,t=c.BinaryWriter.create())=>(""!==e.aminoJson&&t.uint32(10).string(e.aminoJson),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=x();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.aminoJson=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=x();return(0,u.isSet)(e.aminoJson)&&(t.aminoJson=String(e.aminoJson)),t},toJSON(e){let t={};return void 0!==e.aminoJson&&(t.aminoJson=e.aminoJson),t},fromPartial(e){let t=x();return t.aminoJson=e.aminoJson??"",t}},t.TxEncodeAminoResponse={typeUrl:"/cosmos.tx.v1beta1.TxEncodeAminoResponse",encode:(e,t=c.BinaryWriter.create())=>(0!==e.aminoBinary.length&&t.uint32(10).bytes(e.aminoBinary),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=E();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.aminoBinary=r.bytes():r.skipType(7&e)}return i},fromJSON(e){let t=E();return(0,u.isSet)(e.aminoBinary)&&(t.aminoBinary=(0,u.bytesFromBase64)(e.aminoBinary)),t},toJSON(e){let t={};return void 0!==e.aminoBinary&&(t.aminoBinary=(0,u.base64FromBytes)(void 0!==e.aminoBinary?e.aminoBinary:new Uint8Array)),t},fromPartial(e){let t=E();return t.aminoBinary=e.aminoBinary??new Uint8Array,t}},t.TxDecodeAminoRequest={typeUrl:"/cosmos.tx.v1beta1.TxDecodeAminoRequest",encode:(e,t=c.BinaryWriter.create())=>(0!==e.aminoBinary.length&&t.uint32(10).bytes(e.aminoBinary),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=T();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.aminoBinary=r.bytes():r.skipType(7&e)}return i},fromJSON(e){let t=T();return(0,u.isSet)(e.aminoBinary)&&(t.aminoBinary=(0,u.bytesFromBase64)(e.aminoBinary)),t},toJSON(e){let t={};return void 0!==e.aminoBinary&&(t.aminoBinary=(0,u.base64FromBytes)(void 0!==e.aminoBinary?e.aminoBinary:new Uint8Array)),t},fromPartial(e){let t=T();return t.aminoBinary=e.aminoBinary??new Uint8Array,t}},t.TxDecodeAminoResponse={typeUrl:"/cosmos.tx.v1beta1.TxDecodeAminoResponse",encode:(e,t=c.BinaryWriter.create())=>(""!==e.aminoJson&&t.uint32(10).string(e.aminoJson),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=N();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.aminoJson=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=N();return(0,u.isSet)(e.aminoJson)&&(t.aminoJson=String(e.aminoJson)),t},toJSON(e){let t={};
1return void 0!==e.aminoJson&&(t.aminoJson=e.aminoJson),t},fromPartial(e){let t=N();return t.aminoJson=e.aminoJson??"",t}};class C{constructor(e){this.rpc=e,this.Simulate=this.Simulate.bind(this),this.GetTx=this.GetTx.bind(this),this.BroadcastTx=this.BroadcastTx.bind(this),this.GetTxsEvent=this.GetTxsEvent.bind(this),this.GetBlockWithTxs=this.GetBlockWithTxs.bind(this),this.TxDecode=this.TxDecode.bind(this),this.TxEncode=this.TxEncode.bind(this),this.TxEncodeAmino=this.TxEncodeAmino.bind(this),this.TxDecodeAmino=this.TxDecodeAmino.bind(this)}Simulate(e){let r=t.SimulateRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","Simulate",r).then(e=>t.SimulateResponse.decode(new c.BinaryReader(e)))}GetTx(e){let r=t.GetTxRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTx",r).then(e=>t.GetTxResponse.decode(new c.BinaryReader(e)))}BroadcastTx(e){let r=t.BroadcastTxRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","BroadcastTx",r).then(e=>t.BroadcastTxResponse.decode(new c.BinaryReader(e)))}GetTxsEvent(e){let r=t.GetTxsEventRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTxsEvent",r).then(e=>t.GetTxsEventResponse.decode(new c.BinaryReader(e)))}GetBlockWithTxs(e){let r=t.GetBlockWithTxsRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetBlockWithTxs",r).then(e=>t.GetBlockWithTxsResponse.decode(new c.BinaryReader(e)))}TxDecode(e){let r=t.TxDecodeRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxDecode",r).then(e=>t.TxDecodeResponse.decode(new c.BinaryReader(e)))}TxEncode(e){let r=t.TxEncodeRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxEncode",r).then(e=>t.TxEncodeResponse.decode(new c.BinaryReader(e)))}TxEncodeAmino(e){let r=t.TxEncodeAminoRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxEncodeAmino",r).then(e=>t.TxEncodeAminoResponse.decode(new c.BinaryReader(e)))}TxDecodeAmino(e){let r=t.TxDecodeAminoRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxDecodeAmino",r).then(e=>t.TxDecodeAminoResponse.decode(new c.BinaryReader(e)))}}t.ServiceClientImpl=C},23041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDistributionAminoConverters=t.isAminoMsgFundCommunityPool=t.isAminoMsgWithdrawValidatorCommission=t.isAminoMsgWithdrawDelegatorReward=t.isAminoMsgSetWithdrawAddress=void 0,t.isAminoMsgSetWithdrawAddress=function(e){return"cosmos-sdk/MsgModifyWithdrawAddress"===e.type},t.isAminoMsgWithdrawDelegatorReward=function(e){return"cosmos-sdk/MsgWithdrawDelegationReward"===e.type},t.isAminoMsgWithdrawValidatorCommission=function(e){return"cosmos-sdk/MsgWithdrawValidatorCommission"===e.type},t.isAminoMsgFundCommunityPool=function(e){return"cosmos-sdk/MsgFundCommunityPool"===e.type},t.createDistributionAminoConverters=function(){return{"/cosmos.distribution.v1beta1.MsgFundCommunityPool":{aminoType:"cosmos-sdk/MsgFundCommunityPool",toAmino:({amount:e,depositor:t})=>({amount:[...e],depositor:t}),fromAmino:({amount:e,depositor:t})=>({amount:[...e],depositor:t})},"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":{aminoType:"cosmos-sdk/MsgModifyWithdrawAddress",toAmino:({delegatorAddress:e,withdrawAddress:t})=>({delegator_address:e,withdraw_address:t}),fromAmino:({delegator_address:e,withdraw_address:t})=>({delegatorAddress:e,withdrawAddress:t})},"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":{aminoType:"cosmos-sdk/MsgWithdrawDelegationReward",toAmino:({delegatorAddress:e,validatorAddress:t})=>({delegator_address:e,validator_address:t}),fromAmino:({delegator_address:e,validator_address:t})=>({delegatorAddress:e,validatorAddress:t})},"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":{aminoType:"cosmos-sdk/MsgWithdrawValidatorCommission",toAmino:({validatorAddress:e})=>({validator_address:e}),fromAmino:({validator_address:e})=>({validatorAddress:e})}}}},23071:(e,t,r)=>{"use strict";var n,i=t,o=r(75687),a=r(12669),s=r(95488).assert;function d(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new d(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=d,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(87024)}catch(e){n=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
1,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},23362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createStakingAminoConverters=t.isAminoMsgCancelUnbondingDelegation=t.isAminoMsgUndelegate=t.isAminoMsgBeginRedelegate=t.isAminoMsgDelegate=t.isAminoMsgEditValidator=t.isAminoMsgCreateValidator=t.protoDecimalToJson=void 0;let n=r(73297),i=r(11717),o=r(63688);function a(e){let[t,r]=n.Decimal.fromAtomics(e,18).toString().split(".");return`${t}.${(r??"").padEnd(18,"0")}`}function s(e){return n.Decimal.fromUserInput(e,18).atomics}t.protoDecimalToJson=a,t.isAminoMsgCreateValidator=function(e){return"cosmos-sdk/MsgCreateValidator"===e.type},t.isAminoMsgEditValidator=function(e){return"cosmos-sdk/MsgEditValidator"===e.type},t.isAminoMsgDelegate=function(e){return"cosmos-sdk/MsgDelegate"===e.type},t.isAminoMsgBeginRedelegate=function(e){return"cosmos-sdk/MsgBeginRedelegate"===e.type},t.isAminoMsgUndelegate=function(e){return"cosmos-sdk/MsgUndelegate"===e.type},t.isAminoMsgCancelUnbondingDelegation=function(e){return"cosmos-sdk/MsgCancelUnbondingDelegation"===e.type},t.createStakingAminoConverters=function(){return{"/cosmos.staking.v1beta1.MsgBeginRedelegate":{aminoType:"cosmos-sdk/MsgBeginRedelegate",toAmino:({delegatorAddress:e,validatorSrcAddress:t,validatorDstAddress:r,amount:n})=>((0,o.assertDefinedAndNotNull)(n,"missing amount"),{delegator_address:e,validator_src_address:t,validator_dst_address:r,amount:n}),fromAmino:({delegator_address:e,validator_src_address:t,validator_dst_address:r,amount:n})=>({delegatorAddress:e,validatorSrcAddress:t,validatorDstAddress:r,amount:n})},"/cosmos.staking.v1beta1.MsgCreateValidator":{aminoType:"cosmos-sdk/MsgCreateValidator",toAmino:({description:e,commission:t,minSelfDelegation:r,delegatorAddress:n,validatorAddress:s,pubkey:d,value:l})=>((0,o.assertDefinedAndNotNull)(e,"missing description"),(0,o.assertDefinedAndNotNull)(t,"missing commission"),(0,o.assertDefinedAndNotNull)(d,"missing pubkey"),(0,o.assertDefinedAndNotNull)(l,"missing value"),{description:{moniker:e.moniker,identity:e.identity,website:e.website,security_contact:e.securityContact,details:e.details},commission:{rate:a(t.rate),max_rate:a(t.maxRate),max_change_rate:a(t.maxChangeRate)},min_self_delegation:r,delegator_address:n,validator_address:s,pubkey:(0,i.decodePubkey)(d),value:l}),fromAmino:({description:e,commission:t,min_self_delegation:r,delegator_address:n,validator_address:o,pubkey:a,value:d})=>({description:{moniker:e.moniker,identity:e.identity,website:e.website,securityContact:e.security_contact,details:e.details},commission:{rate:s(t.rate),maxRate:s(t.max_rate),maxChangeRate:s(t.max_change_rate)},minSelfDelegation:r,delegatorAddress:n,validatorAddress:o,pubkey:(0,i.encodePubkey)(a),value:d})},"/cosmos.staking.v1beta1.MsgDelegate":{aminoType:"cosmos-sdk/MsgDelegate",toAmino:({delegatorAddress:e,validatorAddress:t,amount:r})=>((0,o.assertDefinedAndNotNull)(r,"missing amount"),{delegator_address:e,validator_address:t,amount:r}),fromAmino:({delegator_address:e,validator_address:t,amount:r})=>({delegatorAddress:e,validatorAddress:t,amount:r})},"/cosmos.staking.v1beta1.MsgEditValidator":{aminoType:"cosmos-sdk/MsgEditValidator",toAmino:({description:e,commissionRate:t,minSelfDelegation:r,validatorAddress:n})=>((0,o.assertDefinedAndNotNull)(e,"missing description"),{description:{moniker:e.moniker,identity:e.identity,website:e.website,security_contact:e.securityContact,details:e.details},commission_rate:t?a(t):void 0,min_self_delegation:r||void 0,validator_address:n}),fromAmino:({description:e,commission_rate:t,min_self_delegation:r,validator_address:n})=>({description:{moniker:e.moniker,identity:e.identity,website:e.website,securityContact:e.security_contact,details:e.details},commissionRate:t?s(t):"",minSelfDelegation:r??"",validatorAddress:n})},"/cosmos.staking.v1beta1.MsgUndelegate":{aminoType:"cosmos-sdk/MsgUndelegate",toAmino:({delegatorAddress:e,validatorAddress:t,amount:r})=>((0,o.assertDefinedAndNotNull)(r,"missing amount"),{delegator_address:e,validator_address:t,amount:r}),fromAmino:({delegator_address:e,validator_address:t,amount:r})=>({delegatorAddress:e,validatorAddress:t,amount:r})},"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation":{aminoType:"cosmos-sdk/MsgCancelUnbondingDelegation",toAmino:({delegatorAddress:e,validatorAddress:t,amount:r,creationHeight:n})=>((0,o.assertDefinedAndNotNull)(r,"missing amount"),{delegator_address:e,validator_address:t,amount:r,creation_height:n.toString()}),fromAmino:({delegator_address:e,validator_address:t,amount:r,creation_height:n})=>({delegatorAddress:e,validatorAddress:t,amount:r,creationHeight:BigInt(n)})}}}},23711:(e,t,r)=>{"use strict";var n=r(91697),i=r(95488),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function d(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invali
1d size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(d,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(d,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(d,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(d,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=d},24627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgUpdateParamsResponse=t.MsgUpdateParams=t.MsgDepositResponse=t.MsgDeposit=t.MsgVoteWeightedResponse=t.MsgVoteWeighted=t.MsgVoteResponse=t.MsgVote=t.MsgExecLegacyContentResponse=t.MsgExecLegacyContent=t.MsgSubmitProposalResponse=t.MsgSubmitProposal=t.protobufPackage=void 0;let n=r(54573),i=r(91794),o=r(91469),a=r(4696),s=r(92242);function d(){return{messages:[],initialDeposit:[],proposer:"",metadata:"",title:"",summary:""}}function l(){return{proposalId:BigInt(0)}}function c(){return{content:void 0,authority:""}}function u(){return{}}function p(){return{proposalId:BigInt(0),voter:"",option:0,metadata:""}}function f(){return{}}function h(){return{proposalId:BigInt(0),voter:"",options:[],metadata:""}}function g(){return{}}function m(){return{proposalId:BigInt(0),depositor:"",amount:[]}}function y(){return{}}function b(){return{authority:"",params:o.Params.fromPartial({})}}function v(){return{}}t.protobufPackage="cosmos.gov.v1",t.MsgSubmitProposal={typeUrl:"/cosmos.gov.v1.MsgSubmitProposal",encode(e,t=a.BinaryWriter.create()){for(let r of e.messages)n.Any.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.initialDeposit)i.Coin.encode(r,t.uint32(18).fork()).ldelim();return""!==e.proposer&&t.uint32(26).string(e.proposer),""!==e.metadata&&t.uint32(34).string(e.metadata),""!==e.title&&t.uint32(42).string(e.title),""!==e.summary&&t.uint32(50).string(e.summary),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=d();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.messages.push(n.Any.decode(r,r.uint32()));break;case 2:s.initialDeposit.push(i.Coin.decode(r,r.uint32()));break;case 3:s.proposer=r.string();break;case 4:s.metadata=r.string();break;case 5:s.title=r.string();break;case 6:s.summary=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=d();return Array.isArray(e?.messages)&&(t.messages=e.messages.map(e=>n.Any.fromJSON(e))),Array.isArray(e?.initialDeposit)&&(t.initialDeposit=e.initialDeposit.map(e=>i.Coin.fromJSON(e))),(0,s.isSet)(e.proposer)&&(t.proposer=String(e.proposer)),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,s.isSet)(e.title)&&(t.title=String(e.title)),(0,s.isSet)(e.summary)&&(t.summary=String(e.summary)),t},toJSON(e){let t={};return e.messages?t.messages=e.messages.map(e=>e?n.Any.toJSON(e):void 0):t.messages=[],e.initialDeposit?t.initialDeposit=e.initialDeposit.map(e=>e?i.Coin.toJSON(e):void 0):t.initialDeposit=[],void 0!==e.proposer&&(t.proposer=e.proposer),void 0!==e.metadata&&(t.metadata=e.metadata),void 0!==e.title&&(t.title=e.title),void 0!==e.summary&&(t.summary=e.summary),t},fromPartial(e){let t=d();return t.messages=e.messages?.map(e=>n.Any.fromPartial(e))||[],t.initialDeposit=e.initialDeposit?.map(e=>i.Coin.fromPartial(e))||[],t.proposer=e.proposer??"",t.metadata=e.metadata??"",t.title=e.title??"",t.summary=e.summary??"",t}},t.MsgSubmitProposalResponse={typeUrl:"/cosmos.gov.v1.MsgSubmitProposalResponse",encode:(e,t=a.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.proposalId=r.uint64():r.skipType(7&e)}return i},fromJSON(e){let t=l();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=l();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t}},t.MsgExecLegacyContent={typeUrl:"/cosmos.gov.v1.MsgExecLegacyContent",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.content&&n.Any.encode(e.content,t.uint32(10).fork()).ldelim(),""!==e.authority&&t.uint32(18).string(e.authority),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=c();for(;r.pos<i;){let e=r.uint32();switch(e>>>
13){case 1:o.content=n.Any.decode(r,r.uint32());break;case 2:o.authority=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=c();return(0,s.isSet)(e.content)&&(t.content=n.Any.fromJSON(e.content)),(0,s.isSet)(e.authority)&&(t.authority=String(e.authority)),t},toJSON(e){let t={};return void 0!==e.content&&(t.content=e.content?n.Any.toJSON(e.content):void 0),void 0!==e.authority&&(t.authority=e.authority),t},fromPartial(e){let t=c();return void 0!==e.content&&null!==e.content&&(t.content=n.Any.fromPartial(e.content)),t.authority=e.authority??"",t}},t.MsgExecLegacyContentResponse={typeUrl:"/cosmos.gov.v1.MsgExecLegacyContentResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>u(),toJSON:e=>({}),fromPartial:e=>u()},t.MsgVote={typeUrl:"/cosmos.gov.v1.MsgVote",encode:(e,t=a.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),0!==e.option&&t.uint32(24).int32(e.option),""!==e.metadata&&t.uint32(34).string(e.metadata),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.option=r.int32();break;case 4:i.metadata=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=p();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,s.isSet)(e.option)&&(t.option=(0,o.voteOptionFromJSON)(e.option)),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.option&&(t.option=(0,o.voteOptionToJSON)(e.option)),void 0!==e.metadata&&(t.metadata=e.metadata),t},fromPartial(e){let t=p();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t.metadata=e.metadata??"",t}},t.MsgVoteResponse={typeUrl:"/cosmos.gov.v1.MsgVoteResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>f(),toJSON:e=>({}),fromPartial:e=>f()},t.MsgVoteWeighted={typeUrl:"/cosmos.gov.v1.MsgVoteWeighted",encode(e,t=a.BinaryWriter.create()){for(let r of(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),e.options))o.WeightedVoteOption.encode(r,t.uint32(26).fork()).ldelim();return""!==e.metadata&&t.uint32(34).string(e.metadata),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.options.push(o.WeightedVoteOption.decode(r,r.uint32()));break;case 4:i.metadata=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.voter)&&(t.voter=String(e.voter)),Array.isArray(e?.options)&&(t.options=e.options.map(e=>o.WeightedVoteOption.fromJSON(e))),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(t.voter=e.voter),e.options?t.options=e.options.map(e=>e?o.WeightedVoteOption.toJSON(e):void 0):t.options=[],void 0!==e.metadata&&(t.metadata=e.metadata),t},fromPartial(e){let t=h();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.options=e.options?.map(e=>o.WeightedVoteOption.fromPartial(e))||[],t.metadata=e.metadata??"",t}},t.MsgVoteWeightedResponse={typeUrl:"/cosmos.gov.v1.MsgVoteWeightedResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>g(),toJSON:e=>({}),fromPartial:e=>g()},t.MsgDeposit={typeUrl:"/cosmos.gov.v1.MsgDeposit",encode(e,t=a.BinaryWriter.create()){for(let r of(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor),e.amount))i.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.proposalId=r.uint64();break;case 2:o.depositor=r.string();break;case 3:o.amount.push(i.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=m();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>i.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(e=>e?i.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=m();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t.amount=e.amount?.map(e=>i.Coin.fromPartial(e))||[],t}},t.MsgDepositResponse={typeUrl:"/cosmos.gov.v1.MsgDepositResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>y(),toJSON:e=>({}),fromPartial:e=>y()},t.MsgUpdateParams={typeUrl:"/cosmos.gov.v1.MsgUpdateParams",encode:(e,t=a.BinaryWriter.create())=>(""!==e.authority&&t.uint32(10).string(e.authority),void 0!==e.params&&o.Param
1s.encode(e.params,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.authority=r.string();break;case 2:i.params=o.Params.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,s.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,s.isSet)(e.params)&&(t.params=o.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.authority&&(t.authority=e.authority),void 0!==e.params&&(t.params=e.params?o.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=b();return t.authority=e.authority??"",void 0!==e.params&&null!==e.params&&(t.params=o.Params.fromPartial(e.params)),t}},t.MsgUpdateParamsResponse={typeUrl:"/cosmos.gov.v1.MsgUpdateParamsResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>v(),toJSON:e=>({}),fromPartial:e=>v()};class S{constructor(e){this.rpc=e,this.SubmitProposal=this.SubmitProposal.bind(this),this.ExecLegacyContent=this.ExecLegacyContent.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this),this.UpdateParams=this.UpdateParams.bind(this)}SubmitProposal(e){let r=t.MsgSubmitProposal.encode(e).finish();return this.rpc.request("cosmos.gov.v1.Msg","SubmitProposal",r).then(e=>t.MsgSubmitProposalResponse.decode(new a.BinaryReader(e)))}ExecLegacyContent(e){let r=t.MsgExecLegacyContent.encode(e).finish();return this.rpc.request("cosmos.gov.v1.Msg","ExecLegacyContent",r).then(e=>t.MsgExecLegacyContentResponse.decode(new a.BinaryReader(e)))}Vote(e){let r=t.MsgVote.encode(e).finish();return this.rpc.request("cosmos.gov.v1.Msg","Vote",r).then(e=>t.MsgVoteResponse.decode(new a.BinaryReader(e)))}VoteWeighted(e){let r=t.MsgVoteWeighted.encode(e).finish();return this.rpc.request("cosmos.gov.v1.Msg","VoteWeighted",r).then(e=>t.MsgVoteWeightedResponse.decode(new a.BinaryReader(e)))}Deposit(e){let r=t.MsgDeposit.encode(e).finish();return this.rpc.request("cosmos.gov.v1.Msg","Deposit",r).then(e=>t.MsgDepositResponse.decode(new a.BinaryReader(e)))}UpdateParams(e){let r=t.MsgUpdateParams.encode(e).finish();return this.rpc.request("cosmos.gov.v1.Msg","UpdateParams",r).then(e=>t.MsgUpdateParamsResponse.decode(new a.BinaryReader(e)))}}t.MsgClientImpl=S},24652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.encodeEd25519Pubkey=t.encodeSecp256k1Pubkey=void 0;let n=r(25918),i=r(73297),o=r(63688),a=r(38496);t.encodeSecp256k1Pubkey=function(e){if(33!==e.length||2!==e[0]&&3!==e[0])throw Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:a.pubkeyType.secp256k1,value:(0,n.toBase64)(e)}},t.encodeEd25519Pubkey=function(e){if(32!==e.length)throw Error("Ed25519 public key must be 32 bytes long");return{type:a.pubkeyType.ed25519,value:(0,n.toBase64)(e)}};let s=(0,n.fromHex)("eb5ae98721"),d=(0,n.fromHex)("1624de6420"),l=(0,n.fromHex)("0dfb100520"),c=(0,n.fromHex)("22c1f7e2");function u(e){if((0,o.arrayContentStartsWith)(e,s)){let t=e.slice(s.length);if(33!==t.length)throw Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:a.pubkeyType.secp256k1,value:(0,n.toBase64)(t)}}if((0,o.arrayContentStartsWith)(e,d)){let t=e.slice(d.length);if(32!==t.length)throw Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:a.pubkeyType.ed25519,value:(0,n.toBase64)(t)}}if((0,o.arrayContentStartsWith)(e,l)){let t=e.slice(l.length);if(32!==t.length)throw Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:a.pubkeyType.sr25519,value:(0,n.toBase64)(t)}}if((0,o.arrayContentStartsWith)(e,c))return f(e);throw Error("Unsupported public key type. Amino data starts with: "+(0,n.toHex)(e.slice(0,5)))}function p(e){if(e.length<1)throw Error("Can't decode varint. EOF");if(e[0]>127)throw Error("Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.");return[e[0],1]}function f(e){let t=Array.from(e),r=t.splice(0,c.length);if(!(0,o.arrayContentStartsWith)(r,c))throw Error("Invalid multisig prefix.");if(8!=t.shift())throw Error("Invalid multisig data. Expecting 0x08 prefix before threshold.");let[n,i]=p(t);t.splice(0,i);let s=[];for(;t.length>0;){if(18!=t.shift())throw Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");let[e,r]=p(t);if(t.splice(0,r),t.length<e)throw Error("Invalid multisig data length.");let n=t.splice(0,e),i=u(Uint8Array.from(n));s.push(i)}return{type:a.pubkeyType.multisigThreshold,value:{threshold:n.toString(),pubkeys:s}}}function h(e){let t=i.Uint53.fromString(e.toString()).toNumber();if(t>127)throw Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]}function g(e){if((0,a.isMultisigThresholdPubkey)(e)){let t=Array.from(c);for(let r of(t.push(8),t.push(...h(e.value.threshold)),e.value.pubkeys.map(e=>g(e))))t.push(18),t.push(...h(r.length)),t.push(...r);return new Uint8Array(t)}if((0,a.isEd25519Pubkey)(e))return new Uint8Array([...d,...(0,n.fromBase64)(e.value)]);if((0,a.isSecp256k1Pubkey)(e))return new Uint8Array([...s,...(0,n.fromBase64)(e.value)]);throw Error("Unsupported pubkey type")}t.decodeAminoPubkey=u,t.decodeBech32Pubkey=function(e){let{data:t}=(0,n.fromBech32)(e);return u(t)},t.encodeAminoPubkey=g,t.encodeBech32Pubkey=function(e,t){return(0,n.toBech32)(t,g(e))}},24783:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,
1configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},24810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashBlock=t.hashTx=void 0;let n=r(97470),i=r(25749);function o(e){if(e<1)throw Error("Cannot split an empty tree");let t=2**Math.floor(Math.log2(e));return t<e?t:t/2}function a(e){let t=new n.Sha256(Uint8Array.from([0]));return t.update(e),t.digest()}function s(e,t){let r=new n.Sha256(Uint8Array.from([1]));return r.update(e),r.update(t),r.digest()}function d(e){switch(e.length){case 0:throw Error("Cannot hash empty tree");case 1:return a(e[0]);
1default:{let t=o(e.length);return s(d(e.slice(0,t)),d(e.slice(t)))}}}t.hashTx=function(e){return(0,n.sha256)(e)},t.hashBlock=function(e){if(!e.lastBlockId)throw Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");return d([(0,i.encodeVersion)(e.version),(0,i.encodeString)(e.chainId),(0,i.encodeUvarint)(e.height),(0,i.encodeTime)(e.time),(0,i.encodeBlockId)(e.lastBlockId),(0,i.encodeBytes)(e.lastCommitHash),(0,i.encodeBytes)(e.dataHash),(0,i.encodeBytes)(e.validatorsHash),(0,i.encodeBytes)(e.nextValidatorsHash),(0,i.encodeBytes)(e.consensusHash),(0,i.encodeBytes)(e.appHash),(0,i.encodeBytes)(e.lastResultsHash),(0,i.encodeBytes)(e.evidenceHash),(0,i.encodeBytes)(e.proposerAddress)])}},25749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBlockId=t.encodeVersion=t.encodeBytes=t.encodeTime=t.encodeUvarint=t.encodeString=t.dictionaryToStringMap=t.may=t.assertNotEmpty=t.assertObject=t.assertArray=t.assertNumber=t.assertString=t.assertBoolean=t.assertSet=void 0;let n=r(25918);function i(e){if(void 0===e)throw Error("Value must not be undefined");if(null===e)throw Error("Value must not be null");return e}function o(e){return e>=128?Uint8Array.from([255&e|128,...o(e>>7)]):Uint8Array.from([255&e])}t.assertSet=i,t.assertBoolean=function(e){if(i(e),"boolean"!=typeof e)throw Error("Value must be a boolean");return e},t.assertString=function(e){if(i(e),"string"!=typeof e)throw Error("Value must be a string");return e},t.assertNumber=function(e){if(i(e),"number"!=typeof e)throw Error("Value must be a number");return e},t.assertArray=function(e){if(i(e),!Array.isArray(e))throw Error("Value must be a an array");return e},t.assertObject=function(e){if(i(e),"object"!=typeof e)throw Error("Value must be an object");if("[object Object]"!==Object.prototype.toString.call(e))throw Error("Value must be a simple object");return e},t.assertNotEmpty=function(e){if(i(e),"number"==typeof e&&0===e)throw Error("must provide a non-zero value");if(0===e.length)throw Error("must provide a non-empty value");return e},t.may=function(e,t){return null==t?void 0:e(t)},t.dictionaryToStringMap=function(e){let t=new Map;for(let r of Object.keys(e)){let n=e[r];if("string"!=typeof n)throw Error("Found dictionary value of type other than string");t.set(r,n)}return t},t.encodeString=function(e){let t=(0,n.toUtf8)(e);return Uint8Array.from([t.length,...t])},t.encodeUvarint=o,t.encodeTime=function(e){let t=e.getTime(),r=Math.floor(t/1e3),n=r?[8,...o(r)]:new Uint8Array,i=(e.nanoseconds||0)+t%1e3*1e6,a=i?[16,...o(i)]:new Uint8Array;return Uint8Array.from([...n,...a])},t.encodeBytes=function(e){if(e.length>=128)throw Error("Not implemented for byte arrays of length 128 or more");return e.length?Uint8Array.from([e.length,...e]):new Uint8Array},t.encodeVersion=function(e){let t=e.block?Uint8Array.from([8,...o(e.block)]):new Uint8Array,r=e.app?Uint8Array.from([16,...o(e.app)]):new Uint8Array;return Uint8Array.from([...t,...r])},t.encodeBlockId=function(e){return Uint8Array.from([10,e.hash.length,...e.hash,18,e.parts.hash.length+4,8,e.parts.total,18,e.parts.hash.length,...e.parts.hash])}},25918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=t.toRfc3339=t.fromRfc3339=t.toHex=t.fromHex=t.toBech32=t.normalizeBech32=t.fromBech32=t.toBase64=t.fromBase64=t.toAscii=t.fromAscii=void 0;var n=r(98085);Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return n.fromAscii}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return n.toAscii}});var i=r(52361);Object.defineProperty(t,"fromBase64",{enumerable:!0,get:function(){return i.fromBase64}}),Object.defineProperty(t,"toBase64",{enumerable:!0,get:function(){return i.toBase64}});var o=r(28013);Object.defineProperty(t,"fromBech32",{enumerable:!0,get:function(){return o.fromBech32}}),Object.defineProperty(t,"normalizeBech32",{enumerable:!0,get:function(){return o.normalizeBech32}}),Object.defineProperty(t,"toBech32",{enumerable:!0,get:function(){return o.toBech32}});var a=r(63995);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return a.fromHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return a.toHex}});var s=r(58905);Object.defineProperty(t,"fromRfc3339",{enumerable:!0,get:function(){return s.fromRfc3339}}),Object.defineProperty(t,"toRfc3339",{enumerable:!0,get:function(){return s.toRfc3339}});var d=r(9545);Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return d.fromUtf8}}),Object.defineProperty(t,"toUtf8",{enumerable:!0,get:function(){return d.toUtf8}})},26600:(e,t,r)=>{"use strict";var n=r(93178);
1if(n)try{n([],"length")}catch(e){n=null}e.exports=n},26671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsgTransferEncodeObject=t.ibcTypes=void 0;let n=r(16750),i=r(21958),o=r(98717),a=r(56769);t.ibcTypes=[["/ibc.applications.transfer.v1.MsgTransfer",n.MsgTransfer],["/ibc.core.channel.v1.MsgAcknowledgement",i.MsgAcknowledgement],["/ibc.core.channel.v1.MsgChannelCloseConfirm",i.MsgChannelCloseConfirm],["/ibc.core.channel.v1.MsgChannelCloseInit",i.MsgChannelCloseInit],["/ibc.core.channel.v1.MsgChannelOpenAck",i.MsgChannelOpenAck],["/ibc.core.channel.v1.MsgChannelOpenConfirm",i.MsgChannelOpenConfirm],["/ibc.core.channel.v1.MsgChannelOpenInit",i.MsgChannelOpenInit],["/ibc.core.channel.v1.MsgChannelOpenTry",i.MsgChannelOpenTry],["/ibc.core.channel.v1.MsgRecvPacket",i.MsgRecvPacket],["/ibc.core.channel.v1.MsgTimeout",i.MsgTimeout],["/ibc.core.channel.v1.MsgTimeoutOnClose",i.MsgTimeoutOnClose],["/ibc.core.client.v1.MsgCreateClient",o.MsgCreateClient],["/ibc.core.client.v1.MsgSubmitMisbehaviour",o.MsgSubmitMisbehaviour],["/ibc.core.client.v1.MsgUpdateClient",o.MsgUpdateClient],["/ibc.core.client.v1.MsgUpgradeClient",o.MsgUpgradeClient],["/ibc.core.connection.v1.MsgConnectionOpenAck",a.MsgConnectionOpenAck],["/ibc.core.connection.v1.MsgConnectionOpenConfirm",a.MsgConnectionOpenConfirm],["/ibc.core.connection.v1.MsgConnectionOpenInit",a.MsgConnectionOpenInit],["/ibc.core.connection.v1.MsgConnectionOpenTry",a.MsgConnectionOpenTry]],t.isMsgTransferEncodeObject=function(e){return"/ibc.applications.transfer.v1.MsgTransfer"===e.typeUrl}},26761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_256=t.SHA512_256=t.sha512_224=t.SHA512_224=t.sha384=t.SHA384=t.sha512=t.SHA512=void 0;let n=r(5559);t.SHA512=n.SHA512,t.sha512=n.sha512,t.SHA384=n.SHA384,t.sha384=n.sha384,t.SHA512_224=n.SHA512_224,t.sha512_224=n.sha512_224,t.SHA512_256=n.SHA512_256,t.sha512_256=n.sha512_256},26926:(e,t,r)=>{"use strict";var n=r(7735),i=r(26600),o=r(43152);e.exports=function(){var e=o();if(n.supportsDescriptors){var t=i(e,"globalThis");(!t||t.configurable&&(t.enumerable||!t.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else("object"!=typeof globalThis||globalThis!==e)&&(e.globalThis=e);return e}},27243:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1HdWallet=t.extractKdfConfiguration=void 0;let n=r(32715),i=r(97470),o=r(25918),a=r(63688),s=r(88598),d=r(30942),l="directsecp256k1hdwallet-v1",c={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12288}};function u(e){return!!(0,a.isNonNullObject)(e)&&"string"==typeof e.hdPath&&"string"==typeof e.prefix}function p(e){return e.kdf}t.extractKdfConfiguration=function(e){let t=JSON.parse(e);if(!(0,a.isNonNullObject)(t))throw Error("Root document is not an object.");if(t.type===l)return p(t);throw Error("Unsupported serialization type")};let f={bip39Password:"",hdPaths:[(0,n.makeCosmoshubPath)(0)],prefix:"cosmos"};class h{static async fromMnemonic(e,t={}){let r=new i.EnglishMnemonic(e),n=await i.Bip39.mnemonicToSeed(r,t.bip39Password);return new h(r,{...t,seed:n})}static async generate(e=12,t={}){let r=4*Math.floor(11*e/33),n=i.Random.getBytes(r),o=i.Bip39.encode(n);return h.fromMnemonic(o.toString(),t)}static async deserialize(e,t){let r=JSON.parse(e);if(!(0,a.isNonNullObject)(r))throw Error("Root document is not an object.");if(r.type===l)return h.deserializeTypeV1(e,t);throw Error("Unsupported serialization type")}static async deserializeWithEncryptionKey(e,t){let r=JSON.parse(e);if(!(0,a.isNonNullObject)(r))throw Error("Root document is not an object.");let n=r;if(n.type===l){let e=await (0,d.decrypt)((0,o.fromBase64)(n.data),t,n.encryption),{mnemonic:r,accounts:s}=JSON.parse((0,o.fromUtf8)(e));if((0,a.assert)("string"==typeof r),!Array.isArray(s))throw Error("Property 'accounts' is not an array");if(!s.every(e=>u(e)))throw Error("Account is not in the correct format.");let l=s[0].prefix;if(!s.every(({prefix:e})=>e===l))throw Error("Accounts do not all have the same prefix");let c=s.map(({hdPath:e})=>(0,i.stringToPath)(e));return h.fromMnemonic(r,{hdPaths:c,prefix:l})}throw Error("Unsupported serialization type")}static async deserializeTypeV1(e,t){let r=JSON.parse(e);if(!(0,a.isNonNullObject)(r))throw Error("Root document is not an object.");let n=await (0,d.executeKdf)(t,r.kdf);return h.deserializeWithEncryptionKey(e,n)}constructor(e,t){let r=t.prefix??f.prefix,n=t.hdPaths??f.hdPaths;this.secret=e,this.seed=t.seed,this.accounts=n.map(e=>({hdPath:e,prefix:r}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:e,pubkey:t,address:r})=>({algo:e,pubkey:t,address:r}))}async signDirect(e,t){let r=(await this.getAccountsWithPrivkeys()).find(({address:t})=>t===e);if(void 0===r)throw Error(`Address ${e} not found in wallet`);let{privkey:o,pubkey:a}=r,d=(0,s.makeSignBytes)(t),l=(0,i.sha256)(d),c=await i.Secp256k1.createSignature(l,o),u=new Uint8Array([...c.r(32),...c.s(32)]);return{signed:t,signature:(0,n.encodeSecp256k1Signature)(a,u)}}async serialize(e){let t=c,r=await (0,d.executeKdf)(e,t);return this.serializeWithEncryptionKey(r,t)}async serializeWithEncryptionKey(e,t){let r={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:e,prefix:t})=>({hdPath:(0,i.pathToString)(e),prefix:t}))},n=(0,o.toUtf8)(JSON.stringify(r)),a={algorithm:d.supportedAlgorithms.xchacha20poly1305Ietf},s=await (0,d.encrypt)(n,e,a);return JSON.stringify({type:l,kdf:t,encryption:a,data:(0,o.toBase64)(s)})}async getKeyPair(e){let{privkey:t}=i.Slip10.derivePath(i.Slip10Curve.Secp256k1,this.seed,e),{pubkey:r}=await i.Secp256k1.makeKeypair(t);return{privkey:t,pubkey:i.Secp256k1.compressPubkey(r)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:e,prefix:t})=>{let{privkey:r,pubkey:i}=await this.getKeyPair(e),a=(0,o.toBech32)(t,(0,n.rawSecp256k1PubkeyToRawAddress)(i));return{algo:"secp256k1",privkey:r,pubkey:i,address:a}}))}}t.DirectSecp256k1HdWallet=h},27511:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.jsonRpcCode=t.isJsonRpcSuccessResponse=t.isJsonRpcErrorResponse=t.parseJsonRpcSuccessResponse=t.parseJsonRpcResponse=t.parseJsonRpcRequest=t.parseJsonRpcId=t.parseJsonRpcErrorResponse=t.JsonRpcClient=t.makeJsonRpcId=void 0;var n=r(17188);Object.defineProperty(t,"makeJsonRpcId",{enumerable:!0,get:function(){return n.makeJsonRpcId}});var i=r(56097);Object.defineProperty(t,"JsonRpcClient",{enumerable:!0,get:function(){return i.JsonRpcClient}});var o=r(72788);Object.defineProperty(t,"parseJsonRpcErrorResponse",{enumerable:!0,get:function(){return o.parseJsonRpcErrorResponse}}),Object.defineProperty(t,"parseJsonRpcId",{enumerable:!0,get:function(){return o.parseJsonRpcId}}),Object.defineProperty(t,"parseJsonRpcRequest",{enumerable:!0,get:function(){return o.parseJsonRpcRequest}}),Object.defineProperty(t,"parseJsonRpcResponse",{enumerable:!0,get:function(){return o.parseJsonRpcResponse}}),Object.defineProperty(t,"parseJsonRpcSuccessResponse",{enumerable:!0,get:function(){return o.parseJsonRpcSuccessResponse}});var a=r(14882);Object.defineProperty(t,"isJsonRpcErrorResponse",{enumerable:!0,get:function(){return a.isJsonRpcErrorResponse}}),Object.defineProperty(t,"isJsonRpcSuccessResponse",{enumerable:!0,get:function(){return a.isJsonRpcSuccessResponse}}),Object.defineProperty(t,"jsonRpcCode",{enumerable:!0,get:function(){return a.jsonRpcCode}})},27549:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.http=void 0;let i=n(r(81379));function o(e){if(e.status>=400)throw Error(`Bad status on response: ${e.status}`);return e}function a(e){return e.toString().includes("emitExperimentalWarning")}t.http=async function(e,t,r,n){return"function"!=typeof fetch||a(fetch)?i.default.request({url:t,method:e,data:n,headers:r}).then(e=>e.data):fetch(t,{method:e,body:n?JSON.stringify(n):void 0,headers:{"Content-Type":"application/json",...r}}).then(o).then(e=>e.json())}},27601:(e,t,r)=>{"use strict";var n=r(75687),i=r(23071),o=r(95488),a=o.assert,s=o.parseBytes,d=r(21906),l=r(23711);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),d=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:d,Rencoded:o})},c.prototype.verify=function(e,t,r){if(e=s(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return d.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return d.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=128*!!e.getX().isOdd(),t},c.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return o.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},27924:(e,t,r)=>{var n="/",i=r(40459);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
1d for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,d;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))d=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";d=`The "${e}" ${r} ${s} ${n(t,"type")}`}return d+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=r(709),a=r(337);r(782)(c,o);for(var s=n(a.prototype),d=0;d<s.length;d++){var l=s[d];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||i.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=B,B.ReadableState=I,n(361).EventEmitter;var o,a,s,d,l,c=function(e,t){return e.listeners(t).length},u=n(678),p=n(300).Buffer,f=r.g.Uint8Array||function(){};function h(e){return p.from(e)}function g(e){return p.isBuffer(e)||e instanceof f}var m=n(837);a=m&&m.debuglog?m.debuglog("stream"):function(){};var y=n(379),b=n(25),v=n(776).getHighWaterMark,S=n(646).q,A=S.ERR_INVALID_ARG_TYPE,w=S.ERR_STREAM_PUSH_AFTER_EOF,_=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(B,u);var k=b.errorOrDestroy,R=["error","close","destroy","pause","resume"];function O(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 22,521 bytes, line 1
1ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function I(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new y,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&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function B(e){if(o=o||n(403),!(this instanceof B))return new B(e);var t=this instanceof o;this._readableState=new I(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function x(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,U(e,s);else if(i||(o=T(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=h(t)),n)s.endEmitted?k(e,new P):E(e,s,t,!0);else if(s.ended)k(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?E(e,s,t,!1):H(e,s)):E(e,s,t,!1)}else n||(s.reading=!1,H(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function E(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&D(e)),H(e,t)}function T(e,t){var r;return g(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new A("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),B.prototype.destroy=b.destroy,B.prototype._undestroy=b.undestroy,B.prototype._destroy=function(e,t){t(e)},B.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},B.prototype.unshift=function(e){return x(this,e,null,!0,!1)},B.prototype.isPaused=function(){return!1===this._readableState.flowing},B.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var N=0x40000000;function C(e){return e>=N?e=N:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=C(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function U(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,J(e)))}}function D(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(J,e))}function J(e){var t=e._readableState;a("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,Q(e)}function H(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(V,e,t))}function V(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,Q(e))}}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){a("readable nexttick read 0"),e.read(0)}function F(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(W,e,t))}function W(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Q(e),t.flowing&&!t.reading&&e.read(0)}function Q(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function G(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function z(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(K,t,e))}function K(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}B.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?z(this):D(this),null;if(0===(e=M(e,r))&&r.ended)return 0===r.length&&z(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=M(n,r))),null===(t=e>0?G(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&z(this)),null!==t&&this.emit("data",t),t},B.prototype._read=function(e){k(this,new _("_read()"))},B.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:d;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function d(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var l=q(r);e.on("drain",l);var u=!1;function p(){a("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",d),r.removeListener("end",y),r.removeListener("data",f),u=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Y(n.pipes,e))&&!u&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){a("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&k(e,t)}function g(){e.removeListener("finish",m),y()}function m(){a("onfinish"),e.removeListener("close",g),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",f),O(e,"error",h),e.once("close",g),e.once("finish",m),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},B.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Y(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},B.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?D(this):n.reading||i.nextTick(j,this)),r},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(e,t){var r=u.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(L,this),r},B.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(L,this),t},B.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,F(this,e)),e.paused=!1,this},B.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},B.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<R.length;o++)e.on(R[o],this.emit.bind(this,R[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(B.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(871)),d(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),B._fromList=G,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(B.from=function(e,t){return void 0===l&&(l=n(727)),l(B,e,t)})},170:function(e,t,r){"use strict";e.exports=c;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,d=r(403);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);d.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function u(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(c,d),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,d.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){d.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W(t,e)}}e.exports=I,I.WritableState=O;var a,s,d={deprecate:n(769)},l=n(678),c=n(300).Buffer,u=r.g.Uint8Array||function(){};function p(e){return c.from(e)}function f(e){return c.isBuffer(e)||e instanceof u}var h=n(25),g=n(776).getHighWaterMark,m=n(646).q,y=m.ERR_INVALID_ARG_TYPE,b=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_MULTIPLE_CALLBACK,S=m.ERR_STREAM_CANNOT_PIPE,A=m.ERR_STREAM_DESTROYED,w=m.ERR_STREAM_NULL_VALUES,_=m.ERR_STREAM_WRITE_AFTER_END,P=m.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function R(){}function O(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){U(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 o(this)}function I(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(I,this))return new I(e);this._writableState=new O(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)),l.call(this)}function B(e,t){var r=new _;k(e,r),i.nextTick(t,r)}function x(e,t,r,n){var o;return null===r?o=new w:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(k(e,o),i.nextTick(n,o),!1)}function E(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function T(e,t,r,n,i,o){if(!r){var a=E(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var d=t.length<t.highWaterMark;if(d||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else N(e,t,!1,s,n,i,o);return d}function N(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new A("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function C(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(j,e,t),e._writableState.errorEmitted=!0,k(e,n)):(o(n),e._writableState.errorEmitted=!0,k(e,n),j(e,t))}function M(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function U(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(M(r),t)C(e,r,n,t,o);else{var a=V(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||H(e,r),n?i.nextTick(D,e,r,a,o):D(e,r,a,o)}}function D(e,t,r,n){r||J(e,t),t.pendingcb--,n(),j(e,t)}function J(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function H(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,N(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 o(t),t.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,l=r.encoding,c=r.callback,u=t.objectMode?1:d.length;if(N(e,t,!1,u,d,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function V(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)})}function L(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(q,e,t)))}function j(e,t){var r=V(t);if(r&&(L(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function F(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function W(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(I,l),O.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(O.prototype,"buffer",{get:d.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]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===I&&e&&e._writableState instanceof O}})):s=function(e){return e instanceof this},I.prototype.pipe=function(){k(this,new S)},I.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&f(e);return o&&!c.isBuffer(e)&&(e=p(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=R),n.ending?B(this,r):(o||x(this,n,e,r))&&(n.pendingcb++,i=T(this,n,o,e,t,r)),i},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||H(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new P(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,r){r(new b("_write()"))},I.prototype._writev=null,I.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||F(this,n,r),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=h.destroy,I.prototype._undestroy=h.undestroy,I.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),d=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),p=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[u]=null,e[s]=null,e[d]=null,t(h(r,!1)))}}function m(e){i.nextTick(g,e)}function y(e,t){return function(r,n){e.then(function(){if(t[c])return void r(h(void 0,!0));t[p](r,n)},n)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[f]},next:function(){var e,t=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[l]?r(t[l]):e(h(void 0,!0))})});var n=this[u];if(n)e=new Promise(y(n,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(h(o,!1));e=new Promise(this[p])}return this[u]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e)return void r(e);t(h(void 0,!0))})})}),o),b);e.exports=function(e){var t,r=Object.create(v,(n(t={},f,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,d,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,p,{value:function(e,t){var n=r[f].read();n?(r[u]=null,r[s]=null,r[d]=null,e(h(n,!1))):(r[s]=e,r[d]=t)},writable:!0}),t));return r[u]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[d];null!==t&&(r[u]=null,r[s]=null,r[d]=null,t(e)),r[l]=e;return}var n=r[s];null!==n&&(r[u]=null,r[s]=null,r[d]=null,n(h(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 4,150 bytes, line 1
1t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var l=r(300).Buffer,c=r(837).inspect,u=c&&c.custom||"inspect";function p(e,t,r){l.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return d(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?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,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t=l.allocUnsafe(e>>>0),r=this.head,n=0;r;)p(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return c(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return s||d?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.nextTick(r,a):(a._writableState.errorEmitted=!0,i.nextTick(t,a,e)):i.nextTick(t,a,e):o?(i.nextTick(r,a),o(e)):i.nextTick(r,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 r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";
1var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var d=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||p()},u=e._writableState&&e._writableState.finished,p=function(){l=!1,u=!0,d||r.call(e)},f=e._readableState&&e._readableState.endEmitted,h=function(){d=!1,f=!0,l||r.call(e)},g=function(t){r.call(e,t)},m=function(){var t;return d&&!f?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):l&&!u?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",p)};return a(e)?(e.on("complete",p),e.on("abort",m),e.req?y():e.on("request",y)):l&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",h),e.on("finish",p),!1!==t.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",p),e.removeListener("abort",m),e.removeListener("request",y),e.req&&e.req.removeListener("finish",p),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",p),e.removeListener("end",h),e.removeListener("error",g),e.removeListener("close",m)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),d=s.value}catch(e){r(e);return}s.done?t(d):Promise.resolve(d).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,d,"next",e)}function d(e){n(a,i,o,s,d,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new d("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function l(){return c.apply(this,arguments)}function c(){return(c=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?l():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,l())},o}},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function d(e){if(e)throw e}function l(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,o,a){a=n(a);var d=!1;e.on("close",function(){d=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);d=!0,a()});var c=!1;return function(t){if(!d&&!c){if(c=!0,l(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function u(e){e()}function p(e,t){return e.pipe(t)}function f(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():d}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=f(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return c(t,a,n>0,function(t){e||(e=t),t&&o.forEach(u),a||(o.forEach(u),i(e))})});return r.reduce(p)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);
vendor: 5,665 bytes, line 1
1if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",d));var a=!1;function s(){a||(a=!0,e.end())}function d(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",d),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)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}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=g,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=m,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function d(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var i=d(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=d(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=d(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function u(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(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 v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=f,s.prototype.text=p,s.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}},769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
1e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},300:function(e){"use strict";e.exports=r(60996)},361:function(e){"use strict";e.exports=r(88636)},781:function(e){"use strict";e.exports=r(88636).EventEmitter},837:function(e){"use strict";e.exports=r(38238)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/",e.exports=a(173)}()},28013:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeBech32=t.fromBech32=t.toBech32=void 0;let a=o(r(97321));function s(e,t,r){return a.encode(e,a.toWords(t),r)}function d(e,t=1/0){let r=a.decode(e,t);return{prefix:r.prefix,data:new Uint8Array(a.fromWords(r.words))}}t.toBech32=s,t.fromBech32=d,t.normalizeBech32=function(e){let{prefix:t,data:r}=d(e);return s(t,r)}},28014:(e,t,r)=>{"use strict";r.d(t,{Lm:()=>a,Lo:()=>s,X_:()=>m,ZG:()=>f,c$:()=>c,f:()=>d,nx:()=>g,pO:()=>p,q5:()=>o,xW:()=>u});var n=r(42984);function i(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.length%2==0&&e.match(/^0x[0-9a-f]*$/i)){let t=new Uint8Array((e.length-2)/2),r=2;for(let n=0;n<t.length;n++)t[n]=parseInt(e.substring(r,r+2),16),r+=2;return t}(0,n.MR)(!1,"invalid BytesLike value",t||"value",e)}function o(e,t){return i(e,t,!1)}function a(e,t){return i(e,t,!0)}function s(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&("number"!=typeof t||e.length===2+2*t)&&(!0!==t||e.length%2==0)}function d(e){return s(e,!0)||e instanceof Uint8Array}let l="0123456789abcdef";function c(e){let t=o(e),r="0x";for(let e=0;e<t.length;e++){let n=t[e];r+=l[(240&n)>>4]+l[15&n]}return r}function u(e){return"0x"+e.map(e=>c(e).substring(2)).join("")}function p(e){return s(e,!0)?(e.length-2)/2:o(e).length}function f(e,t,r){let i=o(e);return null!=r&&r>i.length&&(0,n.vA)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:i,length:i.length,offset:r}),c(i.slice(null==t?0:t,null==r?i.length:r))}function h(e,t,r){let i=o(e);(0,n.vA)(t>=i.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(i),length:t,offset:t+1});let a=new Uint8Array(t);return a.fill(0),r?a.set(i,t-i.length):a.set(i,0),c(a)}function g(e,t){return h(e,t,!0)}function m(e,t){return h(e,t,!1)}},28355:(e,t,r)=>{"use strict";var n=r(6257),i=r(13309),o=n.rotl32,a=n.sum32,s=n.sum32_3,d=n.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function u(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function p(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function f(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}n.inherits(c,l),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],b=r,v=n,S=i,A=l,w=c,_=0;_<80;_++){var P=a(o(d(r,u(_,n,i,l),e[h[_]+t],p(_)),m[_]),c);r=c,c=l,l=o(i,10),i=n,n=P,P=a(o(d(b,u(79-_,v,S,A),e[g[_]+t],f(_)),y[_]),w),b=w,w=A,A=o(S,10),S=v,v=P}P=s(this.h[1],i,A),this.h[1]=s(this.h[2],l,w),this.h[2]=s(this.h[3],c,b),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,S),this.h[0]=P},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.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],g=[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]},28879:(e,t,r)=>{"use strict";var n=r(69395),i=r(51334)(/^\s*(?:function)?\*/),o=r(94719)(),a=r(64431),s=n("Object.prototype.toString"),d=n("Function.prototype.toString"),l=r(8398);e.exports=function(e){if("function"!=typeof e)return!1;if(i(d(e)))return!0;
1if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=l();return t&&a(e)===t.prototype}},29179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMultisigThresholdPubkey=t.compareArrays=void 0;let n=r(25918),i=r(73297),o=r(35559);function a(e,t){let r=(0,n.toHex)(e),i=(0,n.toHex)(t);return r===i?0:r<i?-1:1}t.compareArrays=a,t.createMultisigThresholdPubkey=function(e,t,r=!1){let n=new i.Uint53(t);if(n.toNumber()>e.length)throw Error(`Threshold k = ${n.toNumber()} exceeds number of keys n = ${e.length}`);let s=r?e:Array.from(e).sort((e,t)=>a((0,o.pubkeyToRawAddress)(e),(0,o.pubkeyToRawAddress)(t)));return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:n.toString(),pubkeys:s}}}},29303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupBankExtension=void 0;let n=r(63688),i=r(87774),o=r(51324);t.setupBankExtension=function(e){let t=(0,o.createProtobufRpcClient)(e),r=new i.QueryClientImpl(t);return{bank:{balance:async(e,t)=>{let{balance:i}=await r.Balance({address:e,denom:t});return(0,n.assert)(i),i},allBalances:async e=>{let{balances:t}=await r.AllBalances(i.QueryAllBalancesRequest.fromPartial({address:e}));return t},totalSupply:async e=>await r.TotalSupply({pagination:(0,o.createPagination)(e)}),supplyOf:async e=>{let{amount:t}=await r.SupplyOf({denom:e});return(0,n.assert)(t),t},denomMetadata:async e=>{let{metadata:t}=await r.DenomMetadata({denom:e});return(0,n.assert)(t),t},denomsMetadata:async()=>{let{metadatas:e}=await r.DenomsMetadata(i.QueryDenomsMetadataRequest.fromPartial({pagination:void 0}));return e}}}}},29588:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Int53=t.Uint32=void 0;let i=n(r(95163)),o=new i.default("18446744073709551615",10,"be");class a{static fromBigEndianBytes(e){return a.fromBytes(e)}static fromBytes(e,t="be"){if(4!==e.length)throw Error("Invalid input length. Expected 4 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw Error("Invalid value in byte. Found: "+e[t]);let r="be"===t?e:Array.from(e).reverse();return new a(0x1000000*r[0]+65536*r[1]+256*r[2]+r[3])}static fromString(e){if(!e.match(/^[0-9]+$/))throw Error("Invalid string format");return new a(Number.parseInt(e,10))}constructor(e){if(Number.isNaN(e))throw Error("Input is not a number");if(!Number.isInteger(e))throw Error("Input is not an integer");if(e<0||e>0xffffffff)throw Error("Input not in uint32 range: "+e.toString());this.data=e}toBytesBigEndian(){return new Uint8Array([255&Math.floor(this.data/0x1000000),255&Math.floor(this.data/65536),255&Math.floor(this.data/256),255&Math.floor(this.data/1)])}toBytesLittleEndian(){return new Uint8Array([255&Math.floor(this.data/1),255&Math.floor(this.data/256),255&Math.floor(this.data/65536),255&Math.floor(this.data/0x1000000)])}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}t.Uint32=a;class s{static fromString(e){if(!e.match(/^-?[0-9]+$/))throw Error("Invalid string format");return new s(Number.parseInt(e,10))}constructor(e){if(Number.isNaN(e))throw Error("Input is not a number");if(!Number.isInteger(e))throw Error("Input is not an integer");if(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER)throw Error("Input not in int53 range: "+e.toString());this.data=e}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}t.Int53=s;class d{static fromString(e){return new d(s.fromString(e).toNumber())}constructor(e){let t=new s(e);if(0>t.toNumber())throw Error("Input is negative");this.data=t}toNumber(){return this.data.toNumber()}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}t.Uint53=d;class l{static fromBytesBigEndian(e){return l.fromBytes(e)}static fromBytes(e,t="be"){if(8!==e.length)throw Error("Invalid input length. Expected 8 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw Error("Invalid value in byte. Found: "+e[t]);let r="be"===t?Array.from(e):Array.from(e).reverse();return new l(new i.default(r))}static fromString(e){if(!e.match(/^[0-9]+$/))throw Error("Invalid string format");return new l(new i.default(e,10,"be"))}static fromNumber(e){let t;if(Number.isNaN(e))throw Error("Input is not a number");if(!Number.isInteger(e))throw Error("Input is not an integer");try{t=new i.default(e)}catch{throw Error("Input is not a safe integer")}return new l(t)}constructor(e){if(e.isNeg())throw Error("Input is negative");if(e.gt(o))throw Error("Input exceeds uint64 range");this.data=e}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toBigInt(){return BigInt(this.toString())}toNumber(){return this.data.toNumber()}}t.Uint64=l},29940:(e,t,r)=>{"use strict";var n,i;
1Object.defineProperty(t,"__esModule",{value:!0}),t.ValidatorUpdates=t.Pool=t.RedelegationResponse=t.RedelegationEntryResponse=t.DelegationResponse=t.Params=t.Redelegation=t.RedelegationEntry=t.UnbondingDelegationEntry=t.UnbondingDelegation=t.Delegation=t.DVVTriplets=t.DVVTriplet=t.DVPairs=t.DVPair=t.ValAddresses=t.Validator=t.Description=t.Commission=t.CommissionRates=t.HistoricalInfo=t.infractionToJSON=t.infractionFromJSON=t.Infraction=t.bondStatusToJSON=t.bondStatusFromJSON=t.BondStatus=t.protobufPackage=void 0;let o=r(58887),a=r(37375),s=r(54573),d=r(19393),l=r(91794),c=r(18341),u=r(4696),p=r(92242);function f(e){switch(e){case 0:case"BOND_STATUS_UNSPECIFIED":return n.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return n.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return n.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return n.BOND_STATUS_BONDED;default:return n.UNRECOGNIZED}}function h(e){switch(e){case n.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case n.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case n.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case n.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(){return{header:o.Header.fromPartial({}),valset:[]}}function m(){return{rate:"",maxRate:"",maxChangeRate:""}}function y(){return{commissionRates:t.CommissionRates.fromPartial({}),updateTime:a.Timestamp.fromPartial({})}}function b(){return{moniker:"",identity:"",website:"",securityContact:"",details:""}}function v(){return{operatorAddress:"",consensusPubkey:void 0,jailed:!1,status:0,tokens:"",delegatorShares:"",description:t.Description.fromPartial({}),unbondingHeight:BigInt(0),unbondingTime:a.Timestamp.fromPartial({}),commission:t.Commission.fromPartial({}),minSelfDelegation:"",unbondingOnHoldRefCount:BigInt(0),unbondingIds:[]}}function S(){return{addresses:[]}}function A(){return{delegatorAddress:"",validatorAddress:""}}function w(){return{pairs:[]}}function _(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""}}function P(){return{triplets:[]}}function k(){return{delegatorAddress:"",validatorAddress:"",shares:""}}function R(){return{delegatorAddress:"",validatorAddress:"",entries:[]}}function O(){return{creationHeight:BigInt(0),completionTime:a.Timestamp.fromPartial({}),initialBalance:"",balance:"",unbondingId:BigInt(0),unbondingOnHoldRefCount:BigInt(0)}}function I(){return{creationHeight:BigInt(0),completionTime:a.Timestamp.fromPartial({}),initialBalance:"",sharesDst:"",unbondingId:BigInt(0),unbondingOnHoldRefCount:BigInt(0)}}function B(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",entries:[]}}function x(){return{unbondingTime:d.Duration.fromPartial({}),maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:"",minCommissionRate:""}}function E(){return{delegation:t.Delegation.fromPartial({}),balance:l.Coin.fromPartial({})}}function T(){return{redelegationEntry:t.RedelegationEntry.fromPartial({}),balance:""}}function N(){return{redelegation:t.Redelegation.fromPartial({}),entries:[]}}function C(){return{notBondedTokens:"",bondedTokens:""}}function M(){return{updates:[]}}t.protobufPackage="cosmos.staking.v1beta1",function(e){e[e.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",e[e.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",e[e.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",e[e.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.BondStatus=n={})),t.bondStatusFromJSON=f,t.bondStatusToJSON=h,function(e){e[e.INFRACTION_UNSPECIFIED=0]="INFRACTION_UNSPECIFIED",e[e.INFRACTION_DOUBLE_SIGN=1]="INFRACTION_DOUBLE_SIGN",e[e.INFRACTION_DOWNTIME=2]="INFRACTION_DOWNTIME",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(t.Infraction=i={})),t.infractionFromJSON=function(e){switch(e){case 0:case"INFRACTION_UNSPECIFIED":return i.INFRACTION_UNSPECIFIED;case 1:case"INFRACTION_DOUBLE_SIGN":return i.INFRACTION_DOUBLE_SIGN;case 2:case"INFRACTION_DOWNTIME":return i.INFRACTION_DOWNTIME;default:return i.UNRECOGNIZED}},t.infractionToJSON=function(e){switch(e){case i.INFRACTION_UNSPECIFIED:return"INFRACTION_UNSPECIFIED";case i.INFRACTION_DOUBLE_SIGN:return"INFRACTION_DOUBLE_SIGN";case i.INFRACTION_DOWNTIME:return"INFRACTION_DOWNTIME";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}},t.HistoricalInfo={typeUrl:"/cosmos.staking.v1beta1.HistoricalInfo",encode(e,r=u.BinaryWriter.create()){for(let n of(void 0!==e.header&&o.Header.encode(e.header,r.uint32(10).fork()).ldelim(),e.valset))t.Validator.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=g();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.header=o.Header.decode(n,n.uint32());break;case 2:a.valset.push(t.Validator.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=g();return(0,p.isSet)(e.header)&&(r.header=o.Header.fromJSON(e.header)),Array.isArray(e?.valset)&&(r.valset=e.valset.map(e=>t.Validator.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.header&&(r.header=e.header?o.Header.toJSON(e.header):void 0),e.valset?r.valset=e.valset.map(e=>e?t.Validator.toJSON(e):void 0):r.valset=[],r},fromPartial(e){let r=g();return void 0!==e.header&&null!==e.header&&(r.header=o.Header.fromPartial(e.header)),r.valset=e.valset?.map(e=>t.Validator.fromPartial(e))||[],r}},t.CommissionRates={typeUrl:"/cosmos.staking.v1beta1.CommissionRates",encode:(e,t=u.BinaryWriter.create())=>(""!==e.rate&&t.uint32(10).string(e.rate),""!==e.maxRate&&t.uint32(18).string(e.maxRate),""!==e.maxChangeRate&&t.uint32(26).string(e.maxChangeRate),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.rate=r.string();break;case 2:i.maxRate=r.string();break;case 3:i.maxChangeRate=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,p.isSet)(e.rate)&&(t.rate=String(e.rate)),(0,p.isSet)(e.maxRate)&&(t.maxRate=String(e.maxRate)),(0,p.isSet)(e.maxChangeRate)&&(t.maxChangeRate=String(e.maxChangeRate)),t},toJSON(e){let t={};return void 0!==e.rate&&(t.rate=e.rate),void 0!==e.maxRate&&(t.maxRate=e.maxRate),void 0!==e.maxChangeRate&&(t.maxChangeRate=e.maxChangeRate),t},fromPartial(e){let t=m();return t.rate=e.rate??"",t.maxRate=e.maxRate??"",t.maxChangeRate=e.maxChangeRate??"",t}},t.Commission={typeUrl:"/cosmos.staking.v1beta1.Commission",encode:(e,r=u.BinaryWriter.create())=>(void 0!==e.commissionRates&&t.CommissionRates.encode(e.commissionRates,r.uint32(10).fork()).ldelim(),void 0!==e.updateTime&&a.Timestamp.encode(e.updateTime,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=y();for(;n.pos<i;){let e=n.uint32();switch(e>>>
13){case 1:o.commissionRates=t.CommissionRates.decode(n,n.uint32());break;case 2:o.updateTime=a.Timestamp.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=y();return(0,p.isSet)(e.commissionRates)&&(r.commissionRates=t.CommissionRates.fromJSON(e.commissionRates)),(0,p.isSet)(e.updateTime)&&(r.updateTime=(0,p.fromJsonTimestamp)(e.updateTime)),r},toJSON(e){let r={};return void 0!==e.commissionRates&&(r.commissionRates=e.commissionRates?t.CommissionRates.toJSON(e.commissionRates):void 0),void 0!==e.updateTime&&(r.updateTime=(0,p.fromTimestamp)(e.updateTime).toISOString()),r},fromPartial(e){let r=y();return void 0!==e.commissionRates&&null!==e.commissionRates&&(r.commissionRates=t.CommissionRates.fromPartial(e.commissionRates)),void 0!==e.updateTime&&null!==e.updateTime&&(r.updateTime=a.Timestamp.fromPartial(e.updateTime)),r}},t.Description={typeUrl:"/cosmos.staking.v1beta1.Description",encode:(e,t=u.BinaryWriter.create())=>(""!==e.moniker&&t.uint32(10).string(e.moniker),""!==e.identity&&t.uint32(18).string(e.identity),""!==e.website&&t.uint32(26).string(e.website),""!==e.securityContact&&t.uint32(34).string(e.securityContact),""!==e.details&&t.uint32(42).string(e.details),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.moniker=r.string();break;case 2:i.identity=r.string();break;case 3:i.website=r.string();break;case 4:i.securityContact=r.string();break;case 5:i.details=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,p.isSet)(e.moniker)&&(t.moniker=String(e.moniker)),(0,p.isSet)(e.identity)&&(t.identity=String(e.identity)),(0,p.isSet)(e.website)&&(t.website=String(e.website)),(0,p.isSet)(e.securityContact)&&(t.securityContact=String(e.securityContact)),(0,p.isSet)(e.details)&&(t.details=String(e.details)),t},toJSON(e){let t={};return void 0!==e.moniker&&(t.moniker=e.moniker),void 0!==e.identity&&(t.identity=e.identity),void 0!==e.website&&(t.website=e.website),void 0!==e.securityContact&&(t.securityContact=e.securityContact),void 0!==e.details&&(t.details=e.details),t},fromPartial(e){let t=b();return t.moniker=e.moniker??"",t.identity=e.identity??"",t.website=e.website??"",t.securityContact=e.securityContact??"",t.details=e.details??"",t}},t.Validator={typeUrl:"/cosmos.staking.v1beta1.Validator",encode(e,r=u.BinaryWriter.create()){for(let n of(""!==e.operatorAddress&&r.uint32(10).string(e.operatorAddress),void 0!==e.consensusPubkey&&s.Any.encode(e.consensusPubkey,r.uint32(18).fork()).ldelim(),!0===e.jailed&&r.uint32(24).bool(e.jailed),0!==e.status&&r.uint32(32).int32(e.status),""!==e.tokens&&r.uint32(42).string(e.tokens),""!==e.delegatorShares&&r.uint32(50).string(e.delegatorShares),void 0!==e.description&&t.Description.encode(e.description,r.uint32(58).fork()).ldelim(),e.unbondingHeight!==BigInt(0)&&r.uint32(64).int64(e.unbondingHeight),void 0!==e.unbondingTime&&a.Timestamp.encode(e.unbondingTime,r.uint32(74).fork()).ldelim(),void 0!==e.commission&&t.Commission.encode(e.commission,r.uint32(82).fork()).ldelim(),""!==e.minSelfDelegation&&r.uint32(90).string(e.minSelfDelegation),e.unbondingOnHoldRefCount!==BigInt(0)&&r.uint32(96).int64(e.unbondingOnHoldRefCount),r.uint32(106).fork(),e.unbondingIds))r.uint64(n);return r.ldelim(),r},decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=v();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.operatorAddress=n.string();break;case 2:o.consensusPubkey=s.Any.decode(n,n.uint32());break;case 3:o.jailed=n.bool();break;case 4:o.status=n.int32();break;case 5:o.tokens=n.string();break;case 6:o.delegatorShares=n.string();break;case 7:o.description=t.Description.decode(n,n.uint32());break;case 8:o.unbondingHeight=n.int64();break;case 9:o.unbondingTime=a.Timestamp.decode(n,n.uint32());break;case 10:o.commission=t.Commission.decode(n,n.uint32());break;case 11:o.minSelfDelegation=n.string();break;case 12:o.unbondingOnHoldRefCount=n.int64();break;case 13:if((7&e)==2){let e=n.uint32()+n.pos;for(;n.pos<e;)o.unbondingIds.push(n.uint64())}else o.unbondingIds.push(n.uint64());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=v();return(0,p.isSet)(e.operatorAddress)&&(r.operatorAddress=String(e.operatorAddress)),(0,p.isSet)(e.consensusPubkey)&&
1(r.consensusPubkey=s.Any.fromJSON(e.consensusPubkey)),(0,p.isSet)(e.jailed)&&(r.jailed=!!e.jailed),(0,p.isSet)(e.status)&&(r.status=f(e.status)),(0,p.isSet)(e.tokens)&&(r.tokens=String(e.tokens)),(0,p.isSet)(e.delegatorShares)&&(r.delegatorShares=String(e.delegatorShares)),(0,p.isSet)(e.description)&&(r.description=t.Description.fromJSON(e.description)),(0,p.isSet)(e.unbondingHeight)&&(r.unbondingHeight=BigInt(e.unbondingHeight.toString())),(0,p.isSet)(e.unbondingTime)&&(r.unbondingTime=(0,p.fromJsonTimestamp)(e.unbondingTime)),(0,p.isSet)(e.commission)&&(r.commission=t.Commission.fromJSON(e.commission)),(0,p.isSet)(e.minSelfDelegation)&&(r.minSelfDelegation=String(e.minSelfDelegation)),(0,p.isSet)(e.unbondingOnHoldRefCount)&&(r.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),Array.isArray(e?.unbondingIds)&&(r.unbondingIds=e.unbondingIds.map(e=>BigInt(e.toString()))),r},toJSON(e){let r={};return void 0!==e.operatorAddress&&(r.operatorAddress=e.operatorAddress),void 0!==e.consensusPubkey&&(r.consensusPubkey=e.consensusPubkey?s.Any.toJSON(e.consensusPubkey):void 0),void 0!==e.jailed&&(r.jailed=e.jailed),void 0!==e.status&&(r.status=h(e.status)),void 0!==e.tokens&&(r.tokens=e.tokens),void 0!==e.delegatorShares&&(r.delegatorShares=e.delegatorShares),void 0!==e.description&&(r.description=e.description?t.Description.toJSON(e.description):void 0),void 0!==e.unbondingHeight&&(r.unbondingHeight=(e.unbondingHeight||BigInt(0)).toString()),void 0!==e.unbondingTime&&(r.unbondingTime=(0,p.fromTimestamp)(e.unbondingTime).toISOString()),void 0!==e.commission&&(r.commission=e.commission?t.Commission.toJSON(e.commission):void 0),void 0!==e.minSelfDelegation&&(r.minSelfDelegation=e.minSelfDelegation),void 0!==e.unbondingOnHoldRefCount&&(r.unbondingOnHoldRefCount=(e.unbondingOnHoldRefCount||BigInt(0)).toString()),e.unbondingIds?r.unbondingIds=e.unbondingIds.map(e=>(e||BigInt(0)).toString()):r.unbondingIds=[],r},fromPartial(e){let r=v();return r.operatorAddress=e.operatorAddress??"",void 0!==e.consensusPubkey&&null!==e.consensusPubkey&&(r.consensusPubkey=s.Any.fromPartial(e.consensusPubkey)),r.jailed=e.jailed??!1,r.status=e.status??0,r.tokens=e.tokens??"",r.delegatorShares=e.delegatorShares??"",void 0!==e.description&&null!==e.description&&(r.description=t.Description.fromPartial(e.description)),void 0!==e.unbondingHeight&&null!==e.unbondingHeight&&(r.unbondingHeight=BigInt(e.unbondingHeight.toString())),void 0!==e.unbondingTime&&null!==e.unbondingTime&&(r.unbondingTime=a.Timestamp.fromPartial(e.unbondingTime)),void 0!==e.commission&&null!==e.commission&&(r.commission=t.Commission.fromPartial(e.commission)),r.minSelfDelegation=e.minSelfDelegation??"",void 0!==e.unbondingOnHoldRefCount&&null!==e.unbondingOnHoldRefCount&&(r.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),r.unbondingIds=e.unbondingIds?.map(e=>BigInt(e.toString()))||[],r}},t.ValAddresses={typeUrl:"/cosmos.staking.v1beta1.ValAddresses",encode(e,t=u.BinaryWriter.create()){for(let r of e.addresses)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.addresses.push(r.string()):r.skipType(7&e)}return i},fromJSON(e){let t=S();return Array.isArray(e?.addresses)&&(t.addresses=e.addresses.map(e=>String(e))),t},toJSON(e){let t={};return e.addresses?t.addresses=e.addresses.map(e=>e):t.addresses=[],t},fromPartial(e){let t=S();return t.addresses=e.addresses?.map(e=>e)||[],t}},t.DVPair={typeUrl:"/cosmos.staking.v1beta1.DVPair",encode:(e,t=u.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=A();return(0,p.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,p.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=A();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t}},t.DVPairs={typeUrl:"/cosmos.staking.v1beta1.DVPairs",encode(e,r=u.BinaryWriter.create()){for(let n of e.pairs)t.DVPair.encode(n,r.uint32(10).fork()).ldelim();return r},decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=w();for(;n.pos<i;){let e=n.uint32();e>>>3==1?o.pairs.push(t.DVPair.decode(n,n.uint32())):n.skipType(7&e)}return o},fromJSON(e){let r=w();return Array.isArray(e?.pairs)&&(r.pairs=e.pairs.map(e=>t.DVPair.fromJSON(e))),r},toJSON(e){let r={};return e.pairs?r.pairs=e.pairs.map(e=>e?t.DVPair.toJSON(e):void 0):r.pairs=[],r},fromPartial(e){let r=w();return r.pairs=e.pairs?.map(e=>t.DVPair.fromPartial(e))||[],r}},t.DVVTriplet={typeUrl:"/cosmos.staking.v1beta1.DVVTriplet",encode:(e,t=u.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&t.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&t.uint32(26).string(e.validatorDstAddress),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorSrcAddress=r.string();break;case 3:i.validatorDstAddress=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=_();return(0,p.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,p.isSet)(e.validatorSrcAddress)&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),(0,p.isSet)(e.validatorDstAddress)&&(t.validatorDstAddress=String(e.validatorDstAddress)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),t},fromPartial(e){let t=_();return t.delegatorAddress=e.delegatorAddress??"",t.validatorSrcAddress=e.validatorSrcAddress??"",t.validatorDstAddress=e.validatorDstAddress??"",t}},t.DVVTriplets={typeUrl:"/cosmos.staking.v1beta1.DVVTriplets",encode(e,r=u.BinaryWriter.create()){for(let n of e.triplets)t.DVVTriplet.encode(n,r.uint32(10).fork()).ldelim();return r},decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=P();for(;n.pos<i;){let e=n.uint32();e>>>3==1?o.triplets.push(t.DVVTriplet.decode(n,n.uint32())):n.skipType(7&e)}return o},fromJSON(e){let r=P();return Array.isArray(e?.triplets)&&(r.triplets=e.triplets.map(e=>t.DVVTriplet.fromJSON(e))),r},toJSON(e){let r={};return e.triplets?r.triplets=e.triplets.map(e=>e?t.DVVTriplet.toJSON(e):void 0):r.triplets=[],r},fromPartial(e){let r=P();return r.triplets=e.triplets?.map(e=>t.DVVTriplet.fromPartial(e))||[],r}},t.Delegation={typeUrl:"/cosmos.staking.v1beta1.Delegation",encode:(e,t=u.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),""!==e.shares&&t.uint32(26).string(e.shares),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=k();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;case 3:i.shares=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=k();return(0,p.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,p.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,p.isSet)(e.shares)&&(t.shares=String(e.shares)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.shares&&(t.shares=e.shares),t},fromPartial(e){let t=k();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t.shares=e.shares??"",t}},t.UnbondingDelegation={typeUrl:"/cosmos.staking.v1beta1.UnbondingDelegation",encode(e,r=u.BinaryWriter.create()){for(let n of(""!==e.delegatorAddress&&r.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&r.uint32(18).string(e.validatorAddress),e.entries))t.UnbondingDelegationEntry.encode(n,r.uint32(26).fork()).ldelim();return r},decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=R();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.delegatorAddress=n.string();break;case 2:o.validatorAddress=n.string();break;case 3:o.entries.push(t.UnbondingDelegationEntry.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=R();return(0,p.isSet)(e.delegatorAddress)&&(r.delegatorAddress=String(e.delegatorAddress)),(0,p.isSet)(e.validatorAddress)&&(r.validatorAddress=String(e.validatorAddress)),Array.isArray(e?.entries)&&(r.entries=e.entries.map(e=>t.UnbondingDelegationEntry.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.delegatorAddress&&(r.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(r.validatorAddress=e.validatorAddress),e.entries?r.entries=e.entries.map(e=>e?t.UnbondingDelegationEntry.toJSON(e):void 0):r.entries=[],r},fromPartial(e){let r=R();return r.delegatorAddress=e.delegatorAddress??"",r.validatorAddress=e.validatorAddress??"",r.entries=e.entries?.map(e=>t.UnbondingDelegationEntry.fromPartial(e))||[],r}},t.UnbondingDelegationEntry={typeUrl:"/cosmos.staking.v1beta1.UnbondingDelegationEntry",encode:(e,t=u.BinaryWriter.create())=>(e.creationHeight!==BigInt(0)&&t.uint32(8).int64(e.creationHeight),void 0!==e.completionTime&&a.Timestamp.encode(e.completionTime,t.uint32(18).fork()).ldelim(),""!==e.initialBalance&&t.uint32(26).string(e.initialBalance),""!==e.balance&&t.uint32(34).string(e.balance),e.unbondingId!==BigInt(0)&&t.uint32(40).uint64(e.unbondingId),e.unbondingOnHoldRefCount!==BigInt(0)&&t.uint32(48).int64(e.unbondingOnHoldRefCount),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.creationHeight=r.int64();break;case 2:i.completionTime=a.Timestamp.decode(r,r.uint32());break;case 3:i.initialBalance=r.string();break;case 4:i.balance=r.string();break;case 5:i.unbondingId=r.uint64();break;case 6:i.unbondingOnHoldRefCount=r.int64();break;default:r.skipType(7&e)}}return i}
1,fromJSON(e){let t=O();return(0,p.isSet)(e.creationHeight)&&(t.creationHeight=BigInt(e.creationHeight.toString())),(0,p.isSet)(e.completionTime)&&(t.completionTime=(0,p.fromJsonTimestamp)(e.completionTime)),(0,p.isSet)(e.initialBalance)&&(t.initialBalance=String(e.initialBalance)),(0,p.isSet)(e.balance)&&(t.balance=String(e.balance)),(0,p.isSet)(e.unbondingId)&&(t.unbondingId=BigInt(e.unbondingId.toString())),(0,p.isSet)(e.unbondingOnHoldRefCount)&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t},toJSON(e){let t={};return void 0!==e.creationHeight&&(t.creationHeight=(e.creationHeight||BigInt(0)).toString()),void 0!==e.completionTime&&(t.completionTime=(0,p.fromTimestamp)(e.completionTime).toISOString()),void 0!==e.initialBalance&&(t.initialBalance=e.initialBalance),void 0!==e.balance&&(t.balance=e.balance),void 0!==e.unbondingId&&(t.unbondingId=(e.unbondingId||BigInt(0)).toString()),void 0!==e.unbondingOnHoldRefCount&&(t.unbondingOnHoldRefCount=(e.unbondingOnHoldRefCount||BigInt(0)).toString()),t},fromPartial(e){let t=O();return void 0!==e.creationHeight&&null!==e.creationHeight&&(t.creationHeight=BigInt(e.creationHeight.toString())),void 0!==e.completionTime&&null!==e.completionTime&&(t.completionTime=a.Timestamp.fromPartial(e.completionTime)),t.initialBalance=e.initialBalance??"",t.balance=e.balance??"",void 0!==e.unbondingId&&null!==e.unbondingId&&(t.unbondingId=BigInt(e.unbondingId.toString())),void 0!==e.unbondingOnHoldRefCount&&null!==e.unbondingOnHoldRefCount&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t}},t.RedelegationEntry={typeUrl:"/cosmos.staking.v1beta1.RedelegationEntry",encode:(e,t=u.BinaryWriter.create())=>(e.creationHeight!==BigInt(0)&&t.uint32(8).int64(e.creationHeight),void 0!==e.completionTime&&a.Timestamp.encode(e.completionTime,t.uint32(18).fork()).ldelim(),""!==e.initialBalance&&t.uint32(26).string(e.initialBalance),""!==e.sharesDst&&t.uint32(34).string(e.sharesDst),e.unbondingId!==BigInt(0)&&t.uint32(40).uint64(e.unbondingId),e.unbondingOnHoldRefCount!==BigInt(0)&&t.uint32(48).int64(e.unbondingOnHoldRefCount),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=I();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.creationHeight=r.int64();break;case 2:i.completionTime=a.Timestamp.decode(r,r.uint32());break;case 3:i.initialBalance=r.string();break;case 4:i.sharesDst=r.string();break;case 5:i.unbondingId=r.uint64();break;case 6:i.unbondingOnHoldRefCount=r.int64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=I();return(0,p.isSet)(e.creationHeight)&&(t.creationHeight=BigInt(e.creationHeight.toString())),(0,p.isSet)(e.completionTime)&&(t.completionTime=(0,p.fromJsonTimestamp)(e.completionTime)),(0,p.isSet)(e.initialBalance)&&(t.initialBalance=String(e.initialBalance)),(0,p.isSet)(e.sharesDst)&&(t.sharesDst=String(e.sharesDst)),(0,p.isSet)(e.unbondingId)&&(t.unbondingId=BigInt(e.unbondingId.toString())),(0,p.isSet)(e.unbondingOnHoldRefCount)&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t},toJSON(e){let t={};return void 0!==e.creationHeight&&(t.creationHeight=(e.creationHeight||BigInt(0)).toString()),void 0!==e.completionTime&&(t.completionTime=(0,p.fromTimestamp)(e.completionTime).toISOString()),void 0!==e.initialBalance&&(t.initialBalance=e.initialBalance),void 0!==e.sharesDst&&(t.sharesDst=e.sharesDst),void 0!==e.unbondingId&&(t.unbondingId=(e.unbondingId||BigInt(0)).toString()),void 0!==e.unbondingOnHoldRefCount&&(t.unbondingOnHoldRefCount=(e.unbondingOnHoldRefCount||BigInt(0)).toString()),t},fromPartial(e){let t=I();return void 0!==e.creationHeight&&null!==e.creationHeight&&(t.creationHeight=BigInt(e.creationHeight.toString())),void 0!==e.completionTime&&null!==e.completionTime&&(t.completionTime=a.Timestamp.fromPartial(e.completionTime)),t.initialBalance=e.initialBalance??"",t.sharesDst=e.sharesDst??"",void 0!==e.unbondingId&&null!==e.unbondingId&&(t.unbondingId=BigInt(e.unbondingId.toString())),void 0!==e.unbondingOnHoldRefCount&&null!==e.unbondingOnHoldRefCount&&(t.unbondingOnHoldRefCount=BigInt(e.unbondingOnHoldRefCount.toString())),t}},t.Redelegation={typeUrl:"/cosmos.staking.v1beta1.Redelegation",encode(e,r=u.BinaryWriter.create()){for(let n of(""!==e.delegatorAddress&&r.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&r.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&r.uint32(26).string(e.validatorDstAddress),e.entries))t.RedelegationEntry.encode(n,r.uint32(34).fork()).ldelim();return r},decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=B();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.delegatorAddress=n.string();break;case 2:o.validatorSrcAddress=n.string();break;case 3:o.validatorDstAddress=n.string();break;
1case 4:o.entries.push(t.RedelegationEntry.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=B();return(0,p.isSet)(e.delegatorAddress)&&(r.delegatorAddress=String(e.delegatorAddress)),(0,p.isSet)(e.validatorSrcAddress)&&(r.validatorSrcAddress=String(e.validatorSrcAddress)),(0,p.isSet)(e.validatorDstAddress)&&(r.validatorDstAddress=String(e.validatorDstAddress)),Array.isArray(e?.entries)&&(r.entries=e.entries.map(e=>t.RedelegationEntry.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.delegatorAddress&&(r.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(r.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(r.validatorDstAddress=e.validatorDstAddress),e.entries?r.entries=e.entries.map(e=>e?t.RedelegationEntry.toJSON(e):void 0):r.entries=[],r},fromPartial(e){let r=B();return r.delegatorAddress=e.delegatorAddress??"",r.validatorSrcAddress=e.validatorSrcAddress??"",r.validatorDstAddress=e.validatorDstAddress??"",r.entries=e.entries?.map(e=>t.RedelegationEntry.fromPartial(e))||[],r}},t.Params={typeUrl:"/cosmos.staking.v1beta1.Params",encode:(e,t=u.BinaryWriter.create())=>(void 0!==e.unbondingTime&&d.Duration.encode(e.unbondingTime,t.uint32(10).fork()).ldelim(),0!==e.maxValidators&&t.uint32(16).uint32(e.maxValidators),0!==e.maxEntries&&t.uint32(24).uint32(e.maxEntries),0!==e.historicalEntries&&t.uint32(32).uint32(e.historicalEntries),""!==e.bondDenom&&t.uint32(42).string(e.bondDenom),""!==e.minCommissionRate&&t.uint32(50).string(e.minCommissionRate),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=x();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.unbondingTime=d.Duration.decode(r,r.uint32());break;case 2:i.maxValidators=r.uint32();break;case 3:i.maxEntries=r.uint32();break;case 4:i.historicalEntries=r.uint32();break;case 5:i.bondDenom=r.string();break;case 6:i.minCommissionRate=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=x();return(0,p.isSet)(e.unbondingTime)&&(t.unbondingTime=d.Duration.fromJSON(e.unbondingTime)),(0,p.isSet)(e.maxValidators)&&(t.maxValidators=Number(e.maxValidators)),(0,p.isSet)(e.maxEntries)&&(t.maxEntries=Number(e.maxEntries)),(0,p.isSet)(e.historicalEntries)&&(t.historicalEntries=Number(e.historicalEntries)),(0,p.isSet)(e.bondDenom)&&(t.bondDenom=String(e.bondDenom)),(0,p.isSet)(e.minCommissionRate)&&(t.minCommissionRate=String(e.minCommissionRate)),t},toJSON(e){let t={};return void 0!==e.unbondingTime&&(t.unbondingTime=e.unbondingTime?d.Duration.toJSON(e.unbondingTime):void 0),void 0!==e.maxValidators&&(t.maxValidators=Math.round(e.maxValidators)),void 0!==e.maxEntries&&(t.maxEntries=Math.round(e.maxEntries)),void 0!==e.historicalEntries&&(t.historicalEntries=Math.round(e.historicalEntries)),void 0!==e.bondDenom&&(t.bondDenom=e.bondDenom),void 0!==e.minCommissionRate&&(t.minCommissionRate=e.minCommissionRate),t},fromPartial(e){let t=x();return void 0!==e.unbondingTime&&null!==e.unbondingTime&&(t.unbondingTime=d.Duration.fromPartial(e.unbondingTime)),t.maxValidators=e.maxValidators??0,t.maxEntries=e.maxEntries??0,t.historicalEntries=e.historicalEntries??0,t.bondDenom=e.bondDenom??"",t.minCommissionRate=e.minCommissionRate??"",t}},t.DelegationResponse={typeUrl:"/cosmos.staking.v1beta1.DelegationResponse",encode:(e,r=u.BinaryWriter.create())=>(void 0!==e.delegation&&t.Delegation.encode(e.delegation,r.uint32(10).fork()).ldelim(),void 0!==e.balance&&l.Coin.encode(e.balance,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=E();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.delegation=t.Delegation.decode(n,n.uint32());break;case 2:o.balance=l.Coin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=E();return(0,p.isSet)(e.delegation)&&(r.delegation=t.Delegation.fromJSON(e.delegation)),(0,p.isSet)(e.balance)&&(r.balance=l.Coin.fromJSON(e.balance)),r},toJSON(e){let r={};return void 0!==e.delegation&&(r.delegation=e.delegation?t.Delegation.toJSON(e.delegation):void 0),void 0!==e.balance&&(r.balance=e.balance?l.Coin.toJSON(e.balance):void 0),r},fromPartial(e){let r=E();return void 0!==e.delegation&&null!==e.delegation&&(r.delegation=t.Delegation.fromPartial(e.delegation)),void 0!==e.balance&&null!==e.balance&&(r.balance=l.Coin.fromPartial(e.balance)),r}},t.RedelegationEntryResponse={typeUrl:"/cosmos.staking.v1beta1.RedelegationEntryResponse",encode:(e,r=u.BinaryWriter.create())=>(void 0!==e.redelegationEntry&&t.RedelegationEntry.encode(e.redelegationEntry,r.uint32(10).fork()).ldelim(),""!==e.balance&&r.uint32(34).string(e.balance),r),decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=T();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.redelegationEntry=t.RedelegationEntry.decode(n,n.uint32());break;case 4:o.balance=n.string();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=T();return(0,p.isSet)(e.redelegationEntry)&&(r.redelegationEntry=t.RedelegationEntry.fromJSON(e.redelegationEntry)),(0,p.isSet)(e.balance)&&(r.balance=String(e.balance)),r},toJSON(e){let r={};return void 0!==e.redelegationEntry&&(r.redelegationEntry=e.redelegationEntry?t.RedelegationEntry.toJSON(e.redelegationEntry):void 0),void 0!==e.balance&&(r.balance=e.balance),r},fromPartial(e){let r=T();return void 0!==e.redelegationEntry&&null!==e.redelegationEntry&&(r.redelegationEntry=t.RedelegationEntry.fromPartial(e.redelegationEntry)),r.balance=e.balance??"",r}},t.RedelegationResponse={typeUrl:"/cosmos.staking.v1beta1.RedelegationResponse",encode(e,r=u.BinaryWriter.create()){for(let n of(void 0!==e.redelegation&&t.Redelegation.encode(e.redelegation,r.uint32(10).fork()).ldelim(),e.entries))t.RedelegationEntryResponse.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){let n=e instanceof u.BinaryReader?e:new u.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=N();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.redelegation=t.Redelegation.decode(n,n.uint32());break;
1case 2:o.entries.push(t.RedelegationEntryResponse.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=N();return(0,p.isSet)(e.redelegation)&&(r.redelegation=t.Redelegation.fromJSON(e.redelegation)),Array.isArray(e?.entries)&&(r.entries=e.entries.map(e=>t.RedelegationEntryResponse.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.redelegation&&(r.redelegation=e.redelegation?t.Redelegation.toJSON(e.redelegation):void 0),e.entries?r.entries=e.entries.map(e=>e?t.RedelegationEntryResponse.toJSON(e):void 0):r.entries=[],r},fromPartial(e){let r=N();return void 0!==e.redelegation&&null!==e.redelegation&&(r.redelegation=t.Redelegation.fromPartial(e.redelegation)),r.entries=e.entries?.map(e=>t.RedelegationEntryResponse.fromPartial(e))||[],r}},t.Pool={typeUrl:"/cosmos.staking.v1beta1.Pool",encode:(e,t=u.BinaryWriter.create())=>(""!==e.notBondedTokens&&t.uint32(10).string(e.notBondedTokens),""!==e.bondedTokens&&t.uint32(18).string(e.bondedTokens),t),decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=C();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.notBondedTokens=r.string();break;case 2:i.bondedTokens=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=C();return(0,p.isSet)(e.notBondedTokens)&&(t.notBondedTokens=String(e.notBondedTokens)),(0,p.isSet)(e.bondedTokens)&&(t.bondedTokens=String(e.bondedTokens)),t},toJSON(e){let t={};return void 0!==e.notBondedTokens&&(t.notBondedTokens=e.notBondedTokens),void 0!==e.bondedTokens&&(t.bondedTokens=e.bondedTokens),t},fromPartial(e){let t=C();return t.notBondedTokens=e.notBondedTokens??"",t.bondedTokens=e.bondedTokens??"",t}},t.ValidatorUpdates={typeUrl:"/cosmos.staking.v1beta1.ValidatorUpdates",encode(e,t=u.BinaryWriter.create()){for(let r of e.updates)c.ValidatorUpdate.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof u.BinaryReader?e:new u.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=M();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.updates.push(c.ValidatorUpdate.decode(r,r.uint32())):r.skipType(7&e)}return i},fromJSON(e){let t=M();return Array.isArray(e?.updates)&&(t.updates=e.updates.map(e=>c.ValidatorUpdate.fromJSON(e))),t},toJSON(e){let t={};return e.updates?t.updates=e.updates.map(e=>e?c.ValidatorUpdate.toJSON(e):void 0):t.updates=[],t},fromPartial(e){let t=M();return t.updates=e.updates?.map(e=>c.ValidatorUpdate.fromPartial(e))||[],t}}},30336:(e,t,r)=>{"use strict";var n=r(1809),i=r(97149),o=r(78772),a=r(69395),s=r(26600),d=r(64431),l=a("Object.prototype.toString"),c=r(94719)(),u="undefined"==typeof globalThis?r.g:globalThis,p=i(),f=a("String.prototype.slice"),h=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},g={__proto__:null};c&&s&&d?n(p,function(e){var t=new u[e];if(Symbol.toStringTag in t&&d){var r=d(t),n=s(r,Symbol.toStringTag);!n&&r&&(n=s(d(r),Symbol.toStringTag)),g["$"+e]=o(n.get)}}):n(p,function(e){var t=new u[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))});var m=function(e){var t=!1;return n(g,function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(e){}}),t},y=function(e){var t=!1;return n(g,function(r,n){if(!t)try{r(e),t=f(n,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=f(l(e),8,-1);return h(p,t)>-1?t:"Object"===t&&y(e)}return s?m(e):null}},30353:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Random=void 0;class n{static getBytes(e){try{let t="object"==typeof window?window:self,r=void 0!==t.crypto?t.crypto:t.msCrypto,n=new Uint8Array(e);return r.getRandomValues(n),n}catch{try{let t=r(56203);return new Uint8Array([...t.randomBytes(e)])}catch{throw Error("No secure random number generator found")}}}}t.Random=n},30648:e=>{"use strict";e.exports=Error},30760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueAndUpdates=void 0;let n=r(29268);class i{get value(){return this.producer.value}constructor(e){this.producer=e,this.updates=n.MemoryStream.createWithMemory(this.producer)}async waitFor(e){let t="function"==typeof e?e:t=>t===e;return new Promise((e,r)=>{let n=this.updates.subscribe({next:r=>{t(r)&&(e(r),setTimeout(()=>n.unsubscribe(),0))},complete:()=>{n.unsubscribe(),r("Update stream completed without expected value")},error:e=>{r(e)}})})}}t.ValueAndUpdates=i},30942:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=t.supportedAlgorithms=t.executeKdf=t.cosmjsSalt=void 0;let n=r(97470);async function i(e,r){if("argon2id"===r.algorithm){let i=r.params;if(!(0,n.isArgon2idOptions)(i))throw Error("Invalid format of argon2id params");return n.Argon2id.execute(e,t.cosmjsSalt,i)}throw Error("Unsupported KDF algorithm")}async function o(e,r,i){if(i.algorithm===t.supportedAlgorithms.xchacha20poly1305Ietf){let t=n.Random.getBytes(n.xchacha20NonceLength);return new Uint8Array([...t,...await n.Xchacha20poly1305Ietf.encrypt(e,r,t)])}throw Error(`Unsupported encryption algorithm: '${i.algorithm}'`)}async function a(e,r,i){if(i.algorithm===t.supportedAlgorithms.xchacha20poly1305Ietf){let t=e.slice(0,n.xchacha20NonceLength);return n.Xchacha20poly1305Ietf.decrypt(e.slice(n.xchacha20NonceLength),r,t)}throw Error(`Unsupported encryption algorithm: '${i.algorithm}'`)}t.cosmjsSalt=(0,r(25918).toAscii)("The CosmJS salt."),t.executeKdf=i,t.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},t.encrypt=o,t.decrypt=a},31291:(e,t)=>{"use strict";function r(e){var t,r=e.Symbol;if("function"==typeof r)if(r.observable)t=r.observable;else{t=r.for("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch(e){}}else t="@@observable";return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},31577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.omitDefault=void 0,t.omitDefault=function(e){switch(typeof e){case"string":return""===e?void 0:e;case"number":return 0===e?void 0:e;case"bigint":return e===BigInt(0)?void 0:e;case"boolean":return e||void 0;default:throw Error(`Got unsupported type '${typeof e}'`)}}},32125:(e,t,r)=>{"use strict";var n=r(15940),i=r(65436),o=r(61259),a=r(8151);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},32397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSignature=t.encodeSecp256k1Signature=void 0;let n=r(25918),i=r(24652),o=r(38496);t.encodeSecp256k1Signature=function(e,t){if(64!==t.length)throw Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:(0,i.encodeSecp256k1Pubkey)(e),signature:(0,n.toBase64)(t)}},t.decodeSignature=function(e){if(e.pub_key.type===o.pubkeyType.secp256k1)return{pubkey:(0,n.fromBase64)(e.pub_key.value),signature:(0,n.fromBase64)(e.signature)};throw Error("Unsupported pubkey type")}},32715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeKdf=t.makeStdTx=t.isStdTx=t.serializeSignDoc=t.makeSignDoc=t.encodeSecp256k1Signature=t.decodeSignature=t.Secp256k1Wallet=t.Secp256k1HdWallet=t.extractKdfConfiguration=t.pubkeyType=t.isSinglePubkey=t.isSecp256k1Pubkey=t.isMultisigThresholdPubkey=t.isEd25519Pubkey=t.makeCosmoshubPath=t.omitDefault=t.createMultisigThresholdPubkey=t.encodeSecp256k1Pubkey=t.encodeEd25519Pubkey=t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.parseCoins=t.coins=t.coin=t.addCoins=t.rawSecp256k1PubkeyToRawAddress=t.rawEd25519PubkeyToRawAddress=t.pubkeyToRawAddress=t.pubkeyToAddress=void 0;var n=r(35559);Object.defineProperty(t,"pubkeyToAddress",{enumerable:!0,get:function(){return n.pubkeyToAddress}}),Object.defineProperty(t,"pubkeyToRawAddress",{enumerable:!0,get:function(){return n.pubkeyToRawAddress}}),Object.defineProperty(t,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return n.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(t,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return n.rawSecp256k1PubkeyToRawAddress}});var i=r(70197);Object.defineProperty(t,"addCoins",{enumerable:!0,get:function(){return i.addCoins}}),Object.defineProperty(t,"coin",{enumerable:!0,get:function(){return i.coin}}),Object.defineProperty(t,"coins",{enumerable:!0,get:function(){return i.coins}}),Object.defineProperty(t,"parseCoins",{enumerable:!0,get:function(){return i.parseCoins}});var o=r(24652);Object.defineProperty(t,"decodeAminoPubkey",{enumerable:!0,get:function(){return o.decodeAminoPubkey}}),Object.defineProperty(t,"decodeBech32Pubkey",{enumerable:!0,get:function(){return o.decodeBech32Pubkey}}),Object.defineProperty(t,"encodeAminoPubkey",{enumerable:!0,get:function(){return o.encodeAminoPubkey}}),Object.defineProperty(t,"encodeBech32Pubkey",{enumerable:!0,get:function(){return o.encodeBech32Pubkey}}),Object.defineProperty(t,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return o.encodeEd25519Pubkey}}),Object.defineProperty(t,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return o.encodeSecp256k1Pubkey}});var a=r(29179);Object.defineProperty(t,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return a.createMultisigThresholdPubkey}});var s=r(31577);
1Object.defineProperty(t,"omitDefault",{enumerable:!0,get:function(){return s.omitDefault}});var d=r(12623);Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return d.makeCosmoshubPath}});var l=r(38496);Object.defineProperty(t,"isEd25519Pubkey",{enumerable:!0,get:function(){return l.isEd25519Pubkey}}),Object.defineProperty(t,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return l.isMultisigThresholdPubkey}}),Object.defineProperty(t,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return l.isSecp256k1Pubkey}}),Object.defineProperty(t,"isSinglePubkey",{enumerable:!0,get:function(){return l.isSinglePubkey}}),Object.defineProperty(t,"pubkeyType",{enumerable:!0,get:function(){return l.pubkeyType}});var c=r(50886);Object.defineProperty(t,"extractKdfConfiguration",{enumerable:!0,get:function(){return c.extractKdfConfiguration}}),Object.defineProperty(t,"Secp256k1HdWallet",{enumerable:!0,get:function(){return c.Secp256k1HdWallet}});var u=r(63794);Object.defineProperty(t,"Secp256k1Wallet",{enumerable:!0,get:function(){return u.Secp256k1Wallet}});var p=r(32397);Object.defineProperty(t,"decodeSignature",{enumerable:!0,get:function(){return p.decodeSignature}}),Object.defineProperty(t,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return p.encodeSecp256k1Signature}});var f=r(16038);Object.defineProperty(t,"makeSignDoc",{enumerable:!0,get:function(){return f.makeSignDoc}}),Object.defineProperty(t,"serializeSignDoc",{enumerable:!0,get:function(){return f.serializeSignDoc}});var h=r(70370);Object.defineProperty(t,"isStdTx",{enumerable:!0,get:function(){return h.isStdTx}}),Object.defineProperty(t,"makeStdTx",{enumerable:!0,get:function(){return h.makeStdTx}});var g=r(3832);Object.defineProperty(t,"executeKdf",{enumerable:!0,get:function(){return g.executeKdf}})},32875:(e,t,r)=>{"use strict";var n=r(30336);e.exports=function(e){return!!n(e)}},34102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgCreatePeriodicVestingAccountResponse=t.MsgCreatePeriodicVestingAccount=t.MsgCreatePermanentLockedAccountResponse=t.MsgCreatePermanentLockedAccount=t.MsgCreateVestingAccountResponse=t.MsgCreateVestingAccount=t.protobufPackage=void 0;let n=r(91794),i=r(74068),o=r(4696),a=r(92242);function s(){return{fromAddress:"",toAddress:"",amount:[],endTime:BigInt(0),delayed:!1}}function d(){return{}}function l(){return{fromAddress:"",toAddress:"",amount:[]}}function c(){return{}}function u(){return{fromAddress:"",toAddress:"",startTime:BigInt(0),vestingPeriods:[]}}function p(){return{}}t.protobufPackage="cosmos.vesting.v1beta1",t.MsgCreateVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),e.amount))n.Coin.encode(r,t.uint32(26).fork()).ldelim();return e.endTime!==BigInt(0)&&t.uint32(32).int64(e.endTime),!0===e.delayed&&t.uint32(40).bool(e.delayed),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.fromAddress=r.string();break;case 2:a.toAddress=r.string();break;case 3:a.amount.push(n.Coin.decode(r,r.uint32()));break;case 4:a.endTime=r.int64();break;case 5:a.delayed=r.bool();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return(0,a.isSet)(e.fromAddress)&&(t.fromAddress=String(e.fromAddress)),(0,a.isSet)(e.toAddress)&&(t.toAddress=String(e.toAddress)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>n.Coin.fromJSON(e))),(0,a.isSet)(e.endTime)&&(t.endTime=BigInt(e.endTime.toString())),(0,a.isSet)(e.delayed)&&(t.delayed=!!e.delayed),t},toJSON(e){let t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(e=>e?n.Coin.toJSON(e):void 0):t.amount=[],void 0!==e.endTime&&(t.endTime=(e.endTime||BigInt(0)).toString()),void 0!==e.delayed&&(t.delayed=e.delayed),t},fromPartial(e){let t=s();return t.fromAddress=e.fromAddress??"",t.toAddress=e.toAddress??"",t.amount=e.amount?.map(e=>
1n.Coin.fromPartial(e))||[],void 0!==e.endTime&&null!==e.endTime&&(t.endTime=BigInt(e.endTime.toString())),t.delayed=e.delayed??!1,t}},t.MsgCreateVestingAccountResponse={typeUrl:"/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=d();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>d(),toJSON:e=>({}),fromPartial:e=>d()},t.MsgCreatePermanentLockedAccount={typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),e.amount))n.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.fromAddress=r.string();break;case 2:a.toAddress=r.string();break;case 3:a.amount.push(n.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=l();return(0,a.isSet)(e.fromAddress)&&(t.fromAddress=String(e.fromAddress)),(0,a.isSet)(e.toAddress)&&(t.toAddress=String(e.toAddress)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>n.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(e=>e?n.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=l();return t.fromAddress=e.fromAddress??"",t.toAddress=e.toAddress??"",t.amount=e.amount?.map(e=>n.Coin.fromPartial(e))||[],t}},t.MsgCreatePermanentLockedAccountResponse={typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>c(),toJSON:e=>({}),fromPartial:e=>c()},t.MsgCreatePeriodicVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),e.startTime!==BigInt(0)&&t.uint32(24).int64(e.startTime),e.vestingPeriods))i.Period.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.fromAddress=r.string();break;case 2:a.toAddress=r.string();break;case 3:a.startTime=r.int64();break;case 4:a.vestingPeriods.push(i.Period.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=u();return(0,a.isSet)(e.fromAddress)&&(t.fromAddress=String(e.fromAddress)),(0,a.isSet)(e.toAddress)&&(t.toAddress=String(e.toAddress)),(0,a.isSet)(e.startTime)&&(t.startTime=BigInt(e.startTime.toString())),Array.isArray(e?.vestingPeriods)&&(t.vestingPeriods=e.vestingPeriods.map(e=>i.Period.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),void 0!==e.startTime&&(t.startTime=(e.startTime||BigInt(0)).toString()),e.vestingPeriods?t.vestingPeriods=e.vestingPeriods.map(e=>e?i.Period.toJSON(e):void 0):t.vestingPeriods=[],t},fromPartial(e){let t=u();return t.fromAddress=e.fromAddress??"",t.toAddress=e.toAddress??"",void 0!==e.startTime&&null!==e.startTime&&(t.startTime=BigInt(e.startTime.toString())),t.vestingPeriods=e.vestingPeriods?.map(e=>i.Period.fromPartial(e))||[],t}},t.MsgCreatePeriodicVestingAccountResponse={typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>p(),toJSON:e=>({}),fromPartial:e=>p()};class f{constructor(e){this.rpc=e,this.CreateVestingAccount=this.CreateVestingAccount.bind(this),this.CreatePermanentLockedAccount=this.CreatePermanentLockedAccount.bind(this),this.CreatePerio
1dicVestingAccount=this.CreatePeriodicVestingAccount.bind(this)}CreateVestingAccount(e){let r=t.MsgCreateVestingAccount.encode(e).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreateVestingAccount",r).then(e=>t.MsgCreateVestingAccountResponse.decode(new o.BinaryReader(e)))}CreatePermanentLockedAccount(e){let r=t.MsgCreatePermanentLockedAccount.encode(e).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePermanentLockedAccount",r).then(e=>t.MsgCreatePermanentLockedAccountResponse.decode(new o.BinaryReader(e)))}CreatePeriodicVestingAccount(e){let r=t.MsgCreatePeriodicVestingAccount.encode(e).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePeriodicVestingAccount",r).then(e=>t.MsgCreatePeriodicVestingAccountResponse.decode(new o.BinaryReader(e)))}}t.MsgClientImpl=f},34246:(e,t,r)=>{"use strict";var n,i=r(1091),o=r(30648),a=r(79482),s=r(55397),d=r(67113),l=r(77015),c=r(65436),u=r(98770),p=r(57801),f=r(52871),h=r(91819),g=r(74909),m=r(71903),y=r(54473),b=r(39042),v=Function,S=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},A=r(26600),w=r(76948),_=function(){throw new c},P=A?function(){try{return arguments.callee,_}catch(e){try{return A(arguments,"callee").get}catch(e){return _}}}():_,k=r(82628)(),R=r(64431),O=r(17715),I=r(81235),B=r(96649),x=r(61259),E={},T="undefined"!=typeof Uint8Array&&R?R(Uint8Array):n,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":k&&R?R([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":E,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":k&&R?R(R([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&R?R(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":d,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&R?R(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&R?R(""[Symbol.iterator]()):n,"%Symbol%":k?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":P,"%TypedArray%":T,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":B,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":O,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(R)try{null.error}catch(e){var C=R(R(e));N["%Error.prototype%"]=C}var M=function e(t){var r;if("%AsyncFunction%"===t)r=S("async function () {}");else if("%GeneratorFunction%"===t)r=S("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=S("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&R&&(r=R(i.prototype))}return N[t]=r,r},U={__proto__:null,"%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"]},D=r(15940),J=r(954),H=D.call(x,Array.prototype.concat),V=D.call(B,Array.prototype.splice),q=D.call(x,String.prototype.replace),L=D.call(x,String.prototype.slice),j=D.call(x,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,Q=function(e){var t=L(e,0,1),r=L(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return q(e,F,function(e,t,r,i){n[n.length]=r?q(i,W,"$1"):t||e}),n},G=function(e,t){var r,n=e;if(J(U,n)&&(n="%"+(r=U[n])[0]+"%"),J(N,n)){var i=N[n];if(i===E&&(i=M(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Q(e),n=r.length>0?r[0]:"",i=G("%"+n+"%",t),o=i.name,a=i.value,s=!1,d=i.alias;d&&(n=d[0],V(r,H([0,1],d)));for(var u=1,p=!0;u<r.length;u+=1){var f=r[u],h=L(f,0,1),g=L(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===g||"'"===g||"`"===g)&&h!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&p||(s=!0),n+="."+f,J(N,o="%"+n+"%"))a=N[o];
1else if(null!=a){if(!(f in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(A&&u+1>=r.length){var m=A(a,f);a=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[f]}else p=J(a,f),a=a[f];p&&!s&&(N[o]=a)}}return a}},34515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigningStargateClient=t.createDefaultAminoConverters=t.defaultRegistryTypes=void 0;let n=r(32715),i=r(25918),o=r(73297),a=r(11717),s=r(94595),d=r(63688),l=r(91794),c=r(6922),u=r(40899),p=r(36843),f=r(13788),h=r(16750),g=r(10095),m=r(99612),y=r(11082),b=r(11082),v=r(62776);function S(){return{...(0,b.createAuthzAminoConverters)(),...(0,b.createBankAminoConverters)(),...(0,b.createDistributionAminoConverters)(),...(0,b.createGovAminoConverters)(),...(0,b.createStakingAminoConverters)(),...(0,b.createIbcAminoConverters)(),...(0,b.createFeegrantAminoConverters)(),...(0,b.createVestingAminoConverters)()}}t.defaultRegistryTypes=[["/cosmos.base.v1beta1.Coin",l.Coin],...y.authzTypes,...y.bankTypes,...y.distributionTypes,...y.feegrantTypes,...y.govTypes,...y.groupTypes,...y.stakingTypes,...y.ibcTypes,...y.vestingTypes],t.createDefaultAminoConverters=S;class A extends v.StargateClient{static async connectWithSigner(e,t,r={}){let n=await (0,s.connectComet)(e);return A.createWithSigner(n,t,r)}static async createWithSigner(e,t,r={}){return new A(e,t,r)}static async offline(e,t={}){return new A(void 0,e,t)}constructor(e,r,n){super(e,n),this.defaultGasMultiplier=1.4;let{registry:i=new a.Registry(t.defaultRegistryTypes),aminoTypes:o=new g.AminoTypes(S())}=n;this.registry=i,this.aminoTypes=o,this.signer=r,this.broadcastTimeoutMs=n.broadcastTimeoutMs,this.broadcastPollIntervalMs=n.broadcastPollIntervalMs,this.gasPrice=n.gasPrice}async simulate(e,t,r){let i=t.map(e=>this.registry.encodeAsAny(e)),a=(await this.signer.getAccounts()).find(t=>t.address===e);if(!a)throw Error("Failed to retrieve account from signer");let s=(0,n.encodeSecp256k1Pubkey)(a.pubkey),{sequence:l}
1=await this.getSequence(e),{gasInfo:c}=await this.forceGetQueryClient().tx.simulate(i,r,s,l);return(0,d.assertDefined)(c),o.Uint53.fromString(c.gasUsed.toString()).toNumber()}async sendTokens(e,t,r,n,i=""){let o={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:e,toAddress:t,amount:[...r]}};return this.signAndBroadcast(e,[o],n,i)}async delegateTokens(e,t,r,n,i=""){let o={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:u.MsgDelegate.fromPartial({delegatorAddress:e,validatorAddress:t,amount:r})};return this.signAndBroadcast(e,[o],n,i)}async undelegateTokens(e,t,r,n,i=""){let o={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:u.MsgUndelegate.fromPartial({delegatorAddress:e,validatorAddress:t,amount:r})};return this.signAndBroadcast(e,[o],n,i)}async withdrawRewards(e,t,r,n=""){let i={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:c.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:e,validatorAddress:t})};return this.signAndBroadcast(e,[i],r,n)}async sendIbcTokens(e,t,r,n,i,o,a,s,d=""){let l=a?BigInt(a)*BigInt(1e9):void 0,c={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:h.MsgTransfer.fromPartial({sourcePort:n,sourceChannel:i,sender:e,receiver:t,token:r,timeoutHeight:o,timeoutTimestamp:l})};return this.signAndBroadcast(e,[c],s,d)}async signAndBroadcast(e,t,r,n="",i){let o;if("auto"==r||"number"==typeof r){(0,d.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");let i=await this.simulate(e,t,n),a="number"==typeof r?r:this.defaultGasMultiplier;o=(0,m.calculateFee)(Math.round(i*a),this.gasPrice)}else o=r;let a=await this.sign(e,t,o,n,void 0,i),s=f.TxRaw.encode(a).finish();return this.broadcastTx(s,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(e,t,r,n="",i){let o;if("auto"==r||"number"==typeof r){(0,d.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");let i=await this.simulate(e,t,n),a="number"==typeof r?r:this.defaultGasMultiplier;o=(0,m.calculateFee)(Math.round(i*a),this.gasPrice)}else o=r;let a=await this.sign(e,t,o,n,void 0,i),s=f.TxRaw.encode(a).finish();return this.broadcastTxSync(s)}async sign(e,t,r,n,i,o){let s;if(i)s=i;else{let{accountNumber:t,sequence:r}
1=await this.getSequence(e);s={accountNumber:t,sequence:r,chainId:await this.getChainId()}}return(0,a.isOfflineDirectSigner)(this.signer)?this.signDirect(e,t,r,n,s,o):this.signAmino(e,t,r,n,s,o)}async signAmino(e,t,r,s,{accountNumber:l,sequence:c,chainId:u},h){(0,d.assert)(!(0,a.isOfflineDirectSigner)(this.signer));let g=(await this.signer.getAccounts()).find(t=>t.address===e);if(!g)throw Error("Failed to retrieve account from signer");let m=(0,a.encodePubkey)((0,n.encodeSecp256k1Pubkey)(g.pubkey)),y=p.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,b=t.map(e=>this.aminoTypes.toAmino(e)),v=(0,n.makeSignDoc)(b,r,u,s,l,c,h),{signature:S,signed:A}=await this.signer.signAmino(e,v),w={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:A.msgs.map(e=>this.aminoTypes.fromAmino(e)),memo:A.memo,timeoutHeight:h}},_=this.registry.encode(w),P=o.Int53.fromString(A.fee.gas).toNumber(),k=o.Int53.fromString(A.sequence).toNumber(),R=(0,a.makeAuthInfoBytes)([{pubkey:m,sequence:k}],A.fee.amount,P,A.fee.granter,A.fee.payer,y);return f.TxRaw.fromPartial({bodyBytes:_,authInfoBytes:R,signatures:[(0,i.fromBase64)(S.signature)]})}async signDirect(e,t,r,s,{accountNumber:l,sequence:c,chainId:u},p){(0,d.assert)((0,a.isOfflineDirectSigner)(this.signer));let h=(await this.signer.getAccounts()).find(t=>t.address===e);if(!h)throw Error("Failed to retrieve account from signer");let g=(0,a.encodePubkey)((0,n.encodeSecp256k1Pubkey)(h.pubkey)),m={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:t,memo:s,timeoutHeight:p}},y=this.registry.encode(m),b=o.Int53.fromString(r.gas).toNumber(),v=(0,a.makeAuthInfoBytes)([{pubkey:g,sequence:c}],r.amount,b,r.granter,r.payer),S=(0,a.makeSignDoc)(y,v,u,l),{signature:A,signed:w}=await this.signer.signDirect(e,S);return f.TxRaw.fromPartial({bodyBytes:w.bodyBytes,authInfoBytes:w.authInfoBytes,signatures:[(0,i.fromBase64)(A.signature)]})}}t.SigningStargateClient=A},35206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryEscrowAddressResponse=t.QueryEscrowAddressRequest=t.QueryDenomHashResponse=t.QueryDenomHashRequest=t.QueryParamsResponse=t.QueryParamsRequest=t.QueryDenomTracesResponse=t.QueryDenomTracesRequest=t.QueryDenomTraceResponse=t.QueryDenomTraceRequest=t.protobufPackage=void 0;let n=r(64094),i=r(13245),o=r(4696),a=r(92242);function s(){return{hash:""}}function d(){return{denomTrace:void 0}}function l(){return{pagination:void 0}}function c(){return{denomTraces:[],pagination:void 0}}function u(){return{}}function p(){return{params:void 0}}function f(){return{trace:""}}function h(){return{hash:""}}function g(){return{portId:"",channelId:""}}function m(){return{escrowAddress:""}}t.protobufPackage="ibc.applications.transfer.v1",t.QueryDenomTraceRequest={typeUrl:"/ibc.applications.transfer.v1.QueryDenomTraceRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.hash&&t.uint32(10).string(e.hash),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=s();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.hash=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=s();return(0,a.isSet)(e.hash)&&(t.hash=String(e.hash)),t},toJSON(e){let t={};return void 0!==e.hash&&(t.hash=e.hash),t},fromPartial(e){let t=s();return t.hash=e.hash??"",t}},t.QueryDenomTraceResponse={typeUrl:"/ibc.applications.transfer.v1.QueryDenomTraceResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.denomTrace&&i.DenomTrace.encode(e.denomTrace,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.denomTrace=i.DenomTrace.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=d();return(0,a.isSet)(e.denomTrace)&&(t.denomTrace=i.DenomTrace.fromJSON(e.denomTrace)),t},toJSON(e){let t={};return void 0!==e.denomTrace&&(t.denomTrace=e.denomTrace?i.DenomTrace.toJSON(e.denomTrace):void 0),t},fromPartial(e){let t=d();return void 0!==e.denomTrace&&null!==e.denomTrace&&(t.denomTrace=i.DenomTrace.fromPartial(e.denomTrace)),t}},t.QueryDenomTracesRequest={typeUrl:"/ibc.applications.transfer.v1.QueryDenomTracesRequest",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.pagination=n.PageRequest.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=l();return(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=l();return void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryDenomTracesResponse={typeUrl:"/ibc.applications.transfer.v1.QueryDenomTracesResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.denomTraces)i.DenomTrace.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=c();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.denomTraces.push(i.DenomTrace.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=c();return Array.isArray(e?.denomTraces)&&(t.denomTraces=e.denomTraces.map(e=>i.DenomTrace.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.denomTraces?t.denomTraces=e.denomTraces.map(e=>e?i.DenomTrace.toJSON(e):void 0):t.denomTraces=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=c();return t.denomTraces=e.denomTraces?.map(e=>i.DenomTrace.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryParamsRequest={typeUrl:"/ibc.applications.transfer.v1.QueryParamsRequest",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>u(),toJSON:e=>({}),fromPartial:e=>u()},t.QueryParamsResponse={typeUrl:"/ibc.applications.transfer.v1.QueryParamsResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.params&&i.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=p();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.params=i.Params.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=p();return(0,a.isSet)(e.params)&&(t.params=i.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?i.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=p();return void 0!==e.params&&null!==e.params&&(t.params=i.Params.fromPartial(e.params)),t}},t.QueryDenomHashRequest={typeUrl:"/ibc.applications.transfer.v1.QueryDenomHashRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.trace&&t.uint32(10).string(e.trace),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.trace=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=f();return(0,a.isSet)(e.trace)&&(t.trace=String(e.trace)),t},toJSON(e){let t={};return void 0!==e.trace&&(t.trace=e.trace),t},fromPartial(e){let t=f();return t.trace=e.trace??"",t}},t.QueryDenomHashResponse={typeUrl:"/ibc.applications.transfer.v1.QueryDenomHashResponse",encode:(e,t=o.BinaryWriter.create())=>(""!==e.hash&&t.uint32(10).string(e.hash),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.hash=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=h();return(0,a.isSet)(e.hash)&&(t.hash=String(e.hash)),t},toJSON(e){let t={};return void 0!==e.hash&&(t.hash=e.hash),t},fromPartial(e){let t=h();return t.hash=e.hash??"",t}},t.QueryEscrowAddressRequest={typeUrl:"/ibc.applications.transfer.v1.QueryEscrowAddressRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.portId=r.string();break;case 2:i.channelId=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,a.isSet)(e.portId)&&(t.portId=String(e.portId)),(0,a.isSet)(e.channelId)&&(t.channelId=String(e.channelId)),t},toJSON(e){let t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial(e){let t=g();return t.portId=e.portId??"",t.channelId=e.channelId??"",t}},t.QueryEscrowAddressResponse={typeUrl:"/ibc.applications.transfer.v1.QueryEscrowAddressResponse",encode:(e,t=o.BinaryWriter.create())=>(""!==e.escrowAddress&&t.uint32(10).string(e.escrowAddress),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.escrowAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=m();return(0,a.isSet)(e.escrowAddress)&&(t.escrowAddress=String(e.escrowAddress)),t},toJSON(e){let t={};return void 0!==e.escrowAddress&&(t.escrowAddress=e.escrowAddress),t},fromPartial(e){let t=m();return t.escrowAddress=e.escrowAddress??"",t}};class y{constructor(e){this.rpc=e,this.DenomTrace=this.DenomTrace.bind(this),this.DenomTraces=this.DenomTraces.bind(this),this.Params=this.Params.bind(this),this.DenomHash=this.DenomHash.bind(this),this.EscrowAddress=this.EscrowAddress.bind(this)}DenomTrace(e){let r=t.QueryDenomTraceRequest.encode(e).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomTrace",r).then(e=>t.QueryDenomTraceResponse.decode(new o.BinaryReader(e)))}DenomTraces(e={pagination:n.PageRequest.fromPartial({})}){let r=t.QueryDenomTracesRequest.encode(e).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomTraces",r).then(e=>t.QueryDenomTracesResponse.decode(new o.BinaryReader(e)))}Params(e={}){let r=t.QueryParamsRequest.encode(e).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","Params",r).then(e=>t.QueryParamsResponse.decode(new o.BinaryReader(e)))}DenomHash(e){let r=t.QueryDenomHashRequest.encode(e).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomHash",r).then(e=>t.QueryDenomHashResponse.decode(new o.BinaryReader(e)))}EscrowAddress(e){let r=t.QueryEscrowAddressRequest.encode(e).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","EscrowAddress",r).then(e=>t.QueryEscrowAddressResponse.decode(new o.BinaryReader(e)))}}t.QueryClientImpl=y},35559:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.pubkeyToAddress=t.pubkeyToRawAddress=t.rawSecp256k1PubkeyToRawAddress=t.rawEd25519PubkeyToRawAddress=void 0;let n=r(97470),i=r(25918),o=r(24652),a=r(38496);function s(e){if(32!==e.length)throw Error(`Invalid Ed25519 pubkey length: ${e.length}`);return(0,n.sha256)(e).slice(0,20)}function d(e){if(33!==e.length)throw Error(`Invalid Secp256k1 pubkey length (compressed): ${e.length}`);return(0,n.ripemd160)((0,n.sha256)(e))}function l(e){if((0,a.isSecp256k1Pubkey)(e))return d((0,i.fromBase64)(e.value));if((0,a.isEd25519Pubkey)(e))return s((0,i.fromBase64)(e.value));if((0,a.isMultisigThresholdPubkey)(e)){let t=(0,o.encodeAminoPubkey)(e);return(0,n.sha256)(t).slice(0,20)}throw Error("Unsupported public key type")}t.rawEd25519PubkeyToRawAddress=s,t.rawSecp256k1PubkeyToRawAddress=d,t.pubkeyToRawAddress=l,t.pubkeyToAddress=function(e,t){return(0,i.toBech32)(t,l(e))}},35756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgRevokeResponse=t.MsgRevoke=t.MsgGrantResponse=t.MsgExec=t.MsgExecResponse=t.MsgGrant=t.protobufPackage=void 0;let n=r(56484),i=r(54573),o=r(4696),a=r(92242);function s(){return{granter:"",grantee:"",grant:n.Grant.fromPartial({})}}function d(){return{results:[]}}function l(){return{grantee:"",msgs:[]}}function c(){return{}}function u(){return{granter:"",grantee:"",msgTypeUrl:""}}function p(){return{}}t.protobufPackage="cosmos.authz.v1beta1",t.MsgGrant={typeUrl:"/cosmos.authz.v1beta1.MsgGrant",encode:(e,t=o.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.grant&&n.Grant.encode(e.grant,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.granter=r.string();break;case 2:a.grantee=r.string();break;case 3:a.grant=n.Grant.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return(0,a.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,a.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,a.isSet)(e.grant)&&(t.grant=n.Grant.fromJSON(e.grant)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.grant&&(t.grant=e.grant?n.Grant.toJSON(e.grant):void 0),t},fromPartial(e){let t=s();return t.granter=e.granter??"",t.grantee=e.grantee??"",void 0!==e.grant&&null!==e.grant&&(t.grant=n.Grant.fromPartial(e.grant)),t}},t.MsgExecResponse={typeUrl:"/cosmos.authz.v1beta1.MsgExecResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.results)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=d();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.results.push(r.bytes()):r.skipType(7&e)}return i},fromJSON(e){let t=d();return Array.isArray(e?.results)&&(t.results=e.results.map(e=>(0,a.bytesFromBase64)(e))),t},toJSON(e){let t={};return e.results?t.results=e.results.map(e=>(0,a.base64FromBytes)(void 0!==e?e:new Uint8Array)):t.results=[],t},fromPartial(e){let t=d();return t.results=e.results?.map(e=>e)||[],t}},t.MsgExec={typeUrl:"/cosmos.authz.v1beta1.MsgExec",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.grantee&&t.uint32(10).string(e.grantee),e.msgs))i.Any.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.grantee=r.string();break;case 2:a.msgs.push(i.Any.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=l();return(0,a.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),Array.isArray(e?.msgs)&&(t.msgs=e.msgs.map(e=>i.Any.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.grantee&&(t.grantee=e.grantee),e.msgs?t.msgs=e.msgs.map(e=>e?i.Any.toJSON(e):void 0):t.msgs=[],t},fromPartial(e){let t=l();return t.grantee=e.grantee??"",t.msgs=e.msgs?.map(e=>i.Any.fromPartial(e))||[],t}},t.MsgGrantResponse={typeUrl:"/cosmos.authz.v1beta1.MsgGrantResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>c(),toJSON:e=>({}),fromPartial:e=>c()},t.MsgRevoke={typeUrl:"/cosmos.authz.v1beta1.MsgRevoke",encode:(e,t=o.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),""!==e.msgTypeUrl&&t.uint32(26).string(e.msgTypeUrl),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.granter=r.string();break;case 2:i.grantee=r.string();break;case 3:i.msgTypeUrl=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=u();return(0,a.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,a.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,a.isSet)(e.msgTypeUrl)&&(t.msgTypeUrl=String(e.msgTypeUrl)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.msgTypeUrl&&(t.msgTypeUrl=e.msgTypeUrl),t},fromPartial(e){let t=u();return t.granter=e.granter??"",t.grantee=e.grantee??"",t.msgTypeUrl=e.msgTypeUrl??"",t}},t.MsgRevokeResponse={typeUrl:"/cosmos.authz.v1beta1.MsgRevokeResponse",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>p(),toJSON:e=>({}),fromPartial:e=>p()};class f{constructor(e){this.rpc=e,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.b
1ind(this)}Grant(e){let r=t.MsgGrant.encode(e).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",r).then(e=>t.MsgGrantResponse.decode(new o.BinaryReader(e)))}Exec(e){let r=t.MsgExec.encode(e).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",r).then(e=>t.MsgExecResponse.decode(new o.BinaryReader(e)))}Revoke(e){let r=t.MsgRevoke.encode(e).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",r).then(e=>t.MsgRevokeResponse.decode(new o.BinaryReader(e)))}}t.MsgClientImpl=f},36381:(e,t,r)=>{"use strict";var n=r(6257),i=r(40608);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},36548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupStakingExtension=void 0;let n=r(65585),i=r(51324);t.setupStakingExtension=function(e){let t=(0,i.createProtobufRpcClient)(e),r=new n.QueryClientImpl(t);return{staking:{delegation:async(e,t)=>await r.Delegation({delegatorAddr:e,validatorAddr:t}),delegatorDelegations:async(e,t)=>await r.DelegatorDelegations({delegatorAddr:e,pagination:(0,i.createPagination)(t)}),delegatorUnbondingDelegations:async(e,t)=>await r.DelegatorUnbondingDelegations({delegatorAddr:e,pagination:(0,i.createPagination)(t)}),delegatorValidator:async(e,t)=>await r.DelegatorValidator({delegatorAddr:e,validatorAddr:t}),delegatorValidators:async(e,t)=>await r.DelegatorValidators({delegatorAddr:e,pagination:(0,i.createPagination)(t)}),historicalInfo:async e=>await r.HistoricalInfo({height:BigInt(e)}),params:async()=>await r.Params({}),pool:async()=>await r.Pool({}),redelegations:async(e,t,n,o)=>await r.Redelegations({delegatorAddr:e,srcValidatorAddr:t,dstValidatorAddr:n,pagination:(0,i.createPagination)(o)}),unbondingDelegation:async(e,t)=>await r.UnbondingDelegation({delegatorAddr:e,validatorAddr:t}),validator:async e=>await r.Validator({validatorAddr:e}),validatorDelegations:async(e,t)=>await r.ValidatorDelegations({validatorAddr:e,pagination:(0,i.createPagination)(t)}),validators:async(e,t)=>await r.Validators({status:e,pagination:(0,i.createPagination)(t)}),validatorUnbondingDelegations:async(e,t)=>await r.ValidatorUnbondingDelegations({validatorAddr:e,pagination:(0,i.createPagination)(t)})}}}},36655:(e,t,r)=>{"use strict";var n=r(94719)(),i=r(69395)("Object.prototype.toString"),o=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},36843:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;let i=r(12686),o=r(54573),a=r(4696),s=r(92242);function d(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return n.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return n.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return n.SIGN_MODE_TEXTUAL;case 3:case"SIGN_MODE_DIRECT_AUX":return n.SIGN_MODE_DIRECT_AUX;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return n.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return n.SIGN_MODE_EIP_191;default:return n.UNRECOGNIZED}}function l(e){switch(e){case n.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case n.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case n.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case n.SIGN_MODE_DIRECT_AUX:return"SIGN_MODE_DIRECT_AUX";case n.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case n.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(){return{signatures:[]}}function u(){return{publicKey:void 0,data:void 0,sequence:BigInt(0)}}function p(){return{single:void 0,multi:void 0}}function f(){return{mode:0,signature:new Uint8Array}}function h(){return{bitarray:void 0,signatures:[]}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_DIRECT_AUX=3]="SIGN_MODE_DIRECT_AUX",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}
1(n||(t.SignMode=n={})),t.signModeFromJSON=d,t.signModeToJSON=l,t.SignatureDescriptors={typeUrl:"/cosmos.tx.signing.v1beta1.SignatureDescriptors",encode(e,r=a.BinaryWriter.create()){for(let n of e.signatures)t.SignatureDescriptor.encode(n,r.uint32(10).fork()).ldelim();return r},decode(e,r){let n=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=c();for(;n.pos<i;){let e=n.uint32();e>>>3==1?o.signatures.push(t.SignatureDescriptor.decode(n,n.uint32())):n.skipType(7&e)}return o},fromJSON(e){let r=c();return Array.isArray(e?.signatures)&&(r.signatures=e.signatures.map(e=>t.SignatureDescriptor.fromJSON(e))),r},toJSON(e){let r={};return e.signatures?r.signatures=e.signatures.map(e=>e?t.SignatureDescriptor.toJSON(e):void 0):r.signatures=[],r},fromPartial(e){let r=c();return r.signatures=e.signatures?.map(e=>t.SignatureDescriptor.fromPartial(e))||[],r}},t.SignatureDescriptor={typeUrl:"/cosmos.tx.signing.v1beta1.SignatureDescriptor",encode:(e,r=a.BinaryWriter.create())=>(void 0!==e.publicKey&&o.Any.encode(e.publicKey,r.uint32(10).fork()).ldelim(),void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,r.uint32(18).fork()).ldelim(),e.sequence!==BigInt(0)&&r.uint32(24).uint64(e.sequence),r),decode(e,r){let n=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===r?n.len:n.pos+r,s=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:s.publicKey=o.Any.decode(n,n.uint32());break;case 2:s.data=t.SignatureDescriptor_Data.decode(n,n.uint32());break;case 3:s.sequence=n.uint64();break;default:n.skipType(7&e)}}return s},fromJSON(e){let r=u();return(0,s.isSet)(e.publicKey)&&(r.publicKey=o.Any.fromJSON(e.publicKey)),(0,s.isSet)(e.data)&&(r.data=t.SignatureDescriptor_Data.fromJSON(e.data)),(0,s.isSet)(e.sequence)&&(r.sequence=BigInt(e.sequence.toString())),r},toJSON(e){let r={};return void 0!==e.publicKey&&(r.publicKey=e.publicKey?o.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(r.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(r.sequence=(e.sequence||BigInt(0)).toString()),r},fromPartial(e){let r=u();return void 0!==e.publicKey&&null!==e.publicKey&&(r.publicKey=o.Any.fromPartial(e.publicKey)),void 0!==e.data&&null!==e.data&&(r.data=t.SignatureDescriptor_Data.fromPartial(e.data)),void 0!==e.sequence&&null!==e.sequence&&(r.sequence=BigInt(e.sequence.toString())),r}},t.SignatureDescriptor_Data={typeUrl:"/cosmos.tx.signing.v1beta1.Data",encode:(e,r=a.BinaryWriter.create())=>(void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,r.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=p();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.single=t.SignatureDescriptor_Data_Single.decode(n,n.uint32());break;case 2:o.multi=t.SignatureDescriptor_Data_Multi.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=p();return(0,s.isSet)(e.single)&&(r.single=t.SignatureDescriptor_Data_Single.fromJSON(e.single)),(0,s.isSet)(e.multi)&&(r.multi=t.SignatureDescriptor_Data_Multi.fromJSON(e.multi)),r},toJSON(e){let r={};return void 0!==e.single&&(r.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(r.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),r},fromPartial(e){let r=p();return void 0!==e.single&&null!==e.single&&(r.single=t.SignatureDescriptor_Data_Single.fromPartial(e.single)),void 0!==e.multi&&null!==e.multi&&(r.multi=t.SignatureDescriptor_Data_Multi.fromPartial(e.multi)),r}},t.SignatureDescriptor_Data_Single={typeUrl:"/cosmos.tx.signing.v1beta1.Single",encode:(e,t=a.BinaryWriter.create())=>(0!==e.mode&&t.uint32(8).int32(e.mode),0!==e.signature.length&&t.uint32(18).bytes(e.signature),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.mode=r.int32();break;case 2:i.signature=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=f();return(0,s.isSet)(e.mode)&&(t.mode=d(e.mode)),(0,s.isSet)(e.signature)&&(t.signature=(0,s.bytesFromBase64)(e.signature)),t},toJSON(e){let t={};return void 0!==e.mode&&(t.mode=l(e.mode)),void 0!==e.signature&&(t.signature=(0,s.base64FromBytes)(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial(e){let t=f();return t.mode=e.mode??0,t.signature=e.signature??new Uint8Array,t}},t.SignatureDescriptor_Data_Multi={typeUrl:"/cosmos.tx.signing.v1beta1.Multi",encode(e,r=a.BinaryWriter.create()){for(let n of(void 0!==e.bitarray&&i.CompactBitArray.encode(e.bitarray,r.uint32(10).fork()).ldelim(),e.signatures))t.SignatureDescriptor_Data.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){let n=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===r?n.len:n.pos+r,s=h();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:s.bitarray=i.CompactBitArray.decode(n,n.uint32());break;case 2:s.signatures.push(t.SignatureDescriptor_Data.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return s},fromJSON(e){let r=h();return(0,s.isSet)(e.bitarray)&&(r.bitarray=i.CompactBitArray.fromJSON(e.bitarray)),Array.isArray(e?.signatures)&&(r.signatures=e.signatures.map(e=>t.SignatureDescriptor_Data.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.bitarray&&(r.bitarray=e.bitarray?i.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?r.signatures=e.signatures.map(e=>e?t.SignatureDescriptor_Data.toJSON(e):void 0):r.signatures=[],r},fromPartial(e){let r=h();return void 0!==e.bitarray&&null!==e.bitarray&&(r.bitarray=i.CompactBitArray.fromPartial(e.bitarray)),r.signatures=e.signatures?.map(e=>t.SignatureDescriptor_Data.fromPartial(e))||[],r}}},37375:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{seconds:BigInt(0),nanos:0}}t.protobufPackage="google.protobuf",t.Timestamp={typeUrl:"/google.protobuf.Timestamp",encode:(e,t=n.BinaryWriter.create())=>(e.seconds!==BigInt(0)&&t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.seconds=r.int64();break;case 2:a.nanos=r.int32();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.seconds)&&(t.seconds=BigInt(e.seconds.toString())),(0,i.isSet)(e.nanos)&&(t.nanos=Number(e.nanos)),t},toJSON(e){let t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||BigInt(0)).toString()),void 0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){let t=o();return void 0!==e.seconds&&null!==e.seconds&&(t.seconds=BigInt(e.seconds.toString())),t.nanos=e.nanos??0,t}}},37639:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGovAminoConverters=t.isAminoMsgDeposit=t.isAminoMsgVoteWeighted=t.isAminoMsgVote=t.isAminoMsgSubmitProposal=void 0;let n=r(73297),i=r(63688),o=r(15412),a=r(54573),s=r(51324);t.isAminoMsgSubmitProposal=function(e){return"cosmos-sdk/MsgSubmitProposal"===e.type},t.isAminoMsgVote=function(e){return"cosmos-sdk/MsgVote"===e.type},t.isAminoMsgVoteWeighted=function(e){return"cosmos-sdk/MsgVoteWeighted"===e.type},t.isAminoMsgDeposit=function(e){return"cosmos-sdk/MsgDeposit"===e.type},t.createGovAminoConverters=function(){return{"/cosmos.gov.v1beta1.MsgDeposit":{aminoType:"cosmos-sdk/MsgDeposit",toAmino:({amount:e,depositor:t,proposalId:r})=>({amount:e,depositor:t,proposal_id:r.toString()}),fromAmino:({amount:e,depositor:t,proposal_id:r})=>({amount:Array.from(e),depositor:t,proposalId:BigInt(r)})},"/cosmos.gov.v1beta1.MsgVote":{aminoType:"cosmos-sdk/MsgVote",toAmino:({option:e,proposalId:t,voter:r})=>({option:e,proposal_id:t.toString(),voter:r}),fromAmino:({option:e,proposal_id:t,voter:r})=>({option:(0,o.voteOptionFromJSON)(e),proposalId:BigInt(t),voter:r})},"/cosmos.gov.v1beta1.MsgVoteWeighted":{aminoType:"cosmos-sdk/MsgVoteWeighted",toAmino:({options:e,proposalId:t,voter:r})=>({options:e.map(e=>({option:e.option,weight:(0,s.decodeCosmosSdkDecFromProto)(e.weight).toString().padEnd(20,"0")})),proposal_id:t.toString(),voter:r}),fromAmino:({options:e,proposal_id:t,voter:r})=>({proposalId:BigInt(t),voter:r,options:e.map(e=>({option:(0,o.voteOptionFromJSON)(e.option),weight:n.Decimal.fromUserInput(e.weight,18).atomics}))})},"/cosmos.gov.v1beta1.MsgSubmitProposal":{aminoType:"cosmos-sdk/MsgSubmitProposal",toAmino:({initialDeposit:e,proposer:t,content:r})=>{let n;if((0,i.assertDefinedAndNotNull)(r),"/cosmos.gov.v1beta1.TextProposal"===r.typeUrl){let e=o.TextProposal.decode(r.value);n={type:"cosmos-sdk/TextProposal",value:{description:e.description,title:e.title}}}else throw Error(`Unsupported proposal type: '${r.typeUrl}'`);return{initial_deposit:e,proposer:t,content:n}},fromAmino:({initial_deposit:e,proposer:t,content:r})=>{let n;if("cosmos-sdk/TextProposal"===r.type){let{value:e}=r;(0,i.assert)((0,i.isNonNullObject)(e));let{title:t,description:s}=e;(0,i.assert)("string"==typeof t),(0,i.assert)("string"==typeof s),n=a.Any.fromPartial({typeUrl:"/cosmos.gov.v1beta1.TextProposal",value:o.TextProposal.encode(o.TextProposal.fromPartial({title:t,description:s})).finish()})}else throw Error(`Unsupported proposal type: '${r.type}'`);return{initialDeposit:Array.from(e),proposer:t,content:n}}}}}},37705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vestingTypes=void 0,t.vestingTypes=[["/cosmos.vesting.v1beta1.MsgCreateVestingAccount",r(34102).MsgCreateVestingAccount]]},37753:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeTxRaw=void 0;let n=r(13788);t.decodeTxRaw=function(e){let t=n.TxRaw.decode(e);return{authInfo:n.AuthInfo.decode(t.authInfoBytes),body:n.TxBody.decode(t.bodyBytes),signatures:t.signatures}}},38002:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryCommunityPoolResponse=t.QueryCommunityPoolRequest=t.QueryDelegatorWithdrawAddressResponse=t.QueryDelegatorWithdrawAddressRequest=t.QueryDelegatorValidatorsResponse=t.QueryDelegatorValidatorsRequest=t.QueryDelegationTotalRewardsResponse=t.QueryDelegationTotalRewardsRequest=t.QueryDelegationRewardsResponse=t.QueryDelegationRewardsRequest=t.QueryValidatorSlashesResponse=t.QueryValidatorSlashesRequest=t.QueryValidatorCommissionResponse=t.QueryValidatorCommissionRequest=t.QueryValidatorOutstandingRewardsResponse=t.QueryValidatorOutstandingRewardsRequest=t.QueryValidatorDistributionInfoResponse=t.QueryValidatorDistributionInfoRequest=t.QueryParamsResponse=t.QueryParamsRequest=t.protobufPackage=void 0;let n=r(64094),i=r(79340),o=r(91794),a=r(4696),s=r(92242);function d(){return{}}function l(){return{params:i.Params.fromPartial({})}}function c(){return{validatorAddress:""}}function u(){return{operatorAddress:"",selfBondRewards:[],commission:[]}}function p(){return{validatorAddress:""}}function f(){return{rewards:i.ValidatorOutstandingRewards.fromPartial({})}}function h(){return{validatorAddress:""}}function g(){return{commission:i.ValidatorAccumulatedCommission.fromPartial({})}}function m(){return{validatorAddress:"",startingHeight:BigInt(0),endingHeight:BigInt(0),pagination:void 0}}function y(){return{slashes:[],pagination:void 0}}function b(){return{delegatorAddress:"",validatorAddress:""}}function v(){return{rewards:[]}}function S(){return{delegatorAddress:""}}function A(){return{rewards:[],total:[]}}function w(){return{delegatorAddress:""}}function _(){return{validators:[]}}function P(){return{delegatorAddress:""}}function k(){return{withdrawAddress:""}}function R(){return{}}function O(){return{pool:[]}}t.protobufPackage="cosmos.distribution.v1beta1",t.QueryParamsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryParamsRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=d();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>d(),toJSON:e=>({}),fromPartial:e=>d()},t.QueryParamsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryParamsResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.params&&i.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.params=i.Params.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=l();return(0,s.isSet)(e.params)&&(t.params=i.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?i.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=l();return void 0!==e.params&&null!==e.params&&(t.params=i.Params.fromPartial(e.params)),t}},t.QueryValidatorDistributionInfoRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.validatorAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=c();return(0,s.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=c();return t.validatorAddress=e.validatorAddress??"",t}},t.QueryValidatorDistributionInfoResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse",encode(e,t=a.BinaryWriter.create()){for(let r of(""!==e.operatorAddress&&t.uint32(10).string(e.operatorAddress),e.selfBondRewards))o.DecCoin.encode(r,t.uint32(18).fork()).ldelim();for(let r of e.commission)o.DecCoin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.operatorAddress=r.string();break;case 2:i.selfBondRewards.push(o.DecCoin.decode(r,r.uint32()));break;case 3:i.commission.push(o.DecCoin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=u();return(0,s.isSet)(e.operatorAddress)&&(t.operatorAddress=String(e.operatorAddress)),Array.isArray(e?.selfBondRewards)&&(t.selfBondRewards=e.selfBondRewards.map(e=>o.DecCoin.fromJSON(e))),Array.isArray(e?.commission)&&(t.commission=e.commission.map(e=>o.DecCoin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.operatorAddress&&(t.operatorAddress=e.operatorAddress),e.selfBondRewards?t.selfBondRewards=e.selfBondRewards.map(e=>e?o.DecCoin.toJSON(e):void 0):t.selfBondRewards=[],e.commission?t.commission=e.commission.map(e=>e?o.DecCoin.toJSON(e):void 0):t.commission=[],t},fromPartial(e){let t=u();return t.operatorAddress=e.operatorAddress??"",t.selfBondRewards=e.selfBondRewards?.map(e=>o.DecCoin.fromPartial(e))||[],t.commission=e.commission?.map(e=>o.DecCoin.fromPartial(e))||[],t}},t.QueryValidatorOutstandingRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.validatorAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=p();return(0,s.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=p();return t.validatorAddress=e.validatorAddress??"",t}},t.QueryValidatorOutstandingRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.rewards&&i.ValidatorOutstandingRewards.encode(e.rewards,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=f();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.rewards=i.ValidatorOutstandingRewards.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=f();return(0,s.isSet)(e.rewards)&&(t.rewards=i.ValidatorOutstandingRewards.fromJSON(e.rewards)),t},toJSON(e){let t={};return void 0!==e.rewards&&(t.rewards=e.rewards?i.ValidatorOutstandingRewards.toJSON(e.rewards):void 0),t},fromPartial(e){let t=f();return void 0!==e.rewards&&null!==e.rewards&&(t.rewards=i.ValidatorOutstandingRewards.fromPartial(e.rewards)),t}},t.QueryValidatorCommissionRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.validatorAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=h();return(0,s.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=h();return t.validatorAddress=e.validatorAddress??"",t}},t.QueryValidatorCommissionResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.commission&&i.ValidatorAccumulatedCommission.encode(e.commission,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=g();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.commission=i.ValidatorAccumulatedCommission.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=g();return(0,s.isSet)(e.commission)&&(t.commission=i.ValidatorAccumulatedCommission.fromJSON(e.commission)),t},toJSON(e){let t={};return void 0!==e.commission&&(t.commission=e.commission?i.ValidatorAccumulatedCommission.toJSON(e.commission):void 0),t},fromPartial(e){let t=g();return void 0!==e.commission&&null!==e.commission&&(t.commission=i.ValidatorAccumulatedCommission.fromPartial(e.commission)),t}},t.QueryValidatorSlashesRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),e.startingHeight!==BigInt(0)&&t.uint32(16).uint64(e.startingHeight),e.endingHeight!==BigInt(0)&&t.uint32(24).uint64(e.endingHeight),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=m();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.validatorAddress=r.string();break;case 2:o.startingHeight=r.uint64();break;case 3:o.endingHeight=r.uint64();break;case 4:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=m();return(0,s.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,s.isSet)(e.startingHeight)&&(t.startingHeight=BigInt(e.startingHeight.toString())),(0,s.isSet)(e.endingHeight)&&(t.endingHeight=BigInt(e.endingHeight.toString())),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.startingHeight&&(t.startingHeight=(e.startingHeight||BigInt(0)).toString()),void 0!==e.endingHeight&&(t.endingHeight=(e.endingHeight||BigInt(0)).toString()),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=m();return t.validatorAddress=e.validatorAddress??"",void 0!==e.startingHeight&&null!==e.startingHeight&&(t.startingHeight=BigInt(e.startingHeight.toString())),void 0!==e.endingHeight&&null!==e.endingHeight&&(t.endingHeight=BigInt(e.endingHeight.toString())),void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryValidatorSlashesResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.slashes)i.ValidatorSlashEvent.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=y();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.slashes.push(i.ValidatorSlashEvent.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=y();return Array.isArray(e?.slashes)&&(t.slashes=e.slashes.map(e=>i.ValidatorSlashEvent.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.slashes?t.slashes=e.slashes.map(e=>e?i.ValidatorSlashEvent.toJSON(e):void 0):t.slashes=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=y();return t.slashes=e.slashes?.map(e=>i.ValidatorSlashEvent.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryDelegationRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,s.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,s.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=b();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",t}},t.QueryDelegationRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.rewards)o.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.rewards.push(o.DecCoin.decode(r,r.uint32())):r.skipType(7&e)}return i},fromJSON(e){let t=v();return Array.isArray(e?.rewards)&&(t.rewards=e.rewards.map(e=>o.DecCoin.fromJSON(e))),t},toJSON(e){let t={};return e.rewards?t.rewards=e.rewards.map(e=>e?o.DecCoin.toJSON(e):void 0):t.rewards=[],t},fromPartial(e){let t=v();return t.rewards=e.rewards?.map(e=>o.DecCoin.fromPartial(e))||[],t}},t.QueryDelegationTotalRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.delegatorAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=S();return(0,s.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),t},fromPartial(e){let t=S();return t.delegatorAddress=e.delegatorAddress??"",t}},t.QueryDelegationTotalRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.rewards)i.DelegationDelegatorReward.encode(r,t.uint32(10).fork()).ldelim();for(let r of e.total)o.DecCoin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=A();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.rewards.push(i.DelegationDelegatorReward.decode(r,r.uint32()));break;case 2:s.total.push(o.DecCoin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=A();return Array.isArray(e?.rewards)&&(t.rewards=e.rewards.map(e=>i.DelegationDelegatorReward.fromJSON(e))),Array.isArray(e?.total)&&(t.total=e.total.map(e=>o.DecCoin.fromJSON(e))),t},toJSON(e){let t={};return e.rewards?t.rewards=e.rewards.map(e=>e?i.DelegationDelegatorReward.toJSON(e):void 0):t.rewards=[],e.total?t.total=e.total.map(e=>e?o.DecCoin.toJSON(e):void 0):t.total=[],t},fromPartial(e){let t=A();return t.rewards=e.rewards?.map(e=>i.DelegationDelegatorReward.fromPartial(e))||[],t.total=e.total?.map(e=>o.DecCoin.fromPartial(e))||[],t}},t.QueryDelegatorValidatorsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.delegatorAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=w();return(0,s.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),t},fromPartial(e){let t=w();return t.delegatorAddress=e.delegatorAddress??"",t}},t.QueryDelegatorValidatorsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.validators)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.validators.push(r.string()):r.skipType(7&e)}return i},fromJSON(e){let t=_();return Array.isArray(e?.validators)
1&&(t.validators=e.validators.map(e=>String(e))),t},toJSON(e){let t={};return e.validators?t.validators=e.validators.map(e=>e):t.validators=[],t},fromPartial(e){let t=_();return t.validators=e.validators?.map(e=>e)||[],t}},t.QueryDelegatorWithdrawAddressRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=P();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.delegatorAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=P();return(0,s.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),t},fromPartial(e){let t=P();return t.delegatorAddress=e.delegatorAddress??"",t}},t.QueryDelegatorWithdrawAddressResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse",encode:(e,t=a.BinaryWriter.create())=>(""!==e.withdrawAddress&&t.uint32(10).string(e.withdrawAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=k();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.withdrawAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=k();return(0,s.isSet)(e.withdrawAddress)&&(t.withdrawAddress=String(e.withdrawAddress)),t},toJSON(e){let t={};return void 0!==e.withdrawAddress&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial(e){let t=k();return t.withdrawAddress=e.withdrawAddress??"",t}},t.QueryCommunityPoolRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryCommunityPoolRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=R();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>R(),toJSON:e=>({}),fromPartial:e=>R()},t.QueryCommunityPoolResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryCommunityPoolResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.pool)o.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.pool.push(o.DecCoin.decode(r,r.uint32())):r.skipType(7&e)}return i},fromJSON(e){let t=O();return Array.isArray(e?.pool)&&(t.pool=e.pool.map(e=>o.DecCoin.fromJSON(e))),t},toJSON(e){let t={};return e.pool?t.pool=e.pool.map(e=>e?o.DecCoin.toJSON(e):void 0):t.pool=[],t},fromPartial(e){let t=O();return t.pool=e.pool?.map(e=>o.DecCoin.fromPartial(e))||[],t}};class I{constructor(e){this.rpc=e,this.Params=this.Params.bind(this),this.ValidatorDistributionInfo=this.ValidatorDistributionInfo.bind(this),this.ValidatorOutstandingRewards=this.ValidatorOutstandingRewards.bind(this),this.ValidatorCommission=this.ValidatorCommission.bind(this),this.ValidatorSlashes=this.ValidatorSlashes.bind(this),this.DelegationRewards=this.DelegationRewards.bind(this),this.DelegationTotalRewards=this.DelegationTotalRewards.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorWithdrawAddress=this.DelegatorWithdrawAddress.bind(this),this.CommunityPool=this.CommunityPool.bind(this)}Params(e={}){let r=t.QueryParamsRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","Params",r).then(e=>t.QueryParamsResponse.decode(new a.BinaryReader(e)))}ValidatorDistributionInfo(e){let r=t.QueryValidatorDistributionInfoRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorDistributionInfo",r).then(e=>t.QueryValidatorDistributionInfoResponse.decode(new a.BinaryReader(e)))}ValidatorOutstandingRewards(e){let r=t.QueryValidatorOutstandingRewardsRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorOutstandingRewards",r).then(e=>t.QueryValidatorOutstandingRewardsResponse.decode(new a.BinaryReader(e)))}ValidatorCommission(e){let r=t.QueryValidatorCommissionRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorCommission",r).then(e=>t.QueryValidatorCommissionResponse.decode(new a.BinaryReader(e)))}ValidatorSlashes(e){let r=t.QueryValidatorSlashesRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorSlashes",r).then(e=>t.QueryValidatorSlashesResponse.decode(new a.BinaryReader(e)))}DelegationRewards(e){let r=t.QueryDelegationRewardsRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationRewards",r).then(e=>t.QueryDelegationRewardsResponse.decode(new a.BinaryReader(e)))}DelegationTotalRewards(e){let r=t.QueryDelegationTotalRewardsRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationTotalRewards",r).then(e=>t.QueryDelegationTotalRewardsResponse.decode(new a.BinaryReader(e)))}DelegatorValidators(e){let r=t.QueryDelegatorValidatorsRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorValidators",r).then(e=>t.QueryDelegatorValidatorsResponse.decode(new a.BinaryReader(e)))}DelegatorWithdrawAddress(e){let r=t.QueryDelegatorWithdrawAddressRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorWithdrawAddress",r).then(e=>t.QueryDelegatorWithdrawAddressResponse.decode(new a.BinaryReader(e)))}CommunityPool(e={}){let r=t.QueryCommunityPoolRequest.encode(e).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","CommunityPool",r).then(e=>t.QueryCommunityPoolResponse.decode(new a.BinaryReader(e)))}}t.QueryClientImpl=I},38033:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
1(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Tendermint37Client=void 0;let a=r(56662),s=r(151),d=r(91336),l=o(r(99292));class c{static async connect(e){let t;return t="object"==typeof e||e.startsWith("http://")||e.startsWith("https://")?new s.HttpClient(e):new s.WebsocketClient(e),await this.detectVersion(t),c.create(t)}static async create(e){return new c(e)}static async detectVersion(e){let t=(0,a.createJsonRpcRequest)(l.Method.Status),r=(await e.execute(t)).result;if(!r||!r.node_info)throw Error("Unrecognized format for status response");let n=r.node_info.version;if("string"!=typeof n)throw Error("Unrecognized version format: must be string");return n}constructor(e){this.client=e}disconnect(){this.client.disconnect()}async abciInfo(){let e={method:l.Method.AbciInfo};return this.doCall(e,d.Params.encodeAbciInfo,d.Responses.decodeAbciInfo)}async abciQuery(e){let t={params:e,method:l.Method.AbciQuery};return this.doCall(t,d.Params.encodeAbciQuery,d.Responses.decodeAbciQuery)}async block(e){let t={method:l.Method.Block,params:{height:e}};return this.doCall(t,d.Params.encodeBlock,d.Responses.decodeBlock)}async blockResults(e){let t={method:l.Method.BlockResults,params:{height:e}};return this.doCall(t,d.Params.encodeBlockResults,d.Responses.decodeBlockResults)}async blockSearch(e){let t={params:e,method:l.Method.BlockSearch},r=await this.doCall(t,d.Params.encodeBlockSearch,d.Responses.decodeBlockSearch);return{...r,blocks:[...r.blocks].sort((e,t)=>e.block.header.height-t.block.header.height)}}
1async blockSearchAll(e){let t=e.page||1,r=[],n=!1;for(;!n;){let i=await this.blockSearch({...e,page:t});r.push(...i.blocks),r.length<i.totalCount?t++:n=!0}return r.sort((e,t)=>e.block.header.height-t.block.header.height),{totalCount:r.length,blocks:r}}async blockchain(e,t){let r={method:l.Method.Blockchain,params:{minHeight:e,maxHeight:t}};return this.doCall(r,d.Params.encodeBlockchain,d.Responses.decodeBlockchain)}async broadcastTxSync(e){let t={params:e,method:l.Method.BroadcastTxSync};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxSync)}async broadcastTxAsync(e){let t={params:e,method:l.Method.BroadcastTxAsync};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxAsync)}async broadcastTxCommit(e){let t={params:e,method:l.Method.BroadcastTxCommit};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxCommit)}async commit(e){let t={method:l.Method.Commit,params:{height:e}};return this.doCall(t,d.Params.encodeCommit,d.Responses.decodeCommit)}async genesis(){let e={method:l.Method.Genesis};return this.doCall(e,d.Params.encodeGenesis,d.Responses.decodeGenesis)}async health(){let e={method:l.Method.Health};return this.doCall(e,d.Params.encodeHealth,d.Responses.decodeHealth)}async numUnconfirmedTxs(){let e={method:l.Method.NumUnconfirmedTxs};return this.doCall(e,d.Params.encodeNumUnconfirmedTxs,d.Responses.decodeNumUnconfirmedTxs)}async status(){let e={method:l.Method.Status};return this.doCall(e,d.Params.encodeStatus,d.Responses.decodeStatus)}subscribeNewBlock(){let e={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.NewBlock}};return this.subscribe(e,d.Responses.decodeNewBlockEvent)}subscribeNewBlockHeader(){let e={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.NewBlockHeader}};return this.subscribe(e,d.Responses.decodeNewBlockHeaderEvent)}subscribeTx(e){let t={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.Tx,raw:e}};return this.subscribe(t,d.Responses.decodeTxEvent)}async tx(e){let t={params:e,method:l.Method.Tx};return this.doCall(t,d.Params.encodeTx,d.Responses.decodeTx)}async txSearch(e){let t={params:e,method:l.Method.TxSearch};return this.doCall(t,d.Params.encodeTxSearch,d.Responses.decodeTxSearch)}
1async txSearchAll(e){let t=e.page||1,r=[],n=!1;for(;!n;){let i=await this.txSearch({...e,page:t});r.push(...i.txs),r.length<i.totalCount?t++:n=!0}return{totalCount:r.length,txs:r}}async validators(e){let t={method:l.Method.Validators,params:e};return this.doCall(t,d.Params.encodeValidators,d.Responses.decodeValidators)}async validatorsAll(e){let t=[],r=1,n=!1,i=e;for(;!n;){let e=await this.validators({per_page:50,height:i,page:r});t.push(...e.validators),i=i||e.blockHeight,t.length<e.total?r++:n=!0}return{blockHeight:i??0,count:t.length,total:t.length,validators:t}}async doCall(e,t,r){let n=t(e);return r(await this.client.execute(n))}subscribe(e,t){if(!(0,s.instanceOfRpcStreamingClient)(this.client))throw Error("This RPC client type cannot subscribe to events");let r=d.Params.encodeSubscribe(e);return this.client.listen(r).map(e=>t(e))}}t.Tendermint37Client=c},38238:(e,t,r)=>{var n=r(40459),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!_(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])A(s)||!R(s)?a+=" "+s:a+=" "+l(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var d=n.env.NODE_DEBUG;s=RegExp("^"+(d=d.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function l(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),S(r)?n.showHidden=r:r&&t._extend(n,r),P(n.showHidden)&&(n.showHidden=!1),P(n.depth)&&(n.depth=2),P(n.colors)&&(n.colors=!1),P(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,e,n.depth)}function c(e,t){var r=l.styles[t];return r?"\x1b["+l.colors[r][0]+"m"+e+"\x1b["+l.colors[r][1]+"m":e}function u(e,t){return e}function p(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function f(e,r,n){if(e.customInspect&&r&&B(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return _(o)||(o=f(e,o,n)),o}var a=h(e,r);if(a)return a;var s=Object.keys(r),d=p(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),I(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return g(r);if(0===s.length){if(B(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(k(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return e.stylize(Date.prototype.toString.call(r),"date");if(I(r))return g(r)}var c="",u=!1,S=["{","}"];if(v(r)&&(u=!0,S=["[","]"]),B(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),k(r)&&(c=" "+RegExp.prototype.toString.call(r)),O(r)&&(c=" "+Date.prototype.toUTCString.call(r)),I(r)&&(c=" "+g(r)),0===s.length&&(!u||0==r.length))return S[0]+c+S[1];if(n<0)if(k(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=u?m(e,r,n,d,s):s.map(function(t){return y(e,r,n,d,t,u)}),e.seen.pop(),b(i,c,S)}function h(e,t){if(P(t))return e.stylize("undefined","undefined");if(_(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return w(t)?e.stylize(""+t,"number"):S(t)?e.stylize(""+t,"boolean"):A(t)?e.stylize("null","null"):void 0}function g(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)C(t,String(a))?o.push(y(e,t,r,n,String(a),!0)):o.push("");
1return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}function y(e,t,r,n,i,o){var a,s,d;if((d=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=d.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):d.set&&(s=e.stylize("[Setter]","special")),C(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(d.value)?(s=A(r)?f(e,d.value,null):f(e,d.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),P(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function S(e){return"boolean"==typeof e}function A(e){return null===e}function w(e){return"number"==typeof e}function _(e){return"string"==typeof e}function P(e){return void 0===e}function k(e){return R(e)&&"[object RegExp]"===x(e)}function R(e){return"object"==typeof e&&null!==e}function O(e){return R(e)&&"[object Date]"===x(e)}function I(e){return R(e)&&("[object Error]"===x(e)||e instanceof Error)}function B(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(59583),t.isArray=v,t.isBoolean=S,t.isNull=A,t.isNullOrUndefined=function(e){return null==e},t.isNumber=w,t.isString=_,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=P,t.isRegExp=k,t.types.isRegExp=k,t.isObject=R,t.isDate=O,t.types.isDate=O,t.isError=I,t.types.isNativeError=I,t.isFunction=B,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(98476);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=r(45381),t._extend=function(e,t){if(!t||!R(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t=e[M];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=M,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){n.nextTick(a.bind(null,null,e))},function(e){n.nextTick(U.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},38496:(e,t)=>{"use strict";function r(e){return[t.pubkeyType.ed25519,t.pubkeyType.secp256k1,t.pubkeyType.sr25519].includes(e.type)}
1Object.defineProperty(t,"__esModule",{value:!0}),t.isMultisigThresholdPubkey=t.isSinglePubkey=t.pubkeyType=t.isSecp256k1Pubkey=t.isEd25519Pubkey=void 0,t.isEd25519Pubkey=function(e){return"tendermint/PubKeyEd25519"===e.type},t.isSecp256k1Pubkey=function(e){return"tendermint/PubKeySecp256k1"===e.type},t.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519",multisigThreshold:"tendermint/PubKeyMultisigThreshold"},t.isSinglePubkey=r,t.isMultisigThresholdPubkey=function(e){return"tendermint/PubKeyMultisigThreshold"===e.type}},39042:(e,t,r)=>{"use strict";var n=r(51700);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},39085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultValueProducer=void 0;class r{get value(){return this.internalValue}constructor(e,t){this.callbacks=t,this.internalValue=e}update(e){this.internalValue=e,this.listener&&this.listener.next(e)}error(e){this.listener&&this.listener.error(e)}start(e){this.listener=e,e.next(this.internalValue),this.callbacks&&this.callbacks.onStarted()}stop(){this.callbacks&&this.callbacks.onStop(),this.listener=void 0}}t.DefaultValueProducer=r},39149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFeegrantAminoConverters=void 0,t.createFeegrantAminoConverters=function(){return{}}},39201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupGovExtension=void 0;let n=r(67192),i=r(51324);t.setupGovExtension=function(e){let t=(0,i.createProtobufRpcClient)(e),r=new n.QueryClientImpl(t);return{gov:{params:async e=>await r.Params({paramsType:e}),proposals:async(e,t,n,o)=>await r.Proposals({proposalStatus:e,depositor:t,voter:n,pagination:(0,i.createPagination)(o)}),proposal:async e=>await r.Proposal({proposalId:(0,i.longify)(e)}),deposits:async(e,t)=>await r.Deposits({proposalId:(0,i.longify)(e),pagination:(0,i.createPagination)(t)}),deposit:async(e,t)=>await r.Deposit({proposalId:(0,i.longify)(e),depositor:t}),tally:async e=>await r.TallyResult({proposalId:(0,i.longify)(e)}),votes:async(e,t)=>await r.Votes({proposalId:(0,i.longify)(e),pagination:(0,i.createPagination)(t)}),vote:async(e,t)=>await r.Vote({proposalId:(0,i.longify)(e),voter:t})}}}},39789:(e,t,r)=>{"use strict";var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Vote=t.TallyResult=t.Proposal=t.GroupPolicyInfo=t.GroupMember=t.GroupInfo=t.DecisionPolicyWindows=t.PercentageDecisionPolicy=t.ThresholdDecisionPolicy=t.MemberRequest=t.Member=t.proposalExecutorResultToJSON=t.proposalExecutorResultFromJSON=t.ProposalExecutorResult=t.proposalStatusToJSON=t.proposalStatusFromJSON=t.ProposalStatus=t.voteOptionToJSON=t.voteOptionFromJSON=t.VoteOption=t.protobufPackage=void 0;let a=r(37375),s=r(19393),d=r(54573),l=r(4696),c=r(92242);function u(e){switch(e){case 0:case"VOTE_OPTION_UNSPECIFIED":return n.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return n.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return n.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return n.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return n.VOTE_OPTION_NO_WITH_VETO;default:return n.UNRECOGNIZED}}function p(e){switch(e){case n.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case n.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case n.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case n.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case n.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return i.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_SUBMITTED":return i.PROPOSAL_STATUS_SUBMITTED;case 2:case"PROPOSAL_STATUS_ACCEPTED":return i.PROPOSAL_STATUS_ACCEPTED;case 3:case"PROPOSAL_STATUS_REJECTED":return i.PROPOSAL_STATUS_REJECTED;case 4:case"PROPOSAL_STATUS_ABORTED":return i.PROPOSAL_STATUS_ABORTED;case 5:case"PROPOSAL_STATUS_WITHDRAWN":return i.PROPOSAL_STATUS_WITHDRAWN;default:return i.UNRECOGNIZED}}function h(e){switch(e){case i.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case i.PROPOSAL_STATUS_SUBMITTED:return"PROPOSAL_STATUS_SUBMITTED";case i.PROPOSAL_STATUS_ACCEPTED:return"PROPOSAL_STATUS_ACCEPTED";case i.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case i.PROPOSAL_STATUS_ABORTED:return"PROPOSAL_STATUS_ABORTED";case i.PROPOSAL_STATUS_WITHDRAWN:return"PROPOSAL_STATUS_WITHDRAWN";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(e){switch(e){case 0:case"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED":return o.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED;case 1:case"PROPOSAL_EXECUTOR_RESULT_NOT_RUN":return o.PROPOSAL_EXECUTOR_RESULT_NOT_RUN;case 2:case"PROPOSAL_EXECUTOR_RESULT_SUCCESS":return o.PROPOSAL_EXECUTOR_RESULT_SUCCESS;case 3:case"PROPOSAL_EXECUTOR_RESULT_FAILURE":return o.PROPOSAL_EXECUTOR_RESULT_FAILURE;default:return o.UNRECOGNIZED}}function m(e){switch(e){case o.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED:return"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";case o.PROPOSAL_EXECUTOR_RESULT_NOT_RUN:return"PROPOSAL_EXECUTOR_RESULT_NOT_RUN";case o.PROPOSAL_EXECUTOR_RESULT_SUCCESS:return"PROPOSAL_EXECUTOR_RESULT_SUCCESS";case o.PROPOSAL_EXECUTOR_RESULT_FAILURE:return"PROPOSAL_EXECUTOR_RESULT_FAILURE";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function y(){return{address:"",weight:"",metadata:"",addedAt:a.Timestamp.fromPartial({})}}function b(){return{address:"",weight:"",metadata:""}}function v(){return{threshold:"",windows:void 0}}function S(){return{percentage:"",windows:void 0}}function A(){return{votingPeriod:s.Duration.fromPartial({}),minExecutionPeriod:s.Duration.fromPartial({})}}function w(){return{id:BigInt(0),admin:"",metadata:"",version:BigInt(0),totalWeight:"",createdAt:a.Timestamp.fromPartial({})}}function _(){return{groupId:BigInt(0),member:void 0}}function P(){return{address:"",groupId:BigInt(0),admin:"",metadata:"",version:BigInt(0),decisionPolicy:void 0,createdAt:a.Timestamp.fromPartial({})}}function k(){return{id:BigInt(0),groupPolicyAddress:"",metadata:"",proposers:[],submitTime:a.Timestamp.fromPartial({}),groupVersion:BigInt(0),groupPolicyVersion:BigInt(0),status:0,finalTallyResult:t.TallyResult.fromPartial({}),votingPeriodEnd:a.Timestamp.fromPartial({}),executorResult:0,messages:[],title:"",summary:""}}function R(){return{yesCount:"",abstainCount:"",noCount:"",noWithVetoCount:""}}function O(){return{proposalId:BigInt(0),voter:"",option:0,metadata:"",submitTime:a.Timestamp.fromPartial({})}}t.protobufPackage="cosmos.group.v1",function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",e[e.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",e[e.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",e[e.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",e[e.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.VoteOption=n={})),t.voteOptionFromJSON=u,t.voteOptionToJSON=p,function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",e[e.PROPOSAL_STATUS_SUBMITTED=1]="PROPOSAL_STATUS_SUBMITTED",e[e.PROPOSAL_STATUS_ACCEPTED=2]="PROPOSAL_STATUS_ACCEPTED",e[e.PROPOSAL_STATUS_REJECTED=3]="PROPOSAL_STATUS_REJECTED",e[e.PROPOSAL_STATUS_ABORTED=4]="PROPOSAL_STATUS_ABORTED",e[e.PROPOSAL_STATUS_WITHDRAWN=5]="PROPOSAL_STATUS_WITHDRAWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(t.ProposalStatus=i={})),t.proposalStatusFromJSON=f,t.proposalStatusToJSON=h,function(e){e[e.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED=0]="PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",e[e.PROPOSAL_EXECUTOR_RESULT_NOT_RUN=1]="PROPOSAL_EXECUTOR_RESULT_NOT_RUN",e[e.PROPOSAL_EXECUTOR_RESULT_SUCCESS=2]="PROPOSAL_EXECUTOR_RESULT_SUCCESS",e[e.PROPOSAL_EXECUTOR_RESULT_FAILURE=3]="PROPOSAL_EXECUTOR_RESULT_FAILURE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(t.ProposalExecutorResult=o={})),t.proposalExecutorResultFromJSON=g,t.proposalExecutorResultToJSON=m,t.Member={typeUrl:"/cosmos.group.v1.Member",encode:(e,t=l.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),""!==e.weight&&t.uint32(18).string(e.weight),""!==e.metadata&&t.uint32(26).string(e.metadata),void 0!==e.addedAt&&a.Timestamp.encode(e.addedAt,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.address=r.string();break;case 2:i.weight=r.string();break;case 3:i.metadata=r.string();break;case 4:i.addedAt=a.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return(0,c.isSet)(e.address)&&(t.address=String(e.address)),(0,c.isSet)(e.weight)&&(t.weight=String(e.weight)),(0,c.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,c.isSet)(e.addedAt)&&(t.addedAt=(0,c.fromJsonTimestamp)(e.addedAt)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.weight&&(t.weight=e.weight),void 0!==e.metadata&&(t.metadata=e.metadata),void 0!==e.addedAt&&(t.addedAt=(0,c.fromTimestamp)(e.addedAt).toISOString()),t},fromPartial(e){let t=y();return t.address=e.address??"",t.weight=e.weight??"",t.metadata=e.metadata??"",void 0!==e.addedAt&&null!==e.addedAt&&(t.addedAt=a.Timestamp.fromPartial(e.addedAt)),t}},t.MemberRequest={typeUrl:"/cosmos.group.v1.MemberRequest",encode:(e,t=l.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),""!==e.weight&&t.uint32(18).string(e.weight),""!==e.metadata&&t.uint32(26).string(e.metadata),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.address=r.string();break;case 2:i.weight=r.string();break;case 3:i.metadata=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,c.isSet)(e.address)&&(t.address=String(e.address)),(0,c.isSet)(e.weight)&&(t.weight=String(e.weight)),(0,c.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.weight&&(t.weight=e.weight),void 0!==e.metadata&&(t.metadata=e.metadata),t},fromPartial(e){let t=b();return t.address=e.address??"",t.weight=e.weight??"",t.metadata=e.metadata??"",t}},t.ThresholdDecisionPolicy={typeUrl:"/cosmos.group.v1.ThresholdDecisionPolicy",encode:(e,r=l.BinaryWriter.create())=>(""!==e.threshold&&r.uint32(10).string(e.threshold),void 0!==e.windows&&t.DecisionPolicyWindows.encode(e.windows,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=v();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.threshold=n.string();break;case 2:o.windows=t.DecisionPolicyWindows.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=v();return(0,c.isSet)(e.threshold)&&(r.threshold=String(e.threshold)),(0,c.isSet)(e.windows)&&(r.windows=t.DecisionPolicyWindows.fromJSON(e.windows)),r},toJSON(e){let r={};return void 0!==e.threshold&&(r.threshold=e.threshold),void 0!==e.windows&&(r.windows=e.windows?t.DecisionPolicyWindows.toJSON(e.windows):void 0),r},fromPartial(e){let r=v();return r.threshold=e.threshold??"",void 0!==e.windows&&null!==e.windows&&(r.windows=t.DecisionPolicyWindows.fromPartial(e.windows)),r}},t.PercentageDecisionPolicy={typeUrl:"/cosmos.group.v1.PercentageDecisionPolicy",encode:(e,r=l.BinaryWriter.create())=>(""!==e.percentage&&r.uint32(10).string(e.percentage),void 0!==e.windows&&t.DecisionPolicyWindows.encode(e.windows,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=S();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.percentage=n.string();break;case 2:o.windows=t.DecisionPolicyWindows.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=S();return(0,c.isSet)(e.percentage)&&(r.percentage=String(e.percentage)),(0,c.isSet)(e.windows)&&(r.windows=t.DecisionPolicyWindows.fromJSON(e.windows)),r},toJSON(e){let r={};return void 0!==e.percentage&&(r.percentage=e.percentage),void 0!==e.windows&&(r.windows=e.windows?t.DecisionPolicyWindows.toJSON(e.windows):void 0),r},fromPartial(e){let r=S();return r.percentage=e.percentage??"",void 0!==e.windows&&null!==e.windows&&(r.windows=t.DecisionPolicyWindows.fromPartial(e.windows)),r}},t.DecisionPolicyWindows={typeUrl:"/cosmos.group.v1.DecisionPolicyWindows",encode:(e,t=l.BinaryWriter.create())=>(void 0!==e.votingPeriod&&s.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),void 0!==e.minExecutionPeriod&&s.Duration.encode(e.minExecutionPeriod,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.votingPeriod=s.Duration.decode(r,r.uint32());break;case 2:i.minExecutionPeriod=s.Duration.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=A();
1return(0,c.isSet)(e.votingPeriod)&&(t.votingPeriod=s.Duration.fromJSON(e.votingPeriod)),(0,c.isSet)(e.minExecutionPeriod)&&(t.minExecutionPeriod=s.Duration.fromJSON(e.minExecutionPeriod)),t},toJSON(e){let t={};return void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?s.Duration.toJSON(e.votingPeriod):void 0),void 0!==e.minExecutionPeriod&&(t.minExecutionPeriod=e.minExecutionPeriod?s.Duration.toJSON(e.minExecutionPeriod):void 0),t},fromPartial(e){let t=A();return void 0!==e.votingPeriod&&null!==e.votingPeriod&&(t.votingPeriod=s.Duration.fromPartial(e.votingPeriod)),void 0!==e.minExecutionPeriod&&null!==e.minExecutionPeriod&&(t.minExecutionPeriod=s.Duration.fromPartial(e.minExecutionPeriod)),t}},t.GroupInfo={typeUrl:"/cosmos.group.v1.GroupInfo",encode:(e,t=l.BinaryWriter.create())=>(e.id!==BigInt(0)&&t.uint32(8).uint64(e.id),""!==e.admin&&t.uint32(18).string(e.admin),""!==e.metadata&&t.uint32(26).string(e.metadata),e.version!==BigInt(0)&&t.uint32(32).uint64(e.version),""!==e.totalWeight&&t.uint32(42).string(e.totalWeight),void 0!==e.createdAt&&a.Timestamp.encode(e.createdAt,t.uint32(50).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.id=r.uint64();break;case 2:i.admin=r.string();break;case 3:i.metadata=r.string();break;case 4:i.version=r.uint64();break;case 5:i.totalWeight=r.string();break;case 6:i.createdAt=a.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=w();return(0,c.isSet)(e.id)&&(t.id=BigInt(e.id.toString())),(0,c.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,c.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,c.isSet)(e.version)&&(t.version=BigInt(e.version.toString())),(0,c.isSet)(e.totalWeight)&&(t.totalWeight=String(e.totalWeight)),(0,c.isSet)(e.createdAt)&&(t.createdAt=(0,c.fromJsonTimestamp)(e.createdAt)),t},toJSON(e){let t={};return void 0!==e.id&&(t.id=(e.id||BigInt(0)).toString()),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.metadata&&(t.metadata=e.metadata),void 0!==e.version&&(t.version=(e.version||BigInt(0)).toString()),void 0!==e.totalWeight&&(t.totalWeight=e.totalWeight),void 0!==e.createdAt&&(t.createdAt=(0,c.fromTimestamp)(e.createdAt).toISOString()),t},fromPartial(e){let t=w();return void 0!==e.id&&null!==e.id&&(t.id=BigInt(e.id.toString())),t.admin=e.admin??"",t.metadata=e.metadata??"",void 0!==e.version&&null!==e.version&&(t.version=BigInt(e.version.toString())),t.totalWeight=e.totalWeight??"",void 0!==e.createdAt&&null!==e.createdAt&&(t.createdAt=a.Timestamp.fromPartial(e.createdAt)),t}},t.GroupMember={typeUrl:"/cosmos.group.v1.GroupMember",encode:(e,r=l.BinaryWriter.create())=>(e.groupId!==BigInt(0)&&r.uint32(8).uint64(e.groupId),void 0!==e.member&&t.Member.encode(e.member,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=_();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.groupId=n.uint64();break;case 2:o.member=t.Member.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=_();return(0,c.isSet)(e.groupId)&&(r.groupId=BigInt(e.groupId.toString())),(0,c.isSet)(e.member)&&(r.member=t.Member.fromJSON(e.member)),r},toJSON(e){let r={};return void 0!==e.groupId&&(r.groupId=(e.groupId||BigInt(0)).toString()),void 0!==e.member&&(r.member=e.member?t.Member.toJSON(e.member):void 0),r},fromPartial(e){let r=_();return void 0!==e.groupId&&null!==e.groupId&&(r.groupId=BigInt(e.groupId.toString())),void 0!==e.member&&null!==e.member&&(r.member=t.Member.fromPartial(e.member)),r}},t.GroupPolicyInfo={typeUrl:"/cosmos.group.v1.GroupPolicyInfo",encode:(e,t=l.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),""!==e.admin&&t.uint32(26).string(e.admin),""!==e.metadata&&t.uint32(34).string(e.metadata),e.version!==BigInt(0)&&t.uint32(40).uint64(e.version),void 0!==e.decisionPolicy&&d.Any.encode(e.decisionPolicy,t.uint32(50).fork()).ldelim(),void 0!==e.createdAt&&a.Timestamp.encode(e.createdAt,t.uint32(58).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=P();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.address=r.string();break;case 2:i.groupId=r.uint64();break;case 3:i.admin=r.string();break;case 4:i.metadata=r.string();break;case 5:i.version=r.uint64();break;case 6:i.decisionPolicy=d.Any.decode(r,r.uint32());break;case 7:i.createdAt=a.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=P();return(0,c.isSet)(e.address)&&(t.address=String(e.address)),(0,c.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,c.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,c.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,c.isSet)(e.version)&&(t.version=BigInt(e.version.toString())),(0,c.isSet)(e.decisionPolicy)&&(t.decisionPolicy=d.Any.fromJSON(e.decisionPolicy)),(0,c.isSet)(e.createdAt)&&(t.createdAt=(0,c.fromJsonTimestamp)(e.createdAt)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.metadata&&(t.metadata=e.metadata),void 0!==e.version&&(t.version=(e.version||BigInt(0)).toString()),void 0!==e.decisionPolicy&&(t.decisionPolicy=e.decisionPolicy?d.Any.toJSON(e.decisionPolicy):void 0),void 0!==e.createdAt&&(t.createdAt=(0,c.fromTimestamp)(e.createdAt).toISOString()),t},fromPartial(e){let t=P();return t.address=e.address??"",void 0!==e.groupId&&null!==e.groupId&&(t.groupId=BigInt(e.groupId.toString())),t.admin=e.admin??"",t.metadata=e.metadata??"",void 0!==e.version&&null!==e.version&&(t.version=BigInt(e.version.toString())),void 0!==e.decisionPolicy&&null!==e.decisionPolicy&&(t.decisionPolicy=d.Any.fromPartial(e.decisionPolicy)),void 0!==e.createdAt&&null!==e.createdAt&&(t.createdAt=a.Timestamp.fromPartial(e.createdAt)),t}},t.Proposal={typeUrl:"/cosmos.group.v1.Proposal",encode(e,r=l.BinaryWriter.create()){for(let t of(e.id!==BigInt(0)&&r.uint32(8).uint64(e.id),""!==e.groupPolicyAddress&&r.uint32(18).string(e.groupPolicyAddress),""!==e.metadata&&r.uint32(26).string(e.metadata),e.proposers))r.uint32(34).string(t);for(let n of(void 0!==e.submitTime&&a.Timestamp.encode(e.submitTime,r.uint32(42).fork()).ldelim(),e.groupVersion!==BigInt(0)&&r.uint32(48).uint64(e.groupVersion),e.groupPolicyVersion!==BigInt(0)&&r.uint32(56).uint64(e.groupPolicyVersion),0!==e.status&&r.uint32(64).int32(e.status),void 0!==e.finalTallyResult&&t.TallyResult.encode(e.finalTallyResult,r.uint32(74).fork()).ldelim(),void 0!==e.votingPeriodEnd&&a.Timestamp.encode(e.votingPeriodEnd,r.uint32(82).fork()).ldelim(),0!==e.executorResult&&r.uint32(88).int32(e.executorResult),e.messages))d.Any.encode(n,r.uint32(98).fork()).ldelim();return""!==e.title&&r.uint32(106).string(e.title),""!==e.summary&&r.uint32(114).string(e.summary),r},decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=k();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.id=n.uint64();break;case 2:o.groupPolicyAddress=n.string();break;case 3:o.metadata=n.string();break;case 4:o.proposers.push(n.string());break;case 5:o.submitTime=a.Timestamp.decode(n,n.uint32());break;case 6:o.groupVersion=n.uint64();break;case 7:o.groupPolicyVersion=n.uint64();break;case 8:o.status=n.int32();break;case 9:o.finalTallyResult=t.TallyResult.decode(n,n.uint32());break;case 10:o.votingPeriodEnd=a.Timestamp.decode(n,n.uint32());break;case 11:o.executorResult=n.int32();break;case 12:o.messages.push(d.Any.decode(n,n.uint32()));break;case 13:o.title=n.string();break;case 14:o.summary=n.string();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=k();return(0,c.isSet)(e.id)&&(r.id=BigInt(e.id.toString())),(0,c.isSet)(e.groupPolicyAddress)&&(r.groupPolicyAddress=String(e.groupPolicyAddress)),(0,c.isSet)(e.metadata)&&(r.metadata=String(e.metadata)),Array.isArray(e?.proposers)&&(r.proposers=e.proposers.map(e=>
1String(e))),(0,c.isSet)(e.submitTime)&&(r.submitTime=(0,c.fromJsonTimestamp)(e.submitTime)),(0,c.isSet)(e.groupVersion)&&(r.groupVersion=BigInt(e.groupVersion.toString())),(0,c.isSet)(e.groupPolicyVersion)&&(r.groupPolicyVersion=BigInt(e.groupPolicyVersion.toString())),(0,c.isSet)(e.status)&&(r.status=f(e.status)),(0,c.isSet)(e.finalTallyResult)&&(r.finalTallyResult=t.TallyResult.fromJSON(e.finalTallyResult)),(0,c.isSet)(e.votingPeriodEnd)&&(r.votingPeriodEnd=(0,c.fromJsonTimestamp)(e.votingPeriodEnd)),(0,c.isSet)(e.executorResult)&&(r.executorResult=g(e.executorResult)),Array.isArray(e?.messages)&&(r.messages=e.messages.map(e=>d.Any.fromJSON(e))),(0,c.isSet)(e.title)&&(r.title=String(e.title)),(0,c.isSet)(e.summary)&&(r.summary=String(e.summary)),r},toJSON(e){let r={};return void 0!==e.id&&(r.id=(e.id||BigInt(0)).toString()),void 0!==e.groupPolicyAddress&&(r.groupPolicyAddress=e.groupPolicyAddress),void 0!==e.metadata&&(r.metadata=e.metadata),e.proposers?r.proposers=e.proposers.map(e=>e):r.proposers=[],void 0!==e.submitTime&&(r.submitTime=(0,
1c.fromTimestamp)(e.submitTime).toISOString()),void 0!==e.groupVersion&&(r.groupVersion=(e.groupVersion||BigInt(0)).toString()),void 0!==e.groupPolicyVersion&&(r.groupPolicyVersion=(e.groupPolicyVersion||BigInt(0)).toString()),void 0!==e.status&&(r.status=h(e.status)),void 0!==e.finalTallyResult&&(r.finalTallyResult=e.finalTallyResult?t.TallyResult.toJSON(e.finalTallyResult):void 0),void 0!==e.votingPeriodEnd&&(r.votingPeriodEnd=(0,c.fromTimestamp)(e.votingPeriodEnd).toISOString()),void 0!==e.executorResult&&(r.executorResult=m(e.executorResult)),e.messages?r.messages=e.messages.map(e=>e?d.Any.toJSON(e):void 0):r.messages=[],void 0!==e.title&&(r.title=e.title),void 0!==e.summary&&(r.summary=e.summary),r},fromPartial(e){let r=k();return void 0!==e.id&&null!==e.id&&(r.id=BigInt(e.id.toString())),r.groupPolicyAddress=e.groupPolicyAddress??"",r.metadata=e.metadata??"",r.proposers=e.proposers?.map(e=>e)||[],void 0!==e.submitTime&&null!==e.submitTime&&(r.submitTime=a.Timestamp.fromPartial(e.submitTime)),void 0!==e.groupVersion&&null!==e.groupVersion&&(r.groupVersion=BigInt(e.groupVersion.toString())),void 0!==e.groupPolicyVersion&&null!==e.groupPolicyVersion&&(r.groupPolicyVersion=BigInt(e.groupPolicyVersion.toString())),r.status=e.status??0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult&&(r.finalTallyResult=t.TallyResult.fromPartial(e.finalTallyResult)),void 0!==e.votingPeriodEnd&&null!==e.votingPeriodEnd&&(r.votingPeriodEnd=a.Timestamp.fromPartial(e.votingPeriodEnd)),r.executorResult=e.executorResult??0,r.messages=e.messages?.map(e=>d.Any.fromPartial(e))||[],r.title=e.title??"",r.summary=e.summary??"",r}},t.TallyResult={typeUrl:"/cosmos.group.v1.TallyResult",encode:(e,t=l.BinaryWriter.create())=>(""!==e.yesCount&&t.uint32(10).string(e.yesCount),""!==e.abstainCount&&t.uint32(18).string(e.abstainCount),""!==e.noCount&&t.uint32(26).string(e.noCount),""!==e.noWithVetoCount&&t.uint32(34).string(e.noWithVetoCount),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=R();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.yesCount=r.string();break;case 2:i.abstainCount=r.string();break;case 3:i.noCount=r.string();break;case 4:i.noWithVetoCount=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=R();return(0,c.isSet)(e.yesCount)&&(t.yesCount=String(e.yesCount)),(0,c.isSet)(e.abstainCount)&&(t.abstainCount=String(e.abstainCount)),(0,c.isSet)(e.noCount)&&(t.noCount=String(e.noCount)),(0,c.isSet)(e.noWithVetoCount)&&(t.noWithVetoCount=String(e.noWithVetoCount)),t},toJSON(e){let t={};return void 0!==e.yesCount&&(t.yesCount=e.yesCount),void 0!==e.abstainCount&&(t.abstainCount=e.abstainCount),void 0!==e.noCount&&(t.noCount=e.noCount),void 0!==e.noWithVetoCount&&(t.noWithVetoCount=e.noWithVetoCount),t},fromPartial(e){let t=R();return t.yesCount=e.yesCount??"",t.abstainCount=e.abstainCount??"",t.noCount=e.noCount??"",t.noWithVetoCount=e.noWithVetoCount??"",t}},t.Vote={typeUrl:"/cosmos.group.v1.Vote",encode:(e,t=l.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),0!==e.option&&t.uint32(24).int32(e.option),""!==e.metadata&&t.uint32(34).string(e.metadata),void 0!==e.submitTime&&a.Timestamp.encode(e.submitTime,t.uint32(42).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.option=r.int32();break;case 4:i.metadata=r.string();break;case 5:i.submitTime=a.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=O();return(0,c.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,c.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,c.isSet)(e.option)&&(t.option=u(e.option)),(0,c.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,c.isSet)(e.submitTime)&&(t.submitTime=(0,
1c.fromJsonTimestamp)(e.submitTime)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.option&&(t.option=p(e.option)),void 0!==e.metadata&&(t.metadata=e.metadata),void 0!==e.submitTime&&(t.submitTime=(0,c.fromTimestamp)(e.submitTime).toISOString()),t},fromPartial(e){let t=O();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t.metadata=e.metadata??"",void 0!==e.submitTime&&null!==e.submitTime&&(t.submitTime=a.Timestamp.fromPartial(e.submitTime)),t}}},39942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryAllowancesByGranterResponse=t.QueryAllowancesByGranterRequest=t.QueryAllowancesResponse=t.QueryAllowancesRequest=t.QueryAllowanceResponse=t.QueryAllowanceRequest=t.protobufPackage=void 0;let n=r(64094),i=r(22628),o=r(4696),a=r(92242);function s(){return{granter:"",grantee:""}}function d(){return{allowance:void 0}}function l(){return{grantee:"",pagination:void 0}}function c(){return{allowances:[],pagination:void 0}}function u(){return{granter:"",pagination:void 0}}function p(){return{allowances:[],pagination:void 0}}t.protobufPackage="cosmos.feegrant.v1beta1",t.QueryAllowanceRequest={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowanceRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=s();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.granter=r.string();break;case 2:i.grantee=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=s();return(0,a.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,a.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),t},fromPartial(e){let t=s();return t.granter=e.granter??"",t.grantee=e.grantee??"",t}},t.QueryAllowanceResponse={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowanceResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.allowance&&i.Grant.encode(e.allowance,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.allowance=i.Grant.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=d();return(0,a.isSet)(e.allowance)&&(t.allowance=i.Grant.fromJSON(e.allowance)),t},toJSON(e){let t={};return void 0!==e.allowance&&(t.allowance=e.allowance?i.Grant.toJSON(e.allowance):void 0),t},fromPartial(e){let t=d();return void 0!==e.allowance&&null!==e.allowance&&(t.allowance=i.Grant.fromPartial(e.allowance)),t}},t.QueryAllowancesRequest={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowancesRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.grantee&&t.uint32(10).string(e.grantee),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.grantee=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=l();return(0,a.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=l();return t.grantee=e.grantee??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryAllowancesResponse={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowancesResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.allowances)i.Grant.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=c();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.allowances.push(i.Grant.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=c();return Array.isArray(e?.allowances)&&(t.allowances=e.allowances.map(e=>i.Grant.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.allowances?t.allowances=e.allowances.map(e=>e?i.Grant.toJSON(e):void 0):t.allowances=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=c();return t.allowances=e.allowances?.map(e=>i.Grant.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryAllowancesByGranterRequest={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.granter=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=u();return(0,a.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u();return t.granter=e.granter??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryAllowancesByGranterResponse={typeUrl:"/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.allowances)i.Grant.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=p();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.allowances.push(i.Grant.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=p();return Array.isArray(e?.allowances)&&(t.allowances=e.allowances.map(e=>i.Grant.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.allowances?t.allowances=e.allowances.map(e=>e?i.Grant.toJSON(e):void 0):t.allowances=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=p();return t.allowances=e.allowances?.map(e=>i.Grant.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}};class f{constructor(e){this.rpc=e,this.Allowance=this.Allowance.bind(this),this.Allowances=this.Allowances.bind(this),this.AllowancesByGranter=this.AllowancesByGranter.bind(this)}Allowance(e){let r=t.QueryAllowanceRequest.encode(e).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowance",r).then(e=>t.QueryAllowanceResponse.decode(new o.BinaryReader(e)))}Allowances(e){let r=t.QueryAllowancesRequest.encode(e).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowances",r).then(e=>t.QueryAllowancesResponse.decode(new o.BinaryReader(e)))}AllowancesByGranter(e){let r=t.QueryAllowancesByGranterRequest.encode(e).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","AllowancesByGranter",r).then(e=>t.QueryAllowancesByGranterResponse.decode(new o.BinaryReader(e)))}}t.QueryClientImpl=f},40608:(e,t,r)=>{"use strict";var n=r(6257),i=r(13309),o=r(4118),a=r(98270),s=n.sum32,d=n.sum32_4,l=n.sum32_5,c=o.ch32,u=o.maj32,p=o.s0_256,f=o.s1_256,h=o.g0_256,g=o.g1_256,m=i.BlockHash,y=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
176c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=y,this.W=Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=d(g(r[n-2]),r[n-7],h(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],m=this.h[2],y=this.h[3],b=this.h[4],v=this.h[5],S=this.h[6],A=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var w=l(A,f(b),c(b,v,S),this.k[n],r[n]),_=s(p(i),u(i,o,m));A=S,S=v,v=b,b=s(y,w),y=m,m=o,o=i,i=s(w,_)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],m),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],S),this.h[7]=s(this.h[7],A)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},40899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgUpdateParamsResponse=t.MsgUpdateParams=t.MsgCancelUnbondingDelegationResponse=t.MsgCancelUnbondingDelegation=t.MsgUndelegateResponse=t.MsgUndelegate=t.MsgBeginRedelegateResponse=t.MsgBeginRedelegate=t.MsgDelegateResponse=t.MsgDelegate=t.MsgEditValidatorResponse=t.MsgEditValidator=t.MsgCreateValidatorResponse=t.MsgCreateValidator=t.protobufPackage=void 0;let n=r(29940),i=r(54573),o=r(91794),a=r(37375),s=r(4696),d=r(92242);function l(){return{description:n.Description.fromPartial({}),commission:n.CommissionRates.fromPartial({}),minSelfDelegation:"",delegatorAddress:"",validatorAddress:"",pubkey:void 0,value:o.Coin.fromPartial({})}}function c(){return{}}function u(){return{description:n.Description.fromPartial({}),validatorAddress:"",commissionRate:"",minSelfDelegation:""}}function p(){return{}}function f(){return{delegatorAddress:"",validatorAddress:"",amount:o.Coin.fromPartial({})}}function h(){return{}}function g(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",amount:o.Coin.fromPartial({})}}function m(){return{completionTime:a.Timestamp.fromPartial({})}}function y(){return{delegatorAddress:"",validatorAddress:"",amount:o.Coin.fromPartial({})}}function b(){return{completionTime:a.Timestamp.fromPartial({})}}function v(){return{delegatorAddress:"",validatorAddress:"",amount:o.Coin.fromPartial({}),creationHeight:BigInt(0)}}function S(){return{}}function A(){return{authority:"",params:n.Params.fromPartial({})}}function w(){return{}}t.protobufPackage="cosmos.staking.v1beta1",t.MsgCreateValidator={typeUrl:"/cosmos.staking.v1beta1.MsgCreateValidator",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.description&&n.Description.encode(e.description,t.uint32(10).fork()).ldelim(),void 0!==e.commission&&n.CommissionRates.encode(e.commission,t.uint32(18).fork()).ldelim(),""!==e.minSelfDelegation&&t.uint32(26).string(e.minSelfDelegation),""!==e.delegatorAddress&&t.uint32(34).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(42).string(e.validatorAddress),void 0!==e.pubkey&&i.Any.encode(e.pubkey,t.uint32(50).fork()).ldelim(),void 0!==e.value&&o.Coin.encode(e.value,t.uint32(58).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=l();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.description=n.Description.decode(r,r.uint32());break;case 2:d.commission=n.CommissionRates.decode(r,r.uint32());break;case 3:d.minSelfDelegation=r.string();break;case 4:d.delegatorAddress=r.string();break;case 5:d.validatorAddress=r.string();break;case 6:d.pubkey=i.Any.decode(r,r.uint32());break;case 7:d.value=o.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=l();return(0,d.isSet)(e.description)&&(t.description=n.Description.fromJSON(e.description)),(0,d.isSet)(e.commission)&&(t.commission=n.CommissionRates.fromJSON(e.commission)),(0,d.isSet)(e.minSelfDelegation)&&(t.minSelfDelegation=String(e.minSelfDelegation)),(0,d.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,d.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,d.isSet)(e.pubkey)&&(t.pubkey=i.Any.fromJSON(e.pubkey)),(0,d.isSet)(e.value)&&(t.value=o.Coin.fromJSON(e.value)),t},toJSON(e){let t={};return void 0!==e.description&&(t.description=e.description?n.Description.toJSON(e.description):void 0),void 0!==e.commission&&(t.commission=e.commission?n.CommissionRates.toJSON(e.commission):void 0),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.pubkey&&(t.pubkey=e.pubkey?i.Any.toJSON(e.pubkey):void 0),void 0!==e.value&&(t.value=e.value?o.Coin.toJSON(e.value):void 0),t},fromPartial(e){let t=l();return void 0!==e.description&&null!==e.description&&(t.description=n.Description.fromPartial(e.description)),void 0!==e.commission&&null!==e.commission&&(t.commission=n.CommissionRates.fromPartial(e.commission)),t.minSelfDelegation=e.minSelfDelegation??"",t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",void 0!==e.pubkey&&null!==e.pubkey&&(t.pubkey=i.Any.fromPartial(e.pubkey)),void 0!==e.value&&null!==e.value&&(t.value=o.Coin.fromPartial(e.value)),t}},t.MsgCreateValidatorResponse={typeUrl:"/cosmos.staking.v1beta1.MsgCreateValidatorResponse",encode:(e,t=s.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>c(),toJSON:e=>({}),fromPartial:e=>c()},t.MsgEditValidator={typeUrl:"/cosmos.staking.v1beta1.MsgEditValidator",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.description&&n.Description.encode(e.description,t.uint32(10).fork()).ldelim(),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),""!==e.commissionRate&&t.uint32(26).string(e.commissionRate),""!==e.minSelfDelegation&&t.uint32(34).string(e.minSelfDelegation),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.description=n.Description.decode(r,r.uint32());break;case 2:o.validatorAddress=r.string();break;case 3:o.commissionRate=r.string();break;case 4:o.minSelfDelegation=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=u();return(0,d.isSet)(e.description)&&(t.description=n.Description.fromJSON(e.description)),(0,d.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,d.isSet)(e.commissionRate)&&(t.commissionRate=String(e.commissionRate)),(0,d.isSet)(e.minSelfDelegation)&&(t.minSelfDelegation=String(e.minSelfDelegation)),t},toJSON(e){let t={};return void 0!==e.description&&(t.description=e.description?n.Description.toJSON(e.description):void 0),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.commissionRate&&(t.commissionRate=e.commissionRate),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),t},fromPartial(e){let t=u();return void 0!==e.description&&null!==e.description&&(t.description=n.Description.fromPartial(e.description)),t.validatorAddress=e.validatorAddress??"",t.commissionRate=e.commissionRate??"",t.minSelfDelegation=e.minSelfDelegation??"",t}},t.MsgEditValidatorResponse={typeUrl:"/cosmos.staking.v1beta1.MsgEditValidatorResponse",encode:(e,t=s.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>p(),toJSON:e=>({}),fromPartial:e=>p()},t.MsgDelegate={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",encode:(e,t=s.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&o.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;case 3:i.amount=o.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=f();return(0,d.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,d.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,d.isSet)(e.amount)&&(t.amount=o.Coin.fromJSON(e.amount)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?o.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=f();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",void 0!==e.amount&&null!==e.amount&&(t.amount=o.Coin.fromPartial(e.amount)),t}},t.MsgDelegateResponse={typeUrl:"/cosmos.staking.v1beta1.MsgDelegateResponse",encode:(e,t=s.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>h(),toJSON:e=>({}),fromPartial:e=>h()},t.MsgBeginRedelegate={typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",encode:(e,t=s.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&t.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&t.uint32(26).string(e.validatorDstAddress),void 0!==e.amount&&o.Coin.encode(e.amount,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorSrcAddress=r.string();break;case 3:i.validatorDstAddress=r.string();break;case 4:i.amount=o.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,d.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,d.isSet)(e.validatorSrcAddress)&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),(0,d.isSet)(e.validatorDstAddress)&&(t.validatorDstAddress=String(e.validatorDstAddress)),(0,d.isSet)(e.amount)&&(t.amount=o.Coin.fromJSON(e.amount)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),void 0!==e.amount&&(t.amount=e.amount?o.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=g();return t.delegatorAddress=e.delegatorAddress??"",t.validatorSrcAddress=e.validatorSrcAddress??"",t.validatorDstAddress=e.validatorDstAddress??"",void 0!==e.amount&&null!==e.amount&&(t.amount=o.Coin.fromPartial(e.amount)),t}},t.MsgBeginRedelegateResponse={typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegateResponse",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.completionTime&&a.Timestamp.encode(e.completionTime,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.completionTime=a.Timestamp.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=m();return(0,d.isSet)(e.completionTime)&&(t.completionTime=(0,d.fromJsonTimestamp)(e.completionTime)),t},toJSON(e){let t={};return void 0!==e.completionTime&&(t.completionTime=(0,d.fromTimestamp)(e.completionTime).toISOString()),t},fromPartial(e){let t=m();return void 0!==e.completionTime&&null!==e.completionTime&&(t.completionTime=a.Timestamp.fromPartial(e.completionTime)),t}},t.MsgUndelegate={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",encode:(e,t=s.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&o.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;case 3:i.amount=o.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return(0,d.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,d.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,d.isSet)(e.amount)&&(t.amount=o.Coin.fromJSON(e.amount)),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?o.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=y();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",void 0!==e.amount&&null!==e.amount&&(t.amount=o.Coin.fromPartial(e.amount)),t}},t.MsgUndelegateResponse={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegateResponse",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.completionTime&&a.Timestamp.encode(e.completionTime,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.completionTime=a.Timestamp.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=b();return(0,d.isSet)(e.completionTime)&&(t.completionTime=(0,d.fromJsonTimestamp)(e.completionTime)),t},toJSON(e){let t={};return void 0!==e.completionTime&&(t.completionTime=(0,d.fromTimestamp)(e.completionTime).toISOString()),t},fromPartial(e){let t=b();return void 0!==e.completionTime&&null!==e.completionTime&&(t.completionTime=a.Timestamp.fromPartial(e.completionTime)),t}},t.MsgCancelUnbondingDelegation={typeUrl:"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",encode:(e,t=s.BinaryWriter.create())=>(""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&o.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),e.creationHeight!==BigInt(0)&&t.uint32(32).int64(e.creationHeight),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;case 3:i.amount=o.Coin.decode(r,r.uint32());break;case 4:i.creationHeight=r.int64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=v();return(0,d.isSet)(e.delegatorAddress)&&(t.delegatorAddress=String(e.delegatorAddress)),(0,d.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),(0,d.isSet)(e.amount)&&(t.amount=o.Coin.fromJSON(e.amount)),(0,d.isSet)(e.creationHeight)&&(t.creationHeight=BigInt(e.creationHeight.toString())),t},toJSON(e){let t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?o.Coin.toJSON(e.amount):void 0),void 0!==e.creationHeight&&(t.creationHeight=(e.creationHeight||BigInt(0)).toString()),t},fromPartial(e){let t=v();return t.delegatorAddress=e.delegatorAddress??"",t.validatorAddress=e.validatorAddress??"",void 0!==e.amount&&null!==e.amount&&(t.amount=o.Coin.fromPartial(e.amount)),void 0!==e.creationHeight&&null!==e.creationHeight&&(t.creationHeight=BigInt(e.creationHeight.toString())),t}},t.MsgCancelUnbondingDelegationResponse={typeUrl:"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse",encode:(e,t=s.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();r.skipT
1ype(7&e)}return i},fromJSON:e=>S(),toJSON:e=>({}),fromPartial:e=>S()},t.MsgUpdateParams={typeUrl:"/cosmos.staking.v1beta1.MsgUpdateParams",encode:(e,t=s.BinaryWriter.create())=>(""!==e.authority&&t.uint32(10).string(e.authority),void 0!==e.params&&n.Params.encode(e.params,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=A();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.authority=r.string();break;case 2:o.params=n.Params.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=A();return(0,d.isSet)(e.authority)&&(t.authority=String(e.authority)),(0,d.isSet)(e.params)&&(t.params=n.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.authority&&(t.authority=e.authority),void 0!==e.params&&(t.params=e.params?n.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=A();return t.authority=e.authority??"",void 0!==e.params&&null!==e.params&&(t.params=n.Params.fromPartial(e.params)),t}},t.MsgUpdateParamsResponse={typeUrl:"/cosmos.staking.v1beta1.MsgUpdateParamsResponse",encode:(e,t=s.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>w(),toJSON:e=>({}),fromPartial:e=>w()};class _{constructor(e){this.rpc=e,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this),this.CancelUnbondingDelegation=this.CancelUnbondingDelegation.bind(this),this.UpdateParams=this.UpdateParams.bind(this)}CreateValidator(e){let r=t.MsgCreateValidator.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",r).then(e=>t.MsgCreateValidatorResponse.decode(new s.BinaryReader(e)))}EditValidator(e){let r=t.MsgEditValidator.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",r).then(e=>t.MsgEditValidatorResponse.decode(new s.BinaryReader(e)))}Delegate(e){let r=t.MsgDelegate.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",r).then(e=>t.MsgDelegateResponse.decode(new s.BinaryReader(e)))}BeginRedelegate(e){let r=t.MsgBeginRedelegate.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",r).then(e=>t.MsgBeginRedelegateResponse.decode(new s.BinaryReader(e)))}Undelegate(e){let r=t.MsgUndelegate.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",r).then(e=>t.MsgUndelegateResponse.decode(new s.BinaryReader(e)))}CancelUnbondingDelegation(e){let r=t.MsgCancelUnbondingDelegation.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CancelUnbondingDelegation",r).then(e=>t.MsgCancelUnbondingDelegationResponse.decode(new s.BinaryReader(e)))}UpdateParams(e){let r=t.MsgUpdateParams.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","UpdateParams",r).then(e=>t.MsgUpdateParamsResponse.decode(new s.BinaryReader(e)))}}t.MsgClientImpl=_},41542:(e,t,r)=>{"use strict";var n=r(15940),i=r(96649),o=r(8151);e.exports=function(){return o(n,i,arguments)}},42984:(e,t,r)=>{"use strict";r.d(t,{vA:()=>l,MR:()=>c,dd:()=>u,SP:()=>f,gk:()=>h,E:()=>s,bJ:()=>a,xz:()=>d});let n="6.16.0";var i=r(3039);function o(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"==typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map(e=>o(e,t)).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let n=0;n<e.length;n++)r+=t[e[n]>>4],r+=t[15&e[n]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return o(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let r=Object.keys(e);return r.sort(),"{ "+r.map(r=>`${o(r,t)}: ${o(e[r],t)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function a(e,t){return e&&e.code===t}function s(e){return a(e,"CALL_EXCEPTION")}function d(e,t,r){let a,s=e;{let i=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will over
1write populated values: ${o(r)}`);for(let e in r){if("shortMessage"===e)continue;let t=r[e];i.push(e+"="+o(t))}}i.push(`code=${t}`),i.push(`version=${n}`),i.length&&(e+=" ("+i.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":a=TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":a=RangeError(e);break;default:a=Error(e)}return(0,i.n)(a,{code:t}),r&&Object.assign(a,r),null==a.shortMessage&&(0,i.n)(a,{shortMessage:s}),a}function l(e,t,r,n){if(!e)throw d(t,r,n)}function c(e,t,r,n){l(e,t,"INVALID_ARGUMENT",{argument:r,value:n})}function u(e,t,r){null==r&&(r=""),r&&(r=": "+r),l(e>=t,"missing argument"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),l(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})}let p=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw Error("bad");if("NFD"===t){let e=String.fromCharCode(233).normalize("NFD"),t=String.fromCharCode(101,769);if(e!==t)throw Error("broken")}e.push(t)}catch(e){}return e},[]);function f(e){l(p.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}function h(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),l(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},43152:(e,t,r)=>{"use strict";var n=r(71923);e.exports=function(){return"object"==typeof r.g&&r.g&&r.g.Math===Math&&r.g.Array===Array?r.g:n}},44044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectComet=t.isComet38Client=t.isTendermint37Client=t.isTendermint34Client=void 0;let n=r(79863),i=r(91419),o=r(52254);t.isTendermint34Client=function(e){return e instanceof i.Tendermint34Client},t.isTendermint37Client=function(e){return e instanceof o.Tendermint37Client},t.isComet38Client=function(e){return e instanceof n.Comet38Client},t.connectComet=async function(e){let t,r=await o.Tendermint37Client.connect(e),a=(await r.status()).nodeInfo.version;return a.startsWith("0.37.")?t=r:a.startsWith("0.38.")?(r.disconnect(),t=await n.Comet38Client.connect(e)):(r.disconnect(),t=await i.Tendermint34Client.connect(e)),t}},44094:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertDefinedAndNotNull=t.assertDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw Error(t||"condition is not truthy")},t.assertDefined=function(e,t){if(void 0===e)throw Error(t??"value is undefined")},t.assertDefinedAndNotNull=function(e,t){if(null==e)throw Error(t??"value is undefined or null")}},44362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.ValidatorSigningInfo=t.protobufPackage=void 0;let n=r(37375),i=r(19393),o=r(4696),a=r(92242);function s(){return{address:"",startHeight:BigInt(0),indexOffset:BigInt(0),jailedUntil:n.Timestamp.fromPartial({}),tombstoned:!1,missedBlocksCounter:BigInt(0)}}function d(){return{signedBlocksWindow:BigInt(0),minSignedPerWindow:new Uint8Array,downtimeJailDuration:i.Duration.fromPartial({}),slashFractionDoubleSign:new Uint8Array,slashFractionDowntime:new Uint8Array}}t.protobufPackage="cosmos.slashing.v1beta1",t.ValidatorSigningInfo={typeUrl:"/cosmos.slashing.v1beta1.ValidatorSigningInfo",encode:(e,t=o.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),e.startHeight!==BigInt(0)&&t.uint32(16).int64(e.startHeight),e.indexOffset!==BigInt(0)&&t.uint32(24).int64(e.indexOffset),void 0!==e.jailedUntil&&n.Timestamp.encode(e.jailedUntil,t.uint32(34).fork()).ldelim(),!0===e.tombstoned&&t.uint32(40).bool(e.tombstoned),e.missedBlocksCounter!==BigInt(0)&&t.uint32(48).int64(e.missedBlocksCounter),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.address=r.string();break;case 2:a.startHeight=r.int64();break;case 3:a.indexOffset=r.int64();break;case 4:a.jailedUntil=n.Timestamp.decode(r,r.uint32());break;case 5:a.tombstoned=r.bool();break;case 6:a.missedBlocksCounter=r.int64();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return(0,a.isSet)(e.address)&&(t.address=String(e.address)),(0,a.isSet)(e.startHeight)&&(t.startHeight=BigInt(e.startHeight.toString())),(0,a.isSet)(e.indexOffset)&&(t.indexOffset=BigInt(e.indexOffset.toString())),(0,a.isSet)(e.jailedUntil)&&(t.jailedUntil=(0,a.fromJsonTimestamp)(e.jailedUntil)),(0,a.isSet)(e.tombstoned)&&(t.tombstoned=!!e.tombstoned),(0,a.isSet)(e.missedBlocksCounter)&&(t.missedBlocksCounter=BigInt(e.missedBlocksCounter.toString())),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.startHeight&&(t.startHeight=(e.startHeight||BigInt(0)).toString()),void 0!==e.indexOffset&&(t.indexOffset=(e.indexOffset||BigInt(0)).toString()),void 0!==e.jailedUntil&&(t.jailedUntil=(0,a.fromTimestamp)(e.jailedUntil).toISOString()),void 0!==e.tombstoned&&(t.tombstoned=e.tombstoned),void 0!==e.missedBlocksCounter&&(t.missedBlocksCounter=(e.missedBlocksCounter||BigInt(0)).toString()),t},fromPartial(e){let t=s();return t.address=e.address??"",void 0!==e.startHeight&&null!==e.startHeight&&(t.startHeight=BigInt(e.startHeight.toString())),void 0!==e.indexOffset&&null!==e.indexOffset&&(t.indexOffset=BigInt(e.indexOffset.toString())),void 0!==e.jailedUntil&&null!==e.jailedUntil&&(t.jailedUntil=n.Timestamp.fromPartial(e.jailedUntil)),t.tombstoned=e.tombstoned??!1,void 0!==e.missedBlocksCounter&&null!==e.missedBlocksCounter&&(t.missedBlocksCounter=BigInt(e.missedBlocksCounter.toString())),t}}
1,t.Params={typeUrl:"/cosmos.slashing.v1beta1.Params",encode:(e,t=o.BinaryWriter.create())=>(e.signedBlocksWindow!==BigInt(0)&&t.uint32(8).int64(e.signedBlocksWindow),0!==e.minSignedPerWindow.length&&t.uint32(18).bytes(e.minSignedPerWindow),void 0!==e.downtimeJailDuration&&i.Duration.encode(e.downtimeJailDuration,t.uint32(26).fork()).ldelim(),0!==e.slashFractionDoubleSign.length&&t.uint32(34).bytes(e.slashFractionDoubleSign),0!==e.slashFractionDowntime.length&&t.uint32(42).bytes(e.slashFractionDowntime),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.signedBlocksWindow=r.int64();break;case 2:a.minSignedPerWindow=r.bytes();break;case 3:a.downtimeJailDuration=i.Duration.decode(r,r.uint32());break;case 4:a.slashFractionDoubleSign=r.bytes();break;case 5:a.slashFractionDowntime=r.bytes();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=d();return(0,a.isSet)(e.signedBlocksWindow)&&(t.signedBlocksWindow=BigInt(e.signedBlocksWindow.toString())),(0,a.isSet)(e.minSignedPerWindow)&&(t.minSignedPerWindow=(0,a.bytesFromBase64)(e.minSignedPerWindow)),(0,a.isSet)(e.downtimeJailDuration)&&(t.downtimeJailDuration=i.Duration.fromJSON(e.downtimeJailDuration)),(0,a.isSet)(e.slashFractionDoubleSign)&&(t.slashFractionDoubleSign=(0,a.bytesFromBase64)(e.slashFractionDoubleSign)),(0,a.isSet)(e.slashFractionDowntime)&&(t.slashFractionDowntime=(0,a.bytesFromBase64)(e.slashFractionDowntime)),t},toJSON(e){let t={};return void 0!==e.signedBlocksWindow&&(t.signedBlocksWindow=(e.signedBlocksWindow||BigInt(0)).toString()),void 0!==e.minSignedPerWindow&&(t.minSignedPerWindow=(0,a.base64FromBytes)(void 0!==e.minSignedPerWindow?e.minSignedPerWindow:new Uint8Array)),void 0!==e.downtimeJailDuration&&(t.downtimeJailDuration=e.downtimeJailDuration?i.Duration.toJSON(e.downtimeJailDuration):void 0),void 0!==e.slashFractionDoubleSign&&(t.slashFractionDoubleSign=(0,a.base64FromBytes)(void 0!==e.slashFractionDoubleSign?e.slashFractionDoubleSign:new Uint8Array)),void 0!==e.slashFractionDowntime&&(t.slashFractionDowntime=(0,a.base64FromBytes)(void 0!==e.slashFractionDowntime?e.slashFractionDowntime:new Uint8Array)),t},fromPartial(e){let t=d();return void 0!==e.signedBlocksWindow&&null!==e.signedBlocksWindow&&(t.signedBlocksWindow=BigInt(e.signedBlocksWindow.toString())),t.minSignedPerWindow=e.minSignedPerWindow??new Uint8Array,void 0!==e.downtimeJailDuration&&null!==e.downtimeJailDuration&&(t.downtimeJailDuration=i.Duration.fromPartial(e.downtimeJailDuration)),t.slashFractionDoubleSign=e.slashFractionDoubleSign??new Uint8Array,t.slashFractionDowntime=e.slashFractionDowntime??new Uint8Array,t}}},44770:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Xchacha20poly1305Ietf=t.xchacha20NonceLength=t.Ed25519=t.Ed25519Keypair=t.Argon2id=t.isArgon2idOptions=void 0;let i=r(63688),o=n(r(85575));t.isArgon2idOptions=function(e){return!!(0,i.isNonNullObject)(e)&&"number"==typeof e.outputLength&&"number"==typeof e.opsLimit&&"number"==typeof e.memLimitKib};class a{static async execute(e,t,r){return await o.default.ready,o.default.crypto_pwhash(r.outputLength,e,t,r.opsLimit,1024*r.memLimitKib,o.default.crypto_pwhash_ALG_ARGON2ID13)}}t.Argon2id=a;class s{static fromLibsodiumPrivkey(e){if(64!==e.length)throw Error(`Unexpected key length ${e.length}. Must be 64.`);return new s(e.slice(0,32),e.slice(32,64))}constructor(e,t){this.privkey=e,this.pubkey=t}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}t.Ed25519Keypair=s;class d{static async makeKeypair(e){await o.default.ready;let t=o.default.crypto_sign_seed_keypair(e);return s.fromLibsodiumPrivkey(t.privateKey)}static async createSignature(e,t){return await o.default.ready,o.default.crypto_sign_detached(e,t.toLibsodiumPrivkey())}static async verifySignature(e,t,r){return await o.default.ready,o.default.crypto_sign_verify_detached(e,t,r)}}t.Ed25519=d,t.xchacha20NonceLength=24;class l{static async encrypt(e,t,r){await o.default.ready;let n=null;
1return o.default.crypto_aead_xchacha20poly1305_ietf_encrypt(e,n,null,r,t)}static async decrypt(e,t,r){await o.default.ready;let n=null;return o.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,e,n,r,t)}}t.Xchacha20poly1305Ietf=l},45381: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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},46465:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupIbcExtension=void 0;let n=r(35206),i=r(10446),o=r(90226),a=r(55847),s=r(59664),d=r(51324);function l(e){if(e?.typeUrl!=="/ibc.lightclients.tendermint.v1.ClientState")throw Error(`Unexpected client state type: ${e?.typeUrl}`);return s.ClientState.decode(e.value)}function c(e){if(e?.typeUrl!=="/ibc.lightclients.tendermint.v1.ConsensusState")throw Error(`Unexpected client state type: ${e?.typeUrl}`);return s.ConsensusState.decode(e.value)}t.setupIbcExtension=function(e){let t=(0,d.createProtobufRpcClient)(e),r=new i.QueryClientImpl(t),s=new o.QueryClientImpl(t),u=new a.QueryClientImpl(t),p=new n.QueryClientImpl(t);return{ibc:{channel:{channel:async(e,t)=>r.Channel({portId:e,channelId:t}),channels:async e=>r.Channels({pagination:(0,d.createPagination)(e)}),allChannels:async()=>{let e,t,n=[];do e=await r.Channels({pagination:(0,d.createPagination)(t)}),n.push(...e.channels),t=e.pagination?.nextKey;while(t&&t.length);return i.QueryChannelsResponse.fromPartial({channels:n,height:e.height})},connectionChannels:async(e,t)=>r.ConnectionChannels({connection:e,pagination:(0,d.createPagination)(t)}),allConnectionChannels:async e=>{let t,n,o=[];do t=await r.ConnectionChannels({connection:e,pagination:(0,d.createPagination)(n)}),o.push(...t.channels),n=t.pagination?.nextKey;while(n&&n.length);return i.QueryConnectionChannelsResponse.fromPartial({channels:o,height:t.height})},clientState:async(e,t)=>r.ChannelClientState({portId:e,channelId:t}),consensusState:async(e,t,n,i)=>r.ChannelConsensusState({portId:e,channelId:t,revisionNumber:BigInt(n),revisionHeight:BigInt(i)}),packetCommitment:async(e,t,n)=>r.PacketCommitment({portId:e,channelId:t,sequence:(0,d.longify)(n)}),packetCommitments:async(e,t,n)=>r.PacketCommitments({channelId:t,portId:e,pagination:(0,d.createPagination)(n)}),allPacketCommitments:async(e,t)=>{let n,o,a=[];do n=await r.PacketCommitments({channelId:t,portId:e,pagination:(0,d.createPagination)(o)}),a.push(...n.commitments),o=n.pagination?.nextKey;while(o&&o.length);return i.QueryPacketCommitmentsResponse.fromPartial({commitments:a,height:n.height})},packetReceipt:async(e,t,n)=>r.PacketReceipt({portId:e,channelId:t,sequence:(0,d.longify)(n)}),packetAcknowledgement:async(e,t,n)=>r.PacketAcknowledgement({portId:e,channelId:t,sequence:(0,d.longify)(n)}),packetAcknowledgements:async(e,t,n)=>{let o=i.QueryPacketAcknowledgementsRequest.fromPartial({portId:e,channelId:t,pagination:(0,d.createPagination)(n)});return r.PacketAcknowledgements(o)},allPacketAcknowledgements:async(e,t)=>{let n,o,a=[];do{let s=i.QueryPacketAcknowledgementsRequest.fromPartial({channelId:t,portId:e,pagination:(0,d.createPagination)(o)});n=await r.PacketAcknowledgements(s),a.push(...n.acknowledgements),o=n.pagination?.nextKey}while(o&&o.length);return i.QueryPacketAcknowledgementsResponse.fromPartial({acknowledgements:a,height:n.height})},unreceivedPackets:async(e,t,n)=>r.UnreceivedPackets({portId:e,channelId:t,packetCommitmentSequences:n.map(e=>BigInt(e))}),unreceivedAcks:async(e,t,n)=>r.UnreceivedAcks({portId:e,channelId:t,packetAckSequences:n.map(e=>BigInt(e))}),nextSequenceReceive:async(e,t)=>r.NextSequenceReceive({portId:e,channelId:t})},client:{state:async e=>s.ClientState({clientId:e}),states:async e=>s.ClientStates({pagination:(0,d.createPagination)(e)}),allStates:async()=>{let e,t,r=[];do e=await s.ClientStates({pagination:(0,d.createPagination)(t)}),r.push(...e.clientStates),t=e.pagination?.nextKey;while(t&&t.length);return o.QueryClientStatesResponse.fromPartial({clientStates:r})},consensusState:async(e,t)=>s.ConsensusState(o.QueryConsensusStateRequest.fromPartial({clientId:e,revisionHeight:void 0!==t?BigInt(t):void 0,latestHeight:void 0===t})),consensusStates:async(e,t)=>s.ConsensusStates({clientId:e,pagination:(0,d.createPagination)(t)}),allConsensusStates:async e=>{let t,r,n=[];do t=await s.ConsensusStates({clientId:e,pagination:(0,d.createPagination)(r)}),n.push(...t.consensusStates),r=t.pagination?.nextKey;while(r&&r.length);return o.QueryConsensusStatesResponse.fromPartial({consensusStates:n})},params:async()=>s.ClientParams({}),stateTm:async e=>l((await s.ClientState({clientId:e})).clientState),statesTm:async e=>{let{clientStates:t}=await s.ClientStates({pagination:(0,d.createPagination)(e)});return t.map(({clientState:e})=>l(e))},allStatesTm:async()=>{let e,t,r=[];do r.push(...(e=await s.ClientStates({pagination:(0,d.createPagination)(t)})).clientStates),t=e.pagination?.nextKey;while(t&&t.length);return r.map(({clientState:e})=>l(e))},consensusStateTm:async(e,t)=>c((await s.ConsensusState(o.QueryConsensusStateRequest.fromPartial({clientId:e,revisionHeight:t?.revisionHeight,revisionNumber:t?.revisionNumber,latestHeight:void 0===t}))).consensusState)},connection:{connection:async e=>u.Connection({connectionId:e}),connections:async e=>u.Connections({pagination:(0,d.createPagination)(e)}),allConnections:async()=>{let e,t,r=[];do e=await u.Connections({pagination:(0,d.createPagination)(t)}),r.push(...e.connections),t=e.pagination?.nextKey;while(t&&t.length);return a.QueryConnectionsResponse.fromPartial({connections:r,height:e.height})},clientConnections:async e=>u.ClientConnections({clientId:e}),clientState:async e=>u.ConnectionClientState({connectionId:e}),consensusState:async(e,t)=>u.ConnectionConsensusState(a.QueryConnectionConsensusStateRequest.fromPartial({connectionId:e,revisionHeight:BigInt(t)}))},transfer:{denomTrace:async e=>p.DenomTrace({hash:e}),denomTraces:async e=>p.DenomTraces({pagination:(0,d.createPagination)(e)}),allDenomTraces:async()=>{let e,t,r=[];do e=await p.DenomTraces({pagination:(0,d.createPagination)(t)}),r.push(...e.denomTraces),t=e.pagination?.nextKey;while(t&&t.length);return n.QueryDenomTracesResponse.fromPartial({denomTraces:r})},params:async()=>p.Params({})}}}}},46757:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.fromTendermintEvent=void 0;let n=r(25918);t.fromTendermintEvent=function(e){return{type:e.type,attributes:e.attributes.map(e=>({key:"string"==typeof e.key?e.key:(0,n.fromUtf8)(e.key,!0),value:"string"==typeof e.value?e.value:(0,n.fromUtf8)(e.value,!0)}))}}},47115:(e,t,r)=>{"use strict";var n=r(91697),i=r(95488).assert;function o(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=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.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"}},o.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},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},47359:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Tendermint34Client=void 0;let a=r(56662),s=r(151),d=r(649),l=o(r(65863));class c{static async connect(e){let t;return t="object"==typeof e||e.startsWith("http://")||e.startsWith("https://")?new s.HttpClient(e):new s.WebsocketClient(e),await this.detectVersion(t),c.create(t)}static async create(e){return new c(e)}static async detectVersion(e){let t=(0,a.createJsonRpcRequest)(l.Method.Status),r=(await e.execute(t)).result;if(!r||!r.node_info)throw Error("Unrecognized format for status response");let n=r.node_info.version;if("string"!=typeof n)throw Error("Unrecognized version format: must be string");return n}constructor(e){this.client=e}disconnect(){this.client.disconnect()}async abciInfo(){let e={method:l.Method.AbciInfo};return this.doCall(e,d.Params.encodeAbciInfo,d.Responses.decodeAbciInfo)}async abciQuery(e){let t={params:e,method:l.Method.AbciQuery};return this.doCall(t,d.Params.encodeAbciQuery,d.Responses.decodeAbciQuery)}async block(e){let t={method:l.Method.Block,params:{height:e}};return this.doCall(t,d.Params.encodeBlock,d.Responses.decodeBlock)}async blockResults(e){let t={method:l.Method.BlockResults,params:{height:e}};return this.doCall(t,d.Params.encodeBlockResults,d.Responses.decodeBlockResults)}async blockSearch(e){let t={params:e,method:l.Method.BlockSearch},r=await this.doCall(t,d.Params.encodeBlockSearch,d.Responses.decodeBlockSearch);return{...r,blocks:[...r.blocks].sort((e,t)=>
1e.block.header.height-t.block.header.height)}}async blockSearchAll(e){let t=e.page||1,r=[],n=!1;for(;!n;){let i=await this.blockSearch({...e,page:t});r.push(...i.blocks),r.length<i.totalCount?t++:n=!0}return r.sort((e,t)=>e.block.header.height-t.block.header.height),{totalCount:r.length,blocks:r}}async blockchain(e,t){let r={method:l.Method.Blockchain,params:{minHeight:e,maxHeight:t}};return this.doCall(r,d.Params.encodeBlockchain,d.Responses.decodeBlockchain)}async broadcastTxSync(e){let t={params:e,method:l.Method.BroadcastTxSync};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxSync)}async broadcastTxAsync(e){let t={params:e,method:l.Method.BroadcastTxAsync};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxAsync)}async broadcastTxCommit(e){let t={params:e,method:l.Method.BroadcastTxCommit};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxCommit)}async commit(e){let t={method:l.Method.Commit,params:{height:e}};return this.doCall(t,d.Params.encodeCommit,d.Responses.decodeCommit)}async genesis(){let e={method:l.Method.Genesis};return this.doCall(e,d.Params.encodeGenesis,d.Responses.decodeGenesis)}async health(){let e={method:l.Method.Health};return this.doCall(e,d.Params.encodeHealth,d.Responses.decodeHealth)}async numUnconfirmedTxs(){let e={method:l.Method.NumUnconfirmedTxs};return this.doCall(e,d.Params.encodeNumUnconfirmedTxs,d.Responses.decodeNumUnconfirmedTxs)}async status(){let e={method:l.Method.Status};return this.doCall(e,d.Params.encodeStatus,d.Responses.decodeStatus)}subscribeNewBlock(){let e={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.NewBlock}};return this.subscribe(e,d.Responses.decodeNewBlockEvent)}subscribeNewBlockHeader(){let e={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.NewBlockHeader}};return this.subscribe(e,d.Responses.decodeNewBlockHeaderEvent)}subscribeTx(e){let t={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.Tx,raw:e}};return this.subscribe(t,d.Responses.decodeTxEvent)}async tx(e){let t={params:e,method:l.Method.Tx};return this.doCall(t,d.Params.encodeTx,d.Responses.decodeTx)}async txSearch(e){let t={params:e,method:l.Method.TxSearch};return this.doCall(t,d.Params.encodeTxSearch,d.Responses.decodeTxSearch)}
1async txSearchAll(e){let t=e.page||1,r=[],n=!1;for(;!n;){let i=await this.txSearch({...e,page:t});r.push(...i.txs),r.length<i.totalCount?t++:n=!0}return{totalCount:r.length,txs:r}}async validators(e){let t={method:l.Method.Validators,params:e};return this.doCall(t,d.Params.encodeValidators,d.Responses.decodeValidators)}async validatorsAll(e){let t=[],r=1,n=!1,i=e;for(;!n;){let e=await this.validators({per_page:50,height:i,page:r});t.push(...e.validators),i=i||e.blockHeight,t.length<e.total?r++:n=!0}return{blockHeight:i??0,count:t.length,total:t.length,validators:t}}async doCall(e,t,r){let n=t(e);return r(await this.client.execute(n))}subscribe(e,t){if(!(0,s.instanceOfRpcStreamingClient)(this.client))throw Error("This RPC client type cannot subscribe to events");let r=d.Params.encodeSubscribe(e);return this.client.listen(r).map(e=>t(e))}}t.Tendermint34Client=c},48236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accountFromAny=void 0;let n=r(73297),i=r(11717),o=r(63688),a=r(87332),s=r(74068);function d(e){return n.Uint64.fromString(e.toString())}function l(e){let{address:t,pubKey:r,accountNumber:n,sequence:o}=e;return{address:t,pubkey:(0,i.decodeOptionalPubkey)(r),accountNumber:d(n).toNumber(),sequence:d(o).toNumber()}}t.accountFromAny=function(e){let{typeUrl:t,value:r}=e;switch(t){case"/cosmos.auth.v1beta1.BaseAccount":return l(a.BaseAccount.decode(r));case"/cosmos.auth.v1beta1.ModuleAccount":{let e=a.ModuleAccount.decode(r).baseAccount;return(0,o.assert)(e),l(e)}case"/cosmos.vesting.v1beta1.BaseVestingAccount":{let e=s.BaseVestingAccount.decode(r)?.baseAccount;return(0,o.assert)(e),l(e)}case"/cosmos.vesting.v1beta1.ContinuousVestingAccount":{let e=s.ContinuousVestingAccount.decode(r)?.baseVestingAccount?.baseAccount;return(0,o.assert)(e),l(e)}case"/cosmos.vesting.v1beta1.DelayedVestingAccount":{let e=s.DelayedVestingAccount.decode(r)?.baseVestingAccount?.baseAccount;return(0,o.assert)(e),l(e)}case"/cosmos.vesting.v1beta1.PeriodicVestingAccount":{let e=s.PeriodicVestingAccount.decode(r)?.baseVestingAccount?.baseAccount;return(0,o.assert)(e),l(e)}default:throw Error(`Unsupported type: '${t}'`)}}},48746:(e,t,r)=>{"use strict";var n=r(76948),i=r(77015),o=r(65436),a=r(26600);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],u=!!a&&a(e,t);if(n)n(e,t,{configurable:null===l&&u?u.configurable:!l,enumerable:null===s&&u?u.enumerable:!s,value:r,writable:null===d&&u?u.writable:!d});else if(!c&&(s||d||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},48819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClient=void 0;let n=r(63688);class i{static withExtensions(e,...t){let r=new i(e);for(let e of t.map(e=>e(r)))for(let[t,i]of((0,n.assert)((0,n.isNonNullObject)(e),"Extension must be a non-null object"),Object.entries(e))){(0,n.assert)((0,n.isNonNullObject)(i),`Module must be a non-null object. Found type ${typeof i} for module "${t}".`);let e=r[t]||{};r[t]={...e,...i}}return r}constructor(e){this.cometClient=e}async queryAbci(e,t,r){let n=await this.cometClient.abciQuery({path:e,data:t,prove:!1,height:r});if(n.code)throw Error(`Query failed with (${n.code}): ${n.log}`);if(!n.height)throw Error("No query height returned");return{value:n.value,height:n.height}}}t.QueryClient=i},49237:(e,t,r)=>{"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.Version=t.ConnectionPaths=t.ClientPaths=t.Counterparty=t.IdentifiedConnection=t.ConnectionEnd=t.stateToJSON=t.stateFromJSON=t.State=t.protobufPackage=void 0;let i=r(16405),o=r(4696),a=r(92242);function s(e){switch(e){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return n.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return n.STATE_INIT;case 2:case"STATE_TRYOPEN":return n.STATE_TRYOPEN;case 3:case"STATE_OPEN":return n.STATE_OPEN;default:return n.UNRECOGNIZED}}function d(e){switch(e){case n.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case n.STATE_INIT:return"STATE_INIT";case n.STATE_TRYOPEN:return"STATE_TRYOPEN";case n.STATE_OPEN:return"STATE_OPEN";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(){return{clientId:"",versions:[],state:0,counterparty:t.Counterparty.fromPartial({}),delayPeriod:BigInt(0)}}function c(){return{id:"",clientId:"",versions:[],state:0,counterparty:t.Counterparty.fromPartial({}),delayPeriod:BigInt(0)}}function u(){return{clientId:"",connectionId:"",prefix:i.MerklePrefix.fromPartial({})}}function p(){return{paths:[]}}function f(){return{clientId:"",paths:[]}}function h(){return{identifier:"",features:[]}}function g(){return{maxExpectedTimePerBlock:BigInt(0)}}t.protobufPackage="ibc.core.connection.v1",function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.State=n={})),t.stateFromJSON=s,t.stateToJSON=d,t.ConnectionEnd={typeUrl:"/ibc.core.connection.v1.ConnectionEnd",encode(e,r=o.BinaryWriter.create()){for(let n of(""!==e.clientId&&r.uint32(10).string(e.clientId),e.versions))t.Version.encode(n,r.uint32(18).fork()).ldelim();return 0!==e.state&&r.uint32(24).int32(e.state),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,r.uint32(34).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&r.uint32(40).uint64(e.delayPeriod),r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.clientId=n.string();break;case 2:a.versions.push(t.Version.decode(n,n.uint32()));break;case 3:a.state=n.int32();break;case 4:a.counterparty=t.Counterparty.decode(n,n.uint32());break;case 5:a.delayPeriod=n.uint64();break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=l();return(0,a.isSet)(e.clientId)&&(r.clientId=String(e.clientId)),Array.isArray(e?.versions)&&(r.versions=e.versions.map(e=>t.Version.fromJSON(e))),(0,a.isSet)(e.state)&&(r.state=s(e.state)),(0,a.isSet)(e.counterparty)&&(r.counterparty=t.Counterparty.fromJSON(e.counterparty)),(0,a.isSet)(e.delayPeriod)&&
1(r.delayPeriod=BigInt(e.delayPeriod.toString())),r},toJSON(e){let r={};return void 0!==e.clientId&&(r.clientId=e.clientId),e.versions?r.versions=e.versions.map(e=>e?t.Version.toJSON(e):void 0):r.versions=[],void 0!==e.state&&(r.state=d(e.state)),void 0!==e.counterparty&&(r.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(r.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),r},fromPartial(e){let r=l();return r.clientId=e.clientId??"",r.versions=e.versions?.map(e=>t.Version.fromPartial(e))||[],r.state=e.state??0,void 0!==e.counterparty&&null!==e.counterparty&&(r.counterparty=t.Counterparty.fromPartial(e.counterparty)),void 0!==e.delayPeriod&&null!==e.delayPeriod&&(r.delayPeriod=BigInt(e.delayPeriod.toString())),r}},t.IdentifiedConnection={typeUrl:"/ibc.core.connection.v1.IdentifiedConnection",encode(e,r=o.BinaryWriter.create()){for(let n of(""!==e.id&&r.uint32(10).string(e.id),""!==e.clientId&&r.uint32(18).string(e.clientId),e.versions))t.Version.encode(n,r.uint32(26).fork()).ldelim();return 0!==e.state&&r.uint32(32).int32(e.state),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,r.uint32(42).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&r.uint32(48).uint64(e.delayPeriod),r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=c();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.id=n.string();break;case 2:a.clientId=n.string();break;case 3:a.versions.push(t.Version.decode(n,n.uint32()));break;case 4:a.state=n.int32();break;case 5:a.counterparty=t.Counterparty.decode(n,n.uint32());break;case 6:a.delayPeriod=n.uint64();break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=c();return(0,a.isSet)(e.id)&&(r.id=String(e.id)),(0,a.isSet)(e.clientId)&&(r.clientId=String(e.clientId)),Array.isArray(e?.versions)&&(r.versions=e.versions.map(e=>t.Version.fromJSON(e))),(0,a.isSet)(e.state)&&(r.state=s(e.state)),(0,a.isSet)(e.counterparty)&&(r.counterparty=t.Counterparty.fromJSON(e.counterparty)),(0,a.isSet)(e.delayPeriod)&&
1(r.delayPeriod=BigInt(e.delayPeriod.toString())),r},toJSON(e){let r={};return void 0!==e.id&&(r.id=e.id),void 0!==e.clientId&&(r.clientId=e.clientId),e.versions?r.versions=e.versions.map(e=>e?t.Version.toJSON(e):void 0):r.versions=[],void 0!==e.state&&(r.state=d(e.state)),void 0!==e.counterparty&&(r.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(r.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),r},fromPartial(e){let r=c();return r.id=e.id??"",r.clientId=e.clientId??"",r.versions=e.versions?.map(e=>t.Version.fromPartial(e))||[],r.state=e.state??0,void 0!==e.counterparty&&null!==e.counterparty&&(r.counterparty=t.Counterparty.fromPartial(e.counterparty)),void 0!==e.delayPeriod&&null!==e.delayPeriod&&(r.delayPeriod=BigInt(e.delayPeriod.toString())),r}},t.Counterparty={typeUrl:"/ibc.core.connection.v1.Counterparty",encode:(e,t=o.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),""!==e.connectionId&&t.uint32(18).string(e.connectionId),void 0!==e.prefix&&i.MerklePrefix.encode(e.prefix,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.clientId=r.string();break;case 2:a.connectionId=r.string();break;case 3:a.prefix=i.MerklePrefix.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=u();return(0,a.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,a.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),(0,a.isSet)(e.prefix)&&(t.prefix=i.MerklePrefix.fromJSON(e.prefix)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.prefix&&(t.prefix=e.prefix?i.MerklePrefix.toJSON(e.prefix):void 0),t},fromPartial(e){let t=u();return t.clientId=e.clientId??"",t.connectionId=e.connectionId??"",void 0!==e.prefix&&null!==e.prefix&&(t.prefix=i.MerklePrefix.fromPartial(e.prefix)),t}},t.ClientPaths={typeUrl:"/ibc.core.connection.v1.ClientPaths",encode(e,t=o.BinaryWriter.create()){for(let r of e.paths)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.paths.push(r.string()):r.skipType(7&e)}return i},fromJSON(e){let t=p();return Array.isArray(e?.paths)&&(t.paths=e.paths.map(e=>String(e))),t},toJSON(e){let t={};return e.paths?t.paths=e.paths.map(e=>e):t.paths=[],t},fromPartial(e){let t=p();return t.paths=e.paths?.map(e=>e)||[],t}},t.ConnectionPaths={typeUrl:"/ibc.core.connection.v1.ConnectionPaths",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.clientId&&t.uint32(10).string(e.clientId),e.paths))t.uint32(18).string(r);return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.clientId=r.string();break;case 2:i.paths.push(r.string());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=f();return(0,a.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),Array.isArray(e?.paths)&&(t.paths=e.paths.map(e=>String(e))),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),e.paths?t.paths=e.paths.map(e=>e):t.paths=[],t},fromPartial(e){let t=f();return t.clientId=e.clientId??"",t.paths=e.paths?.map(e=>e)||[],t}},t.Version={typeUrl:"/ibc.core.connection.v1.Version",encode(e,t=o.BinaryWriter.create()){for(let r of(""!==e.identifier&&t.uint32(10).string(e.identifier),e.features))t.uint32(18).string(r);return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.identifier=r.string();break;case 2:i.features.push(r.string());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,a.isSet)(e.identifier)&&(t.identifier=String(e.identifier)),Array.isArray(e?.features)&&(t.features=e.features.map(e=>String(e))),t},toJSON(e){let t={};return void 0!==e.identifier&&(t.identifier=e.identifier),e.features?t.features=e.features.map(e=>e):t.features=[],t},fromPartial(e){let t=h();return t.identifier=e.identifier??"",t.features=e.features?.map(e=>e)||[],t}},t.Params={typeUrl:"/ibc.core.connection.v1.Params",encode:(e,t=o.BinaryWriter.create())=>(e.maxExpectedTimePerBlock!==BigInt(0)&&t.uint32(8).uint64(e.maxExpectedTimePerBlock),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.maxExpectedTimePerBlock=r.uint64():r.skipType(7&e)}return i},fromJSON(e){let t=g();return(0,a.isSet)(e.maxExpectedTimePerBlock)&&(t.maxExpectedTimePerBlock=BigInt(e.maxExpectedTimePerBlock.toString())),t},toJSON(e){let t={};return void 0!==e.maxExpectedTimePerBlock&&(t.maxExpectedTimePerBlock=(e.maxExpectedTimePerBlock||BigInt(0)).toString()),t},fromPartial(e){let t=g();return void 0!==e.maxExpectedTimePerBlock&&null!==e.maxExpectedTimePerBlock&&(t.maxExpectedTimePerBlock=BigInt(e.maxExpectedTimePerBlock.toString())),t}}},49378:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{ed25519:void 0,secp256k1:void 0}}t.protobufPackage="tendermint.crypto",t.PublicKey={typeUrl:"/tendermint.crypto.PublicKey",encode:(e,t=n.BinaryWriter.create())=>(void 0!==e.ed25519&&t.uint32(10).bytes(e.ed25519),void 0!==e.secp256k1&&t.uint32(18).bytes(e.secp256k1),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.ed25519=r.bytes();break;case 2:a.secp256k1=r.bytes();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.ed25519)&&(t.ed25519=(0,i.bytesFromBase64)(e.ed25519)),(0,i.isSet)(e.secp256k1)&&(t.secp256k1=(0,i.bytesFromBase64)(e.secp256k1)),t},toJSON(e){let t={};return void 0!==e.ed25519&&(t.ed25519=void 0!==e.ed25519?(0,i.base64FromBytes)(e.ed25519):void 0),void 0!==e.secp256k1&&(t.secp256k1=void 0!==e.secp256k1?(0,i.base64FromBytes)(e.secp256k1):void 0),t},fromPartial(e){let t=o();return t.ed25519=e.ed25519??void 0,t.secp256k1=e.secp256k1??void 0,t}}},49969:(e,t,r)=>{"use strict";var n=r(95488),i=r(91697),o=r(45381),a=r(16010),s=n.assert;function d(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function l(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,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()))))}o(d,a),e.exports=d,d.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},d.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},d.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},d.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var d=s.fromRed().isOdd();return(t&&!d||!t&&d)&&(s=s.redNeg()),this.point(e,s)},d.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero))if(!t)return this.point(this.zero,e);else throw Error("invalid point");var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},d.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(l,a.BasePoint),d.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},d.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r
1=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),d=i.redMul(a),l=o.redMul(s),c=i.redMul(s),u=a.redMul(o);return this.curve.point(d,l,u,c)},l.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),d=this.y.redSqr();if(this.curve.twisted){var l=(n=this.curve._mulA(s)).redAdd(d);this.zOne?(e=a.redSub(s).redSub(d).redMul(l.redSub(this.curve.two)),t=l.redMul(n.redSub(d)),r=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),o=l.redSub(i).redISub(i),e=a.redSub(s).redISub(d).redMul(o),t=l.redMul(n.redSub(d)),r=l.redMul(o))}else n=s.redAdd(d),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(d)),r=n.redMul(o);return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),d=r.redAdd(t),l=o.redMul(a),c=s.redMul(d),u=o.redMul(d),p=a.redMul(s);return this.curve.point(l,c,p,u)},l.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),d=i.redSub(s),l=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),u=n.redMul(d).redMul(c);return this.curve.twisted?(t=n.redMul(l).redMul(a.redSub(this.curve._mulA(o))),r=d.redMul(l)):(t=n.redMul(l).redMul(a.redSub(o)),r=this.curve._mulC(d).redMul(l)),this.curve.point(u,t,r)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},l.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},l.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},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},50327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.protobufPackage=void 0;let n=r(58887),i=r(10795),o=r(4696),a=r(92242);function s(){return{header:n.Header.fromPartial({}),data:n.Data.fromPartial({}),evidence:i.EvidenceList.fromPartial({}),lastCommit:void 0}}t.protobufPackage="tendermint.types",t.Block={typeUrl:"/tendermint.types.Block",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.header&&n.Header.encode(e.header,t.uint32(10).fork()).ldelim(),void 0!==e.data&&n.Data.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.evidence&&i.EvidenceList.encode(e.evidence,t.uint32(26).fork()).ldelim(),void 0!==e.lastCommit&&n.Commit.encode(e.lastCommit,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=s();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.header=n.Header.decode(r,r.uint32());break;case 2:d.data=n.Data.decode(r,r.uint32());break;case 3:d.evidence=i.EvidenceList.decode(r,r.uint32());break;case 4:d.lastCommit=n.Commit.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=s();return(0,a.isSet)(e.header)&&(t.header=n.Header.fromJSON(e.header)),(0,a.isSet)(e.data)&&(t.data=n.Data.fromJSON(e.data)),(0,a.isSet)(e.evidence)&&(t.evidence=i.EvidenceList.fromJSON(e.evidence)),(0,a.isSet)(e.lastCommit)&&(t.lastCommit=n.Commit.fromJSON(e.last
1Commit)),t},toJSON(e){let t={};return void 0!==e.header&&(t.header=e.header?n.Header.toJSON(e.header):void 0),void 0!==e.data&&(t.data=e.data?n.Data.toJSON(e.data):void 0),void 0!==e.evidence&&(t.evidence=e.evidence?i.EvidenceList.toJSON(e.evidence):void 0),void 0!==e.lastCommit&&(t.lastCommit=e.lastCommit?n.Commit.toJSON(e.lastCommit):void 0),t},fromPartial(e){let t=s();return void 0!==e.header&&null!==e.header&&(t.header=n.Header.fromPartial(e.header)),void 0!==e.data&&null!==e.data&&(t.data=n.Data.fromPartial(e.data)),void 0!==e.evidence&&null!==e.evidence&&(t.evidence=i.EvidenceList.fromPartial(e.evidence)),void 0!==e.lastCommit&&null!==e.lastCommit&&(t.lastCommit=n.Commit.fromPartial(e.lastCommit)),t}}},50413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOptionalPubkey=t.decodePubkey=t.anyToSinglePubkey=t.encodePubkey=void 0;let n=r(32715),i=r(25918),o=r(73297),a=r(19130),s=r(7915),d=r(76589),l=r(54573);function c(e){if((0,n.isSecp256k1Pubkey)(e)){let t=d.PubKey.fromPartial({key:(0,i.fromBase64)(e.value)});return l.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(d.PubKey.encode(t).finish())})}if((0,n.isEd25519Pubkey)(e)){let t=a.PubKey.fromPartial({key:(0,i.fromBase64)(e.value)});return l.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(a.PubKey.encode(t).finish())})}if((0,n.isMultisigThresholdPubkey)(e)){let t=s.LegacyAminoPubKey.fromPartial({threshold:o.Uint53.fromString(e.value.threshold).toNumber(),publicKeys:e.value.pubkeys.map(c)});return l.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(s.LegacyAminoPubKey.encode(t).finish())})}throw Error(`Pubkey type ${e.type} not recognized`)}function u(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{let{key:t}=d.PubKey.decode(e.value);return(0,n.encodeSecp256k1Pubkey)(t)}case"/cosmos.crypto.ed25519.PubKey":{let{key:t}=a.PubKey.decode(e.value);return(0,n.encodeEd25519Pubkey)(t)}default:throw Error(`Pubkey type_url ${e.typeUrl} not recognized as single public key type`)}}function p(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return u(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":{let{threshold:t,publicKeys:r}=s.LegacyAminoPubKey.decode(e.value);return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:t.toString(),pubkeys:r.map(u)}}}default:throw Error(`Pubkey type URL '${e.typeUrl}' not recognized`)}}t.encodePubkey=c,t.anyToSinglePubkey=u,t.decodePubkey=p,t.decodeOptionalPubkey=function(e){if(!e)return null;if(e.typeUrl)if(e.value.length)return p(e);else throw Error(`Pubkey is an Any with type URL '${e.typeUrl}' but an empty value`);if(!e.value.length)return null;throw Error("Pubkey is an Any with an empty type URL but a value set")}},50521:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeCosmosSdkDecFromProto=t.longify=t.createProtobufRpcClient=t.createPagination=t.toAccAddress=void 0;let n=r(25918),i=r(73297),o=r(64094);t.toAccAddress=function(e){return(0,n.fromBech32)(e).data},t.createPagination=function(e){return e?o.PageRequest.fromPartial({key:e}):o.PageRequest.fromPartial({})},t.createProtobufRpcClient=function(e){return{request:async(t,r,n)=>{let i=`/${t}/${r}`;return(await e.queryAbci(i,n,void 0)).value}}},t.longify=function(e){return BigInt(i.Uint64.fromString(e.toString()).toString())},t.decodeCosmosSdkDecFromProto=function(e){let t="string"==typeof e?e:(0,n.fromAscii)(e);return i.Decimal.fromAtomics(t,18)}},50556:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgLeaveGroupResponse=t.MsgLeaveGroup=t.MsgExecResponse=t.MsgExec=t.MsgVoteResponse=t.MsgVote=t.MsgWithdrawProposalResponse=t.MsgWithdrawProposal=t.MsgSubmitProposalResponse=t.MsgSubmitProposal=t.MsgUpdateGroupPolicyMetadataResponse=t.MsgUpdateGroupPolicyMetadata=t.MsgUpdateGroupPolicyDecisionPolicyResponse=t.MsgUpdateGroupPolicyDecisionPolicy=t.MsgCreateGroupWithPolicyResponse=t.MsgCreateGroupWithPolicy=t.MsgUpdateGroupPolicyAdminResponse=t.MsgUpdateGroupPolicyAdmin=t.MsgCreateGroupPolicyResponse=t.MsgCreateGroupPolicy=t.MsgUpdateGroupMetadataResponse=t.MsgUpdateGroupMetadata=t.MsgUpdateGroupAdminResponse=t.MsgUpdateGroupAdmin=t.MsgUpdateGroupMembersResponse=t.MsgUpdateGroupMembers=t.MsgCreateGroupResponse=t.MsgCreateGroup=t.execToJSON=t.execFromJSON=t.Exec=t.protobufPackage=void 0;let i=r(39789),o=r(54573),a=r(4696),s=r(92242);function d(e){switch(e){case 0:case"EXEC_UNSPECIFIED":return n.EXEC_UNSPECIFIED;case 1:case"EXEC_TRY":return n.EXEC_TRY;default:return n.UNRECOGNIZED}}function l(e){switch(e){case n.EXEC_UNSPECIFIED:return"EXEC_UNSPECIFIED";case n.EXEC_TRY:return"EXEC_TRY";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(){return{admin:"",members:[],metadata:""}}function u(){return{groupId:BigInt(0)}}function p(){return{admin:"",groupId:BigInt(0),memberUpdates:[]}}function f(){return{}}function h(){return{admin:"",groupId:BigInt(0),newAdmin:""}}function g(){return{}}function m(){return{admin:"",groupId:BigInt(0),metadata:""}}function y(){return{}}function b(){return{admin:"",groupId:BigInt(0),metadata:"",decisionPolicy:void 0}}function v(){return{address:""}}function S(){return{admin:"",groupPolicyAddress:"",newAdmin:""}}function A(){return{}}function w(){return{admin:"",members:[],groupMetadata:"",groupPolicyMetadata:"",groupPolicyAsAdmin:!1,decisionPolicy:void 0}}function _(){return{groupId:BigInt(0),groupPolicyAddress:""}}function P(){return{admin:"",groupPolicyAddress:"",decisionPolicy:void 0}}function k(){return{}}function R(){return{admin:"",groupPolicyAddress:"",metadata:""}}function O(){return{}}function I(){return{groupPolicyAddress:"",proposers:[],metadata:"",messages:[],exec:0,title:"",summary:""}}function B(){return{proposalId:BigInt(0)}}function x(){return{proposalId:BigInt(0),address:""}}function E(){return{}}function T(){return{proposalId:BigInt(0),voter:"",option:0,metadata:"",exec:0}}function N(){return{}}function C(){return{proposalId:BigInt(0),executor:""}}function M(){return{result:0}}function U(){return{address:"",groupId:BigInt(0)}}function D(){return{}}t.protobufPackage="cosmos.group.v1",function(e){e[e.EXEC_UNSPECIFIED=0]="EXEC_UNSPECIFIED",e[e.EXEC_TRY=1]="EXEC_TRY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.Exec=n={})),t.execFromJSON=d,t.execToJSON=l,t.MsgCreateGroup={typeUrl:"/cosmos.group.v1.MsgCreateGroup",encode(e,t=a.BinaryWriter.create()){for(let r of(""!==e.admin&&t.uint32(10).string(e.admin),e.members))i.MemberRequest.encode(r,t.uint32(18).fork()).ldelim();return""!==e.metadata&&t.uint32(26).string(e.metadata),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.admin=r.string();break;case 2:o.members.push(i.MemberRequest.decode(r,r.uint32()));break;case 3:o.metadata=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=c();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),Array.isArray(e?.members)&&(t.members=e.members.map(e=>i.MemberRequest.fromJSON(e))),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),e.members?t.members=e.members.map(e=>e?i.MemberRequest.toJSON(e):void 0):t.members=[],void 0!==e.metadata&&(t.metadata=e.metadata),t},fromPartial(e){let t=c();return t.admin=e.admin??"",t.members=e.members?.map(e=>i.MemberRequest.fromPartial(e))||[],t.metadata=e.metadata??"",t}},t.MsgCreateGroupResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupResponse",encode:(e,t=a.BinaryWriter.create())=>(e.groupId!==BigInt(0)&&t.uint32(8).uint64(e.groupId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.groupId=r.uint64():r.skipType(7&e)}return i},fromJSON(e){let t=u();return(0,s.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),t},toJSON(e){let t={};return void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),t},fromPartial(e){let t=u();return void 0!==e.groupId&&null!==e.groupId&&(t.groupId=BigInt(e.groupId.toString())),t}},t.MsgUpdateGroupMembers={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMembers",encode(e,t=a.BinaryWriter.create()){for(let r of(""!==e.admin&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),e.memberUpdates))i.MemberRequest.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=p();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.admin=r.string();break;case 2:o.groupId=r.uint64();break;case 3:o.memberUpdates.push(i.MemberRequest.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=p();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,s.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),Array.isArray(e?.memberUpdates)&&(t.memberUpdates=e.memberUpdates.map(e=>i.MemberRequest.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),e.memberUpdates?t.memberUpdates=e.memberUpdates.map(e=>e?i.MemberRequest.toJSON(e):void 0):t.memberUpdates=[],t},fromPartial(e){let t=p();return t.admin=e.admin??"",void 0!==e.groupId&&null!==e.groupId&&(t.groupId=BigInt(e.groupId.toString())),t.memberUpdates=e.memberUpdates?.map(e=>i.MemberRequest.fromPartial(e))||[],t}},t.MsgUpdateGroupMembersResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMembersResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>f(),toJSON:e=>({}),fromPartial:e=>f()},t.MsgUpdateGroupAdmin={typeUrl:"/cosmos.group.v1.MsgUpdateGroupAdmin",encode:(e,t=a.BinaryWriter.create())=>(""!==e.admin&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),""!==e.newAdmin&&t.uint32(26).string(e.newAdmin),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.groupId=r.uint64();break;case 3:i.newAdmin=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,s.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,s.isSet)(e.newAdmin)&&(t.newAdmin=String(e.newAdmin)),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),t},fromPartial(e){let t=h();return t.admin=e.admin??"",void 0!==e.groupId&&null!==e.groupId&&(t.groupId=BigInt(e.groupId.toString())),t.newAdmin=e.newAdmin??"",t}},t.MsgUpdateGroupAdminResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupAdminResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>g(),toJSON:e=>({}),fromPartial:e=>g()},t.MsgUpdateGroupMetadata={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMetadata",encode:(e,t=a.BinaryWriter.create())=>(""!==e.admin&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),""!==e.metadata&&t.uint32(26).string(e.metadata),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.groupId=r.uint64();break;case 3:i.metadata=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,s.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),void 0!==e.metadata&&(t.metadata=e.metadata),t},fromPartial(e){let t=m();return t.admin=e.admin??"",void 0!==e.groupId&&null!==e.groupId&&(t.groupId=BigInt(e.groupId.toString())),t.metadata=e.metadata??"",t}},t.MsgUpdateGroupMetadataResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupMetadataResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>y(),toJSON:e=>({}),fromPartial:e=>y()},t.MsgCreateGroupPolicy={typeUrl:"/cosmos.group.v1.MsgCreateGroupPolicy",encode:(e,t=a.BinaryWriter.create())=>(""!==e.admin&&t.uint32(10).string(e.admin),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),""!==e.metadata&&t.uint32(26).string(e.metadata),void 0!==e.decisionPolicy&&o.Any.encode(e.decisionPolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.groupId=r.uint64();break;case 3:i.metadata=r.string();break;case 4:i.decisionPolicy=o.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,s.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,s.isSet)(e.decisionPolicy)&&(t.decisionPolicy=o.Any.fromJSON(e.decisionPolicy)),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),void 0!==e.metadata&&(t.metadata=e.metadata),void 0!==e.decisionPolicy&&(t.decisionPolicy=e.decisionPolicy?o.Any.toJSON(e.decisionPolicy):void 0),t},fromPartial(e){let t=b();return t.admin=e.admin??"",void 0!==e.groupId&&null!==e.groupId&&(t.groupId=BigInt(e.groupId.toString())),t.metadata=e.metadata??"",void 0!==e.decisionPolicy&&null!==e.decisionPolicy&&(t.decisionPolicy=o.Any.fromPartial(e.decisionPolicy)),t}},t.MsgCreateGroupPolicyResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupPolicyResponse",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.address=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=v();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),t},fromPartial(e){let t=v();return t.address=e.address??"",t}},t.MsgUpdateGroupPolicyAdmin={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",encode:(e,t=a.BinaryWriter.create())=>(""!==e.admin&&t.uint32(10).string(e.admin),""!==e.groupPolicyAddress&&t.uint32(18).string(e.groupPolicyAddress),""!==e.newAdmin&&t.uint32(26).string(e.newAdmin),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.groupPolicyAddress=r.string();break;case 3:i.newAdmin=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=S();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,s.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),(0,s.isSet)(e.newAdmin)&&(t.newAdmin=String(e.newAdmin)),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.groupPolicyAddress&&(t.groupPolicyAddress=e.groupPolicyAddress),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),t},fromPartial(e){let t=S();return t.admin=e.admin??"",t.groupPolicyAddress=e.groupPolicyAddress??"",t.newAdmin=e.newAdmin??"",t}},t.MsgUpdateGroupPolicyAdminResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>A(),toJSON:e=>({}),fromPartial:e=>A()},t.MsgCreateGroupWithPolicy={typeUrl:"/cosmos.group.v1.
1MsgCreateGroupWithPolicy",encode(e,t=a.BinaryWriter.create()){for(let r of(""!==e.admin&&t.uint32(10).string(e.admin),e.members))i.MemberRequest.encode(r,t.uint32(18).fork()).ldelim();return""!==e.groupMetadata&&t.uint32(26).string(e.groupMetadata),""!==e.groupPolicyMetadata&&t.uint32(34).string(e.groupPolicyMetadata),!0===e.groupPolicyAsAdmin&&t.uint32(40).bool(e.groupPolicyAsAdmin),void 0!==e.decisionPolicy&&o.Any.encode(e.decisionPolicy,t.uint32(50).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=w();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.admin=r.string();break;case 2:s.members.push(i.MemberRequest.decode(r,r.uint32()));break;case 3:s.groupMetadata=r.string();break;case 4:s.groupPolicyMetadata=r.string();break;case 5:s.groupPolicyAsAdmin=r.bool();break;case 6:s.decisionPolicy=o.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=w();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),Array.isArray(e?.members)&&(t.members=e.members.map(e=>i.MemberRequest.fromJSON(e))),(0,s.isSet)(e.groupMetadata)&&(t.groupMetadata=String(e.groupMetadata)),(0,s.isSet)(e.groupPolicyMetadata)&&(t.groupPolicyMetadata=String(e.groupPolicyMetadata)),(0,s.isSet)(e.groupPolicyAsAdmin)&&(t.groupPolicyAsAdmin=!!e.groupPolicyAsAdmin),(0,s.isSet)(e.decisionPolicy)&&(t.decisionPolicy=o.Any.fromJSON(e.decisionPolicy)),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),e.members?t.members=e.members.map(e=>e?i.MemberRequest.toJSON(e):void 0):t.members=[],void 0!==e.groupMetadata&&(t.groupMetadata=e.groupMetadata),void 0!==e.groupPolicyMetadata&&(t.groupPolicyMetadata=e.groupPolicyMetadata),void 0!==e.groupPolicyAsAdmin&&(t.groupPolicyAsAdmin=e.groupPolicyAsAdmin),void 0!==e.decisionPolicy&&(t.decisionPolicy=e.decisionPolicy?o.Any.toJSON(e.decisionPolicy):void 0),t},fromPartial(e){let t=w();return t.admin=e.admin??"",t.members=e.members?.map(e=>i.MemberRequest.fromPartial(e))||[],t.groupMetadata=e.groupMetadata??"",t.groupPolicyMetadata=e.groupPolicyMetadata??"",t.groupPolicyAsAdmin=e.groupPolicyAsAdmin??!1,void 0!==e.decisionPolicy&&null!==e.decisionPolicy&&(t.decisionPolicy=o.Any.fromPartial(e.decisionPolicy)),t}},t.MsgCreateGroupWithPolicyResponse={typeUrl:"/cosmos.group.v1.MsgCreateGroupWithPolicyResponse",encode:(e,t=a.BinaryWriter.create())=>(e.groupId!==BigInt(0)&&t.uint32(8).uint64(e.groupId),""!==e.groupPolicyAddress&&t.uint32(18).string(e.groupPolicyAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.groupId=r.uint64();break;case 2:i.groupPolicyAddress=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=_();return(0,s.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),(0,s.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),t},toJSON(e){let t={};return void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),void 0!==e.groupPolicyAddress&&(t.groupPolicyAddress=e.groupPolicyAddress),t},fromPartial(e){let t=_();return void 0!==e.groupId&&null!==e.groupId&&(t.groupId=BigInt(e.groupId.toString())),t.groupPolicyAddress=e.groupPolicyAddress??"",t}},t.MsgUpdateGroupPolicyDecisionPolicy={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",encode:(e,t=a.BinaryWriter.create())=>(""!==e.admin&&t.uint32(10).string(e.admin),""!==e.groupPolicyAddress&&t.uint32(18).string(e.groupPolicyAddress),void 0!==e.decisionPolicy&&o.Any.encode(e.decisionPolicy,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=P();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.groupPolicyAddress=r.string();break;case 3:i.decisionPolicy=o.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=P();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,s.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),(0,s.isSet)(e.decisionPolicy)&&(t.decisionPolicy=o.Any.fromJSON(e.decisionPolicy)),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.groupPolicyAddress&&(t.groupPolicyAddress=e.groupPolicyAddress),void 0!==e.decisionPolicy&&(t.decisionPolicy=e.decisionPolicy?o.Any.toJSON(e.decisionPolicy):void 0),t},fromPartial(e){let t=P();return t.admin=e.admin??"",t.groupPolicyAddress=e.groupPolicyAddress??"",void 0!==e.decisionPolicy&&null!==e.decisionPolicy&&(t.decisionPolicy=o.Any.fromPartial(e.decisionPolicy)),t}},t.MsgUpdateGroupPolicyDecisionPolicyResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=k();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>k(),toJSON:e=>({}),fromPartial:e=>k()},t.MsgUpdateGroupPolicyMetadata={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",encode:(e,t=a.BinaryWriter.create())=>(""!==e.admin&&t.uint32(10).string(e.admin),""!==e.groupPolicyAddress&&t.uint32(18).string(e.groupPolicyAddress),""!==e.metadata&&t.uint32(26).string(e.metadata),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=R();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.admin=r.string();break;case 2:i.groupPolicyAddress=r.string();break;case 3:i.metadata=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=R();return(0,s.isSet)(e.admin)&&(t.admin=String(e.admin)),(0,s.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),t},toJSON(e){let t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.groupPolicyAddress&&(t.groupPolicyAddress=e.groupPolicyAddress),void 0!==e.metadata&&(t.metadata=e.metadata),t},fromPartial(e){let t=R();return t.admin=e.admin??"",t.groupPolicyAddress=e.groupPolicyAddress??"",t.metadata=e.metadata??"",t}},t.MsgUpdateGroupPolicyMetadataResponse={typeUrl:"/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>O(),toJSON:e=>({}),fromPartial:e=>O()},t.MsgSubmitProposal={typeUrl:"/cosmos.group.v1.MsgSubmitProposal",encode(e,t=a.BinaryWriter.create()){for(let r of(""!==e.groupPolicyAddress&&t.uint32(10).string(e.groupPolicyAddress),e.proposers))t.uint32(18).string(r);for(let r of(""!==e.metadata&&t.uint32(26).string(e.metadata),e.messages))o.Any.encode(r,t.uint32(34).fork()).ldelim();return 0!==e.exec&&t.uint32(40).int32(e.exec),""!==e.title&&t.uint32(50).string(e.title),""!==e.summary&&t.uint32(58).string(e.summary),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=I();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.groupPolicyAddress=r.string();break;case 2:i.proposers.push(r.string());break;case 3:i.metadata=r.string();break;case 4:i.messages.push(o.Any.decode(r,r.uint32()));break;case 5:i.exec=r.int32();break;case 6:i.title=r.string();break;case 7:i.summary=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=I();return(0,s.isSet)(e.groupPolicyAddress)&&(t.groupPolicyAddress=String(e.groupPolicyAddress)),Array.isArray(e?.proposers)&&(t.proposers=e.proposers.map(e=>String(e))),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),Array.isArray(e?.messages)&&(t.messages=e.messages.map(e=>o.Any.fromJSON(e))),(0,s.isSet)(e.exec)&&(t.exec=d(e.exec)),(0,s.isSet)(e.title)&&(t.title=String(e.title)),(0,s.isSet)(e.summary)&&(t.summary=String(e.summary)),t},toJSON(e){let t={};return void 0!==e.groupPolicyAddress&&(t.groupPolicyAddress=e.groupPolicyAddress),e.proposers?t.proposers=e.proposers.map(e=>e):t.proposers=[],void 0!==e.metadata&&(t.metadata=e.metadata),e.messages?t.messages=e.messages.map(e=>e?o.Any.toJSON(e):void 0):t.messages=[],void 0!==e.exec&&(t.exec=l(e.exec)),void 0!==e.title&&(t.title=e.title),void 0!==e.summary&&(t.summary=e.summary),t},fromPartial(e){let t=I();return t.groupPolicyAddress=e.groupPolicyAddress??"",t.proposers=e.proposers?.map(e=>e)||[],t.metadata=e.metadata??"",t.messages=e.messages?.map(e=>o.Any.fromPartial(e))||[],t.exec=e.exec??0,t.title=e.title??"",t.summary=e.summary??"",t}},t.MsgSubmitProposalResponse={typeUrl:"/cosmos.group.v1.MsgSubmitProposalResponse",encode:(e,t=a.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=B();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.proposalId=r.uint64():r.skipType(7&e)}return i},fromJSON(e){let t=B();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=B();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t}},t.MsgWithdrawProposal={typeUrl:"/cosmos.group.v1.MsgWithdrawProposal",encode:(e,t=a.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.address&&t.uint32(18).string(e.address),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=x();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.address=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=x();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.address)&&(t.address=String(e.address)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.address&&(t.address=e.address),t},fromPartial(e){let t=x();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.address=e.address??"",t}},t.MsgWithdrawProposalResponse={typeUrl:"/cosmos.group.v1.MsgWithdrawProposalResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=E();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>E(),toJSON:e=>({}),fromPartial:e=>E()},t.MsgVote={typeUrl:"/cosmos.group.v1.MsgVote",encode:(e,t=a.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),0!==e.option&&t.uint32(24).int32(e.option),""!==e.metadata&&t.uint32(34).string(e.metadata),0!==e.exec&&t.uint32(40).int32(e.exec),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=T();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.option=r.int32();break;case 4:i.metadata=r.string();break;case 5:i.exec=r.int32();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=T();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,s.isSet)(e.option)&&(t.option=(0,i.voteOptionFromJSON)(e.option)),(0,s.isSet)(e.metadata)&&(t.metadata=String(e.metadata)),(0,s.isSet)(e.exec)&&(t.exec=d(e.exec)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.option&&(t.option=(0,i.voteOptionToJSON)(e.option)),void 0!==e.metadata&&(t.metadata=e.metadata),void 0!==e.exec&&(t.exec=l(e.exec)),t},fromPartial(e){let t=T();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t.metadata=e.metadata??"",t.exec=e.exec??0,t}}
1,t.MsgVoteResponse={typeUrl:"/cosmos.group.v1.MsgVoteResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=N();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>N(),toJSON:e=>({}),fromPartial:e=>N()},t.MsgExec={typeUrl:"/cosmos.group.v1.MsgExec",encode:(e,t=a.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.executor&&t.uint32(18).string(e.executor),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=C();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.executor=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=C();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.executor)&&(t.executor=String(e.executor)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.executor&&(t.executor=e.executor),t},fromPartial(e){let t=C();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.executor=e.executor??"",t}},t.MsgExecResponse={typeUrl:"/cosmos.group.v1.MsgExecResponse",encode:(e,t=a.BinaryWriter.create())=>(0!==e.result&&t.uint32(16).int32(e.result),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=M();for(;r.pos<n;){let e=r.uint32();e>>>3==2?i.result=r.int32():r.skipType(7&e)}return i},fromJSON(e){let t=M();return(0,s.isSet)(e.result)&&(t.result=(0,i.proposalExecutorResultFromJSON)(e.result)),t},toJSON(e){let t={};return void 0!==e.result&&(t.result=(0,i.proposalExecutorResultToJSON)(e.result)),t},fromPartial(e){let t=M();return t.result=e.result??0,t}},t.MsgLeaveGroup={typeUrl:"/cosmos.group.v1.MsgLeaveGroup",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),e.groupId!==BigInt(0)&&t.uint32(16).uint64(e.groupId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=U();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.address=r.string();break;case 2:i.groupId=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=U();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),(0,s.isSet)(e.groupId)&&(t.groupId=BigInt(e.groupId.toString())),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.groupId&&(t.groupId=(e.groupId||BigInt(0)).toString()),t},fromPartial(e){let t=U();return t.address=e.address??"",void 0!==e.groupId&&null!==e.groupId&&(t.groupId=BigInt(e.groupId.toString())),t}},t.MsgLeaveGroupResponse={typeUrl:"/cosmos.group.v1.MsgLeaveGroupResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=D();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>D(),toJSON:e=>({}),fromPartial:e=>D()};class J{constructor(e){this.rpc=e,this.CreateGroup=this.CreateGroup.bind(this),this.UpdateGroupMembers=this.UpdateGroupMembers.bind(this),this.UpdateGroupAdmin=this.UpdateGroupAdmin.bind(this),this.UpdateGroupMetadata=this.UpdateGroupMetadata.bind(this),this.CreateGroupPolicy=this.CreateGroupPolicy.bind(this),this.CreateGroupWithPolicy=this.CreateGroupWithPolicy.bind(this),this.UpdateGroupPolicyAdmin=this.UpdateGroupPolicyAdmin.bind(this),this.UpdateGroupPolicyDecisionPolicy=this.UpdateGroupPolicyDecisionPolicy.bind(this),this.UpdateGroupPolicyMetadata=this.UpdateGroupPolicyMetadata.bind(this),this.SubmitProposal=this.SubmitProposal.bind(this),this.WithdrawProposal=this.WithdrawProposal.bind(this),this.Vote=this.Vote.bind(this),this.Exec=this.Exec.bind(this),this.LeaveGroup=this.LeaveGroup.bind(this)}CreateGroup(e){let r=t.MsgCreateGroup.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroup",r).then(e=>t.MsgCreateGroupResponse.decode(new a.BinaryReader(e)))}UpdateGroupMembers(e){let r=t.MsgUpdateGroupMembers.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupMembers",r).then(e=>t.MsgUpdateGroupMembersResponse.decode(new a.BinaryReader(e)))}UpdateGroupAdmin(e){let r=t.MsgUpdateGroupAdmin.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupAdmin",r).then(e=>t.MsgUpdateGroupAdminResponse.decode(new a.BinaryReader(e)))}UpdateGroupMetadata(e){let r=t.MsgUpdateGroupMetadata.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupMetadata",r).then(e=>t.MsgUpdateGroupMetadataResponse.decode(new a.BinaryReader(e)))}CreateGroupPolicy(e){let r=t.MsgCreateGroupPolicy.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroupPolicy",r).then(e=>t.MsgCreateGroupPolicyResponse.decode(new a.BinaryReader(e)))}CreateGroupWithPolicy(e){let r=t.MsgCreateGroupWithPolicy.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroupWithPolicy",r).then(e=>t.MsgCreateGroupWithPolicyResponse.decode(new a.BinaryReader(e)))}UpdateGroupPolicyAdmin(e){let r=t.MsgUpdateGroupPolicyAdmin.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyAdmin",r).then(e=>t.MsgUpdateGroupPolicyAdminResponse.decode(new a.BinaryReader(e)))}UpdateGroupPolicyDecisionPolicy(e){let r=t.MsgUpdateGroupPolicyDecisionPolicy.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyDecisionPolicy",r).then(e=>t.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new a.BinaryReader(e)))}UpdateGroupPolicyMetadata(e){let r=t.MsgUpdateGroupPolicyMetadata.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyMetadata",r).then(e=>t.MsgUpdateGroupPolicyMetadataResponse.decode(new a.BinaryReader(e)))}SubmitProposal(e){let r=t.MsgSubmitProposal.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","SubmitProposal",r).then(e=>t.MsgSubmitProposalResponse.decode(new a.BinaryReader(e)))}WithdrawProposal(e){let r=t.MsgWithdrawProposal.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","WithdrawProposal",r).then(e=>t.MsgWithdrawProposalResponse.decode(new a.BinaryReader(e)))}Vote(e){let r=t.MsgVote.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","Vote",r).then(e=>t.MsgVoteResponse.decode(new a.BinaryReader(e)))}Exec(e){let r=t.MsgExec.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","Exec",r).then(e=>t.MsgExecResponse.decode(new a.BinaryReader(e)))}LeaveGroup(e){let r=t.MsgLeaveGroup.encode(e).finish();return this.rpc.request("cosmos.group.v1.Msg","LeaveGroup",r).then(e=>t.MsgLeaveGroupResponse.decode(new a.BinaryReader(e)))}}t.MsgClientImpl=J},50886:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1HdWallet=t.extractKdfConfiguration=void 0;let n=r(97470),i=r(25918),o=r(63688),a=r(35559),s=r(12623),d=r(32397),l=r(16038),c=r(3832),u="secp256k1wallet-v1",p={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12288}};function f(e){return!!(0,o.isNonNullObject)(e)&&"string"==typeof e.hdPath&&"string"==typeof e.prefix}function h(e){return e.kdf}t.extractKdfConfiguration=function(e){let t=JSON.parse(e);if(!(0,o.isNonNullObject)(t))throw Error("Root document is not an object.");if(t.type===u)return h(t);throw Error("Unsupported serialization type")};let g={bip39Password:"",hdPaths:[(0,s.makeCosmoshubPath)(0)],prefix:"cosmos"};class m{static async fromMnemonic(e,t={}){let r=new n.EnglishMnemonic(e),i=await n.Bip39.mnemonicToSeed(r,t.bip39Password);return new m(r,{...t,seed:i})}static async generate(e=12,t={}){let r=4*Math.floor(11*e/33),i=n.Random.getBytes(r),o=n.Bip39.encode(i);return m.fromMnemonic(o.toString(),t)}static async deserialize(e,t){let r=JSON.parse(e);if(!(0,o.isNonNullObject)(r))throw Error("Root document is not an object.");if(r.type===u)return m.deserializeTypeV1(e,t);throw Error("Unsupported serialization type")}static async deserializeWithEncryptionKey(e,t){let r=JSON.parse(e);if(!(0,o.isNonNullObject)(r))throw Error("Root document is not an object.");let a=r;if(a.type===u){let e=await (0,c.decrypt)((0,i.fromBase64)(a.data),t,a.encryption),{mnemonic:r,accounts:s}=JSON.parse((0,i.fromUtf8)(e));if((0,o.assert)("string"==typeof r),!Array.isArray(s))throw Error("Property 'accounts' is not an array");if(!s.every(e=>f(e)))throw Error("Account is not in the correct format.");let d=s[0].prefix;if(!s.every(({prefix:e})=>e===d))throw Error("Accounts do not all have the same prefix");let l=s.map(({hdPath:e})=>(0,n.stringToPath)(e));return m.fromMnemonic(r,{hdPaths:l,prefix:d})}throw Error("Unsupported serialization type")}static async deserializeTypeV1(e,t){let r=JSON.parse(e);if(!(0,o.isNonNullObject)(r))throw Error("Root document is not an object.");let n=await (0,c.executeKdf)(t,r.kdf);return m.deserializeWithEncryptionKey(e,n)}constructor(e,t){let r=t.hdPaths??g.hdPaths,n=t.prefix??g.prefix;this.secret=e,this.seed=t.seed,this.accounts=r.map(e=>({hdPath:e,prefix:n}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:e,pubkey:t,address:r})=>({algo:e,pubkey:t,address:r}))}async signAmino(e,t){let r=(await this.getAccountsWithPrivkeys()).find(({address:t})=>t===e);if(void 0===r)throw Error(`Address ${e} not found in wallet`);let{privkey:i,pubkey:o}=r,a=(0,n.sha256)((0,l.serializeSignDoc)(t)),s=await n.Secp256k1.createSignature(a,i),c=new Uint8Array([...s.r(32),...s.s(32)]);return{signed:t,signature:(0,d.encodeSecp256k1Signature)(o,c)}}async serialize(e){let t=p,r=await (0,c.executeKdf)(e,t);return this.serializeWithEncryptionKey(r,t)}async serializeWithEncryptionKey(e,t){let r={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:e,prefix:t})=>({hdPath:(0,n.pathToString)(e),prefix:t}))},o=(0,i.toUtf8)(JSON.stringify(r)),a={algorithm:c.supportedAlgorithms.xchacha20poly1305Ietf},s=await (0,c.encrypt)(o,e,a);return JSON.stringify({type:u,kdf:t,encryption:a,data:(0,i.toBase64)(s)})}async getKeyPair(e){let{privkey:t}=n.Slip10.derivePath(n.Slip10Curve.Secp256k1,this.seed,e),{pubkey:r}=await n.Secp256k1.makeKeypair(t);return{privkey:t,pubkey:n.Secp256k1.compressPubkey(r)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:e,prefix:t})=>{let{privkey:r,pubkey:n}=await this.getKeyPair(e),o=(0,i.toBech32)(t,(0,a.rawSecp256k1PubkeyToRawAddress)(n));return{algo:"secp256k1",privkey:r,pubkey:n,address:o}}))}}t.Secp256k1HdWallet=m},51324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.longify=t.decodeCosmosSdkDecFromProto=t.createProtobufRpcClient=t.createPagination=t.QueryClient=void 0;var n=r(48819);Object.defineProperty(t,"QueryClient",{enumerable:!0,get:function(){return n.QueryClient}});var i=r(50521);Object.defineProperty(t,"createPagination",{enumerable:!0,get:function(){return i.createPagination}}),Object.defineProperty(t,"createProtobufRpcClient",{enumerable:!0,get:function(){return i.createProtobufRpcClient}}),Object.defineProperty(t,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return i.decodeCosmosSdkDecFromProto}}),Object.defineProperty(t,"longify",{enumerable:!0,get:function(){return i.longify}})},51334:(e,t,r)=>{"use strict";
1var n=r(69395),i=r(15684),o=n("RegExp.prototype.exec"),a=r(65436);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},51700:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},52254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tendermint37Client=t.VoteType=t.broadcastTxSyncSuccess=t.broadcastTxCommitSuccess=t.SubscriptionEventType=t.Method=void 0;var n=r(99292);Object.defineProperty(t,"Method",{enumerable:!0,get:function(){return n.Method}}),Object.defineProperty(t,"SubscriptionEventType",{enumerable:!0,get:function(){return n.SubscriptionEventType}});var i=r(12814);Object.defineProperty(t,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return i.broadcastTxCommitSuccess}}),Object.defineProperty(t,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return i.broadcastTxSyncSuccess}}),Object.defineProperty(t,"VoteType",{enumerable:!0,get:function(){return i.VoteType}});var o=r(38033);Object.defineProperty(t,"Tendermint37Client",{enumerable:!0,get:function(){return o.Tendermint37Client}})},52361:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBase64=t.toBase64=void 0;let a=o(r(94773));t.toBase64=function(e){return a.fromByteArray(e)},t.fromBase64=function(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw Error("Invalid base64 string format");return a.toByteArray(e)}},52804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=v;let n=r(60401),i=r(14112),o=BigInt(0),a=BigInt(1),s=BigInt(2),d=BigInt(7),l=BigInt(256),c=BigInt(113),u=[],p=[],f=[];for(let e=0,t=a,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],u.push(2*(5*n+r)),p.push((e+1)*(e+2)/2%64);let i=o;for(let e=0;e<7;e++)(t=(t<<a^(t>>d)*c)%l)&s&&(i^=a<<(a<<BigInt(e))-a);f.push(i)}let h=(0,n.split)(f,!0),g=h[0],m=h[1],y=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),b=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=y(o,a,1)^r[n],d=b(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=d}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=p[r],o=y(t,i,n),a=b(t,i,n),s=u[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=g[n],e[1]^=m[n]}(0,i.clean)(r)}class S extends i.Hash{constructor(e,t,r,n=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=o,(0,i.anumber)(r),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.swap32IfBE)(this.state32),v(this.state32,this.rounds),(0,i.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.aexists)(this),e=(0,i.toBytes)(e),(0,i.abytes)(e);let{blockLen:t,state:r}=this,n=e.length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,i.aexists)(this,!1),(0,i.abytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new S(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=S;let A=(e,t,r)=>(0,i.createHasher)(()=>new S(t,e,r));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);let w=(e,t,r)=>(0,i.createXOFer)((n={})=>new S(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=w(31,168,16),t.shake256=w(31,136,32)},52871:e=>{"use strict";e.exports=Math.floor},52956:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.HttpBatchClient=void 0;let n=r(27511),i=r(27549),o=r(86091),a={dispatchInterval:20,batchSizeLimit:20};class s{constructor(e,t={}){if(this.queue=[],this.options={batchSizeLimit:t.batchSizeLimit??a.batchSizeLimit,dispatchInterval:t.dispatchInterval??a.dispatchInterval},"string"==typeof e){if(!(0,o.hasProtocol)(e))throw Error("Endpoint URL is missing a protocol. Expected 'https://' or 'http://'.");this.url=e}else this.url=e.url,this.headers=e.headers;this.timer=setInterval(()=>this.tick(),t.dispatchInterval),this.validate()}disconnect(){this.timer&&clearInterval(this.timer),this.timer=void 0}async execute(e){return new Promise((t,r)=>{this.queue.push({request:e,resolve:t,reject:r}),this.queue.length>=this.options.batchSizeLimit&&this.tick()})}validate(){if(!this.options.batchSizeLimit||!Number.isSafeInteger(this.options.batchSizeLimit)||this.options.batchSizeLimit<1)throw Error("batchSizeLimit must be a safe integer >= 1")}tick(){let e=this.queue.splice(0,this.options.batchSizeLimit);if(!e.length)return;let t=e.map(e=>e.request),r=t.map(e=>e.id);(0,i.http)("POST",this.url,this.headers,t).then(t=>{(Array.isArray(t)?t:[t]).forEach(t=>{let r=e.find(e=>e.request.id===t.id);if(!r)return;let{reject:i,resolve:o}=r,a=(0,n.parseJsonRpcResponse)(t);(0,n.isJsonRpcErrorResponse)(a)?i(Error(JSON.stringify(a.error))):o(a)})},t=>{for(let n of r){let r=e.find(e=>e.request.id===n);if(!r)return;r.reject(t)}})}}t.HttpBatchClient=s},52967:(e,t,r)=>{"use strict";var n=r(76948),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},53604:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.Sha512=t.sha256=t.Sha256=void 0;let n=r(10436),i=r(26761),o=r(53963);class a{constructor(e){this.blockSize=64,this.impl=n.sha256.create(),e&&this.update(e)}update(e){return this.impl.update((0,o.toRealUint8Array)(e)),this}digest(){return this.impl.digest()}}t.Sha256=a,t.sha256=function(e){return new a(e).digest()};class s{constructor(e){this.blockSize=128,this.impl=i.sha512.create(),e&&this.update(e)}update(e){return this.impl.update((0,o.toRealUint8Array)(e)),this}digest(){return this.impl.digest()}}t.Sha512=s,t.sha512=function(e){return new s(e).digest()}},53931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAttribute=t.parseRawLog=t.parseLogs=t.parseLog=t.parseEvent=t.parseAttribute=void 0;let n=r(63688);function i(e){if(!(0,n.isNonNullObject)(e))throw Error("Attribute must be a non-null object");let{key:t,value:r}=e;if("string"!=typeof t||!t)throw Error("Attribute's key must be a non-empty string");if("string"!=typeof r&&void 0!==r)throw Error("Attribute's value must be a string or unset");return{key:t,value:r||""}}function o(e){if(!(0,n.isNonNullObject)(e))throw Error("Event must be a non-null object");let{type:t,attributes:r}=e;if("string"!=typeof t||""===t)throw Error("Event type must be a non-empty string");if(!Array.isArray(r))throw Error("Event's attributes must be an array");return{type:t,attributes:r.map(i)}}function a(e){if(!(0,n.isNonNullObject)(e))throw Error("Log must be a non-null object");let{msg_index:t,log:r,events:i}=e;if("number"!=typeof t)throw Error("Log's msg_index must be a number");if("string"!=typeof r)throw Error("Log's log must be a string");if(!Array.isArray(i))throw Error("Log's events must be an array");return{msg_index:t,log:r,events:i.map(o)}}function s(e){if(!Array.isArray(e))throw Error("Logs must be an array");return e.map(a)}t.parseAttribute=i,t.parseEvent=o,t.parseLog=a,t.parseLogs=s,t.parseRawLog=function(e){return e?s(JSON.parse(e).map(({events:e},t)=>({msg_index:t,events:e,log:""}))):[]},t.findAttribute=function(e,t,r){let n=e.find(()=>!0),i=n?.events.find(e=>e.type===t)?.attributes.find(e=>e.key===r);if(!i)throw Error(`Could not find attribute '${r}' in first event of type '${t}' in first log.`);return i}},53963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRealUint8Array=void 0,t.toRealUint8Array=function(e){return e instanceof Uint8Array?e:Uint8Array.from(e)}},54028:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Responses=t.decodeValidatorInfo=t.decodeValidatorGenesis=t.decodeValidatorUpdate=t.decodeEvent=void 0;let n=r(25918),i=r(63688),o=r(74194),a=r(551),s=r(62710),d=r(13184),l=r(12838);function c(e){return{data:e.data,lastBlockHeight:(0,d.may)(a.apiToSmallInt,e.last_block_height),lastBlockAppHash:(0,d.may)(n.fromBase64,e.last_block_app_hash)}}function u(e){return{ops:e.ops.map(e=>({type:e.type,key:(0,n.fromBase64)(e.key),data:(0,n.fromBase64)(e.data)}))}}function p(e){return{key:(0,n.fromBase64)((0,d.assertString)(e.key??"")),value:(0,n.fromBase64)((0,d.assertString)(e.value??"")),proof:(0,d.may)(u,e.proofOps),height:(0,d.may)(a.apiToSmallInt,e.height),code:(0,d.may)(a.apiToSmallInt,e.code),codespace:(0,d.assertString)(e.codespace??""),index:(0,d.may)(a.apiToSmallInt,e.index),log:e.log,info:(0,d.assertString)(e.info??"")}}function f(e){return{key:(0,d.assertNotEmpty)(e.key),value:e.value??""}}function h(e){return(0,d.assertArray)(e).map(f)}function g(e){return{type:e.type,attributes:e.attributes?h(e.attributes):[]}}function m(e){return(0,d.assertArray)(e).map(g)}function y(e){return{code:(0,a.apiToSmallInt)((0,d.assertNumber)(e.code??0)),codespace:e.codespace,log:e.log,data:(0,d.may)(n.fromBase64,e.data),events:e.events?m(e.events):[],gasWanted:(0,a.apiToBigInt)(e.gas_wanted??"0"),gasUsed:(0,a.apiToBigInt)(e.gas_used??"0")}}function b(e){if("Sum"in e){let[[t,r]]=Object.entries(e.Sum.value);return(0,i.assert)("ed25519"===t||"secp256k1"===t,`unknown pubkey type: ${t}`),{algorithm:t,data:(0,n.fromBase64)((0,d.assertNotEmpty)(r))}}switch(e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.value))};default:throw Error(`unknown pubkey type: ${e.type}`)}}function v(e){return{maxBytes:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_bytes)),maxGas:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_gas))}}function S(e){return{maxAgeNumBlocks:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_age_num_blocks)),maxAgeDuration:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_age_duration))}}function A(e){return{block:v((0,d.assertObject)(e.block)),evidence:S((0,d.assertObject)(e.evidence))}}function w(e){return{pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)(e.power??"0")}}function _(e){return{height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),results:(e.txs_results||[]).map(y),validatorUpdates:(e.validator_updates||[]).map(w),consensusUpdates:(0,d.may)(A,e.consensus_param_updates),beginBlockEvents:m(e.begin_block_events||[]),endBlockEvents:m(e.end_block_events||[])}}function P(e){return{hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),parts:{total:(0,d.assertNotEmpty)(e.parts.total),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.parts.hash))}}}function k(e){return{block:(0,a.apiToSmallInt)(e.block),app:(0,a.apiToSmallInt)(e.app??0)}}function R(e){return{version:k(e.version),chainId:(0,d.assertNotEmpty)(e.chain_id),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),time:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.time)),lastBlockId:e.last_block_id.hash?P(e.last_block_id):null,lastCommitHash:(0,n.fromHex)((0,d.assertSet)(e.last_commit_hash)),dataHash:(0,n.fromHex)((0,d.assertSet)(e.data_hash)),validatorsHash:(0,n.fromHex)((0,d.assertSet)(e.validators_hash)),nextValidatorsHash:(0,n.fromHex)((0,d.assertSet)(e.next_validators_hash)),consensusHash:(0,n.fromHex)((0,d.assertSet)(e.consensus_hash)),appHash:(0,n.fromHex)((0,d.assertSet)(e.app_hash)),lastResultsHash:(0,n.fromHex)((0,d.assertSet)(e.last_results_hash)),evidenceHash:(0,n.fromHex)((0,d.assertSet)(e.evidence_hash)),proposerAddress:(0,n.fromHex)((0,d.assertNotEmpty)(e.proposer_address))}}function O(e){return{blockId:P(e.block_id),blockSize:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.block_size)),header:R(e.header),numTxs:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.num_txs))}}function I(e){return{lastHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.last_height)),blockMetas:(0,d.assertArray)(e.block_metas).map(O)}}function B(e){return{...y(e),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash))}}function x(e){return{height:(0,a.apiToSmallInt)(e.height),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),checkTx:y((0,d.assertObject)(e.check_tx)),deliverTx:(0,d.may)(y,e.deliver_tx)}}function E(e){return(0,i.assert)(e in s.BlockIdFlag),e}function T(e){return{blockIdFlag:E(e.block_id_flag),validatorAddress:e.validator_address?(0,n.fromHex)(e.validator_address):void 0,timestamp:e.timestamp?(0,o.fromRfc3339WithNanoseconds)(e.timestamp):void 0,signature:e.signature?(0,n.fromBase64)(e.signature):void 0}}function N(e){return{blockId:P((0,d.assertObject)(e.block_id)),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),round:(0,a.apiToSmallInt)(e.round),signatures:(0,d.assertArray)(e.signatures).map(T)}}function C(e){return{canonical:(0,d.assertBoolean)(e.canonical),header:R(e.signed_header.header),commit:N(e.signed_header.commit)}}function M(e){return{address:(0,n.fromHex)((0,d.assertNotEmpty)(e.address)),pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)((0,d.assertNotEmpty)(e.power))}}function U(e){return{genesisTime:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.genesis_time)),chainId:(0,d.assertNotEmpty)(e.chain_id),consensusParams:A(e.consensus_params),validators:e.validators?(0,d.assertArray)(e.validators).map(M):[],appHash:(0,n.fromHex)((0,d.assertSet)(e.app_hash)),appState:e.app_state}}function D(e){return{pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)((0,d.assertNotEmpty)(e.voting_power)),address:(0,n.fromHex)((0,d.assertNotEmpty)(e.address)),proposerPriority:e.proposer_priority?(0,a.apiToSmallInt)(e.proposer_priority):void 0}}function J(e){return{id:(0,n.fromHex)((0,d.assertNotEmpty)(e.id)),listenAddr:(0,d.assertNotEmpty)(e.listen_addr),network:(0,d.assertNotEmpty)(e.network),version:(0,d.assertString)(e.version),channels:(0,d.assertString)(e.channels),moniker:(0,d.assertNotEmpty)(e.moniker),other:(0,d.dictionaryToStringMap)(e.other),protocolVersion:{app:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.app)),block:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.block)),p2p:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.p2p))}}}function H(e){let t=e.earliest_block_height?(0,a.apiToSmallInt)(e.earliest_block_height):void 0,r=e.earliest_block_time?(0,o.fromRfc3339WithNanoseconds)(e.earliest_block_time):void 0;return{earliestAppHash:e.earliest_app_hash?(0,n.fromHex)(e.earliest_app_hash):void 0,earliestBlockHash:e.earliest_block_hash?(0,n.fromHex)(e.earliest_block_hash):void 0,earliestBlockHeight:t||void 0,earliestBlockTime:r?.getTime()?r:void 0,latestBlockHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.latest_block_hash)),latestAppHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.latest_app_hash)),latestBlockTime:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.latest_block_time)),latestBlockHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.latest_block_height)),catchingUp:(0,d.assertBoolean)(e.catching_up)}}function V(e){return{nodeInfo:J(e.node_info),syncInfo:H(e.sync_info),validatorInfo:D(e.validator_info)}}function q(e){return{data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.data)),rootHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.root_hash)),proof:{total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.proof.total)),index:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.proof.index)),leafHash:(0,n.fromBase64)((0,d.assertNotEmpty)(e.proof.leaf_hash)),au
1nts:(0,d.assertArray)(e.proof.aunts).map(n.fromBase64)}}}function L(e){return{tx:(0,n.fromBase64)((0,d.assertNotEmpty)(e.tx)),result:y((0,d.assertObject)(e.tx_result)),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),index:(0,a.apiToSmallInt)((0,d.assertNumber)(e.index)),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),proof:(0,d.may)(q,e.proof)}}function j(e){return{totalCount:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_count)),txs:(0,d.assertArray)(e.txs).map(L)}}function F(e){let t=(0,n.fromBase64)((0,d.assertNotEmpty)(e.tx));return{tx:t,hash:(0,l.hashTx)(t),result:y(e.result),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height))}}function W(e){return{blockHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.block_height)),validators:(0,d.assertArray)(e.validators).map(D),count:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.count)),total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total))}}function Q(e){return{header:R((0,d.assertObject)(e.header)),lastCommit:e.last_commit.block_id.hash?N((0,d.assertObject)(e.last_commit)):null,txs:e.data.txs?(0,d.assertArray)(e.data.txs).map(n.fromBase64):[],evidence:e.evidence?.evidence??[]}}function G(e){return{blockId:P(e.block_id),block:Q(e.block)}}function z(e){return{totalCount:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_count)),blocks:(0,d.assertArray)(e.blocks).map(G)}}function K(e){return{total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total)),totalBytes:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_bytes))}}t.decodeEvent=g,t.decodeValidatorUpdate=w,t.decodeValidatorGenesis=M,t.decodeValidatorInfo=D;class Y{static decodeAbciInfo(e){return c((0,d.assertObject)(e.result.response))}static decodeAbciQuery(e){return p((0,d.assertObject)(e.result.response))}static decodeBlock(e){return G(e.result)}static decodeBlockResults(e){return _(e.result)}static decodeBlockSearch(e){return z(e.result)}static decodeBlockchain(e){return I(e.result)}static decodeBroadcastTxSync(e){return B(e.result)}static decodeBroadcastTxAsync(e){return Y.decodeBroadcastTxSync(e)}static decodeBroadcastTxCommit(e){return x(e.result)}static decodeCommit(e){return C(e.result)}static decodeGenesis(e){return U((0,d.assertObject)(e.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(e){return K(e.result)}static decodeStatus(e){return V(e.result)}static decodeNewBlockEvent(e){return Q(e.data.value.block)}static decodeNewBlockHeaderEvent(e){return R(e.data.value.header)}static decodeTxEvent(e){return F(e.data.value.TxResult)}static decodeTx(e){return L(e.result)}static decodeTxSearch(e){return j(e.result)}static decodeValidators(e){return W(e.result)}}t.Responses=Y},54133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeMultisignedTxBytes=t.makeMultisignedTx=t.makeCompactBitArray=void 0;let n=r(32715),i=r(25918),o=r(11717),a=r(12686),s=r(36843),d=r(13788),l=r(13788);function c(e){let t=Math.ceil(e.length/8),r=e.length-8*Math.floor(e.length/8),n=new Uint8Array(t);return e.forEach((e,t)=>{let r=Math.floor(t/8),i=t%8;e&&(n[r]|=1<<7-i)}),a.CompactBitArray.fromPartial({elems:n,extraBitsStored:r})}function u(e,t,r,u,p){let f=Array.from(p.keys()),h=(0,i.fromBech32)(f[0]).prefix,g=Array(e.value.pubkeys.length).fill(!1),m=[];for(let t=0;t<e.value.pubkeys.length;t++){let r=(0,n.pubkeyToAddress)(e.value.pubkeys[t],h),i=p.get(r);i&&(g[t]=!0,m.push(i))}let y={publicKey:(0,o.encodePubkey)(e),modeInfo:{multi:{bitarray:c(g),modeInfos:m.map(e=>({single:{mode:s.SignMode.SIGN_MODE_LEGACY_AMINO_JSON}}))}},sequence:BigInt(t)},b=d.AuthInfo.fromPartial({signerInfos:[y],fee:{amount:[...r.amount],gasLimit:BigInt(r.gas)}}),v=d.AuthInfo.encode(b).finish();return l.TxRaw.fromPartial({bodyBytes:u,authInfoBytes:v,signatures:[a.MultiSignature.encode(a.MultiSignature.fromPartial({signatures:m})).finish()]})}t.makeCompactBitArray=c,t.makeMultisignedTx=u,t.makeMultisignedTxBytes=function(e,t,r,n,i){let o=u(e,t,r,n,i);return Uint8Array.from(l.TxRaw.encode(o).finish())}},54473:e=>{"use strict";e.exports=Math.round},54573:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{typeUrl:"",value:new Uint8Array}}t.protobufPackage="google.protobuf",t.Any={typeUrl:"/google.protobuf.Any",encode:(e,t=n.BinaryWriter.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.typeUrl=r.string();break;case 2:a.value=r.bytes();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.typeUrl)&&(t.typeUrl=String(e.typeUrl)),(0,i.isSet)(e.value)&&(t.value=(0,i.bytesFromBase64)(e.value)),t},toJSON(e){let t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=(0,i.base64FromBytes)(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial(e){let t=o();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array,t}}},55397:e=>{"use strict";e.exports=RangeError},55847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryConnectionParamsResponse=t.QueryConnectionParamsRequest=t.QueryConnectionConsensusStateResponse=t.QueryConnectionConsensusStateRequest=t.QueryConnectionClientStateResponse=t.QueryConnectionClientStateRequest=t.QueryClientConnectionsResponse=t.QueryClientConnectionsRequest=t.QueryConnectionsResponse=t.QueryConnectionsRequest=t.QueryConnectionResponse=t.QueryConnectionRequest=t.protobufPackage=void 0;let n=r(64094),i=r(49237),o=r(22421),a=r(54573),s=r(4696),d=r(92242);function l(){return{connectionId:""}}function c(){return{connection:void 0,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function u(){return{pagination:void 0}}function p(){return{connections:[],pagination:void 0,height:o.Height.fromPartial({})}}function f(){return{clientId:""}}function h(){return{connectionPaths:[],proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function g(){return{connectionId:""}}function m(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function y(){return{connectionId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}function b(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function v(){return{}}function S(){return{params:void 0}}t.protobufPackage="ibc.core.connection.v1",t.QueryConnectionRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.connectionId&&t.uint32(10).string(e.connectionId),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.connectionId=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=l();return(0,d.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),t},toJSON(e){let t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),t},fromPartial(e){let t=l();return t.connectionId=e.connectionId??"",t}},t.QueryConnectionResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionResponse",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.connection&&i.ConnectionEnd.encode(e.connection,t.uint32(10).fork()).ldelim(),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.connection=i.ConnectionEnd.decode(r,r.uint32());break;case 2:a.proof=r.bytes();break;case 3:a.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=c();return(0,d.isSet)(e.connection)&&(t.connection=i.ConnectionEnd.fromJSON(e.connection)),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.connection&&(t.connection=e.connection?i.ConnectionEnd.toJSON(e.connection):void 0),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=c();return void 0!==e.connection&&null!==e.connection&&(t.connection=i.ConnectionEnd.fromPartial(e.connection)),t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryConnectionsRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionsRequest",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.pagination=n.PageRequest.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=u();return(0,d.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u();return void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryConnectionsResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionsResponse",encode(e,t=s.BinaryWriter.create()){for(let r of e.connections)i.IdentifiedConnection.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&o.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=p();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.connections.push(i.IdentifiedConnection.decode(r,r.uint32()));break;case 2:d.pagination=n.PageResponse.decode(r,r.uint32());break;case 3:d.height=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=p();return Array.isArray(e?.connections)&&(t.connections=e.connections.map(e=>i.IdentifiedConnection.fromJSON(e))),(0,d.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),(0,d.isSet)(e.height)&&(t.height=o.Height.fromJSON(e.height)),t},toJSON(e){let t={};return e.connections?t.connections=e.connections.map(e=>e?i.IdentifiedConnection.toJSON(e):void 0):t.connections=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?o.Height.toJSON(e.height):void 0),t},fromPartial(e){let t=p();return t.connections=e.connections?.map(e=>i.IdentifiedConnection.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),void 0!==e.height&&null!==e.height&&(t.height=o.Height.fromPartial(e.height)),t}},t.QueryClientConnectionsRequest={typeUrl:"/ibc.core.connection.v1.QueryClientConnectionsRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.clientId=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=f();return(0,d.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),t},fromPartial(e){let t=f();return t.clientId=e.clientId??"",t}},t.QueryClientConnectionsResponse={typeUrl:"/ibc.core.connection.v1.QueryClientConnectionsResponse",encode(e,t=s.BinaryWriter.create()){for(let r of e.connectionPaths)t.uint32(10).string(r);return 0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.connectionPaths.push(r.string());break;case 2:i.proof=r.bytes();break;case 3:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return Array.isArray(e?.connectionPaths)&&(t.connectionPaths=e.connectionPaths.map(e=>String(e))),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return e.connectionPaths?t.connectionPaths=e.connectionPaths.map(e=>e):t.connectionPaths=[],void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=h();return t.connectionPaths=e.connectionPaths?.map(e=>e)||[],t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryConnectionClientStateRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionClientStateRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.connectionId&&t.uint32(10).string(e.connectionId),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.connectionId=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=g();return(0,d.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),t},toJSON(e){let t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),t},fromPartial(e){let t=g();return t.connectionId=e.connectionId??"",t}},t.QueryConnectionClientStateResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionClientStateResponse",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.identifiedClientState&&o.IdentifiedClientState.encode(e.identifiedClientState,t.uint32(10).fork()).ldelim(),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.identifiedClientState=o.IdentifiedClientState.decode(r,r.uint32());break;case 2:i.proof=r.bytes();break;case 3:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,d.isSet)(e.identifiedClientState)&&(t.identifiedClientState=o.IdentifiedClientState.fromJSON(e.identifiedClientState)),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.identifiedClientState&&(t.identifiedClientState=e.identifiedClientState?o.IdentifiedClientState.toJSON(e.identifiedClientState):void 0),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=m();return void 0!==e.identifiedClientState&&null!==e.identifiedClientState&&(t.identifiedClientState=o.IdentifiedClientState.fromPartial(e.identifiedClientState)),t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryConnectionConsensusStateRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionConsensusStateRequest",encode:(e,t=s.BinaryWriter.create())=>(""!==e.connectionId&&t.uint32(10).string(e.connectionId),e.revisionNumber!==BigInt(0)&&t.uint32(16).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&t.uint32(24).uint64(e.revisionHeight),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.connectionId=r.string();break;case 2:i.revisionNumber=r.uint64();break;case 3:i.revisionHeight=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return(0,d.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),(0,d.isSet)(e.revisionNumber)&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),(0,d.isSet)(e.revisionHeight)&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t},toJSON(e){let t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.revisionNumber&&(t.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),void 0!==e.revisionHeight&&(t.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),t},fromPartial(e){let t=y();return t.connectionId=e.connectionId??"",void 0!==e.revisionNumber&&null!==e.revisionNumber&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),void 0!==e.revisionHeight&&null!==e.revisionHeight&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t}},t.QueryConnectionConsensusStateResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionConsensusStateResponse",encode:(e,t=s.BinaryWriter.create())=>(void 0!==e.consensusState&&a.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),""!==e.clientId&&t.uint32(18).string(e.clientId),0!==e.proof.length&&t.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.consensusState=a.Any.decode(r,r.uint32());break;case 2:i.clientId=r.string();break;case 3:i.proof=r.bytes();break;case 4:i.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,d.isSet)(e.consensusState)&&(t.consensusState=a.Any.fromJSON(e.consensusState)),(0,d.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,d.isSet)(e.proof)&&(t.proof=(0,d.bytesFromBase64)(e.proof)),(0,d.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.consensusState&&(t.consensusState=e.consensusState?a.Any.toJSON(e.consensusState):void 0),void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.proof&&(t.proof=(0,d.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=b();return void 0!==e.consensusState&&null!==e.consensusState&&(t.consensusState=a.Any.fromPartial(e.consensusState)),t.clientId=e.clientId??"",t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryConnectionParamsRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionParamsRequest",encode:(e,t=s.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>v(),toJSON:e=>({}),fromPartial:e=>v()},t.QueryConnectionParamsResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionParamsResponse",encode:(e,t=s.BinaryWriter.create())=>
1(void 0!==e.params&&o.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof s.BinaryReader?e:new s.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.params=o.Params.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=S();return(0,d.isSet)(e.params)&&(t.params=o.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?o.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=S();return void 0!==e.params&&null!==e.params&&(t.params=o.Params.fromPartial(e.params)),t}};class A{constructor(e){this.rpc=e,this.Connection=this.Connection.bind(this),this.Connections=this.Connections.bind(this),this.ClientConnections=this.ClientConnections.bind(this),this.ConnectionClientState=this.ConnectionClientState.bind(this),this.ConnectionConsensusState=this.ConnectionConsensusState.bind(this),this.ConnectionParams=this.ConnectionParams.bind(this)}Connection(e){let r=t.QueryConnectionRequest.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Query","Connection",r).then(e=>t.QueryConnectionResponse.decode(new s.BinaryReader(e)))}Connections(e={pagination:n.PageRequest.fromPartial({})}){let r=t.QueryConnectionsRequest.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Query","Connections",r).then(e=>t.QueryConnectionsResponse.decode(new s.BinaryReader(e)))}ClientConnections(e){let r=t.QueryClientConnectionsRequest.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Query","ClientConnections",r).then(e=>t.QueryClientConnectionsResponse.decode(new s.BinaryReader(e)))}ConnectionClientState(e){let r=t.QueryConnectionClientStateRequest.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionClientState",r).then(e=>t.QueryConnectionClientStateResponse.decode(new s.BinaryReader(e)))}ConnectionConsensusState(e){let r=t.QueryConnectionConsensusStateRequest.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionConsensusState",r).then(e=>t.QueryConnectionConsensusStateResponse.decode(new s.BinaryReader(e)))}ConnectionParams(e={}){let r=t.QueryConnectionParamsRequest.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionParams",r).then(e=>t.QueryConnectionParamsResponse.decode(new s.BinaryReader(e)))}}t.QueryClientImpl=A},55921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;let n=r(97470);t.makeCosmoshubPath=function(e){return[n.Slip10RawIndex.hardened(44),n.Slip10RawIndex.hardened(118),n.Slip10RawIndex.hardened(0),n.Slip10RawIndex.normal(0),n.Slip10RawIndex.normal(e)]}},56018:(e,t,r)=>{"use strict";var n=r(18432).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)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}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=g,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=m,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function d(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var i=d(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=d(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=d(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function u(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(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 v(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=f,s.prototype.text=p,s.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}},56097:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcClient=void 0;let n=r(8579),i=r(14882);class o{constructor(e){this.connection=e}async run(e){let t=this.connection.responseStream.filter(t=>t.id===e.id),r=(0,n.firstEvent)(t);this.connection.sendRequest(e);let o=await r;if((0,i.isJsonRpcErrorResponse)(o)){let e=o.error;throw Error(`JSON RPC error: code=${e.code}; message='${e.message}'`)}return o}}t.JsonRpcClient=o},56484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GrantQueueItem=t.GrantAuthorization=t.Grant=t.GenericAuthorization=t.protobufPackage=void 0;let n=r(54573),i=r(37375),o=r(4696),a=r(92242);function s(){return{msg:""}}function d(){return{authorization:void 0,expiration:void 0}}function l(){return{granter:"",grantee:"",authorization:void 0,expiration:void 0}}function c(){return{msgTypeUrls:[]}}t.protobufPackage="cosmos.authz.v1beta1",t.GenericAuthorization={typeUrl:"/cosmos.authz.v1beta1.GenericAuthorization",encode:(e,t=o.BinaryWriter.create())=>(""!==e.msg&&t.uint32(10).string(e.msg),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=s();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.msg=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=s();return(0,a.isSet)(e.msg)&&(t.msg=String(e.msg)),t},toJSON(e){let t={};return void 0!==e.msg&&(t.msg=e.msg),t},fromPartial(e){let t=s();return t.msg=e.msg??"",t}},t.Grant={typeUrl:"/cosmos.authz.v1beta1.Grant",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.authorization&&n.Any.encode(e.authorization,t.uint32(10).fork()).ldelim(),void 0!==e.expiration&&i.Timestamp.encode(e.expiration,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=d();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.authorization=n.Any.decode(r,r.uint32());break;case 2:s.expiration=i.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=d();return(0,a.isSet)(e.authorization)&&(t.authorization=n.Any.fromJSON(e.authorization)),(0,a.isSet)(e.expiration)&&(t.expiration=(0,a.fromJsonTimestamp)(e.expiration)),t},toJSON(e){let t={};return void 0!==e.authorization&&(t.authorization=e.authorization?n.Any.toJSON(e.authorization):void 0),void 0!==e.expiration&&(t.expiration=(0,a.fromTimestamp)(e.expiration).toISOString()),t},fromPartial(e){let t=d();return void 0!==e.authorization&&null!==e.authorization&&(t.authorization=n.Any.fromPartial(e.authorization)),void 0!==e.expiration&&null!==e.expiration&&(t.expiration=i.Timestamp.fromPartial(e.expiration)),t}},t.GrantAuthorization={typeUrl:"/cosmos.authz.v1beta1.GrantAuthorization",encode:(e,t=o.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.authorization&&n.Any.encode(e.authorization,t.uint32(26).fork()).ldelim(),void 0!==e.expiration&&i.Timestamp.encode(e.expiration,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=l();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.granter=r.string();break;case 2:s.grantee=r.string();break;case 3:s.authorization=n.Any.decode(r,r.uint32());break;case 4:s.expiration=i.Timestamp.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=l();return(0,a.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,a.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,a.isSet)(e.authorization)&&(t.authorization=n.Any.fromJSON(e.authorization)),(0,a.isSet)(e.expiration)&&(t.expiration=(0,a.fromJsonTimestamp)(e.expiration)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.authorization&&(t.authorization=e.authorization?n.Any.toJSON(e.authorization):void 0),void 0!==e.expiration&&(t.expiration=(0,a.fromTimestamp)(e.expiration).toISOString()),t},fromPartial(e){let t=l();return t.granter=e.granter??"",t.grantee=e.grantee??"",void 0!==e.authorization&&null!==e.authorization&&(t.authorization=n.Any.fromPartial(e.authorization)),void 0!==e.expiration&&null!==e.expiration&&(t.expiration=i.Timestamp.fromPartial(e.expiration)),t}},t.GrantQueueItem={typeUrl:"/cosmos.authz.v1beta1.GrantQueueItem",encode(e,t=o.BinaryWriter.create()){for(let r of e.msgTypeUrls)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.msgTypeUrls.push(r.string()):r.skipType(7&e)}return i},fromJSON(e){let t=c();return Array.isArray(e?.msgTypeUrls)&&(t.msgTypeUrls=e.msgTypeUrls.map(e=>String(e))),t},toJSON(e){let t={};return e.msgTypeUrls?t.msgTypeUrls=e.msgTypeUrls.map(e=>e):t.msgTypeUrls=[],t},fromPartial(e){let t=c();return t.msgTypeUrls=e.msgTypeUrls?.map(e=>e)||[],t}}},56662:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createJsonRpcRequest=void 0;let r="123456789";function n(){return r[Math.floor(Math.random()*r.length)]}function i(){return parseInt(Array.from({length:12}).map(()=>n()).join(""),10)}t.createJsonRpcRequest=function(e,t){let r=t?{...t}:{};return{jsonrpc:"2.0",id:i(),method:e,params:r}}},56769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgConnectionOpenConfirmResponse=t.MsgConnectionOpenConfirm=t.MsgConnectionOpenAckResponse=t.MsgConnectionOpenAck=t.MsgConnectionOpenTryResponse=t.MsgConnectionOpenTry=t.MsgConnectionOpenInitResponse=t.MsgConnectionOpenInit=t.protobufPackage=void 0;let n=r(49237),i=r(54573),o=r(22421),a=r(4696),s=r(92242);function d(){return{clientId:"",counterparty:n.Counterparty.fromPartial({}),version:void 0,delayPeriod:BigInt(0),signer:""}}function l(){return{}}function c(){return{clientId:"",previousConnectionId:"",clientState:void 0,counterparty:n.Counterparty.fromPartial({}),delayPeriod:BigInt(0),counterpartyVersions:[],proofHeight:o.Height.fromPartial({}),proofInit:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:o.Height.fromPartial({}),signer:"",hostConsensusStateProof:new Uint8Array}}function u(){return{}}function p(){return{connectionId:"",counterpartyConnectionId:"",version:void 0,clientState:void 0,proofHeight:o.Height.fromPartial({}),proofTry:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:o.Height.fromPartial({}),signer:"",hostConsensusStateProof:new Uint8Array}}function f(){return{}}function h(){return{connectionId:"",proofAck:new Uint8Array,proofHeight:o.Height.fromPartial({}),signer:""}}function g(){return{}}t.protobufPackage="ibc.core.connection.v1",t.MsgConnectionOpenInit={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInit",encode:(e,t=a.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.counterparty&&n.Counterparty.encode(e.counterparty,t.uint32(18).fork()).ldelim(),void 0!==e.version&&n.Version.encode(e.version,t.uint32(26).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&t.uint32(32).uint64(e.delayPeriod),""!==e.signer&&t.uint32(42).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.clientId=r.string();break;case 2:o.counterparty=n.Counterparty.decode(r,r.uint32());break;case 3:o.version=n.Version.decode(r,r.uint32());break;case 4:o.delayPeriod=r.uint64();break;case 5:o.signer=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=d();return(0,s.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,s.isSet)(e.counterparty)&&(t.counterparty=n.Counterparty.fromJSON(e.counterparty)),(0,s.isSet)(e.version)&&(t.version=n.Version.fromJSON(e.version)),(0,s.isSet)(e.delayPeriod)&&
1(t.delayPeriod=BigInt(e.delayPeriod.toString())),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.counterparty&&(t.counterparty=e.counterparty?n.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.version&&(t.version=e.version?n.Version.toJSON(e.version):void 0),void 0!==e.delayPeriod&&(t.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=d();return t.clientId=e.clientId??"",void 0!==e.counterparty&&null!==e.counterparty&&(t.counterparty=n.Counterparty.fromPartial(e.counterparty)),void 0!==e.version&&null!==e.version&&(t.version=n.Version.fromPartial(e.version)),void 0!==e.delayPeriod&&null!==e.delayPeriod&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),t.signer=e.signer??"",t}},t.MsgConnectionOpenInitResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInitResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>l(),toJSON:e=>({}),fromPartial:e=>l()},t.MsgConnectionOpenTry={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTry",encode(e,t=a.BinaryWriter.create()){for(let r of(""!==e.clientId&&t.uint32(10).string(e.clientId),""!==e.previousConnectionId&&t.uint32(18).string(e.previousConnectionId),void 0!==e.clientState&&i.Any.encode(e.clientState,t.uint32(26).fork()).ldelim(),void 0!==e.counterparty&&n.Counterparty.encode(e.counterparty,t.uint32(34).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&t.uint32(40).uint64(e.delayPeriod),e.counterpartyVersions))n.Version.encode(r,t.uint32(50).fork()).ldelim();return void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(58).fork()).ldelim(),0!==e.proofInit.length&&t.uint32(66).bytes(e.proofInit),0!==e.proofClient.length&&t.uint32(74).bytes(e.proofClient),0!==e.proofConsensus.length&&t.uint32(82).bytes(e.proofConsensus),void 0!==e.consensusHeight&&o.Height.encode(e.consensusHeight,t.uint32(90).fork()).ldelim(),""!==e.signer&&t.uint32(98).string(e.signer),0!==e.hostConsensusStateProof.length&&t.uint32(106).bytes(e.hostConsensusStateProof),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),s=void 0===t?r.len:r.pos+t,d=c();for(;r.pos<s;){let e=r.uint32();switch(e>>>3){case 1:d.clientId=r.string();break;case 2:d.previousConnectionId=r.string();break;case 3:d.clientState=i.Any.decode(r,r.uint32());break;case 4:d.counterparty=n.Counterparty.decode(r,r.uint32());break;case 5:d.delayPeriod=r.uint64();break;case 6:d.counterpartyVersions.push(n.Version.decode(r,r.uint32()));break;case 7:d.proofHeight=o.Height.decode(r,r.uint32());break;case 8:d.proofInit=r.bytes();break;case 9:d.proofClient=r.bytes();break;case 10:d.proofConsensus=r.bytes();break;case 11:d.consensusHeight=o.Height.decode(r,r.uint32());break;case 12:d.signer=r.string();break;case 13:d.hostConsensusStateProof=r.bytes();break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=c();return(0,s.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,s.isSet)(e.previousConnectionId)&&(t.previousConnectionId=String(e.previousConnectionId)),(0,s.isSet)(e.clientState)&&(t.clientState=i.Any.fromJSON(e.clientState)),(0,s.isSet)(e.counterparty)&&(t.counterparty=n.Counterparty.fromJSON(e.counterparty)),(0,s.isSet)(e.delayPeriod)&&
1(t.delayPeriod=BigInt(e.delayPeriod.toString())),Array.isArray(e?.counterpartyVersions)&&(t.counterpartyVersions=e.counterpartyVersions.map(e=>n.Version.fromJSON(e))),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.proofInit)&&(t.proofInit=(0,s.bytesFromBase64)(e.proofInit)),(0,s.isSet)(e.proofClient)&&(t.proofClient=(0,s.bytesFromBase64)(e.proofClient)),(0,s.isSet)(e.proofConsensus)&&(t.proofConsensus=(0,s.bytesFromBase64)(e.proofConsensus)),(0,s.isSet)(e.consensusHeight)&&(t.consensusHeight=o.Height.fromJSON(e.consensusHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),(0,s.isSet)(e.hostConsensusStateProof)&&(t.hostConsensusStateProof=(0,s.bytesFromBase64)(e.hostConsensusStateProof)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.previousConnectionId&&(t.previousConnectionId=e.previousConnectionId),void 0!==e.clientState&&(t.clientState=e.clientState?i.Any.toJSON(e.clientState):void 0),void 0!==e.counterparty&&(t.counterparty=e.counterparty?n.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(t.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),e.counterpartyVersions?t.counterpartyVersions=e.counterpartyVersions.map(e=>e?n.Version.toJSON(e):void 0):t.counterpartyVersions=[],void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.proofInit&&(t.proofInit=(0,s.base64FromBytes)(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofClient&&(t.proofClient=(0,s.base64FromBytes)(void 0!==e.proofClient?e.proofClient:new Uint8Array)),void 0!==e.proofConsensus&&(t.proofConsensus=(0,s.base64FromBytes)(void 0!==e.proofConsensus?e.proofConsensus:new Uint8Array)),void 0!==e.consensusHeight&&(t.consensusHeight=e.consensusHeight?o.Height.toJSON(e.consensusHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),void 0!==e.hostConsensusStateProof&&(t.hostConsensusStateProof=(0,s.base64FromBytes)(void 0!==e.hostConsensusStateProof?e.hostConsensusStateProof:new Uint8Array)),t},fromPartial(e){let t=c();return t.clientId=e.clientId??"",t.previousConnectionId=e.previousConnectionId??"",void 0!==e.clientState&&null!==e.clientState&&(t.clientState=i.Any.fromPartial(e.clientState)),void 0!==e.counterparty&&null!==e.counterparty&&(t.counterparty=n.Counterparty.fromPartial(e.counterparty)),void 0!==e.delayPeriod&&null!==e.delayPeriod&&(t.delayPeriod=BigInt(e.delayPeriod.toString())),t.counterpartyVersions=e.counterpartyVersions?.map(e=>n.Version.fromPartial(e))||[],void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.proofInit=e.proofInit??new Uint8Array,t.proofClient=e.proofClient??new Uint8Array,t.proofConsensus=e.proofConsensus??new Uint8Array,void 0!==e.consensusHeight&&null!==e.consensusHeight&&(t.consensusHeight=o.Height.fromPartial(e.consensusHeight)),t.signer=e.signer??"",t.hostConsensusStateProof=e.hostConsensusStateProof??new Uint8Array,t}},t.MsgConnectionOpenTryResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTryResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>u(),toJSON:e=>({}),fromPartial:e=>u()},t.MsgConnectionOpenAck={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAck",encode:(e,t=a.BinaryWriter.create())=>(""!==e.connectionId&&t.uint32(10).string(e.connectionId),""!==e.counterpartyConnectionId&&t.uint32(18).string(e.counterpartyConnectionId),void 0!==e.version&&n.Version.encode(e.version,t.uint32(26).fork()).ldelim(),void 0!==e.clientState&&i.Any.encode(e.clientState,t.uint32(34).fork()).ldelim(),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(42).fork()).ldelim(),0!==e.proofTry.length&&t.uint32(50).bytes(e.proofTry),0!==e.proofClient.length&&t.uint32(58).bytes(e.proofClient),0!==e.proofConsensus.length&&t.uint32(66).bytes(e.proofConsensus),void 0!==e.consensusHeight&&o.Height.encode(e.consensusHeight,t.uint32(74).fork()).ldelim(),""!==e.signer&&t.uint32(82).string(e.signer),0!==e.hostConsensusStateProof.length&&t.uint32(90).bytes(e.hostConsensusStateProof),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),s=void 0===t?r.len:r.pos+t,d=p();for(;r.pos<s;){let e=r.uint32();switch(e>>>3){case 1:d.connectionId=r.string();break;case 2:d.counterpartyConnectionId=r.string();break;case 3:d.version=n.Version.decode(r,r.uint32());break;case 4:d.clientState=i.Any.decode(r,r.uint32());break;case 5:d.proofHeight=o.Height.decode(r,r.uint32());break;case 6:d.proofTry=r.bytes();break;case 7:d.proofClient=r.bytes();break;case 8:d.proofConsensus=r.bytes();break;case 9:d.consensusHeight=o.Height.decode(r,r.uint32());break;case 10:d.signer=r.string();break;case 11:d.hostConsensusStateProof=r.bytes();break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=p();return(0,s.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),(0,s.isSet)(e.counterpartyConnectionId)&&(t.counterpartyConnectionId=String(e.counterpartyConnectionId)),(0,s.isSet)(e.version)&&(t.version=n.Version.fromJSON(e.version)),(0,s.isSet)(e.clientState)&&(t.clientState=i.Any.fromJSON(e.clientState)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.proofTry
1)&&(t.proofTry=(0,s.bytesFromBase64)(e.proofTry)),(0,s.isSet)(e.proofClient)&&(t.proofClient=(0,s.bytesFromBase64)(e.proofClient)),(0,s.isSet)(e.proofConsensus)&&(t.proofConsensus=(0,s.bytesFromBase64)(e.proofConsensus)),(0,s.isSet)(e.consensusHeight)&&(t.consensusHeight=o.Height.fromJSON(e.consensusHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),(0,s.isSet)(e.hostConsensusStateProof)&&(t.hostConsensusStateProof=(0,s.bytesFromBase64)(e.hostConsensusStateProof)),t},toJSON(e){let t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.counterpartyConnectionId&&(t.counterpartyConnectionId=e.counterpartyConnectionId),void 0!==e.version&&(t.version=e.version?n.Version.toJSON(e.version):void 0),void 0!==e.clientState&&(t.clientState=e.clientState?i.Any.toJSON(e.clientState):void 0),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.proofTry&&(t.proofTry=(0,s.base64FromBytes)(void 0!==e.proofTry?e.proofTry:new Uint8Array)),void 0!==e.proofClient&&(t.proofClient=(0,s.base64FromBytes)(void 0!==e.proofClient?e.proofClient:new Uint8Array)),void 0!==e.proofConsensus&&(t.proofConsensus=(0,s.base64FromBytes)(void 0!==e.proofConsensus?e.proofConsensus:new Uint8Array)),void 0!==e.consensusHeight&&(t.consensusHeight=e.consensusHeight?o.Height.toJSON(e.consensusHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),void 0!==e.hostConsensusStateProof&&(t.hostConsensusStateProof=(0,s.base64FromBytes)(void 0!==e.hostConsensusStateProof?e.hostConsensusStateProof:new Uint8Array)),t},fromPartial(e){let t=p();return t.connectionId=e.connectionId??"",t.counterpartyConnectionId=e.counterpartyConnectionId??"",void 0!==e.version&&null!==e.version&&(t.version=n.Version.fromPartial(e.version)),void 0!==e.clientState&&null!==e.clientState&&(t.clientState=i.Any.fromPartial(e.clientState)),void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.proofTry=e.proofTry??new Uint8Array,t.proofClient=e.proofClient??new Uint8Array,t.proofConsensus=e.proofConsensus??new Uint8Array,void 0!==e.consensusHeight&&null!==e.consensusHeight&&(t.consensusHeight=o.Height.fromPartial(e.consensusHeight)),t.signer=e.signer??"",t.hostConsensusStateProof=e.hostConsensusStateProof??new Uint8Array,t}},t.MsgConnectionOpenAckResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAckResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>f(),toJSON:e=>({}),fromPartial:e=>f()},t.MsgConnectionOpenConfirm={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",encode:(e,t=a.BinaryWriter.create())=>(""!==e.connectionId&&t.uint32(10).string(e.connectionId),0!==e.proofAck.length&&t.uint32(18).bytes(e.proofAck),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),""!==e.signer&&t.uint32(34).string(e.signer),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.connectionId=r.string();break;case 2:i.proofAck=r.bytes();break;case 3:i.proofHeight=o.Height.decode(r,r.uint32());break;case 4:i.signer=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,s.isSet)(e.connectionId)&&(t.connectionId=String(e.connectionId)),(0,s.isSet)(e.proofAck)&&(t.proofAck=(0,s.bytesFromBase64)(e.proofAck)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),(0,s.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.proofAck&&(t.proofAck=(0,s.base64FromBytes)(void 0!==e.proofAck?e.proofAck:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=h();return t.connectionId=e.connectionId??"",t.proofAck=e.proofAck??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t.signer=e.signer??"",t}},t.MsgConnectionOpenConfirmResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>g(),toJSON:e=>({}),fromPartial:e=>g()};class m{constructor(e){this.rpc=e,this.ConnectionOpenInit=this.ConnectionOpenInit.bind(this),this.ConnectionOpenTry=this.ConnectionOpenTry.bind(this),this.ConnectionOpenAck=this.ConnectionOpenAck.bind(this),this.ConnectionOpenConfirm=this.ConnectionOpenConfirm.bind(this)}ConnectionOpenInit(e){let r=t.MsgConnectionOpenInit.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenInit",r).then(e=>t.MsgConnectionOpenInitResponse.decode(new a.BinaryReader(e)))}ConnectionOpenTry(e){let r=t.MsgConnectionOpenTry.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenTry",r).then(e=>t.MsgConnectionOpenTryResponse.decode(new a.BinaryReader(e)))}ConnectionOpenAck(e){let r=t.MsgConnectionOpenAck.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenAck",r).then(e=>t.MsgConnectionOpenAckResponse.decode(new a.BinaryReader(e)))}ConnectionOpenConfirm(e){let r=t.MsgConnectionOpenConfirm.encode(e).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenConfirm",r).then(e=>t.MsgConnectionOpenConfirmResponse.decode(new a.BinaryReader(e)))}}t.MsgClientImpl=m},56772:(e,t)=>
1{"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},57801:e=>{"use strict";e.exports=Math.abs},58154:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var d,l=this;if("function"!=typeof l||r.apply(l)!==i)throw TypeError(t+l);for(var c=a(arguments,1),u=function(){if(this instanceof d){var t=l.apply(this,o(c,arguments));return Object(t)===t?t:this}return l.apply(e,o(c,arguments))},p=n(0,l.length-c.length),f=[],h=0;h<p;h++)f[h]="$"+h;if(d=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")(u),l.prototype){var g=function(){};g.prototype=l.prototype,d.prototype=new g,g.prototype=null}return d}},58544:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGroupAminoConverters=void 0,t.createGroupAminoConverters=function(){return{}}},58887:(e,t,r)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.TxProof=t.BlockMeta=t.LightBlock=t.SignedHeader=t.Proposal=t.CommitSig=t.Commit=t.Vote=t.Data=t.Header=t.BlockID=t.Part=t.PartSetHeader=t.signedMsgTypeToJSON=t.signedMsgTypeFromJSON=t.SignedMsgType=t.blockIDFlagToJSON=t.blockIDFlagFromJSON=t.BlockIDFlag=t.protobufPackage=void 0;let o=r(94016),a=r(14430),s=r(37375),d=r(91372),l=r(4696),c=r(92242);function u(e){switch(e){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return n.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return n.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return n.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return n.BLOCK_ID_FLAG_NIL;default:return n.UNRECOGNIZED}}function p(e){switch(e){case n.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case n.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case n.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case n.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return i.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return i.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return i.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return i.SIGNED_MSG_TYPE_PROPOSAL;default:return i.UNRECOGNIZED}}function h(e){switch(e){case i.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case i.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case i.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case i.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(){return{total:0,hash:new Uint8Array}}function m(){return{index:0,bytes:new Uint8Array,proof:o.Proof.fromPartial({})}}function y(){return{hash:new Uint8Array,partSetHeader:t.PartSetHeader.fromPartial({})}}function b(){return{version:a.Consensus.fromPartial({}),chainId:"",height:BigInt(0),time:s.Timestamp.fromPartial({}),lastBlockId:t.BlockID.fromPartial({}),lastCommitHash:new Uint8Array,dataHash:new Uint8Array,validatorsHash:new Uint8Array,nextValidatorsHash:new Uint8Array,consensusHash:new Uint8Array,appHash:new Uint8Array,lastResultsHash:new Uint8Array,evidenceHash:new Uint8Array,proposerAddress:new Uint8Array}}function v(){return{txs:[]}}function S(){return{type:0,height:BigInt(0),round:0,blockId:t.BlockID.fromPartial({}),timestamp:s.Timestamp.fromPartial({}),validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}function A(){return{height:BigInt(0),round:0,blockId:t.BlockID.fromPartial({}),signatures:[]}}function w(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:s.Timestamp.fromPartial({}),signature:new Uint8Array}}function _(){return{type:0,height:BigInt(0),round:0,polRound:0,blockId:t.BlockID.fromPartial({}),timestamp:s.Timestamp.fromPartial({}),signature:new Uint8Array}}function P(){return{header:void 0,commit:void 0}}function k(){return{signedHeader:void 0,validatorSet:void 0}}function R(){return{blockId:t.BlockID.fromPartial({}),blockSize:BigInt(0),header:t.Header.fromPartial({}),numTxs:BigInt(0)}}function O(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}t.protobufPackage="tendermint.types",function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.BlockIDFlag=n={})),t.blockIDFlagFromJSON=u,t.blockIDFlagToJSON=p,function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",e[e.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",e[e.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(t.SignedMsgType=i={})),t.signedMsgTypeFromJSON=f,t.signedMsgTypeToJSON=h,t.PartSetHeader={typeUrl:"/tendermint.types.PartSetHeader",encode:(e,t=l.BinaryWriter.create())=>(0!==e.total&&t.uint32(8).uint32(e.total),0!==e.hash.length&&t.uint32(18).bytes(e.hash),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.total=r.uint32();break;case 2:i.hash=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,c.isSet)(e.total)&&(t.total=Number(e.total)),(0,c.isSet)(e.hash)&&(t.hash=(0,c.bytesFromBase64)(e.hash)),t},toJSON(e){let t={};return void 0!==e.total&&(t.total=Math.round(e.total)),void 0!==e.hash&&(t.hash=(0,c.base64FromBytes)(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial(e){let t=g();return t.total=e.total??0,t.hash=e.hash??new Uint8Array,t}},t.Part={typeUrl:"/tendermint.types.Part",encode:(e,t=l.BinaryWriter.create())=>(0!==e.index&&t.uint32(8).uint32(e.index),0!==e.bytes.length&&t.uint32(18).bytes(e.bytes),void 0!==e.proof&&o.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.index=r.uint32();break;case 2:i.bytes=r.bytes();break;case 3:i.proof=o.Proof.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,c.isSet)(e.index)&&(t.index=Number(e.index)),(0,c.isSet)(e.bytes)&&(t.bytes=(0,c.bytesFromBase64)(e.bytes)),(0,c.isSet)(e.proof)&&(t.proof=o.Proof.fromJSON(e.proof)),t},toJSON(e){let t={};return void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.bytes&&(t.bytes=(0,c.base64FromBytes)(void 0!==e.bytes?e.bytes:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?o.Proof.toJSON(e.proof):void 0),t},fromPartial(e){let t=m();return t.index=e.index??0,t.bytes=e.bytes??new Uint8Array,void 0!==e.proof&&null!==e.proof&&(t.proof=o.Proof.fromPartial(e.proof)),t}},t.BlockID={typeUrl:"/tendermint.types.BlockID",encode:(e,r=l.BinaryWriter.create())=>(0!==e.hash.length&&r.uint32(10).bytes(e.hash),void 0!==e.partSetHeader&&t.PartSetHeader.encode(e.partSetHeader,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=y();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.hash=n.bytes();break;case 2:o.partSetHeader=t.PartSetHeader.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=y();return(0,c.isSet)(e.hash)&&(r.hash=(0,c.bytesFromBase64)(e.hash)),(0,c.isSet)(e.partSetHeader)&&(r.partSetHeader=t.PartSetHeader.fromJSON(e.partSetHeader)),r},toJSON(e){let r={};return void 0!==e.hash&&(r.hash=(0,c.base64FromBytes)(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.partSetHeader&&(r.partSetHeader=e.partSetHeader?t.PartSetHeader.toJSON(e.partSetHeader):void 0),r},fromPartial(e){let r=y();return r.hash=e.hash??new Uint8Array,void 0!==e.partSetHeader&&null!==e.partSetHeader&&(r.partSetHeader=t.PartSetHeader.fromPartial(e.partSetHeader)),r}},t.Header={typeUrl:"/tendermint.types.Header",encode:(e,r=l.BinaryWriter.create())=>(void 0!==e.version&&a.Consensus.encode(e.version,r.uint32(10).fork()).ldelim(),""!==e.chainId&&r.uint32(18).string(e.chainId),e.height!==BigInt(0)&&r.uint32(24).int64(e.height),void 0!==e.time&&s.Timestamp.encode(e.time,r.uint32(34).fork()).ldelim(),void 0!==e.lastBlockId&&t.BlockID.encode(e.lastBlockId,r.uint32(42).fork()).ldelim(),0!==e.last
1CommitHash.length&&r.uint32(50).bytes(e.lastCommitHash),0!==e.dataHash.length&&r.uint32(58).bytes(e.dataHash),0!==e.validatorsHash.length&&r.uint32(66).bytes(e.validatorsHash),0!==e.nextValidatorsHash.length&&r.uint32(74).bytes(e.nextValidatorsHash),0!==e.consensusHash.length&&r.uint32(82).bytes(e.consensusHash),0!==e.appHash.length&&r.uint32(90).bytes(e.appHash),0!==e.lastResultsHash.length&&r.uint32(98).bytes(e.lastResultsHash),0!==e.evidenceHash.length&&r.uint32(106).bytes(e.evidenceHash),0!==e.proposerAddress.length&&r.uint32(114).bytes(e.proposerAddress),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=b();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.version=a.Consensus.decode(n,n.uint32());break;case 2:o.chainId=n.string();break;case 3:o.height=n.int64();break;case 4:o.time=s.Timestamp.decode(n,n.uint32());break;case 5:o.lastBlockId=t.BlockID.decode(n,n.uint32());break;case 6:o.lastCommitHash=n.bytes();break;case 7:o.dataHash=n.bytes();break;case 8:o.validatorsHash=n.bytes();break;case 9:o.nextValidatorsHash=n.bytes();break;case 10:o.consensusHash=n.bytes();break;case 11:o.appHash=n.bytes();break;case 12:o.lastResultsHash=n.bytes();break;case 13:o.evidenceHash=n.bytes();break;case 14:o.proposerAddress=n.bytes();break;default:n.skipType(7&e)}}return o}
1,fromJSON(e){let r=b();return(0,c.isSet)(e.version)&&(r.version=a.Consensus.fromJSON(e.version)),(0,c.isSet)(e.chainId)&&(r.chainId=String(e.chainId)),(0,c.isSet)(e.height)&&(r.height=BigInt(e.height.toString())),(0,c.isSet)(e.time)&&(r.time=(0,c.fromJsonTimestamp)(e.time)),(0,c.isSet)(e.lastBlockId)&&(r.lastBlockId=t.BlockID.fromJSON(e.lastBlockId)),(0,c.isSet)(e.lastCommitHash)&&(r.lastCommitHash=(0,c.bytesFromBase64)(e.lastCommitHash)),(0,c.isSet)(e.dataHash)&&(r.dataHash=(0,c.bytesFromBase64)(e.dataHash)),(0,c.isSet)(e.validatorsHash)&&(r.validatorsHash=(0,c.bytesFromBase64)(e.validatorsHash)),(0,c.isSet)(e.nextValidatorsHash)&&(r.nextValidatorsHash=(0,c.bytesFromBase64)(e.nextValidatorsHash)),(0,c.isSet)(e.consensusHash)&&(r.consensusHash=(0,c.bytesFromBase64)(e.consensusHash)),(0,c.isSet)(e.appHash)&&(r.appHash=(0,c.bytesFromBase64)(e.appHash)),(0,c.isSet)(e.lastResultsHash)&&(r.lastResultsHash=(0,c.bytesFromBase64)(e.lastResultsHash)),(0,c.isSet)(e.evidenceHash)&&(r.evidenceHash=(0,c.bytesFromBase64)(e.evidenceHash)),(0,c.isSet)(e.proposerAddress)&&(r.proposerAddress=(0,c.bytesFromBase64)(e.proposerAddress)),r},toJSON(e){let r={};return void 0!==e.version&&(r.version=e.version?a.Consensus.toJSON(e.version):void 0),void 0!==e.chainId&&(r.chainId=e.chainId),void 0!==e.height&&(r.height=(e.height||BigInt(0)).toString()),void 0!==e.time&&(r.time=(0,c.fromTimestamp)(e.time).toISOString()),void 0!==e.lastBlockId&&(r.lastBlockId=e.lastBlockId?t.BlockID.toJSON(e.lastBlockId):void 0),void 0!==e.lastCommitHash&&(r.lastCommitHash=(0,c.base64FromBytes)(void 0!==e.lastCommitHash?e.lastCommitHash:new Uint8Array)),void 0!==e.dataHash&&(r.dataHash=(0,c.base64FromBytes)(void 0!==e.dataHash?e.dataHash:new Uint8Array)),void 0!==e.validatorsHash&&(r.validatorsHash=(0,c.base64FromBytes)(void 0!==e.validatorsHash?e.validatorsHash:new Uint8Array)),void 0!==e.nextValidatorsHash&&(r.nextValidatorsHash=(0,c.base64FromBytes)(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.consensusHash&&(r.consensusHash=(0,c.base64FromBytes)(void 0!==e.consensusHash?e.consensusHash:new Uint8Array)),void 0!==e.appHash&&(r.appHash=(0,c.base64FromBytes)(void 0!==e.appHash?e.appHash:new Uint8Array)),void 0!==e.lastResultsHash&&(r.lastResultsHash=(0,c.base64FromBytes)(void 0!==e.lastResultsHash?e.lastResultsHash:new Uint8Array)),void 0!==e.evidenceHash&&(r.evidenceHash=(0,c.base64FromBytes)(void 0!==e.evidenceHash?e.evidenceHash:new Uint8Array)),void 0!==e.proposerAddress&&(r.proposerAddress=(0,c.base64FromBytes)(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),r},fromPartial(e){let r=b();return void 0!==e.version&&null!==e.version&&(r.version=a.Consensus.fromPartial(e.version)),r.chainId=e.chainId??"",void 0!==e.height&&null!==e.height&&(r.height=BigInt(e.height.toString())),void 0!==e.time&&null!==e.time&&(r.time=s.Timestamp.fromPartial(e.time)),void 0!==e.lastBlockId&&null!==e.lastBlockId&&(r.lastBlockId=t.BlockID.fromPartial(e.lastBlockId)),r.lastCommitHash=e.lastCommitHash??new Uint8Array,r.dataHash=e.dataHash??new Uint8Array,r.validatorsHash=e.validatorsHash??new Uint8Array,r.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,r.consensusHash=e.consensusHash??new Uint8Array,r.appHash=e.appHash??new Uint8Array,r.lastResultsHash=e.lastResultsHash??new Uint8Array,r.evidenceHash=e.evidenceHash??new Uint8Array,r.proposerAddress=e.proposerAddress??new Uint8Array,r}},t.Data={typeUrl:"/tendermint.types.Data",encode(e,t=l.BinaryWriter.create()){for(let r of e.txs)t.uint32(10).bytes(r);return t},decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.txs.push(r.bytes()):r.skipType(7&e)}return i},fromJSON(e){let t=v();return Array.isArray(e?.txs)&&(t.txs=e.txs.map(e=>(0,c.bytesFromBase64)(e))),t},toJSON(e){let t={};return e.txs?t.txs=e.txs.map(e=>(0,c.base64FromBytes)(void 0!==e?e:new Uint8Array)):t.txs=[],t},fromPartial(e){let t=v();return t.txs=e.txs?.map(e=>e)||[],t}},t.Vote={typeUrl:"/tendermint.types.Vote",encode:(e,r=l.BinaryWriter.create())=>(0!==e.type&&r.uint32(8).int32(e.type),e.height!==BigInt(0)&&r.uint32(16).int64(e.height),0!==e.round&&r.uint32(24).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,r.uint32(34).fork()).ldelim(),void 0!==e.timestamp&&s.Timestamp.encode(e.timestamp,r.uint32(42).fork()).ldelim(),0!==e.validatorAddress.length&&r.uint32(50).bytes(e.validatorAddress),0!==e.validatorIndex&&r.uint32(56).int32(e.validatorIndex),0!==e.signature.length&&r.uint32(66).bytes(e.signature),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=S();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.type=n.int32();break;case 2:o.height=n.int64();break;case 3:o.round=n.int32();break;case 4:o.blockId=t.BlockID.decode(n,n.uint32());break;case 5:o.timestamp=s.Timestamp.decode(n,n.uint32());break;case 6:o.validatorAddress=n.bytes();break;
1case 7:o.validatorIndex=n.int32();break;case 8:o.signature=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=S();return(0,c.isSet)(e.type)&&(r.type=f(e.type)),(0,c.isSet)(e.height)&&(r.height=BigInt(e.height.toString())),(0,c.isSet)(e.round)&&(r.round=Number(e.round)),(0,c.isSet)(e.blockId)&&(r.blockId=t.BlockID.fromJSON(e.blockId)),(0,c.isSet)(e.timestamp)&&(r.timestamp=(0,c.fromJsonTimestamp)(e.timestamp)),(0,c.isSet)(e.validatorAddress)&&(r.validatorAddress=(0,c.bytesFromBase64)(e.validatorAddress)),(0,c.isSet)(e.validatorIndex)&&(r.validatorIndex=Number(e.validatorIndex)),(0,c.isSet)(e.signature)&&(r.signature=(0,c.bytesFromBase64)(e.signature)),r},toJSON(e){let r={};return void 0!==e.type&&(r.type=h(e.type)),void 0!==e.height&&(r.height=(e.height||BigInt(0)).toString()),void 0!==e.round&&(r.round=Math.round(e.round)),void 0!==e.blockId&&(r.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(r.timestamp=(0,c.fromTimestamp)(e.timestamp).toISOString()),void 0!==e.validatorAddress&&(r.validatorAddress=(0,c.base64FromBytes)(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.validatorIndex&&(r.validatorIndex=Math.round(e.validatorIndex)),void 0!==e.signature&&(r.signature=(0,c.base64FromBytes)(void 0!==e.signature?e.signature:new Uint8Array)),r},fromPartial(e){let r=S();return r.type=e.type??0,void 0!==e.height&&null!==e.height&&(r.height=BigInt(e.height.toString())),r.round=e.round??0,void 0!==e.blockId&&null!==e.blockId&&(r.blockId=t.BlockID.fromPartial(e.blockId)),void 0!==e.timestamp&&null!==e.timestamp&&(r.timestamp=s.Timestamp.fromPartial(e.timestamp)),r.validatorAddress=e.validatorAddress??new Uint8Array,r.validatorIndex=e.validatorIndex??0,r.signature=e.signature??new Uint8Array,r}},t.Commit={typeUrl:"/tendermint.types.Commit",encode(e,r=l.BinaryWriter.create()){for(let n of(e.height!==BigInt(0)&&r.uint32(8).int64(e.height),0!==e.round&&r.uint32(16).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,r.uint32(26).fork()).ldelim(),e.signatures))t.CommitSig.encode(n,r.uint32(34).fork()).ldelim();return r},decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=A();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.height=n.int64();break;case 2:o.round=n.int32();break;case 3:o.blockId=t.BlockID.decode(n,n.uint32());break;case 4:o.signatures.push(t.CommitSig.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=A();return(0,c.isSet)(e.height)&&(r.height=BigInt(e.height.toString())),(0,c.isSet)(e.round)&&(r.round=Number(e.round)),(0,c.isSet)(e.blockId)&&(r.blockId=t.BlockID.fromJSON(e.blockId)),Array.isArray(e?.signatures)&&(r.signatures=e.signatures.map(e=>t.CommitSig.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.height&&(r.height=(e.height||BigInt(0)).toString()),void 0!==e.round&&(r.round=Math.round(e.round)),void 0!==e.blockId&&(r.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),e.signatures?r.signatures=e.signatures.map(e=>e?t.CommitSig.toJSON(e):void 0):r.signatures=[],r},fromPartial(e){let r=A();return void 0!==e.height&&null!==e.height&&(r.height=BigInt(e.height.toString())),r.round=e.round??0,void 0!==e.blockId&&null!==e.blockId&&(r.blockId=t.BlockID.fromPartial(e.blockId)),r.signatures=e.signatures?.map(e=>t.CommitSig.fromPartial(e))||[],r}},t.CommitSig={typeUrl:"/tendermint.types.CommitSig",encode:(e,t=l.BinaryWriter.create())=>(0!==e.blockIdFlag&&t.uint32(8).int32(e.blockIdFlag),0!==e.validatorAddress.length&&t.uint32(18).bytes(e.validatorAddress),void 0!==e.timestamp&&s.Timestamp.encode(e.timestamp,t.uint32(26).fork()).ldelim(),0!==e.signature.length&&t.uint32(34).bytes(e.signature),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.blockIdFlag=r.int32();break;case 2:i.validatorAddress=r.bytes();break;case 3:i.timestamp=s.Timestamp.decode(r,r.uint32());break;case 4:i.signature=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=w();return(0,c.isSet)(e.blockIdFlag)&&(t.blockIdFlag=u(e.blockIdFlag)),(0,c.isSet)(e.validatorAddress)&&(t.validatorAddress=(0,c.bytesFromBase64)(e.validatorAddress)),(0,c.isSet)(e.timestamp)&&(t.timestamp=(0,c.fromJsonTimestamp)(e.timestamp)),(0,c.isSet)(e.signature)&&(t.signature=(0,c.bytesFromBase64)(e.signature)),t},toJSON(e){let t={};return void 0!==e.blockIdFlag&&(t.blockIdFlag=p(e.blockIdFlag)),void 0!==e.validatorAddress&&(t.validatorAddress=(0,c.base64FromBytes)(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.timestamp&&(t.timestamp=(0,c.fromTimestamp)(e.timestamp).toISOString()),void 0!==e.signature&&(t.signature=(0,c.base64FromBytes)(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial(e){let t=w();return t.blockIdFlag=e.blockIdFlag??0,t.validatorAddress=e.validatorAddress??new Uint8Array,void 0!==e.timestamp&&null!==e.timestamp&&(t.timestamp=s.Timestamp.fromPartial(e.timestamp)),t.signature=e.signature??new Uint8Array,t}},t.Proposal={typeUrl:"/tendermint.types.Proposal",encode:(e,r=l.BinaryWriter.create())=>(0!==e.type&&r.uint32(8).int32(e.type),e.height!==BigInt(0)&&r.uint32(16).int64(e.height),0!==e.round&&r.uint32(24).int32(e.round),0!==e.polRound&&r.uint32(32).int32(e.polRound),void 0!==e.blockId&&t.BlockID.encode(e.blockId,r.uint32(42).fork()).ldelim(),void 0!==e.timestamp&&s.Timestamp.encode(e.timestamp,r.uint32(50).fork()).ldelim(),0!==e.signature.length&&r.uint32(58).bytes(e.signature),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=_();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.type=n.int32();break;case 2:o.height=n.int64();break;case 3:o.round=n.int32();break;case 4:o.polRound=n.int32();break;case 5:o.blockId=t.BlockID.decode(n,n.uint32());break;case 6:o.timestamp=s.Timestamp.decode(n,n.uint32());break;case 7:o.signature=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=_();return(0,c.isSet)(e.type)&&(r.type=f(e.type)),(0,c.isSet)(e.height)&&(r.height=BigInt(e.height.toString())),(0,c.isSet)(e.round)&&
1(r.round=Number(e.round)),(0,c.isSet)(e.polRound)&&(r.polRound=Number(e.polRound)),(0,c.isSet)(e.blockId)&&(r.blockId=t.BlockID.fromJSON(e.blockId)),(0,c.isSet)(e.timestamp)&&(r.timestamp=(0,c.fromJsonTimestamp)(e.timestamp)),(0,c.isSet)(e.signature)&&(r.signature=(0,c.bytesFromBase64)(e.signature)),r},toJSON(e){let r={};return void 0!==e.type&&(r.type=h(e.type)),void 0!==e.height&&(r.height=(e.height||BigInt(0)).toString()),void 0!==e.round&&(r.round=Math.round(e.round)),void 0!==e.polRound&&(r.polRound=Math.round(e.polRound)),void 0!==e.blockId&&(r.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(r.timestamp=(0,c.fromTimestamp)(e.timestamp).toISOString()),void 0!==e.signature&&(r.signature=(0,c.base64FromBytes)(void 0!==e.signature?e.signature:new Uint8Array)),r},fromPartial(e){let r=_();return r.type=e.type??0,void 0!==e.height&&null!==e.height&&(r.height=BigInt(e.height.toString())),r.round=e.round??0,r.polRound=e.polRound??0,void 0!==e.blockId&&null!==e.blockId&&(r.blockId=t.BlockID.fromPartial(e.blockId)),void 0!==e.timestamp&&null!==e.timestamp&&(r.timestamp=s.Timestamp.fromPartial(e.timestamp)),r.signature=e.signature??new Uint8Array,r}},t.SignedHeader={typeUrl:"/tendermint.types.SignedHeader",encode:(e,r=l.BinaryWriter.create())=>(void 0!==e.header&&t.Header.encode(e.header,r.uint32(10).fork()).ldelim(),void 0!==e.commit&&t.Commit.encode(e.commit,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=P();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.header=t.Header.decode(n,n.uint32());break;case 2:o.commit=t.Commit.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=P();return(0,c.isSet)(e.header)&&(r.header=t.Header.fromJSON(e.header)),(0,c.isSet)(e.commit)&&(r.commit=t.Commit.fromJSON(e.commit)),r},toJSON(e){let r={};return void 0!==e.header&&(r.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.commit&&(r.commit=e.commit?t.Commit.toJSON(e.commit):void 0),r},fromPartial(e){let r=P();return void 0!==e.header&&null!==e.header&&(r.header=t.Header.fromPartial(e.header)),void 0!==e.commit&&null!==e.commit&&(r.commit=t.Commit.fromPartial(e.commit)),r}},t.LightBlock={typeUrl:"/tendermint.types.LightBlock",encode:(e,r=l.BinaryWriter.create())=>(void 0!==e.signedHeader&&t.SignedHeader.encode(e.signedHeader,r.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&d.ValidatorSet.encode(e.validatorSet,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=k();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.signedHeader=t.SignedHeader.decode(n,n.uint32());break;case 2:o.validatorSet=d.ValidatorSet.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=k();return(0,c.isSet)(e.signedHeader)&&(r.signedHeader=t.SignedHeader.fromJSON(e.signedHeader)),(0,c.isSet)(e.validatorSet)&&(r.validatorSet=d.ValidatorSet.fromJSON(e.validatorSet)),r},toJSON(e){let r={};return void 0!==e.signedHeader&&(r.signedHeader=e.signedHeader?t.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(r.validatorSet=e.validatorSet?d.ValidatorSet.toJSON(e.validatorSet):void 0),r},fromPartial(e){let r=k();return void 0!==e.signedHeader&&null!==e.signedHeader&&(r.signedHeader=t.SignedHeader.fromPartial(e.signedHeader)),void 0!==e.validatorSet&&null!==e.validatorSet&&(r.validatorSet=d.ValidatorSet.fromPartial(e.validatorSet)),r}},t.BlockMeta={typeUrl:"/tendermint.types.BlockMeta",encode:(e,r=l.BinaryWriter.create())=>(void 0!==e.blockId&&t.BlockID.encode(e.blockId,r.uint32(10).fork()).ldelim(),e.blockSize!==BigInt(0)&&r.uint32(16).int64(e.blockSize),void 0!==e.header&&t.Header.encode(e.header,r.uint32(26).fork()).ldelim(),e.numTxs!==BigInt(0)&&r.uint32(32).int64(e.numTxs),r),decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=R();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.blockId=t.BlockID.decode(n,n.uint32());break;case 2:o.blockSize=n.int64();break;case 3:o.header=t.Header.decode(n,n.uint32());break;case 4:o.numTxs=n.int64();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=R();return(0,c.isSet)(e.blockId)&&(r.blockId=t.BlockID.fromJSON(e.blockId)),(0,c.isSet)(e.blockSize)&&(r.blockSize=BigInt(e.blockSize.toString())),(0,c.isSet)(e.header)&&(r.header=t.Header.fromJSON(e.header)),(0,c.isSet)(e.numTxs)&&(r.numTxs=BigInt(e.numTxs.toString())),r},toJSON(e){let r={};return void 0!==e.blockId&&(r.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.blockSize&&(r.blockSize=(e.blockSize||BigInt(0)).toString()),void 0!==e.header&&(r.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.numTxs&&(r.numTxs=(e.numTxs||BigInt(0)).toString()),r},fromPartial(e){let r=R();return void 0!==e.blockId&&null!==e.blockId&&(r.blockId=t.BlockID.fromPartial(e.blockId)),void 0!==e.blockSize&&null!==e.blockSize&&(r.blockSize=BigInt(e.blockSize.toString())),void 0!==e.header&&null!==e.header&&(r.header=t.Header.fromPartial(e.header)),void 0!==e.numTxs&&null!==e.numTxs&&(r.numTxs=BigInt(e.numTxs.toString())),r}},t.TxProof={typeUrl:"/tendermint.types.TxProof",encode:(e,t=l.BinaryWriter.create())=>(0!==e.rootHash.length&&t.uint32(10).bytes(e.rootHash),0!==e.data.length&&t.uint32(18).bytes(e.data),void 0!==e.proof&&o.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.rootHash=r.bytes();break;case 2:i.data=r.bytes();break;case 3:i.proof=o.Proof.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i}
1,fromJSON(e){let t=O();return(0,c.isSet)(e.rootHash)&&(t.rootHash=(0,c.bytesFromBase64)(e.rootHash)),(0,c.isSet)(e.data)&&(t.data=(0,c.bytesFromBase64)(e.data)),(0,c.isSet)(e.proof)&&(t.proof=o.Proof.fromJSON(e.proof)),t},toJSON(e){let t={};return void 0!==e.rootHash&&(t.rootHash=(0,c.base64FromBytes)(void 0!==e.rootHash?e.rootHash:new Uint8Array)),void 0!==e.data&&(t.data=(0,c.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?o.Proof.toJSON(e.proof):void 0),t},fromPartial(e){let t=O();return t.rootHash=e.rootHash??new Uint8Array,t.data=e.data??new Uint8Array,void 0!==e.proof&&null!==e.proof&&(t.proof=o.Proof.fromPartial(e.proof)),t}}},58905:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRfc3339=t.fromRfc3339=void 0;let r=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function n(e,t=2){return e.toString().padStart(t,"0")}t.fromRfc3339=function(e){let t,n,i,o=r.exec(e);if(!o)throw Error("Date string is not in RFC3339 format");let a=+o[1],s=+o[2],d=+o[3],l=+o[4],c=+o[5],u=+o[6],p=o[7]?Math.floor(1e3*o[7]):0;"Z"===o[8]?(t=1,n=0,i=0):(t="-"===o[8].substring(0,1)?-1:1,n=+o[8].substring(1,3),i=+o[8].substring(4,6));let f=t*(60*n+i)*60,h=new Date;return h.setUTCFullYear(a,s-1,d),h.setUTCHours(l,c,u,p),new Date(h.getTime()-1e3*f)},t.toRfc3339=function(e){let t=e.getUTCFullYear(),r=n(e.getUTCMonth()+1),i=n(e.getUTCDate()),o=n(e.getUTCHours()),a=n(e.getUTCMinutes()),s=n(e.getUTCSeconds()),d=n(e.getUTCMilliseconds(),3);return`${t}-${r}-${i}T${o}:${a}:${s}.${d}Z`}},58958:(e,t,r)=>{"use strict";var n=t;n.version=r(88250).rE,n.utils=r(95488),n.rand=r(62226),n.curve=r(12669),n.curves=r(23071),n.ec=r(81336),n.eddsa=r(27601)},59084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashedParams=t.VersionParams=t.ValidatorParams=t.EvidenceParams=t.BlockParams=t.ConsensusParams=t.protobufPackage=void 0;let n=r(19393),i=r(4696),o=r(92242);function a(){return{block:void 0,evidence:void 0,validator:void 0,version:void 0}}function s(){return{maxBytes:BigInt(0),maxGas:BigInt(0)}}function d(){return{maxAgeNumBlocks:BigInt(0),maxAgeDuration:n.Duration.fromPartial({}),maxBytes:BigInt(0)}}function l(){return{pubKeyTypes:[]}}function c(){return{app:BigInt(0)}}function u(){return{blockMaxBytes:BigInt(0),blockMaxGas:BigInt(0)}}t.protobufPackage="tendermint.types",t.ConsensusParams={typeUrl:"/tendermint.types.ConsensusParams",encode:(e,r=i.BinaryWriter.create())=>(void 0!==e.block&&t.BlockParams.encode(e.block,r.uint32(10).fork()).ldelim(),void 0!==e.evidence&&t.EvidenceParams.encode(e.evidence,r.uint32(18).fork()).ldelim(),void 0!==e.validator&&t.ValidatorParams.encode(e.validator,r.uint32(26).fork()).ldelim(),void 0!==e.version&&t.VersionParams.encode(e.version,r.uint32(34).fork()).ldelim(),r),decode(e,r){let n=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===r?n.len:n.pos+r,s=a();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:s.block=t.BlockParams.decode(n,n.uint32());break;case 2:s.evidence=t.EvidenceParams.decode(n,n.uint32());break;case 3:s.validator=t.ValidatorParams.decode(n,n.uint32());break;case 4:s.version=t.VersionParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON(e){let r=a();return(0,o.isSet)(e.block)&&(r.block=t.BlockParams.fromJSON(e.block)),(0,o.isSet)(e.evidence)&&(r.evidence=t.EvidenceParams.fromJSON(e.evidence)),(0,o.isSet)(e.validator)&&(r.validator=t.ValidatorParams.fromJSON(e.validator)),(0,o.isSet)(e.version)&&(r.version=t.VersionParams.fromJSON(e.version)),r},toJSON(e){let r={};return void 0!==e.block&&(r.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(r.evidence=e.evidence?t.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(r.validator=e.validator?t.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(r.version=e.version?t.VersionParams.toJSON(e.version):void 0),r},fromPartial(e){let r=a();return void 0!==e.block&&null!==e.block&&(r.block=t.BlockParams.fromPartial(e.block)),void 0!==e.evidence&&null!==e.evidence&&(r.evidence=t.EvidenceParams.fromPartial(e.evidence)),void 0!==e.validator&&null!==e.validator&&(r.validator=t.ValidatorParams.fromPartial(e.validator)),void 0!==e.version&&null!==e.version&&(r.version=t.VersionParams.fromPartial(e.version)),r}},t.BlockParams={typeUrl:"/tendermint.types.BlockParams",encode:(e,t=i.BinaryWriter.create())=>(e.maxBytes!==BigInt(0)&&t.uint32(8).int64(e.maxBytes),e.maxGas!==BigInt(0)&&t.uint32(16).int64(e.maxGas),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=s();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.maxBytes=r.int64();break;case 2:o.maxGas=r.int64();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=s();return(0,o.isSet)(e.maxBytes)&&(t.maxBytes=BigInt(e.maxBytes.toString())),(0,o.isSet)(e.maxGas)&&(t.maxGas=BigInt(e.maxGas.toString())),t},toJSON(e){let t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||BigInt(0)).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||BigInt(0)).toString()),t},fromPartial(e){let t=s();return void 0!==e.maxBytes&&null!==e.maxBytes&&(t.maxBytes=BigInt(e.maxBytes.toString())),void 0!==e.maxGas&&null!==e.maxGas&&(t.maxGas=BigInt(e.maxGas.toString())),t}},t.EvidenceParams={typeUrl:"/tendermint.types.EvidenceParams",encode:(e,t=i.BinaryWriter.create())=>(e.maxAgeNumBlocks!==BigInt(0)&&t.uint32(8).int64(e.maxAgeNumBlocks),void 0!==e.maxAgeDuration&&n.Duration.encode(e.maxAgeDuration,t.uint32(18).fork()).ldelim(),e.maxBytes!==BigInt(0)&&t.uint32(24).int64(e.maxBytes),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.maxAgeNumBlocks=r.int64();break;case 2:a.maxAgeDuration=n.Duration.decode(r,r.uint32());break;case 3:a.maxBytes=r.int64();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=d();return(0,o.isSet)(e.maxAgeNumBlocks)&&(t.maxAgeNumBlocks=BigInt(e.maxAgeNumBlocks.toString())),(0,o.isSet)(e.maxAgeDuration)&&(t.maxAgeDuration=n.Duration.fromJSON(e.maxAgeDuration)),(0,o.isSet)(e.maxBytes)&&(t.maxBytes=BigInt(e.maxBytes.toString())),t},toJSON(e){let t={};return void 0!==e.maxAgeNumBlocks&&(t.maxAgeNumBlocks=(e.maxAgeNumBlocks||BigInt(0)).toString()),void 0!==e.maxAgeDuration&&(t.maxAgeDuration=e.maxAgeDuration?n.Duration.toJSON(e.maxAgeDuration):void 0),void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||BigInt(0)).toString()),t},fromPartial(e){let t=d();return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks&&(t.maxAgeNumBlocks=BigInt(e.maxAgeNumBlocks.toString())),void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration&&(t.maxAgeDuration=n.Duration.fromPartial(e.maxAgeDuration)),void 0!==e.maxBytes&&null!==e.maxBytes&&(t.maxBytes=BigInt(e.maxBytes.toString())),t}},t.ValidatorParams={typeUrl:"/tendermint.types.ValidatorParams",encode(e,t=i.BinaryWriter.create()){for(let r of e.pubKeyTypes)t.uint32(10).string(r);return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.pubKeyTypes.push(r.string()):r.skipType(7&e)}return o},fromJSON(e){let t=l();return Array.isArray(e?.pubKeyTypes)&&(t.pubKeyTypes=e.pubKeyTypes.map(e=>String(e))),t},toJSON(e){let t={};return e.pubKeyTypes?t.pubKeyTypes=e.pubKeyTypes.map(e=>e):t.pubKeyTypes=[],t},fromPartial(e){let t=l();return t.pubKeyTypes=e.pubKeyTypes?.map(e=>e)||[],t}},t.VersionParams={typeUrl:"/tendermint.types.VersionParams",encode:(e,t=i.BinaryWriter.create())=>(e.app!==BigInt(0)&&t.uint32(8).uint64(e.app),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=c();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.app=r.uint64():r.skipType(7&e)}return o},fromJSON(e){let t=c();return(0,o.isSet)(e.app)&&(t.app=BigInt(e.app.toString())),t},toJSON(e){let t={};return void 0!==e.app&&(t.app=(e.app||BigInt(0)).toString()),t},fromPartial(e){let t=c();return void 0!==e.app&&null!==e.app&&(t.app=BigInt(e.app.toString())),t}},t.HashedParams={typeUrl:"/tendermint.types.HashedParams",encode:(e,t=i.BinaryWriter.create())=>(e.blockMaxBytes!==BigInt(0)&&t.uint32(8).int64(e.blockMaxBytes),e.blockMaxGas!==BigInt(0)&&t.uint32(16).int64(e.blockMaxGas),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.blockMaxBytes=r.int64();break;case 2:o.blockMaxGas=r.int64();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=u();return(0,o.isSet)(e.blockMaxBytes)&&(t.blockMaxBytes=BigInt(e.blockMaxBytes.toString())),(0,o.isSet)(e.blockMaxGas)&&(t.blockMaxGas=BigInt(e.blockMaxGas.toString())),t},toJSON(e){let t={};return void 0!==e.blockMaxBytes&&(t.blockMaxBytes=(e.blockMaxBytes||BigInt(0)).toString()),void 0!==e.blockMaxGas&&(t.blockMaxGas=(e.blockMaxGas||BigInt(0)).toString()),t},fromPartial(e){let t=u();return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes&&(t.blockMaxBytes=BigInt(e.blockMaxBytes.toString())),void 0!==e.blockMaxGas&&null!==e.blockMaxGas&&(t.blockMaxGas=BigInt(e.blockMaxGas.toString())),t}}},59583:(e,t,r)=>{"use strict";var n=r(36655),i=r(28879),o=r(30336),a=r(32875);function s(e){return e.call.bind(e)}var d="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=s(Object.prototype.toString),u=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(d)var h=s(BigInt.prototype.valueOf);if(l)var g=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function b(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function S(e){return"[object WeakSet]"===c(e)}function A(e){return"[object ArrayBuffer]"===c(e)}function w(e){return"undefined"!=typeof ArrayBuffer&&(A.working?A(e):e instanceof ArrayBuffer)}function _(e){return"[object DataView]"===c(e)}
vendor: 3,353 bytes, line 1
1function P(e){return"undefined"!=typeof DataView&&(_.working?_(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||P(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},S.working="undefined"!=typeof WeakSet&&S(new WeakSet),t.isWeakSet=function(e){return S(e)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),t.isArrayBuffer=w,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=P;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function R(e){return"[object SharedArrayBuffer]"===c(e)}function O(e){return void 0!==k&&(void 0===R.working&&(R.working=R(new k)),R.working?R(e):e instanceof k)}function I(e){return m(e,u)}function B(e){return m(e,p)}function x(e){return m(e,f)}function E(e){return d&&m(e,h)}function T(e){return l&&m(e,g)}t.isSharedArrayBuffer=O,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=I,t.isStringObject=B,t.isBooleanObject=x,t.isBigIntObject=E,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return I(e)||B(e)||x(e)||E(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(w(e)||O(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},59664:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Fraction=t.Header=t.Misbehaviour=t.ConsensusState=t.ClientState=t.protobufPackage=void 0;let n=r(19393),i=r(22421),o=r(93562),a=r(37375),s=r(16405),d=r(58887),l=r(91372),c=r(4696),u=r(92242);function p(){return{chainId:"",trustLevel:t.Fraction.fromPartial({}),trustingPeriod:n.Duration.fromPartial({}
1),unbondingPeriod:n.Duration.fromPartial({}),maxClockDrift:n.Duration.fromPartial({}),frozenHeight:i.Height.fromPartial({}),latestHeight:i.Height.fromPartial({}),proofSpecs:[],upgradePath:[],allowUpdateAfterExpiry:!1,allowUpdateAfterMisbehaviour:!1}}function f(){return{timestamp:a.Timestamp.fromPartial({}),root:s.MerkleRoot.fromPartial({}),nextValidatorsHash:new Uint8Array}}function h(){return{clientId:"",header1:void 0,header2:void 0}}function g(){return{signedHeader:void 0,validatorSet:void 0,trustedHeight:i.Height.fromPartial({}),trustedValidators:void 0}}function m(){return{numerator:BigInt(0),denominator:BigInt(0)}}t.protobufPackage="ibc.lightclients.tendermint.v1",t.ClientState={typeUrl:"/ibc.lightclients.tendermint.v1.ClientState",encode(e,r=c.BinaryWriter.create()){for(let a of(""!==e.chainId&&r.uint32(10).string(e.chainId),void 0!==e.trustLevel&&t.Fraction.encode(e.trustLevel,r.uint32(18).fork()).ldelim(),void 0!==e.trustingPeriod&&n.Duration.encode(e.trustingPeriod,r.uint32(26).fork()).ldelim(),void 0!==e.unbondingPerio
1d&&n.Duration.encode(e.unbondingPeriod,r.uint32(34).fork()).ldelim(),void 0!==e.maxClockDrift&&n.Duration.encode(e.maxClockDrift,r.uint32(42).fork()).ldelim(),void 0!==e.frozenHeight&&i.Height.encode(e.frozenHeight,r.uint32(50).fork()).ldelim(),void 0!==e.latestHeight&&i.Height.encode(e.latestHeight,r.uint32(58).fork()).ldelim(),e.proofSpecs))o.ProofSpec.encode(a,r.uint32(66).fork()).ldelim();for(let t of e.upgradePath)r.uint32(74).string(t);return!0===e.allowUpdateAfterExpiry&&r.uint32(80).bool(e.allowUpdateAfterExpiry),!0===e.allowUpdateAfterMisbehaviour&&r.uint32(88).bool(e.allowUpdateAfterMisbehaviour),r},decode(e,r){let a=e instanceof c.BinaryReader?e:new c.BinaryReader(e),s=void 0===r?a.len:a.pos+r,d=p();for(;a.pos<s;){let e=a.uint32();switch(e>>>3){case 1:d.chainId=a.string();break;case 2:d.trustLevel=t.Fraction.decode(a,a.uint32());break;case 3:d.trustingPeriod=n.Duration.decode(a,a.uint32());break;case 4:d.unbondingPeriod=n.Duration.decode(a,a.uint32());break;case 5:d.maxClockDrift=n.Duration.decode(a,a.uint32());break;case 6:d.frozenHeight=i.Height.decode(a,a.uint32());break;case 7:d.latestHeight=i.Height.decode(a,a.uint32());break;case 8:d.proofSpecs.push(o.ProofSpec.decode(a,a.uint32()));break;case 9:d.upgradePath.push(a.string());break;case 10:d.allowUpdateAfterExpiry=a.bool();break;case 11:d.allowUpdateAfterMisbehaviour=a.bool();break;default:a.skipType(7&e)}}return d},fromJSON(e){let r=p();return(0,u.isSet)(e.chainId)&&(r.chainId=String(e.chainId)),(0,u.isSet)(e.trustLevel)&&(r.trustLevel=t.Fraction.fromJSON(e.trustLevel)),(0,u.isSet)(e.trustingPeriod)&&(r.trustingPeriod=n.Duration.fromJSON(e.trustingPeriod)),(0,u.isSet)(e.unbondingPerio
1d)&&(r.unbondingPeriod=n.Duration.fromJSON(e.unbondingPeriod)),(0,u.isSet)(e.maxClockDrift)&&(r.maxClockDrift=n.Duration.fromJSON(e.maxClockDrift)),(0,u.isSet)(e.frozenHeight)&&(r.frozenHeight=i.Height.fromJSON(e.frozenHeight)),(0,u.isSet)(e.latestHeight)&&(r.latestHeight=i.Height.fromJSON(e.latestHeight)),Array.isArray(e?.proofSpecs)&&(r.proofSpecs=e.proofSpecs.map(e=>o.ProofSpec.fromJSON(e))),Array.isArray(e?.upgradePath)&&(r.upgradePath=e.upgradePath.map(e=>String(e))),(0,u.isSet)(e.allowUpdateAfterExpiry)&&(r.allowUpdateAfterExpiry=!!e.allowUpdateAfterExpiry),(0,u.isSet)(e.allowUpdateAfterMisbehaviour)&&(r.allowUpdateAfterMisbehaviour=!!e.allowUpdateAfterMisbehaviour),r},toJSON(e){let r={};return void 0!==e.chainId&&(r.chainId=e.chainId),void 0!==e.trustLevel&&(r.trustLevel=e.trustLevel?t.Fraction.toJSON(e.trustLevel):void 0),void 0!==e.trustingPeriod&&(r.trustingPeriod=e.trustingPeriod?n.Duration.toJSON(e.trustingPeriod):void 0),void 0!==e.unbondingPeriod&&(r.unbondingPeriod=e.unbondingPeriod?n.Duration.toJSON(e.unbondingPerio
1d):void 0),void 0!==e.maxClockDrift&&(r.maxClockDrift=e.maxClockDrift?n.Duration.toJSON(e.maxClockDrift):void 0),void 0!==e.frozenHeight&&(r.frozenHeight=e.frozenHeight?i.Height.toJSON(e.frozenHeight):void 0),void 0!==e.latestHeight&&(r.latestHeight=e.latestHeight?i.Height.toJSON(e.latestHeight):void 0),e.proofSpecs?r.proofSpecs=e.proofSpecs.map(e=>e?o.ProofSpec.toJSON(e):void 0):r.proofSpecs=[],e.upgradePath?r.upgradePath=e.upgradePath.map(e=>e):r.upgradePath=[],void 0!==e.allowUpdateAfterExpiry&&(r.allowUpdateAfterExpiry=e.allowUpdateAfterExpiry),void 0!==e.allowUpdateAfterMisbehaviour&&(r.allowUpdateAfterMisbehaviour=e.allowUpdateAfterMisbehaviour),r},fromPartial(e){let r=p();return r.chainId=e.chainId??"",void 0!==e.trustLevel&&null!==e.trustLevel&&(r.trustLevel=t.Fraction.fromPartial(e.trustLevel)),void 0!==e.trustingPeriod&&null!==e.trustingPeriod&&(r.trustingPeriod=n.Duration.fromPartial(e.trustingPeriod)),void 0!==e.unbondingPeriod&&null!==e.unbondingPeriod&&(r.unbondingPeriod=n.Duration.fromPartial(e.unbondingPerio
1d)),void 0!==e.maxClockDrift&&null!==e.maxClockDrift&&(r.maxClockDrift=n.Duration.fromPartial(e.maxClockDrift)),void 0!==e.frozenHeight&&null!==e.frozenHeight&&(r.frozenHeight=i.Height.fromPartial(e.frozenHeight)),void 0!==e.latestHeight&&null!==e.latestHeight&&(r.latestHeight=i.Height.fromPartial(e.latestHeight)),r.proofSpecs=e.proofSpecs?.map(e=>o.ProofSpec.fromPartial(e))||[],r.upgradePath=e.upgradePath?.map(e=>e)||[],r.allowUpdateAfterExpiry=e.allowUpdateAfterExpiry??!1,r.allowUpdateAfterMisbehaviour=e.allowUpdateAfterMisbehaviour??!1,r}},t.ConsensusState={typeUrl:"/ibc.lightclients.tendermint.v1.ConsensusState",encode:(e,t=c.BinaryWriter.create())=>(void 0!==e.timestamp&&a.Timestamp.encode(e.timestamp,t.uint32(10).fork()).ldelim(),void 0!==e.root&&s.MerkleRoot.encode(e.root,t.uint32(18).fork()).ldelim(),0!==e.nextValidatorsHash.length&&t.uint32(26).bytes(e.nextValidatorsHash),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.timestamp=a.Timestamp.decode(r,r.uint32());break;case 2:i.root=s.MerkleRoot.decode(r,r.uint32());break;case 3:i.nextValidatorsHash=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=f();return(0,u.isSet)(e.timestamp)&&(t.timestamp=(0,u.fromJsonTimestamp)(e.timestamp)),(0,u.isSet)(e.root)&&(t.root=s.MerkleRoot.fromJSON(e.root)),(0,u.isSet)(e.nextValidatorsHash)&&(t.nextValidatorsHash=(0,u.bytesFromBase64)(e.nextValidatorsHash)),t},toJSON(e){let t={};return void 0!==e.timestamp&&(t.timestamp=(0,u.fromTimestamp)(e.timestamp).toISOString()),void 0!==e.root&&(t.root=e.root?s.MerkleRoot.toJSON(e.root):void 0),void 0!==e.nextValidatorsHash&&(t.nextValidatorsHash=(0,u.base64FromBytes)(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),t},fromPartial(e){let t=f();return void 0!==e.timestamp&&null!==e.timestamp&&(t.timestamp=a.Timestamp.fromPartial(e.timestamp)),void 0!==e.root&&null!==e.root&&(t.root=s.MerkleRoot.fromPartial(e.root)),t.nextValidatorsHash=e.nextValidatorsHash??new Uint8Array,t}},t.Misbehaviour={typeUrl:"/ibc.lightclients.tendermint.v1.Misbehaviour",encode:(e,r=c.BinaryWriter.create())=>(""!==e.clientId&&r.uint32(10).string(e.clientId),void 0!==e.header1&&t.Header.encode(e.header1,r.uint32(18).fork()).ldelim(),void 0!==e.header2&&t.Header.encode(e.header2,r.uint32(26).fork()).ldelim(),r),decode(e,r){let n=e instanceof c.BinaryReader?e:new c.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=h();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.clientId=n.string();break;case 2:o.header1=t.Header.decode(n,n.uint32());break;case 3:o.header2=t.Header.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=h();return(0,u.isSet)(e.clientId)&&(r.clientId=String(e.clientId)),(0,u.isSet)(e.header1)&&(r.header1=t.Header.fromJSON(e.header1)),(0,u.isSet)(e.header2)&&(r.header2=t.Header.fromJSON(e.header2)),r},toJSON(e){let r={};return void 0!==e.clientId&&(r.clientId=e.clientId),void 0!==e.header1&&(r.header1=e.header1?t.Header.toJSON(e.header1):void 0),void 0!==e.header2&&(r.header2=e.header2?t.Header.toJSON(e.header2):void 0),r},fromPartial(e){let r=h();return r.clientId=e.clientId??"",void 0!==e.header1&&null!==e.header1&&(r.header1=t.Header.fromPartial(e.header1)),void 0!==e.header2&&null!==e.header2&&(r.header2=t.Header.fromPartial(e.header2)),r}},t.Header={typeUrl:"/ibc.lightclients.tendermint.v1.Header",encode:(e,t=c.BinaryWriter.create())=>(void 0!==e.signedHeader&&d.SignedHeader.encode(e.signedHeader,t.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&l.ValidatorSet.encode(e.validatorSet,t.uint32(18).fork()).ldelim(),void 0!==e.trustedHeight&&i.Height.encode(e.trustedHeight,t.uint32(26).fork()).ldelim(),void 0!==e.trustedValidators&&l.ValidatorSet.encode(e.trustedValidators,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.signedHeader=d.SignedHeader.decode(r,r.uint32());break;
1case 2:o.validatorSet=l.ValidatorSet.decode(r,r.uint32());break;case 3:o.trustedHeight=i.Height.decode(r,r.uint32());break;case 4:o.trustedValidators=l.ValidatorSet.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=g();return(0,u.isSet)(e.signedHeader)&&(t.signedHeader=d.SignedHeader.fromJSON(e.signedHeader)),(0,u.isSet)(e.validatorSet)&&(t.validatorSet=l.ValidatorSet.fromJSON(e.validatorSet)),(0,u.isSet)(e.trustedHeight)&&(t.trustedHeight=i.Height.fromJSON(e.trustedHeight)),(0,u.isSet)(e.trustedValidators)&&(t.trustedValidators=l.ValidatorSet.fromJSON(e.trustedValidators)),t},toJSON(e){let t={};return void 0!==e.signedHeader&&(t.signedHeader=e.signedHeader?d.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(t.validatorSet=e.validatorSet?l.ValidatorSet.toJSON(e.validatorSet):void 0),void 0!==e.trustedHeight&&(t.trustedHeight=e.trustedHeight?i.Height.toJSON(e.trustedHeight):void 0),void 0!==e.trustedValidators&&(t.trustedValidators=e.trustedValidators?l.ValidatorSet.toJSON(e.trustedValidators):void 0),t},fromPartial(e){let t=g();return void 0!==e.signedHeader&&null!==e.signedHeader&&(t.signedHeader=d.SignedHeader.fromPartial(e.signedHeader)),void 0!==e.validatorSet&&null!==e.validatorSet&&(t.validatorSet=l.ValidatorSet.fromPartial(e.validatorSet)),void 0!==e.trustedHeight&&null!==e.trustedHeight&&(t.trustedHeight=i.Height.fromPartial(e.trustedHeight)),void 0!==e.trustedValidators&&null!==e.trustedValidators&&(t.trustedValidators=l.ValidatorSet.fromPartial(e.trustedValidators)),t}},t.Fraction={typeUrl:"/ibc.lightclients.tendermint.v1.Fraction",encode:(e,t=c.BinaryWriter.create())=>(e.numerator!==BigInt(0)&&t.uint32(8).uint64(e.numerator),e.denominator!==BigInt(0)&&t.uint32(16).uint64(e.denominator),t),decode(e,t){let r=e instanceof c.BinaryReader?e:new c.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.numerator=r.uint64();break;case 2:i.denominator=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,u.isSet)(e.numerator)&&(t.numerator=BigInt(e.numerator.toString())),(0,u.isSet)(e.denominator)&&(t.denominator=BigInt(e.denominator.toString())),t},toJSON(e){let t={};return void 0!==e.numerator&&(t.numerator=(e.numerator||BigInt(0)).toString()),void 0!==e.denominator&&(t.denominator=(e.denominator||BigInt(0)).toString()),t},fromPartial(e){let t=m();return void 0!==e.numerator&&null!==e.numerator&&(t.numerator=BigInt(e.numerator.toString())),void 0!==e.denominator&&null!==e.denominator&&(t.denominator=BigInt(e.denominator.toString())),t}}},60305:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bip39=t.EnglishMnemonic=t.mnemonicToEntropy=t.entropyToMnemonic=void 0;let n=r(25918),i=r(21083),o=r(53604),a=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","co
1ach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","
1initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","ric
1h","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function s(e){return Array.from(e).map(e=>e.toString(2).padStart(8,"0")).join("")}function d(e){let t=8*e.length/32;return s((0,o.sha256)(e)).slice(0,t)}function l(e){return parseInt(e,2)}let c=[16,20,24,28,32],u=[12,15,18,21,24];function p(e){if(-1===c.indexOf(e.length))throw Error("invalid input length");return(s(e)+d(e)).match(/(.{11})/g).map(e=>a[l(e)]).join(" ")}t.entropyToMnemonic=p;let f="Invalid number of words",h="Found word that is not in the wordlist",g="Invalid entropy",m="Invalid mnemonic checksum";function y(e){return e.normalize("NFKD")}function b(e){let t=y(e).split(" ");if(!u.includes(t.length))throw Error(f);let r=t.map(e=>{let t=a.indexOf(e);if(-1===t)throw Error(h);return t.toString(2).padStart(11,"0")}).join(""),n=32*Math.floor(r.length/33),i=r.slice(0,n),o=r.slice(n),s=i.match(/(.{1,8})/g).map(l);if(s.length<16||s.length>32||s.length%4!=0)throw Error(g);let c=Uint8Array.from(s);if(d(c)!==o)throw Error(m);return c}t.mnemonicToEntropy=b;class v{constructor(e){if(!v.mnemonicMatcher.test(e))throw Error("Invalid mnemonic format");let t=e.split(" "),r=[12,15,18,21,24];if(-1===r.indexOf(t.length))throw Error(`Invalid word count in mnemonic (allowed: ${r} got: ${t.length})`);for(let e of t)if(-1===v.wordlist.indexOf(e))throw Error("Mnemonic contains invali
1d word");b(e),this.data=e}toString(){return this.data}}t.EnglishMnemonic=v,v.wordlist=a,v.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;class S{static encode(e){return new v(p(e))}static decode(e){return b(e.toString())}static async mnemonicToSeed(e,t){let r=(0,n.toUtf8)(y(e.toString())),o="mnemonic"+(t?y(t):""),a=(0,n.toUtf8)(o);return(0,i.pbkdf2Sha512)(r,a,2048,64)}}t.Bip39=S},60401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=v,t.fromBig=i,t.split=o;let r=BigInt(0x100000000-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=e.length,n=new Uint32Array(r),a=new Uint32Array(r);for(let o=0;o<r;o++){let{h:r,l:s}=i(e[o],t);[n[o],a[o]]=[r,s]}return[n,a]}let a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=a;let s=(e,t,r)=>e>>>r;t.shrSH=s;let d=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=d;let l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;let c=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=c;let u=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=u;let p=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=p;let f=(e,t)=>t;t.rotr32H=f;let h=(e,t)=>e;t.rotr32L=h;let g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;let m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;let y=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=y;let b=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}}t.rotlBL=b;let S=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=S;let A=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;t.add3H=A;let w=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=w;let _=(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0;t.add4H=_;let P=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);t.add5L=P;let k=(e,t,r,n,i,o)=>t+r+n+i+o+(e/0x100000000|0)|0;t.add5H=k,t.default={fromBig:i,split:o,toBig:a,shrSH:s,shrSL:d,rotrSH:l,rotrSL:c,rotrBH:u,rotrBL:p,rotr32H:f,rotr32L:h,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:v,add3L:S,add3H:A,add4L:w,add4H:_,add5H:k,add5L:P}},60654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryAccountInfoResponse=t.QueryAccountInfoRequest=t.QueryAccountAddressByIDResponse=t.QueryAccountAddressByIDRequest=t.AddressStringToBytesResponse=t.AddressStringToBytesRequest=t.AddressBytesToStringResponse=t.AddressBytesToStringRequest=t.Bech32PrefixResponse=t.Bech32PrefixRequest=t.QueryModuleAccountByNameResponse=t.QueryModuleAccountByNameRequest=t.QueryModuleAccountsResponse=t.QueryModuleAccountsRequest=t.QueryParamsResponse=t.QueryParamsRequest=t.QueryAccountResponse=t.QueryAccountRequest=t.QueryAccountsResponse=t.QueryAccountsRequest=t.protobufPackage=void 0;let n=r(64094),i=r(54573),o=r(87332),a=r(4696),s=r(92242);function d(){return{pagination:void 0}}function l(){return{accounts:[],pagination:void 0}}function c(){return{address:""}}function u(){return{account:void 0}}function p(){return{}}function f(){return{params:o.Params.fromPartial({})}}function h(){return{}}function g(){return{accounts:[]}}function m(){return{name:""}}function y(){return{account:void 0}}function b(){return{}}function v(){return{bech32Prefix:""}}function S(){return{addressBytes:new Uint8Array}}function A(){return{addressString:""}}function w(){return{addressString:""}}function _(){return{addressBytes:new Uint8Array}}function P(){return{id:BigInt(0),accountId:BigInt(0)}}function k(){return{accountAddress:""}}function R(){return{address:""}}function O(){return{info:void 0}}t.protobufPackage="cosmos.auth.v1beta1",t.QueryAccountsRequest={typeUrl:"/cosmos.auth.v1beta1.QueryAccountsRequest",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=d();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.pagination=n.PageRequest.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=d();return(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=d();return void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryAccountsResponse={typeUrl:"/cosmos.auth.v1beta1.QueryAccountsResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.accounts)i.Any.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=l();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.accounts.push(i.Any.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=l();return Array.isArray(e?.accounts)&&(t.accounts=e.accounts.map(e=>i.Any.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.accounts?t.accounts=e.accounts.map(e=>e?i.Any.toJSON(e):void 0):t.accounts=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=l();return t.accounts=e.accounts?.map(e=>i.Any.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryAccountRequest={typeUrl:"/cosmos.auth.v1beta1.QueryAccountRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.address=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=c();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),t},fromPartial(e){let t=c();return t.address=e.address??"",t}},t.QueryAccountResponse={typeUrl:"/cosmos.auth.v1beta1.QueryAccountResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.account&&i.Any.encode(e.account,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.account=i.Any.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=u();return(0,s.isSet)(e.account)&&(t.account=i.Any.fromJSON(e.account)),t},toJSON(e){let t={};return void 0!==e.account&&(t.account=e.account?i.Any.toJSON(e.account):void 0),t},fromPartial(e){let t=u();return void 0!==e.account&&null!==e.account&&(t.account=i.Any.fromPartial(e.account)),t}},t.QueryParamsRequest={typeUrl:"/cosmos.auth.v1beta1.QueryParamsRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>p(),toJSON:e=>({}),fromPartial:e=>p()},t.QueryParamsResponse={typeUrl:"/cosmos.auth.v1beta1.QueryParamsResponse",encode:(e,t=a.BinaryWriter.create())=>
1(void 0!==e.params&&o.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.params=o.Params.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=f();return(0,s.isSet)(e.params)&&(t.params=o.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?o.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=f();return void 0!==e.params&&null!==e.params&&(t.params=o.Params.fromPartial(e.params)),t}},t.QueryModuleAccountsRequest={typeUrl:"/cosmos.auth.v1beta1.QueryModuleAccountsRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>h(),toJSON:e=>({}),fromPartial:e=>h()},t.QueryModuleAccountsResponse={typeUrl:"/cosmos.auth.v1beta1.QueryModuleAccountsResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.accounts)i.Any.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=g();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.accounts.push(i.Any.decode(r,r.uint32())):r.skipType(7&e)}return o},fromJSON(e){let t=g();return Array.isArray(e?.accounts)&&(t.accounts=e.accounts.map(e=>i.Any.fromJSON(e))),t},toJSON(e){let t={};return e.accounts?t.accounts=e.accounts.map(e=>e?i.Any.toJSON(e):void 0):t.accounts=[],t},fromPartial(e){let t=g();return t.accounts=e.accounts?.map(e=>i.Any.fromPartial(e))||[],t}},t.QueryModuleAccountByNameRequest={typeUrl:"/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.name=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=m();return(0,s.isSet)(e.name)&&(t.name=String(e.name)),t},toJSON(e){let t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){let t=m();return t.name=e.name??"",t}},t.QueryModuleAccountByNameResponse={typeUrl:"/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.account&&i.Any.encode(e.account,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=y();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.account=i.Any.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=y();return(0,s.isSet)(e.account)&&(t.account=i.Any.fromJSON(e.account)),t},toJSON(e){let t={};return void 0!==e.account&&(t.account=e.account?i.Any.toJSON(e.account):void 0),t},fromPartial(e){let t=y();return void 0!==e.account&&null!==e.account&&(t.account=i.Any.fromPartial(e.account)),t}},t.Bech32PrefixRequest={typeUrl:"/cosmos.auth.v1beta1.Bech32PrefixRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>b(),toJSON:e=>({}),fromPartial:e=>b()},t.Bech32PrefixResponse={typeUrl:"/cosmos.auth.v1beta1.Bech32PrefixResponse",encode:(e,t=a.BinaryWriter.create())=>(""!==e.bech32Prefix&&t.uint32(10).string(e.bech32Prefix),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.bech32Prefix=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=v();return(0,s.isSet)(e.bech32Prefix)&&(t.bech32Prefix=String(e.bech32Prefix)),t},toJSON(e){let t={};return void 0!==e.bech32Prefix&&(t.bech32Prefix=e.bech32Prefix),t},fromPartial(e){let t=v();return t.bech32Prefix=e.bech32Prefix??"",t}},t.AddressBytesToStringRequest={typeUrl:"/cosmos.auth.v1beta1.AddressBytesToStringRequest",encode:(e,t=a.BinaryWriter.create())=>(0!==e.addressBytes.length&&t.uint32(10).bytes(e.addressBytes),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.addressBytes=r.bytes():r.skipType(7&e)}return i},fromJSON(e){let t=S();return(0,s.isSet)(e.addressBytes)&&(t.addressBytes=(0,s.bytesFromBase64)(e.addressBytes)),t},toJSON(e){let t={};return void 0!==e.addressBytes&&(t.addressBytes=(0,s.base64FromBytes)(void 0!==e.addressBytes?e.addressBytes:new Uint8Array)),t},fromPartial(e){let t=S();return t.addressBytes=e.addressBytes??new Uint8Array,t}},t.AddressBytesToStringResponse={typeUrl:"/cosmos.auth.v1beta1.AddressBytesToStringResponse",encode:(e,t=a.BinaryWriter.create())=>(""!==e.addressString&&t.uint32(10).string(e.addressString),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.addressString=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=A();return(0,s.isSet)(e.addressString)&&(t.addressString=String(e.addressString)),t},toJSON(e){let t={};return void 0!==e.addressString&&(t.addressString=e.addressString),t},fromPartial(e){let t=A();return t.addressString=e.addressString??"",t}},t.AddressStringToBytesRequest={typeUrl:"/cosmos.auth.v1beta1.AddressStringToBytesRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.addressString&&t.uint32(10).string(e.addressString),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.addressString=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=w();return(0,s.isSet)(e.addressString)&&(t.addressString=String(e.addressString)),t},toJSON(e){let t={};return void 0!==e.addressString&&(t.addressString=e.addressString),t},fromPartial(e){let t=w();return t.addressString=e.addressString??"",t}},t.AddressStringToBytesResponse={typeUrl:"/cosmos.auth.v1beta1.AddressStringToBytesResponse",encode:(e,t=a.BinaryWriter.create())=>(0!==e.addressBytes.length&&t.uint32(10).bytes(e.addressBytes),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.addressBytes=r.bytes():r.skipType(7&e)}return i},fromJSON(e){let t=_();return(0,s.isSet)(e.addressBytes)&&(t.addressBytes=(0,s.bytesFromBase64)(e.addressBytes)),t},toJSON(e){let t={};return void 0!==e.addressBytes&&(t.addressBytes=(0,s.base64FromBytes)(void 0!==e.addressBytes?e.addressBytes:new Uint8Array)),t},fromPartial(e){let t=_();return t.addressBytes=e.addressBytes??new Uint8Array,t}},t.QueryAccountAddressByIDRequest={typeUrl:"/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest",encode:(e,t=a.BinaryWriter.create())=>(e.id!==BigInt(0)&&t.uint32(8).int64(e.id),e.accountId!==BigInt(0)&&t.uint32(16).uint64(e.accountId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=P();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.id=r.int64();break;case 2:i.accountId=r.uint64();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=P();return(0,s.isSet)(e.id)&&(t.id=BigInt(e.id.toString())),(0,s.isSet)(e.accountId)&&(t.accountId=BigInt(e.accountId.toString())),t},toJSON(e){let t={};return void 0!==e.id&&(t.id=(e.id||BigInt(0)).toString()),void 0!==e.accountId&&(t.accountId=(e.accountId||BigInt(0)).toString()),t},fromPartial(e){let t=P();return void 0!==e.id&&null!==e.id&&(t.id=BigInt(e.id.toString())),void 0!==e.accountId&&null!==e.accountId&&(t.accountId=BigInt(e.accountId.toString())),t}},t.QueryAccountAddressByIDResponse={typeUrl:"/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse",encode:(e,t=a.BinaryWriter.create())=>(""!==e.accountAddress&&t.uint32(10).string(e.accountAddress),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=k();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.accountAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=k();return(0,s.isSet)(e.accountAddress)&&(t.accountAddress=String(e.accountAddress)),t},toJSON(e){let t={};return void 0!==e.accountAddress&&(t.accountAddress=e.accountAddress),t},fromPartial(e){let t=k();return t.accountAddress=e.accountAddress??"",t}},t.QueryAccountInfoRequest={typeUrl:"/cosmos.auth.v1beta1.QueryAccountInfoRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=R();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.address=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=R();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),t},fromPartial(e){let t=R();return t.address=e.address??"",t}},t.QueryAccountInfoResponse={typeUrl:"/cosmos.auth.v1beta1.QueryAccountInfoResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.info&&o.BaseAccount.encode(e.info,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.info=o.BaseAccount.decode(r,r.uint32()):r.skipType(7&e)}return i}
1,fromJSON(e){let t=O();return(0,s.isSet)(e.info)&&(t.info=o.BaseAccount.fromJSON(e.info)),t},toJSON(e){let t={};return void 0!==e.info&&(t.info=e.info?o.BaseAccount.toJSON(e.info):void 0),t},fromPartial(e){let t=O();return void 0!==e.info&&null!==e.info&&(t.info=o.BaseAccount.fromPartial(e.info)),t}};class I{constructor(e){this.rpc=e,this.Accounts=this.Accounts.bind(this),this.Account=this.Account.bind(this),this.AccountAddressByID=this.AccountAddressByID.bind(this),this.Params=this.Params.bind(this),this.ModuleAccounts=this.ModuleAccounts.bind(this),this.ModuleAccountByName=this.ModuleAccountByName.bind(this),this.Bech32Prefix=this.Bech32Prefix.bind(this),this.AddressBytesToString=this.AddressBytesToString.bind(this),this.AddressStringToBytes=this.AddressStringToBytes.bind(this),this.AccountInfo=this.AccountInfo.bind(this)}Accounts(e={pagination:n.PageRequest.fromPartial({})}){let r=t.QueryAccountsRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Accounts",r).then(e=>t.QueryAccountsResponse.decode(new a.BinaryReader(e)))}Account(e){let r=t.QueryAccountRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Account",r).then(e=>t.QueryAccountResponse.decode(new a.BinaryReader(e)))}AccountAddressByID(e){let r=t.QueryAccountAddressByIDRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AccountAddressByID",r).then(e=>t.QueryAccountAddressByIDResponse.decode(new a.BinaryReader(e)))}Params(e={}){let r=t.QueryParamsRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Params",r).then(e=>t.QueryParamsResponse.decode(new a.BinaryReader(e)))}ModuleAccounts(e={}){let r=t.QueryModuleAccountsRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccounts",r).then(e=>t.QueryModuleAccountsResponse.decode(new a.BinaryReader(e)))}ModuleAccountByName(e){let r=t.QueryModuleAccountByNameRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccountByName",r).then(e=>t.QueryModuleAccountByNameResponse.decode(new a.BinaryReader(e)))}Bech32Prefix(e={}){let r=t.Bech32PrefixRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Bech32Prefix",r).then(e=>t.Bech32PrefixResponse.decode(new a.BinaryReader(e)))}AddressBytesToString(e){let r=t.AddressBytesToStringRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AddressBytesToString",r).then(e=>t.AddressBytesToStringResponse.decode(new a.BinaryReader(e)))}AddressStringToBytes(e){let r=t.AddressStringToBytesRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AddressStringToBytes",r).then(e=>t.AddressStringToBytesResponse.decode(new a.BinaryReader(e)))}AccountInfo(e){let r=t.QueryAccountInfoRequest.encode(e).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AccountInfo",r).then(e=>t.QueryAccountInfoResponse.decode(new a.BinaryReader(e)))}}t.QueryClientImpl=I},60829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupAuthzExtension=void 0;let n=r(66924),i=r(51324);t.setupAuthzExtension=function(e){let t=(0,i.createProtobufRpcClient)(e),r=new n.QueryClientImpl(t);return{authz:{grants:async(e,t,n,o)=>await r.Grants({granter:e,grantee:t,msgTypeUrl:n,pagination:(0,i.createPagination)(o)}),granteeGrants:async(e,t)=>await r.GranteeGrants({grantee:e,pagination:(0,i.createPagination)(t)}),granterGrants:async(e,t)=>await r.GranterGrants({granter:e,pagination:(0,i.createPagination)(t)})}}}},61107:(e,t,r)=>{"use strict";var n,i=r(32125),o=r(26600);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,d=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof d&&function(e){return d(null==e?e:s(e))}},61176:(e,t)=>{"use strict";function r(e){let t=0;for(let r of e)if(0===r)t++;else break;return e.slice(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedSecp256k1Signature=t.Secp256k1Signature=void 0;let n=2;
1class i{static fromFixedLength(e){if(64!==e.length)throw Error(`Got invalid data length: ${e.length}. Expected 2x 32 bytes for the pair (r, s)`);return new i(r(e.slice(0,32)),r(e.slice(32,64)))}static fromDer(e){let t=0;if(48!==e[t++])throw Error("Prefix 0x30 expected");let o=e[t++];if(e.length-t!==o)throw Error("Data length mismatch detected");if(e[t++]!==n)throw Error("INTEGER tag expected");let a=e[t++];if(a>=128)throw Error("Decoding length values above 127 not supported");let s=e.slice(t,t+a);if(t+=a,e[t++]!==n)throw Error("INTEGER tag expected");let d=e[t++];if(d>=128)throw Error("Decoding length values above 127 not supported");let l=e.slice(t,t+d);return t+=d,new i(r(s),r(l))}constructor(e,t){if(e.length>32||0===e.length||0===e[0])throw Error("Unsigned integer r must be encoded as unpadded big endian.");if(t.length>32||0===t.length||0===t[0])throw Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:e,s:t}}r(e){if(void 0===e)return this.data.r;{let t=e-this.data.r.length;if(t<0)throw Error("Length too small to hold parameter r");let r=new Uint8Array(t);return new Uint8Array([...r,...this.data.r])}}s(e){if(void 0===e)return this.data.s;{let t=e-this.data.s.length;if(t<0)throw Error("Length too small to hold parameter s");let r=new Uint8Array(t);return new Uint8Array([...r,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){let e=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,t=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,r=new Uint8Array([n,e.length,...e,n,t.length,...t]);return new Uint8Array([48,r.length,...r])}}t.Secp256k1Signature=i;class o extends i{static fromFixedLength(e){if(65!==e.length)throw Error(`Got invalid data length ${e.length}. Expected 32 + 32 + 1`);return new o(r(e.slice(0,32)),r(e.slice(32,64)),e[64])}constructor(e,t,r){if(super(e,t),!Number.isInteger(r))throw Error("The recovery parameter must be an integer.");if(r<0||r>4)throw Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=r}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}t.ExtendedSecp256k1Signature=o},61259:e=>{"use strict";e.exports=Function.prototype.call},61365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsgWithdrawDelegatorRewardEncodeObject=t.distributionTypes=void 0;let n=r(6922);t.distributionTypes=[["/cosmos.distribution.v1beta1.MsgFundCommunityPool",n.MsgFundCommunityPool],["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",n.MsgSetWithdrawAddress],["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",n.MsgWithdrawDelegatorReward],["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",n.MsgWithdrawValidatorCommission]],t.isMsgWithdrawDelegatorRewardEncodeObject=function(e){return"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"===e.typeUrl}},61671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupAuthExtension=void 0;let n=r(60654),i=r(51324);t.setupAuthExtension=function(e){let t=(0,i.createProtobufRpcClient)(e),r=new n.QueryClientImpl(t);return{auth:{account:async e=>{let{account:t}=await r.Account({address:e});return t??null}}}}},62226:(e,t,r)=>{var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(93553);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},62710:(e,t)=>{"use strict";var r;
1Object.defineProperty(t,"__esModule",{value:!0}),t.BlockIdFlag=void 0,function(e){e[e.Unknown=0]="Unknown",e[e.Absent=1]="Absent",e[e.Commit=2]="Commit",e[e.Nil=3]="Nil",e[e.Unrecognized=-1]="Unrecognized"}(r=t.BlockIdFlag||(t.BlockIdFlag={}))},62776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StargateClient=t.BroadcastTxError=t.assertIsDeliverTxFailure=t.assertIsDeliverTxSuccess=t.isDeliverTxSuccess=t.isDeliverTxFailure=t.TimeoutError=void 0;let n=r(32715),i=r(25918),o=r(73297),a=r(94595),s=r(63688),d=r(7260),l=r(48236),c=r(46757),u=r(11082),p=r(51324),f=r(83804);class h extends Error{constructor(e,t){super(e),this.txId=t}}function g(e){return!!e.code}function m(e){return!g(e)}t.TimeoutError=h,t.isDeliverTxFailure=g,t.isDeliverTxSuccess=m,t.assertIsDeliverTxSuccess=function(e){if(g(e))throw Error(`Error when broadcasting tx ${e.transactionHash} at height ${e.height}. Code: ${e.code}; Raw log: ${e.rawLog}`)},t.assertIsDeliverTxFailure=function(e){if(m(e))throw Error(`Transaction ${e.transactionHash} did not fail at height ${e.height}. Code: ${e.code}; Raw log: ${e.rawLog}`)};class y extends Error{constructor(e,t,r){super(`Broadcasting transaction failed with code ${e} (codespace: ${t}). Log: ${r}`),this.code=e,this.codespace=t,this.log=r}}t.BroadcastTxError=y;class b{static async connect(e,t={}){let r=await (0,a.connectComet)(e);return b.create(r,t)}static async create(e,t={}){return new b(e,t)}constructor(e,t){e&&(this.cometClient=e,this.queryClient=p.QueryClient.withExtensions(e,u.setupAuthExtension,u.setupBankExtension,u.setupStakingExtension,u.setupTxExtension));let{accountParser:r=l.accountFromAny}=t;this.accountParser=r}getCometClient(){return this.cometClient}forceGetCometClient(){if(!this.cometClient)throw Error("Comet client not available. You cannot use online functionality in offline mode.");return this.cometClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){let e=(await this.forceGetCometClient().status()).nodeInfo.network;if(!e)throw Error("Chain ID must not be empty");this.chainId=e}return this.chainId}async getHeight(){return(await this.forceGetCometClient().status()).syncInfo.latestBlockHeight}async getAccount(e){try{let t=await this.forceGetQueryClient().auth.account(e);return t?this.accountParser(t):null}catch(e){if(/rpc error: code = NotFound/i.test(e.toString()))return null;throw e}}async getSequence(e){let t=await this.getAccount(e);if(!t)throw Error(`Account '${e}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:t.accountNumber,sequence:t.sequence}}async getBlock(e){let t=await this.forceGetCometClient().block(e);return{id:(0,i.toHex)(t.blockId.hash).toUpperCase(),header:{version:{block:new o.Uint53(t.block.header.version.block).toString(),app:new o.Uint53(t.block.header.version.app).toString()},height:t.block.header.height,chainId:t.block.header.chainId,time:(0,a.toRfc3339WithNanoseconds)(t.block.header.time)},txs:t.block.txs}}async getBalance(e,t){return this.forceGetQueryClient().bank.balance(e,t)}async getAllBalances(e){return this.forceGetQueryClient().bank.allBalances(e)}async getBalanceStaked(e){let t,r=[];do{let{delegationResponses:n,pagination:i}=await this.forceGetQueryClient().staking.delegatorDelegations(e,t),o=n||[];r.push(...o),t=i?.nextKey}while(void 0!==t&&0!==t.length);return r.reduce((e,t)=>((0,s.assert)(t.balance),null!==e?(0,n.addCoins)(e,t.balance):t.balance),null)}async getDelegation(e,t){let r;try{r=(await this.forceGetQueryClient().staking.delegation(e,t)).delegationResponse?.balance}catch(e){if(e.toString().includes("key not found"));else throw e}return r||null}async getTx(e){return(await this.txsQuery(`tx.hash='${e}'`))[0]??null}async searchTx(e){let t;if("string"==typeof e)t=e;else if((0,f.isSearchTxQueryArray)(e))t=e.map(e=>"string"==typeof e.value?`${e.key}='${e.value}'`:`${e.key}=${e.value}`).join(" AND ");
1else throw Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(t)}disconnect(){this.cometClient&&this.cometClient.disconnect()}async broadcastTx(e,t=6e4,r=3e3){let n=!1,i=setTimeout(()=>{n=!0},t),o=async e=>{if(n)throw new h(`Transaction with ID ${e} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${t/1e3} seconds.`,e);await (0,s.sleep)(r);let i=await this.getTx(e);return i?{code:i.code,height:i.height,txIndex:i.txIndex,events:i.events,rawLog:i.rawLog,transactionHash:e,msgResponses:i.msgResponses,gasUsed:i.gasUsed,gasWanted:i.gasWanted}:o(e)},a=await this.broadcastTxSync(e);return new Promise((e,t)=>o(a).then(t=>{clearTimeout(i),e(t)},e=>{clearTimeout(i),t(e)}))}async broadcastTxSync(e){let t=await this.forceGetCometClient().broadcastTxSync({tx:e});return t.code?Promise.reject(new y(t.code,t.codespace??"",t.log)):(0,i.toHex)(t.hash).toUpperCase()}async txsQuery(e){return(await this.forceGetCometClient().txSearchAll({query:e})).txs.map(e=>{let t=d.TxMsgData.decode(e.result.data??new Uint8Array);return{height:e.height,txIndex:e.index,hash:(0,i.toHex)(e.hash).toUpperCase(),code:e.result.code,events:e.result.events.map(c.fromTendermintEvent),rawLog:e.result.log||"",tx:e.tx,msgResponses:t.msgResponses,gasUsed:e.result.gasUsed,gasWanted:e.result.gasWanted}})}}t.StargateClient=b},62929:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;let a=r(25918),s=r(551),d=r(56662),l=r(20865),c=o(r(65863));function u(e){return{height:(0,l.may)(s.smallIntToApi,e.height)}}function p(e){return{minHeight:(0,l.may)(s.smallIntToApi,e.minHeight),maxHeight:(0,l.may)(s.smallIntToApi,e.maxHeight)}}function f(e){return{query:e.query,page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page),order_by:e.order_by}}function h(e){return{path:(0,l.assertNotEmpty)(e.path),data:(0,a.toHex)(e.data),height:(0,l.may)(s.smallIntToApi,e.height),prove:e.prove}}function g(e){return{tx:(0,a.toBase64)((0,l.assertNotEmpty)(e.tx))}}function m(e){return{hash:(0,a.toBase64)((0,l.assertNotEmpty)(e.hash)),prove:e.prove}}function y(e){return{query:e.query,prove:e.prove,page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page),order_by:e.order_by}}function b(e){return{height:(0,l.may)(s.smallIntToApi,e.height),page:(0,l.may)(s.smallIntToApi,e.page),per_page:(0,l.may)(s.smallIntToApi,e.per_page)}}class v{static encodeAbciInfo(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeAbciQuery(e){return(0,d.createJsonRpcRequest)(e.method,h(e.params))}static encodeBlock(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeBlockchain(e){return(0,d.createJsonRpcRequest)(e.method,p(e.params))}static encodeBlockResults(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeBlockSearch(e){return(0,d.createJsonRpcRequest)(e.method,f(e.params))}static encodeBroadcastTx(e){return(0,d.createJsonRpcRequest)(e.method,g(e.params))}static encodeCommit(e){return(0,d.createJsonRpcRequest)(e.method,u(e.params))}static encodeGenesis(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeHealth(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeNumUnconfirmedTxs(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeStatus(e){return(0,d.createJsonRpcRequest)(e.method)}static encodeSubscribe(e){let t={key:"tm.event",value:e.query.type},r=c.buildQuery({tags:[t],raw:e.query.raw});return(0,d.createJsonRpcRequest)("subscribe",{query:r})}static encodeTx(e){return(0,d.createJsonRpcRequest)(e.method,m(e.params))}static encodeTxSearch(e){return(0,d.createJsonRpcRequest)(e.method,y(e.params))}static encodeValidators(e){return(0,d.createJsonRpcRequest)(e.method,b(e.params))}}t.Params=v},63246:(e,t,r)=>{"use strict";var n=r(6257),i=r(13309),o=r(4118),a=n.rotl32,s=n.sum32,d=n.sum32_5,l=o.ft_1,c=i.BlockHash,u=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function p(){if(!(this instanceof p))return new p;c.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}n.inherits(p,c),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],p=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var h=~~(n/20),g=d(a(i,5),l(h,o,c,p),f,r[n],u[h]);f=p,p=c,c=a(o,30),o=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],p),this.h[4]=s(this.h[4],f)},p.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},63388:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.isMsgCancelUnbondingDelegationEncodeObject=t.isMsgUndelegateEncodeObject=t.isMsgEditValidatorEncodeObject=t.isMsgDelegateEncodeObject=t.isMsgCreateValidatorEncodeObject=t.isMsgBeginRedelegateEncodeObject=t.stakingTypes=void 0;let n=r(40899);t.stakingTypes=[["/cosmos.staking.v1beta1.MsgBeginRedelegate",n.MsgBeginRedelegate],["/cosmos.staking.v1beta1.MsgCreateValidator",n.MsgCreateValidator],["/cosmos.staking.v1beta1.MsgDelegate",n.MsgDelegate],["/cosmos.staking.v1beta1.MsgEditValidator",n.MsgEditValidator],["/cosmos.staking.v1beta1.MsgUndelegate",n.MsgUndelegate],["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",n.MsgCancelUnbondingDelegation]],t.isMsgBeginRedelegateEncodeObject=function(e){return"/cosmos.staking.v1beta1.MsgBeginRedelegate"===e.typeUrl},t.isMsgCreateValidatorEncodeObject=function(e){return"/cosmos.staking.v1beta1.MsgCreateValidator"===e.typeUrl},t.isMsgDelegateEncodeObject=function(e){return"/cosmos.staking.v1beta1.MsgDelegate"===e.typeUrl},t.isMsgEditValidatorEncodeObject=function(e){return"/cosmos.staking.v1beta1.MsgEditValidator"===e.typeUrl},t.isMsgUndelegateEncodeObject=function(e){return"/cosmos.staking.v1beta1.MsgUndelegate"===e.typeUrl},t.isMsgCancelUnbondingDelegationEncodeObject=function(e){return"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"===e.typeUrl}},63688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=t.isNonNullObject=t.isDefined=t.sleep=t.assertDefinedAndNotNull=t.assertDefined=t.assert=t.arrayContentStartsWith=t.arrayContentEquals=void 0;var n=r(87894);Object.defineProperty(t,"arrayContentEquals",{enumerable:!0,get:function(){return n.arrayContentEquals}}),Object.defineProperty(t,"arrayContentStartsWith",{enumerable:!0,get:function(){return n.arrayContentStartsWith}});var i=r(44094);Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return i.assert}}),Object.defineProperty(t,"assertDefined",{enumerable:!0,get:function(){return i.assertDefined}}),Object.defineProperty(t,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return i.assertDefinedAndNotNull}});var o=r(72271);Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return o.sleep}});var a=r(84321);Object.defineProperty(t,"isDefined",{enumerable:!0,get:function(){return a.isDefined}}),Object.defineProperty(t,"isNonNullObject",{enumerable:!0,get:function(){return a.isNonNullObject}}),Object.defineProperty(t,"isUint8Array",{enumerable:!0,get:function(){return a.isUint8Array}})},63794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1Wallet=void 0;let n=r(97470),i=r(25918),o=r(35559),a=r(32397),s=r(16038);class d{static async fromKey(e,t="cosmos"){let r=(await n.Secp256k1.makeKeypair(e)).pubkey;return new d(e,n.Secp256k1.compressPubkey(r),t)}constructor(e,t,r){this.privkey=e,this.pubkey=t,this.prefix=r}get address(){return(0,i.toBech32)(this.prefix,(0,o.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(e,t){if(e!==this.address)throw Error(`Address ${e} not found in wallet`);let r=new n.Sha256((0,s.serializeSignDoc)(t)).digest(),i=await n.Secp256k1.createSignature(r,this.privkey),o=new Uint8Array([...i.r(32),...i.s(32)]);return{signed:t,signature:(0,a.encodeSecp256k1Signature)(this.pubkey,o)}}}t.Secp256k1Wallet=d},63995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=t.toHex=void 0,t.toHex=function(e){let t="";for(let r of e)t+=("0"+r.toString(16)).slice(-2);return t},t.fromHex=function(e){if(e.length%2!=0)throw Error("hex string length must be a multiple of 2");let t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){let n=2*r,i=e.slice(n,n+2);if(!i.match(/[0-9a-f]{2}/i))throw Error("hex string contains invalid characters");t[r]=parseInt(i,16)}return t}},64094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageResponse=t.PageRequest=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{key:new Uint8Array,offset:BigInt(0),limit:BigInt(0),countTotal:!1,reverse:!1}}function a(){return{nextKey:new Uint8Array,total:BigInt(0)}}t.protobufPackage="cosmos.base.query.v1beta1",t.PageRequest={typeUrl:"/cosmos.base.query.v1beta1.PageRequest",encode:(e,t=n.BinaryWriter.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),e.offset!==BigInt(0)&&t.uint32(16).uint64(e.offset),e.limit!==BigInt(0)&&t.uint32(24).uint64(e.limit),!0===e.countTotal&&t.uint32(32).bool(e.countTotal),!0===e.reverse&&t.uint32(40).bool(e.reverse),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.key=r.bytes();break;case 2:a.offset=r.uint64();break;case 3:a.limit=r.uint64();break;case 4:a.countTotal=r.bool();break;case 5:a.reverse=r.bool();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();
1return(0,i.isSet)(e.key)&&(t.key=(0,i.bytesFromBase64)(e.key)),(0,i.isSet)(e.offset)&&(t.offset=BigInt(e.offset.toString())),(0,i.isSet)(e.limit)&&(t.limit=BigInt(e.limit.toString())),(0,i.isSet)(e.countTotal)&&(t.countTotal=!!e.countTotal),(0,i.isSet)(e.reverse)&&(t.reverse=!!e.reverse),t},toJSON(e){let t={};return void 0!==e.key&&(t.key=(0,i.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.offset&&(t.offset=(e.offset||BigInt(0)).toString()),void 0!==e.limit&&(t.limit=(e.limit||BigInt(0)).toString()),void 0!==e.countTotal&&(t.countTotal=e.countTotal),void 0!==e.reverse&&(t.reverse=e.reverse),t},fromPartial(e){let t=o();return t.key=e.key??new Uint8Array,void 0!==e.offset&&null!==e.offset&&(t.offset=BigInt(e.offset.toString())),void 0!==e.limit&&null!==e.limit&&(t.limit=BigInt(e.limit.toString())),t.countTotal=e.countTotal??!1,t.reverse=e.reverse??!1,t}},t.PageResponse={typeUrl:"/cosmos.base.query.v1beta1.PageResponse",encode:(e,t=n.BinaryWriter.create())=>(0!==e.nextKey.length&&t.uint32(10).bytes(e.nextKey),e.total!==BigInt(0)&&t.uint32(16).uint64(e.total),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.nextKey=r.bytes();break;case 2:o.total=r.uint64();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=a();return(0,i.isSet)(e.nextKey)&&(t.nextKey=(0,i.bytesFromBase64)(e.nextKey)),(0,i.isSet)(e.total)&&(t.total=BigInt(e.total.toString())),t},toJSON(e){let t={};return void 0!==e.nextKey&&(t.nextKey=(0,i.base64FromBytes)(void 0!==e.nextKey?e.nextKey:new Uint8Array)),void 0!==e.total&&(t.total=(e.total||BigInt(0)).toString()),t},fromPartial(e){let t=a();return t.nextKey=e.nextKey??new Uint8Array,void 0!==e.total&&null!==e.total&&(t.total=BigInt(e.total.toString())),t}}},64431:(e,t,r)=>{"use strict";var n=r(81235),i=r(17715),o=r(61107);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},64702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCrysisAminoConverters=t.isAminoMsgVerifyInvariant=void 0,t.isAminoMsgVerifyInvariant=function(e){return"cosmos-sdk/MsgVerifyInvariant"===e.type},t.createCrysisAminoConverters=function(){throw Error("Not implemented")}},65436:e=>{"use strict";e.exports=TypeError},65585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryParamsResponse=t.QueryParamsRequest=t.QueryPoolResponse=t.QueryPoolRequest=t.QueryHistoricalInfoResponse=t.QueryHistoricalInfoRequest=t.QueryDelegatorValidatorResponse=t.QueryDelegatorValidatorRequest=t.QueryDelegatorValidatorsResponse=t.QueryDelegatorValidatorsRequest=t.QueryRedelegationsResponse=t.QueryRedelegationsRequest=t.QueryDelegatorUnbondingDelegationsResponse=t.QueryDelegatorUnbondingDelegationsRequest=t.QueryDelegatorDelegationsResponse=t.QueryDelegatorDelegationsRequest=t.QueryUnbondingDelegationResponse=t.QueryUnbondingDelegationRequest=t.QueryDelegationResponse=t.QueryDelegationRequest=t.QueryValidatorUnbondingDelegationsResponse=t.QueryValidatorUnbondingDelegationsRequest=t.QueryValidatorDelegationsResponse=t.QueryValidatorDelegationsRequest=t.QueryValidatorResponse=t.QueryValidatorRequest=t.QueryValidatorsResponse=t.QueryValidatorsRequest=t.protobufPackage=void 0;let n=r(64094),i=r(29940),o=r(4696),a=r(92242);function s(){return{status:"",pagination:void 0}}function d(){return{validators:[],pagination:void 0}}function l(){return{validatorAddr:""}}function c(){return{validator:i.Validator.fromPartial({})}}function u(){return{validatorAddr:"",pagination:void 0}}function p(){return{delegationResponses:[],pagination:void 0}}function f(){return{validatorAddr:"",pagination:void 0}}function h(){return{unbondingResponses:[],pagination:void 0}}function g(){return{delegatorAddr:"",validatorAddr:""}}function m(){return{delegationResponse:void 0}}function y(){return{delegatorAddr:"",validatorAddr:""}}function b(){return{unbond:i.UnbondingDelegation.fromPartial({})}}function v(){return{delegatorAddr:"",pagination:void 0}}function S(){return{delegationResponses:[],pagination:void 0}}function A(){return{delegatorAddr:"",pagination:void 0}}function w(){return{unbondingResponses:[],pagination:void 0}}function _(){return{delegatorAddr:"",srcValidatorAddr:"",dstValidatorAddr:"",pagination:void 0}}function P(){return{redelegationResponses:[],pagination:void 0}}function k(){return{delegatorAddr:"",pagination:void 0}}function R(){return{validators:[],pagination:void 0}}function O(){return{delegatorAddr:"",validatorAddr:""}}
1function I(){return{validator:i.Validator.fromPartial({})}}function B(){return{height:BigInt(0)}}function x(){return{hist:void 0}}function E(){return{}}function T(){return{pool:i.Pool.fromPartial({})}}function N(){return{}}function C(){return{params:i.Params.fromPartial({})}}t.protobufPackage="cosmos.staking.v1beta1",t.QueryValidatorsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.status&&t.uint32(10).string(e.status),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.status=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return(0,a.isSet)(e.status)&&(t.status=String(e.status)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.status&&(t.status=e.status),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=s();return t.status=e.status??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryValidatorsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.validators)i.Validator.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=d();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.validators.push(i.Validator.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=d();return Array.isArray(e?.validators)&&(t.validators=e.validators.map(e=>i.Validator.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.validators?t.validators=e.validators.map(e=>e?i.Validator.toJSON(e):void 0):t.validators=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=d();return t.validators=e.validators?.map(e=>i.Validator.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryValidatorRequest={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.validatorAddr&&t.uint32(10).string(e.validatorAddr),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.validatorAddr=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=l();return(0,a.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),t},toJSON(e){let t={};return void 0!==e.validatorAddr&&(t.validatorAddr=e.validatorAddr),t},fromPartial(e){let t=l();return t.validatorAddr=e.validatorAddr??"",t}},t.QueryValidatorResponse={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.validator&&i.Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.validator=i.Validator.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=c();return(0,a.isSet)(e.validator)&&(t.validator=i.Validator.fromJSON(e.validator)),t},toJSON(e){let t={};return void 0!==e.validator&&(t.validator=e.validator?i.Validator.toJSON(e.validator):void 0),t},fromPartial(e){let t=c();return void 0!==e.validator&&null!==e.validator&&(t.validator=i.Validator.fromPartial(e.validator)),t}},t.QueryValidatorDelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.validatorAddr&&t.uint32(10).string(e.validatorAddr),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.validatorAddr=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=u();return(0,a.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.validatorAddr&&(t.validatorAddr=e.validatorAddr),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u();return t.validatorAddr=e.validatorAddr??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryValidatorDelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.delegationResponses)i.DelegationResponse.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=p();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.delegationResponses.push(i.DelegationResponse.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=p();return Array.isArray(e?.delegationResponses)&&(t.delegationResponses=e.delegationResponses.map(e=>i.DelegationResponse.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.delegationResponses?t.delegationResponses=e.delegationResponses.map(e=>e?i.DelegationResponse.toJSON(e):void 0):t.delegationResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=p();return t.delegationResponses=e.delegationResponses?.map(e=>i.DelegationResponse.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryValidatorUnbondingDelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.validatorAddr&&t.uint32(10).string(e.validatorAddr),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=f();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.validatorAddr=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=f();return(0,a.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.validatorAddr&&(t.validatorAddr=e.validatorAddr),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=f();return t.validatorAddr=e.validatorAddr??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryValidatorUnbondingDelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.unbondingResponses)i.UnbondingDelegation.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=h();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.unbondingResponses.push(i.UnbondingDelegation.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=h();return Array.isArray(e?.unbondingResponses)&&(t.unbondingResponses=e.unbondingResponses.map(e=>i.UnbondingDelegation.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.unbondingResponses?t.unbondingResponses=e.unbondingResponses.map(e=>e?i.UnbondingDelegation.toJSON(e):void 0):t.unbondingResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=h();return t.unbondingResponses=e.unbondingResponses?.map(e=>i.UnbondingDelegation.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryDelegationRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegationRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddr&&t.uint32(10).string(e.delegatorAddr),""!==e.validatorAddr&&t.uint32(18).string(e.validatorAddr),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddr=r.string();break;case 2:i.validatorAddr=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,a.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,a.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),t},toJSON(e){let t={};return void 0!==e.delegatorAddr&&(t.delegatorAddr=e.delegatorAddr),void 0!==e.validatorAddr&&(t.validatorAddr=e.validatorAddr),t},fromPartial(e){let t=g();return t.delegatorAddr=e.delegatorAddr??"",t.validatorAddr=e.validatorAddr??"",t}},t.QueryDelegationResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegationResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.delegationResponse&&i.DelegationResponse.encode(e.delegationResponse,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=m();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.delegationResponse=i.DelegationResponse.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=m();return(0,a.isSet)(e.delegationResponse)&&(t.delegationResponse=i.DelegationResponse.fromJSON(e.delegationResponse)),t},toJSON(e){let t={};return void 0!==e.delegationResponse&&(t.delegationResponse=e.delegationResponse?i.DelegationResponse.toJSON(e.delegationResponse):void 0),t},fromPartial(e){let t=m();return void 0!==e.delegationResponse&&null!==e.delegationResponse&&(t.delegationResponse=i.DelegationResponse.fromPartial(e.delegationResponse)),t}},t.QueryUnbondingDelegationRequest={typeUrl:"/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddr&&t.uint32(10).string(e.delegatorAddr),""!==e.validatorAddr&&t.uint32(18).string(e.validatorAddr),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddr=r.string();break;case 2:i.validatorAddr=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return(0,a.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,a.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),t},toJSON(e){let t={};return void 0!==e.delegatorAddr&&(t.delegatorAddr=e.delegatorAddr),void 0!==e.validatorAddr&&(t.validatorAddr=e.validatorAddr),t},fromPartial(e){let t=y();return t.delegatorAddr=e.delegatorAddr??"",t.validatorAddr=e.validatorAddr??"",t}},t.QueryUnbondingDelegationResponse={typeUrl:"/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.unbond&&i.UnbondingDelegation.encode(e.unbond,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=b();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.unbond=i.UnbondingDelegation.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=b();return(0,a.isSet)(e.unbond)&&(t.unbond=i.UnbondingDelegation.fromJSON(e.unbond)),t},toJSON(e){let t={};return void 0!==e.unbond&&(t.unbond=e.unbond?i.UnbondingDelegation.toJSON(e.unbond):void 0),t},fromPartial(e){let t=b();return void 0!==e.unbond&&null!==e.unbond&&(t.unbond=i.UnbondingDelegation.fromPartial(e.unbond)),t}}
1,t.QueryDelegatorDelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddr&&t.uint32(10).string(e.delegatorAddr),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=v();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.delegatorAddr=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=v();return(0,a.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.delegatorAddr&&(t.delegatorAddr=e.delegatorAddr),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=v();return t.delegatorAddr=e.delegatorAddr??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryDelegatorDelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.delegationResponses)i.DelegationResponse.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=S();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.delegationResponses.push(i.DelegationResponse.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=S();return Array.isArray(e?.delegationResponses)&&(t.delegationResponses=e.delegationResponses.map(e=>i.DelegationResponse.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.delegationResponses?t.delegationResponses=e.delegationResponses.map(e=>e?i.DelegationResponse.toJSON(e):void 0):t.delegationResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=S();return t.delegationResponses=e.delegationResponses?.map(e=>i.DelegationResponse.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryDelegatorUnbondingDelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddr&&t.uint32(10).string(e.delegatorAddr),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=A();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.delegatorAddr=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=A();return(0,a.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.delegatorAddr&&(t.delegatorAddr=e.delegatorAddr),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=A();return t.delegatorAddr=e.delegatorAddr??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryDelegatorUnbondingDelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.unbondingResponses)i.UnbondingDelegation.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=w();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.unbondingResponses.push(i.UnbondingDelegation.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=w();return Array.isArray(e?.unbondingResponses)&&(t.unbondingResponses=e.unbondingResponses.map(e=>i.UnbondingDelegation.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.unbondingResponses?t.unbondingResponses=e.unbondingResponses.map(e=>e?i.UnbondingDelegation.toJSON(e):void 0):t.unbondingResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=w();return t.unbondingResponses=e.unbondingResponses?.map(e=>i.UnbondingDelegation.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryRedelegationsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryRedelegationsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddr&&t.uint32(10).string(e.delegatorAddr),""!==e.srcValidatorAddr&&t.uint32(18).string(e.srcValidatorAddr),""!==e.dstValidatorAddr&&t.uint32(26).string(e.dstValidatorAddr),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=_();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.delegatorAddr=r.string();break;case 2:a.srcValidatorAddr=r.string();break;case 3:a.dstValidatorAddr=r.string();break;case 4:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=_();return(0,a.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,a.isSet)(e.srcValidatorAddr)&&(t.srcValidatorAddr=String(e.srcValidatorAddr)),(0,a.isSet)(e.dstValidatorAddr)&&(t.dstValidatorAddr=String(e.dstValidatorAddr)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.delegatorAddr&&(t.delegatorAddr=e.delegatorAddr),void 0!==e.srcValidatorAddr&&(t.srcValidatorAddr=e.srcValidatorAddr),void 0!==e.dstValidatorAddr&&(t.dstValidatorAddr=e.dstValidatorAddr),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=_();return t.delegatorAddr=e.delegatorAddr??"",t.srcValidatorAddr=e.srcValidatorAddr??"",t.dstValidatorAddr=e.dstValidatorAddr??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryRedelegationsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryRedelegationsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.redelegationResponses)i.RedelegationResponse.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=P();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.redelegationResponses.push(i.RedelegationResponse.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=P();return Array.isArray(e?.redelegationResponses)&&(t.redelegationResponses=e.redelegationResponses.map(e=>i.RedelegationResponse.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.redelegationResponses?t.redelegationResponses=e.redelegationResponses.map(e=>e?i.RedelegationResponse.toJSON(e):void 0):t.redelegationResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=P();return t.redelegationResponses=e.redelegationResponses?.map(e=>i.RedelegationResponse.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryDelegatorValidatorsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddr&&t.uint32(10).string(e.delegatorAddr),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=k();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.delegatorAddr=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=k();return(0,a.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.delegatorAddr&&(t.delegatorAddr=e.delegatorAddr),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=k();return t.delegatorAddr=e.delegatorAddr??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryDelegatorValidatorsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.validators)i.Validator.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=R();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.validators.push(i.Validator.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=R();return Array.isArray(e?.validators)&&(t.validators=e.validators.map(e=>i.Validator.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.validators?t.validators=e.validators.map(e=>e?i.Validator.toJSON(e):void 0):t.validators=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=R();return t.validators=e.validators?.map(e=>i.Validator.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryDelegatorValidatorRequest={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.delegatorAddr&&t.uint32(10).string(e.delegatorAddr),""!==e.validatorAddr&&t.uint32(18).string(e.validatorAddr),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=O();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.delegatorAddr=r.string();break;case 2:i.validatorAddr=r.string();break;default:r.skipType(7&e)}}return i}
1,fromJSON(e){let t=O();return(0,a.isSet)(e.delegatorAddr)&&(t.delegatorAddr=String(e.delegatorAddr)),(0,a.isSet)(e.validatorAddr)&&(t.validatorAddr=String(e.validatorAddr)),t},toJSON(e){let t={};return void 0!==e.delegatorAddr&&(t.delegatorAddr=e.delegatorAddr),void 0!==e.validatorAddr&&(t.validatorAddr=e.validatorAddr),t},fromPartial(e){let t=O();return t.delegatorAddr=e.delegatorAddr??"",t.validatorAddr=e.validatorAddr??"",t}},t.QueryDelegatorValidatorResponse={typeUrl:"/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.validator&&i.Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=I();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.validator=i.Validator.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=I();return(0,a.isSet)(e.validator)&&(t.validator=i.Validator.fromJSON(e.validator)),t},toJSON(e){let t={};return void 0!==e.validator&&(t.validator=e.validator?i.Validator.toJSON(e.validator):void 0),t},fromPartial(e){let t=I();return void 0!==e.validator&&null!==e.validator&&(t.validator=i.Validator.fromPartial(e.validator)),t}},t.QueryHistoricalInfoRequest={typeUrl:"/cosmos.staking.v1beta1.QueryHistoricalInfoRequest",encode:(e,t=o.BinaryWriter.create())=>(e.height!==BigInt(0)&&t.uint32(8).int64(e.height),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=B();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.height=r.int64():r.skipType(7&e)}return i},fromJSON(e){let t=B();return(0,a.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),t},toJSON(e){let t={};return void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),t},fromPartial(e){let t=B();return void 0!==e.height&&null!==e.height&&(t.height=BigInt(e.height.toString())),t}},t.QueryHistoricalInfoResponse={typeUrl:"/cosmos.staking.v1beta1.QueryHistoricalInfoResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.hist&&i.HistoricalInfo.encode(e.hist,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=x();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.hist=i.HistoricalInfo.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=x();return(0,a.isSet)(e.hist)&&(t.hist=i.HistoricalInfo.fromJSON(e.hist)),t},toJSON(e){let t={};return void 0!==e.hist&&(t.hist=e.hist?i.HistoricalInfo.toJSON(e.hist):void 0),t},fromPartial(e){let t=x();return void 0!==e.hist&&null!==e.hist&&(t.hist=i.HistoricalInfo.fromPartial(e.hist)),t}},t.QueryPoolRequest={typeUrl:"/cosmos.staking.v1beta1.QueryPoolRequest",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=E();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>E(),toJSON:e=>({}),fromPartial:e=>E()},t.QueryPoolResponse={typeUrl:"/cosmos.staking.v1beta1.QueryPoolResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.pool&&i.Pool.encode(e.pool,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=T();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.pool=i.Pool.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=T();return(0,a.isSet)(e.pool)&&(t.pool=i.Pool.fromJSON(e.pool)),t},toJSON(e){let t={};return void 0!==e.pool&&(t.pool=e.pool?i.Pool.toJSON(e.pool):void 0),t},fromPartial(e){let t=T();return void 0!==e.pool&&null!==e.pool&&(t.pool=i.Pool.fromPartial(e.pool)),t}},t.QueryParamsRequest={typeUrl:"/cosmos.staking.v1beta1.QueryParamsRequest",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=N();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>N(),toJSON:e=>({}),fromPartial:e=>N()},t.QueryParamsResponse={typeUrl:"/cosmos.staking.v1beta1.QueryParamsResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.params&&i.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=C();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.params=i.Params.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=C();return(0,a.isSet)(e.params)&&(t.params=i.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?i.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=C();return void 0!==e.params&&null!==e.params&&(t.params=i.Params.fromPartial(e.params)),t}};class M{constructor(e){this.rpc=e,this.Validators=this.Validators.bind(this),this.Validator=this.Validator.bind(this),this.ValidatorDelegations=this.ValidatorDelegations.bind(this),this.ValidatorUnbondingDelegations=this.ValidatorUnbondingDelegations.bind(this),this.Delegation=this.Delegation.bind(this),this.UnbondingDelegation=this.UnbondingDelegation.bind(this),this.DelegatorDelegations=this.DelegatorDelegations.bind(this),this.DelegatorUnbondingDelegations=this.DelegatorUnbondingDelegations.bind(this),this.Redelegations=this.Redelegations.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorValidator=this.DelegatorValidator.bind(this),this.HistoricalInfo=this.HistoricalInfo.bind(this),this.Pool=this.Pool.bind(this),this.Params=this.Params.bind(this)}Validators(e){let r=t.QueryValidatorsRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validators",r).then(e=>t.QueryValidatorsResponse.decode(new o.BinaryReader(e)))}Validator(e){let r=t.QueryValidatorRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validator",r).then(e=>t.QueryValidatorResponse.decode(new o.BinaryReader(e)))}ValidatorDelegations(e){let r=t.QueryValidatorDelegationsRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorDelegations",r).then(e=>t.QueryValidatorDelegationsResponse.decode(new o.BinaryReader(e)))}ValidatorUnbondingDelegations(e){let r=t.QueryValidatorUnbondingDelegationsRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorUnbondingDelegations",r).then(e=>t.QueryValidatorUnbondingDelegationsResponse.decode(new o.BinaryReader(e)))}Delegation(e){let r=t.QueryDelegationRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Delegation",r).then(e=>t.QueryDelegationResponse.decode(new o.BinaryReader(e)))}UnbondingDelegation(e){let r=t.QueryUnbondingDelegationRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","UnbondingDelegation",r).then(e=>t.QueryUnbondingDelegationResponse.decode(new o.BinaryReader(e)))}DelegatorDelegations(e){let r=t.QueryDelegatorDelegationsRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorDelegations",r).then(e=>t.QueryDelegatorDelegationsResponse.decode(new o.BinaryReader(e)))}DelegatorUnbondingDelegations(e){let r=t.QueryDelegatorUnbondingDelegationsRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorUnbondingDelegations",r).then(e=>t.QueryDelegatorUnbondingDelegationsResponse.decode(new o.BinaryReader(e)))}Redelegations(e){let r=t.QueryRedelegationsRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Redelegations",r).then(e=>t.QueryRedelegationsResponse.decode(new o.BinaryReader(e)))}DelegatorValidators(e){let r=t.QueryDelegatorValidatorsRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidators",r).then(e=>t.QueryDelegatorValidatorsResponse.decode(new o.BinaryReader(e)))}DelegatorValidator(e){let r=t.QueryDelegatorValidatorRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidator",r).then(e=>t.QueryDelegatorValidatorResponse.decode(new o.BinaryReader(e)))}HistoricalInfo(e){let r=t.QueryHistoricalInfoRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","HistoricalInfo",r).then(e=>t.QueryHistoricalInfoResponse.decode(new o.BinaryReader(e)))}Pool(e={}){let r=t.QueryPoolRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Pool",r).then(e=>t.QueryPoolResponse.decode(new o.BinaryReader(e)))}Params(e={}){let r=t.QueryParamsRequest.encode(e).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Params",r).then(e=>t.QueryParamsResponse.decode(new o.BinaryReader(e)))}}t.QueryClientImpl=M},65863:(e,t)=>{"use strict";var r,n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.buildQuery=t.SubscriptionEventType=t.Method=void 0,function(e){e.AbciInfo="abci_info",e.AbciQuery="abci_query",e.Block="block",e.Blockchain="blockchain",e.BlockResults="block_results",e.BlockSearch="block_search",e.BroadcastTxAsync="broadcast_tx_async",e.BroadcastTxSync="broadcast_tx_sync",e.BroadcastTxCommit="broadcast_tx_commit",e.Commit="commit",e.Genesis="genesis",e.Health="health",e.NumUnconfirmedTxs="num_unconfirmed_txs",e.Status="status",e.Subscribe="subscribe",e.Tx="tx",e.TxSearch="tx_search",e.Validators="validators",e.Unsubscribe="unsubscribe"}(r=t.Method||(t.Method={})),function(e){e.NewBlock="NewBlock",e.NewBlockHeader="NewBlockHeader",e.Tx="Tx"}(n=t.SubscriptionEventType||(t.SubscriptionEventType={})),t.buildQuery=function(e){return[...(e.tags?e.tags:[]).map(e=>`${e.key}='${e.value}'`),...e.raw?[e.raw]:[]].join(" AND ")}},66732:(e,t,r)=>{"use strict";var n=r(6257),i=r(78605);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},66924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryGranteeGrantsResponse=t.QueryGranteeGrantsRequest=t.QueryGranterGrantsResponse=t.QueryGranterGrantsRequest=t.QueryGrantsResponse=t.QueryGrantsRequest=t.protobufPackage=void 0;let n=r(64094),i=r(56484),o=r(4696),a=r(92242);function s(){return{granter:"",grantee:"",msgTypeUrl:"",pagination:void 0}}function d(){return{grants:[],pagination:void 0}}function l(){return{granter:"",pagination:void 0}}function c(){return{grants:[],pagination:void 0}}function u(){return{grantee:"",pagination:void 0}}function p(){return{grants:[],pagination:void 0}}t.protobufPackage="cosmos.authz.v1beta1",t.QueryGrantsRequest={typeUrl:"/cosmos.authz.v1beta1.QueryGrantsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),""!==e.msgTypeUrl&&t.uint32(26).string(e.msgTypeUrl),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.granter=r.string();break;case 2:a.grantee=r.string();break;case 3:a.msgTypeUrl=r.string();break;case 4:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return(0,a.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,a.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,a.isSet)(e.msgTypeUrl)&&(t.msgTypeUrl=String(e.msgTypeUrl)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.msgTypeUrl&&(t.msgTypeUrl=e.msgTypeUrl),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=s();return t.granter=e.granter??"",t.grantee=e.grantee??"",t.msgTypeUrl=e.msgTypeUrl??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryGrantsResponse={typeUrl:"/cosmos.authz.v1beta1.QueryGrantsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.grants)i.Grant.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=d();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.grants.push(i.Grant.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=d();return Array.isArray(e?.grants)&&(t.grants=e.grants.map(e=>i.Grant.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.grants?t.grants=e.grants.map(e=>e?i.Grant.toJSON(e):void 0):t.grants=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=d();return t.grants=e.grants?.map(e=>i.Grant.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryGranterGrantsRequest={typeUrl:"/cosmos.authz.v1beta1.QueryGranterGrantsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.granter=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=l();return(0,a.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=l();return t.granter=e.granter??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryGranterGrantsResponse={typeUrl:"/cosmos.authz.v1beta1.QueryGranterGrantsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.grants)i.GrantAuthorization.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=c();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.grants.push(i.GrantAuthorization.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=c();return Array.isArray(e?.grants)&&(t.grants=e.grants.map(e=>i.GrantAuthorization.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.grants?t.grants=e.grants.map(e=>e?i.GrantAuthorization.toJSON(e):void 0):t.grants=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=c();return t.grants=e.grants?.map(e=>i.GrantAuthorization.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryGranteeGrantsRequest={typeUrl:"/cosmos.authz.v1beta1.QueryGranteeGrantsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.grantee&&t.uint32(10).string(e.grantee),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.grantee=r.string();break;case 2:a.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=u();return(0,a.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u();return t.grantee=e.grantee??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryGranteeGrantsResponse={typeUrl:"/cosmos.authz.v1beta1.QueryGranteeGrantsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.grants)i.GrantAuthorization.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=p();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.grants.push(i.GrantAuthorization.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=p();return Array.isArray(e?.grants)&&(t.grants=e.grants.map(e=>i.GrantAuthorization.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.grants?t.grants=e.grants.map(e=>e?i.GrantAuthorization.toJSON(e):void 0):t.grants=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=p();return t.grants=e.grants?.map(e=>i.GrantAuthorization.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}};class f{constructor(e){this.rpc=e,this.Grants=this.Grants.bind(this),this.GranterGrants=this.GranterGrants.bind(this),this.GranteeGrants=this.GranteeGrants.bind(this)}Grants(e){let r=t.QueryGrantsRequest.encode(e).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","Grants",r).then(e=>t.QueryGrantsResponse.decode(new o.BinaryReader(e)))}GranterGrants(e){let r=t.QueryGranterGrantsRequest.encode(e).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","GranterGrants",r).then(e=>t.QueryGranterGrantsResponse.decode(new o.BinaryReader(e)))}GranteeGrants(e){let r=t.QueryGranteeGrantsRequest.encode(e).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","GranteeGrants",r).then(e=>t.QueryGranteeGrantsResponse.decode(new o.BinaryReader(e)))}}t.QueryClientImpl=f},67113:e=>{"use strict";e.exports=ReferenceError},67192:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryTallyResultResponse=t.QueryTallyResultRequest=t.QueryDepositsResponse=t.QueryDepositsRequest=t.QueryDepositResponse=t.QueryDepositRequest=t.QueryParamsResponse=t.QueryParamsRequest=t.QueryVotesResponse=t.QueryVotesRequest=t.QueryVoteResponse=t.QueryVoteRequest=t.QueryProposalsResponse=t.QueryProposalsRequest=t.QueryProposalResponse=t.QueryProposalRequest=t.protobufPackage=void 0;let n=r(15412),i=r(64094),o=r(4696),a=r(92242);function s(){return{proposalId:BigInt(0)}}function d(){return{proposal:n.Proposal.fromPartial({})}}function l(){return{proposalStatus:0,voter:"",depositor:"",pagination:void 0}}function c(){return{proposals:[],pagination:void 0}}function u(){return{proposalId:BigInt(0),voter:""}}function p(){return{vote:n.Vote.fromPartial({})}}function f(){return{proposalId:BigInt(0),pagination:void 0}}function h(){return{votes:[],pagination:void 0}}function g(){return{paramsType:""}}function m(){return{votingParams:n.VotingParams.fromPartial({}),depositParams:n.DepositParams.fromPartial({}),tallyParams:n.TallyParams.fromPartial({})}}function y(){return{proposalId:BigInt(0),depositor:""}}function b(){return{deposit:n.Deposit.fromPartial({})}}function v(){return{proposalId:BigInt(0),pagination:void 0}}function S(){return{deposits:[],pagination:void 0}}function A(){return{proposalId:BigInt(0)}}function w(){return{tally:n.TallyResult.fromPartial({})}}t.protobufPackage="cosmos.gov.v1beta1",t.QueryProposalRequest={typeUrl:"/cosmos.gov.v1beta1.QueryProposalRequest",encode:(e,t=o.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=s();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.proposalId=r.uint64():r.skipType(7&e)}return i},fromJSON(e){let t=s();return(0,a.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=s();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t}},t.QueryProposalResponse={typeUrl:"/cosmos.gov.v1beta1.QueryProposalResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.proposal&&n.Proposal.encode(e.proposal,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.proposal=n.Proposal.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=d();return(0,a.isSet)(e.proposal)&&(t.proposal=n.Proposal.fromJSON(e.proposal)),t},toJSON(e){let t={};return void 0!==e.proposal&&(t.proposal=e.proposal?n.Proposal.toJSON(e.proposal):void 0),t},fromPartial(e){let t=d();return void 0!==e.proposal&&null!==e.proposal&&(t.proposal=n.Proposal.fromPartial(e.proposal)),t}},t.QueryProposalsRequest={typeUrl:"/cosmos.gov.v1beta1.QueryProposalsRequest",encode:(e,t=o.BinaryWriter.create())=>(0!==e.proposalStatus&&t.uint32(8).int32(e.proposalStatus),""!==e.voter&&t.uint32(18).string(e.voter),""!==e.depositor&&t.uint32(26).string(e.depositor),void 0!==e.pagination&&i.PageRequest.encode(e.pagination,t.uint32(34).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.proposalStatus=r.int32();break;case 2:a.voter=r.string();break;case 3:a.depositor=r.string();break;case 4:a.pagination=i.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=l();return(0,a.isSet)(e.proposalStatus)&&(t.proposalStatus=(0,n.proposalStatusFromJSON)(e.proposalStatus)),(0,a.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,a.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),(0,a.isSet)(e.pagination)&&(t.pagination=i.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.proposalStatus&&(t.proposalStatus=(0,n.proposalStatusToJSON)(e.proposalStatus)),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.depositor&&(t.depositor=e.depositor),void 0!==e.pagination&&(t.pagination=e.pagination?i.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=l();return t.proposalStatus=e.proposalStatus??0,t.voter=e.voter??"",t.depositor=e.depositor??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=i.PageRequest.fromPartial(e.pagination)),t}},t.QueryProposalsResponse={typeUrl:"/cosmos.gov.v1beta1.QueryProposalsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.proposals)n.Proposal.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&i.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=c();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.proposals.push(n.Proposal.decode(r,r.uint32()));break;case 2:s.pagination=i.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=c();return Array.isArray(e?.proposals)&&(t.proposals=e.proposals.map(e=>n.Proposal.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=i.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.proposals?t.proposals=e.proposals.map(e=>e?n.Proposal.toJSON(e):void 0):t.proposals=[],void 0!==e.pagination&&(t.pagination=e.pagination?i.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=c();return t.proposals=e.proposals?.map(e=>n.Proposal.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=i.PageResponse.fromPartial(e.pagination)),t}},t.QueryVoteRequest={typeUrl:"/cosmos.gov.v1beta1.QueryVoteRequest",encode:(e,t=o.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=u();return(0,a.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,a.isSet)(e.voter)&&(t.voter=String(e.voter)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(t.voter=e.voter),t},fromPartial(e){let t=u();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t}},t.QueryVoteResponse={typeUrl:"/cosmos.gov.v1beta1.QueryVoteResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.vote&&n.Vote.encode(e.vote,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=p();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.vote=n.Vote.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=p();return(0,a.isSet)(e.vote)&&(t.vote=n.Vote.fromJSON(e.vote)),t},toJSON(e){let t={};return void 0!==e.vote&&(t.vote=e.vote?n.Vote.toJSON(e.vote):void 0),t},fromPartial(e){let t=p();return void 0!==e.vote&&null!==e.vote&&(t.vote=n.Vote.fromPartial(e.vote)),t}},t.QueryVotesRequest={typeUrl:"/cosmos.gov.v1beta1.QueryVotesRequest",encode:(e,t=o.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),void 0!==e.pagination&&i.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=f();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.proposalId=r.uint64();break;case 2:a.pagination=i.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=f();return(0,a.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,a.isSet)(e.pagination)&&(t.pagination=i.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.pagination&&(t.pagination=e.pagination?i.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=f();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),void 0!==e.pagination&&null!==e.pagination&&(t.pagination=i.PageRequest.fromPartial(e.pagination)),t}},t.QueryVotesResponse={typeUrl:"/cosmos.gov.v1beta1.QueryVotesResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.votes)n.Vote.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&i.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=h();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.votes.push(n.Vote.decode(r,r.uint32()));break;case 2:s.pagination=i.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=h();return Array.isArray(e?.votes)&&(t.votes=e.votes.map(e=>n.Vote.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=i.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.votes?t.votes=e.votes.map(e=>e?n.Vote.toJSON(e):void 0):t.votes=[],void 0!==e.pagination&&(t.pagination=e.pagination?i.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=h();return t.votes=e.votes?.map(e=>n.Vote.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=i.PageResponse.fromPartial(e.pagination)),t}},t.QueryParamsRequest={typeUrl:"/cosmos.gov.v1beta1.QueryParamsRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.paramsType&&t.uint32(10).string(e.paramsType),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.paramsType=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=g();return(0,a.isSet)(e.paramsType)&&(t.paramsType=String(e.paramsType)),t},toJSON(e){let t={};return void 0!==e.paramsType&&(t.paramsType=e.paramsType),t},fromPartial(e){let t=g();return t.paramsType=e.paramsType??"",t}},t.QueryParamsResponse={typeUrl:"/cosmos.gov.v1beta1.QueryParamsResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.votingParams&&n.VotingParams.encode(e.votingParams,t.uint32(10).fork()).ldelim(),void 0!==e.depositParams&&n.DepositParams.encode(e.depositParams,t.uint32(18).fork()).ldelim(),void 0!==e.tallyParams&&n.TallyParams.encode(e.tallyParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=m();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.votingParams=n.VotingParams.decode(r,r.uint32());break;case 2:a.depositParams=n.DepositParams.decode(r,r.uint32());break;case 3:a.tallyParams=n.TallyParams.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=m();
1return(0,a.isSet)(e.votingParams)&&(t.votingParams=n.VotingParams.fromJSON(e.votingParams)),(0,a.isSet)(e.depositParams)&&(t.depositParams=n.DepositParams.fromJSON(e.depositParams)),(0,a.isSet)(e.tallyParams)&&(t.tallyParams=n.TallyParams.fromJSON(e.tallyParams)),t},toJSON(e){let t={};return void 0!==e.votingParams&&(t.votingParams=e.votingParams?n.VotingParams.toJSON(e.votingParams):void 0),void 0!==e.depositParams&&(t.depositParams=e.depositParams?n.DepositParams.toJSON(e.depositParams):void 0),void 0!==e.tallyParams&&(t.tallyParams=e.tallyParams?n.TallyParams.toJSON(e.tallyParams):void 0),t},fromPartial(e){let t=m();return void 0!==e.votingParams&&null!==e.votingParams&&(t.votingParams=n.VotingParams.fromPartial(e.votingParams)),void 0!==e.depositParams&&null!==e.depositParams&&(t.depositParams=n.DepositParams.fromPartial(e.depositParams)),void 0!==e.tallyParams&&null!==e.tallyParams&&(t.tallyParams=n.TallyParams.fromPartial(e.tallyParams)),t}},t.QueryDepositRequest={typeUrl:"/cosmos.gov.v1beta1.QueryDepositRequest",encode:(e,t=o.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.depositor=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return(0,a.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,a.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),t},fromPartial(e){let t=y();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t}},t.QueryDepositResponse={typeUrl:"/cosmos.gov.v1beta1.QueryDepositResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.deposit&&n.Deposit.encode(e.deposit,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=b();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.deposit=n.Deposit.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=b();return(0,a.isSet)(e.deposit)&&(t.deposit=n.Deposit.fromJSON(e.deposit)),t},toJSON(e){let t={};return void 0!==e.deposit&&(t.deposit=e.deposit?n.Deposit.toJSON(e.deposit):void 0),t},fromPartial(e){let t=b();return void 0!==e.deposit&&null!==e.deposit&&(t.deposit=n.Deposit.fromPartial(e.deposit)),t}},t.QueryDepositsRequest={typeUrl:"/cosmos.gov.v1beta1.QueryDepositsRequest",encode:(e,t=o.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),void 0!==e.pagination&&i.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=v();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.proposalId=r.uint64();break;case 2:a.pagination=i.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=v();return(0,a.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,a.isSet)(e.pagination)&&(t.pagination=i.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.pagination&&(t.pagination=e.pagination?i.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=v();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),void 0!==e.pagination&&null!==e.pagination&&(t.pagination=i.PageRequest.fromPartial(e.pagination)),t}},t.QueryDepositsResponse={typeUrl:"/cosmos.gov.v1beta1.QueryDepositsResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.deposits)n.Deposit.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&i.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=S();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.deposits.push(n.Deposit.decode(r,r.uint32()));break;case 2:s.pagination=i.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=S();return Array.isArray(e?.deposits)&&(t.deposits=e.deposits.map(e=>n.Deposit.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=i.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.deposits?t.deposits=e.deposits.map(e=>e?n.Deposit.toJSON(e):void 0):t.deposits=[],void 0!==e.pagination&&(t.pagination=e.pagination?i.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=S();return t.deposits=e.deposits?.map(e=>n.Deposit.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=i.PageResponse.fromPartial(e.pagination)),t}},t.QueryTallyResultRequest={typeUrl:"/cosmos.gov.v1beta1.QueryTallyResultRequest",encode:(e,t=o.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.proposalId=r.uint64():r.skipType(7&e)}return i},fromJSON(e){let t=A();return(0,a.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=A();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t}},t.QueryTallyResultResponse={typeUrl:"/cosmos.gov.v1beta1.QueryTallyResultResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.tally&&n.TallyResult.encode(e.tally,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=w();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.tally=n.TallyResult.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=w();return(0,a.isSet)(e.tally)&&(t.tally=n.TallyResult.fromJSON(e.tally)),t},toJSON(e){let t={};return void 0!==e.tally&&(t.tally=e.tally?n.TallyResult.toJSON(e.tally):void 0),t},fromPartial(e){let t=w();return void 0!==e.tally&&null!==e.tally&&(t.tally=n.TallyResult.fromPartial(e.tally)),t}}
1;class _{constructor(e){this.rpc=e,this.Proposal=this.Proposal.bind(this),this.Proposals=this.Proposals.bind(this),this.Vote=this.Vote.bind(this),this.Votes=this.Votes.bind(this),this.Params=this.Params.bind(this),this.Deposit=this.Deposit.bind(this),this.Deposits=this.Deposits.bind(this),this.TallyResult=this.TallyResult.bind(this)}Proposal(e){let r=t.QueryProposalRequest.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposal",r).then(e=>t.QueryProposalResponse.decode(new o.BinaryReader(e)))}Proposals(e){let r=t.QueryProposalsRequest.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposals",r).then(e=>t.QueryProposalsResponse.decode(new o.BinaryReader(e)))}Vote(e){let r=t.QueryVoteRequest.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Vote",r).then(e=>t.QueryVoteResponse.decode(new o.BinaryReader(e)))}Votes(e){let r=t.QueryVotesRequest.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Votes",r).then(e=>t.QueryVotesResponse.decode(new o.BinaryReader(e)))}Params(e){let r=t.QueryParamsRequest.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Params",r).then(e=>t.QueryParamsResponse.decode(new o.BinaryReader(e)))}Deposit(e){let r=t.QueryDepositRequest.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposit",r).then(e=>t.QueryDepositResponse.decode(new o.BinaryReader(e)))}Deposits(e){let r=t.QueryDepositsRequest.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposits",r).then(e=>t.QueryDepositsResponse.decode(new o.BinaryReader(e)))}TallyResult(e){let r=t.QueryTallyResultRequest.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","TallyResult",r).then(e=>t.QueryTallyResultResponse.decode(new o.BinaryReader(e)))}}t.QueryClientImpl=_},67409:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringToPath=t.pathToString=t.Slip10=t.Slip10RawIndex=t.slip10CurveFromString=t.Slip10Curve=void 0;let o=r(25918),a=r(73297),s=i(r(95163)),d=i(r(58958)),l=r(6805),c=r(53604);!function(e){e.Secp256k1="Bitcoin seed",e.Ed25519="ed25519 seed"}(n=t.Slip10Curve||(t.Slip10Curve={})),t.slip10CurveFromString=function(e){switch(e){case n.Ed25519:return n.Ed25519;case n.Secp256k1:return n.Secp256k1;default:throw Error(`Unknown curve string: '${e}'`)}};class u extends a.Uint32{static hardened(e){return new u(e+0x80000000)}static normal(e){return new u(e)}isHardened(){return this.data>=0x80000000}}t.Slip10RawIndex=u;let p=new d.default.ec("secp256k1");class f{static derivePath(e,t,r){let n=this.master(e,t);for(let t of r)n=this.child(e,n.privkey,n.chainCode,t);return n}static master(e,t){let r=new l.Hmac(c.Sha512,(0,o.toAscii)(e)).update(t).digest(),i=r.slice(0,32),a=r.slice(32,64);return e!==n.Ed25519&&(this.isZero(i)||this.isGteN(e,i))?this.master(e,r):{chainCode:a,privkey:i}}static child(e,t,r,i){let o;if(i.isHardened()){let e=new Uint8Array([0,...t,...i.toBytesBigEndian()]);o=new l.Hmac(c.Sha512,r).update(e).digest()}else if(e===n.Ed25519)throw Error("Normal keys are not allowed with ed25519");else{let n=new Uint8Array([...f.serializedPoint(e,new s.default(t)),...i.toBytesBigEndian()]);o=new l.Hmac(c.Sha512,r).update(n).digest()}return this.childImpl(e,t,r,i,o)}static serializedPoint(e,t){if(e===n.Secp256k1)return(0,o.fromHex)(p.g.mul(t).encodeCompressed("hex"));throw Error("curve not supported")}static childImpl(e,t,r,i,o){let a=o.slice(0,32),d=o.slice(32,64),u=d;if(e===n.Ed25519)return{chainCode:u,privkey:a};let p=this.n(e),f=new s.default(a).add(new s.default(t)).mod(p),h=Uint8Array.from(f.toArray("be",32));if(this.isGteN(e,a)||this.isZero(h)){let n=new l.Hmac(c.Sha512,r).update(new Uint8Array([1,...d,...i.toBytesBigEndian()])).digest();return this.childImpl(e,t,r,i,n)}return{chainCode:u,privkey:h}}static isZero(e){return e.every(e=>0===e)}static isGteN(e,t){return new s.default(t).gte(this.n(e))}static n(e){if(e===n.Secp256k1)return new s.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);throw Error("curve not supported")}}t.Slip10=f,t.pathToString=function(e){return e.reduce((e,t)=>
1e+"/"+(t.isHardened()?`${t.toNumber()-0x80000000}'`:t.toString()),"m")},t.stringToPath=function(e){if(!e.startsWith("m"))throw Error("Path string must start with 'm'");let t=e.slice(1),r=[];for(;t;){let e=t.match(/^\/([0-9]+)('?)/);if(!e)throw Error("Syntax error while reading path component");let[n,i,o]=e,s=a.Uint53.fromString(i).toNumber();if(s>=0x80000000)throw Error("Component value too high. Must not exceed 2**31-1.");o?r.push(u.hardened(s)):r.push(u.normal(s)),t=t.slice(n.length)}return r}},67726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgRevokeAllowanceResponse=t.MsgRevokeAllowance=t.MsgGrantAllowanceResponse=t.MsgGrantAllowance=t.protobufPackage=void 0;let n=r(54573),i=r(4696),o=r(92242);function a(){return{granter:"",grantee:"",allowance:void 0}}function s(){return{}}function d(){return{granter:"",grantee:""}}function l(){return{}}t.protobufPackage="cosmos.feegrant.v1beta1",t.MsgGrantAllowance={typeUrl:"/cosmos.feegrant.v1beta1.MsgGrantAllowance",encode:(e,t=i.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.allowance&&n.Any.encode(e.allowance,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=a();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.granter=r.string();break;case 2:s.grantee=r.string();break;case 3:s.allowance=n.Any.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=a();return(0,o.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,o.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),(0,o.isSet)(e.allowance)&&(t.allowance=n.Any.fromJSON(e.allowance)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.allowance&&(t.allowance=e.allowance?n.Any.toJSON(e.allowance):void 0),t},fromPartial(e){let t=a();return t.granter=e.granter??"",t.grantee=e.grantee??"",void 0!==e.allowance&&null!==e.allowance&&(t.allowance=n.Any.fromPartial(e.allowance)),t}},t.MsgGrantAllowanceResponse={typeUrl:"/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=s();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>s(),toJSON:e=>({}),fromPartial:e=>s()},t.MsgRevokeAllowance={typeUrl:"/cosmos.feegrant.v1beta1.MsgRevokeAllowance",encode:(e,t=i.BinaryWriter.create())=>(""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=d();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.granter=r.string();break;case 2:o.grantee=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=d();return(0,o.isSet)(e.granter)&&(t.granter=String(e.granter)),(0,o.isSet)(e.grantee)&&(t.grantee=String(e.grantee)),t},toJSON(e){let t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),t},fromPartial(e){let t=d();return t.granter=e.granter??"",t.grantee=e.grantee??"",t}},t.MsgRevokeAllowanceResponse={typeUrl:"/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=l();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>l(),toJSON:e=>({}),fromPartial:e=>l()};class c{constructor(e){this.rpc=e,this.GrantAllowance=this.GrantAllowance.bind(this),this.RevokeAllowance=this.RevokeAllowance.bind(this)}GrantAllowance(e){let r=t.MsgGrantAllowance.encode(e).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","GrantAllowance",r).then(e=>t.MsgGrantAllowanceResponse.decode(new i.BinaryReader(e)))}RevokeAllowance(e){let r=t.MsgRevokeAllowance.encode(e).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","RevokeAllowance",r).then(e=>t.MsgRevokeAllowanceResponse.decode(new i.BinaryReader(e)))}}t.MsgClientImpl=c},69395:(e,t,r)=>{"use strict";var n=r(34246),i=r(32125),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},69499:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.StreamingSocket=void 0;let n=r(29268),i=r(90318);class o{constructor(e,t=1e4){this.socket=new i.SocketWrapper(e,e=>{this.eventProducerListener&&this.eventProducerListener.next(e)},e=>{this.eventProducerListener&&this.eventProducerListener.error(e)},()=>{},e=>{this.eventProducerListener&&(e.wasClean?this.eventProducerListener.complete():this.eventProducerListener.error("Socket was closed unclean"))},t),this.connected=this.socket.connected;let r={start:e=>this.eventProducerListener=e,stop:()=>this.eventProducerListener=void 0};this.events=n.Stream.create(r)}connect(){this.socket.connect()}disconnect(){this.socket.disconnect()}async send(e){return this.socket.send(e)}}t.StreamingSocket=o},69754:(e,t,r)=>{"use strict";t.sha1=r(63246),t.sha224=r(36381),t.sha256=r(40608),t.sha384=r(66732),t.sha512=r(78605)},70197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addCoins=t.parseCoins=t.coins=t.coin=void 0;let n=r(73297);function i(e,t){let r;if("number"==typeof e)try{r=new n.Uint53(e).toString()}catch(e){throw Error("Given amount is not a safe integer. Consider using a string instead to overcome the limitations of JS numbers.")}else{if(!e.match(/^[0-9]+$/))throw Error("Invalid unsigned integer string format");r=e.replace(/^0*/,"")||"0"}return{amount:r,denom:t}}t.coin=i,t.coins=function(e,t){return[i(e,t)]},t.parseCoins=function(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map(e=>{let t=e.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!t)throw Error("Got an invalid coin string");return{amount:t[1].replace(/^0+/,"")||"0",denom:t[2]}})},t.addCoins=function(e,t){if(e.denom!==t.denom)throw Error("Trying to add two coins with different denoms");return{amount:n.Decimal.fromAtomics(e.amount,0).plus(n.Decimal.fromAtomics(t.amount,0)).atomics,denom:e.denom}}},70292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReconnectingSocket=void 0;let n=r(29268),i=r(75616);class o{static calculateTimeout(e){return Math.min(2**e*100,5e3)}constructor(e,t=1e4,r){this.unconnected=!0,this.disconnected=!1,this.timeoutIndex=0,this.reconnectTimeout=null;let a={start:e=>this.eventProducerListener=e,stop:()=>this.eventProducerListener=void 0};this.events=n.Stream.create(a),this.socket=new i.QueueingStreamingSocket(e,t,r),this.socket.events.subscribe({next:e=>{this.eventProducerListener&&this.eventProducerListener.next(e)},error:e=>{this.eventProducerListener&&this.eventProducerListener.error(e)}}),this.connectionStatus=this.socket.connectionStatus,this.connectionStatus.updates.subscribe({next:e=>{e===i.ConnectionStatus.Connected&&(this.timeoutIndex=0),e===i.ConnectionStatus.Disconnected&&(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.reconnectTimeout=setTimeout(()=>this.socket.reconnect(),o.calculateTimeout(this.timeoutIndex++)))}})}connect(){if(!this.unconnected)throw Error("Cannot connect: socket has already connected");this.socket.connect(),this.unconnected=!1}disconnect(){if(this.unconnected)throw Error("Cannot disconnect: socket has not yet connected");this.socket.disconnect(),this.eventProducerListener&&this.eventProducerListener.complete(),this.disconnected=!0}queueRequest(e){if(this.disconnected)throw Error("Cannot queue request: socket has disconnected");this.socket.queueRequest(e)}}t.ReconnectingSocket=o},70370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeStdTx=t.isStdTx=void 0,t.isStdTx=function(e){let{memo:t,msg:r,fee:n,signatures:i}=e;return"string"==typeof t&&Array.isArray(r)&&"object"==typeof n&&Array.isArray(i)},t.makeStdTx=function(e,t){return{msg:e.msgs,fee:e.fee,memo:e.memo,signatures:Array.isArray(t)?t:[t]}}},70707:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.buildQuery=t.SubscriptionEventType=t.Method=void 0,function(e){e.AbciInfo="abci_info",e.AbciQuery="abci_query",e.Block="block",e.Blockchain="blockchain",e.BlockResults="block_results",e.BlockSearch="block_search",e.BroadcastTxAsync="broadcast_tx_async",e.BroadcastTxSync="broadcast_tx_sync",e.BroadcastTxCommit="broadcast_tx_commit",e.Commit="commit",e.Genesis="genesis",e.Health="health",e.NumUnconfirmedTxs="num_unconfirmed_txs",e.Status="status",e.Subscribe="subscribe",e.Tx="tx",e.TxSearch="tx_search",e.Validators="validators",e.Unsubscribe="unsubscribe"}(r=t.Method||(t.Method={})),function(e){e.NewBlock="NewBlock",e.NewBlockHeader="NewBlockHeader",e.Tx="Tx"}(n=t.SubscriptionEventType||(t.SubscriptionEventType={})),t.buildQuery=function(e){return[...(e.tags?e.tags:[]).map(e=>`${e.key}='${e.value}'`),...e.raw?[e.raw]:[]].join(" AND ")}},71903:e=>{"use strict";e.exports=Math.pow},71923:e=>{"use strict";"undefined"!=typeof self?e.exports=self:"undefined"!=typeof window?e.exports=window:e.exports=Function("return this")()},72056:(e,t,r)=>{"use strict";var n=r(75687),i=r(56772),o=r(98270);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;
1var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=0x1000000000000},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},72271:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=async function(e){return new Promise(t=>setTimeout(t,e))}},72788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJsonRpcResponse=t.parseJsonRpcSuccessResponse=t.parseJsonRpcErrorResponse=t.parseJsonRpcRequest=t.parseJsonRpcId=void 0;let n=r(96599);function i(e){if(!(0,n.isJsonCompatibleDictionary)(e))throw Error("Data must be JSON compatible dictionary");let t=e.id;return"number"!=typeof t&&"string"!=typeof t?null:t}function o(e){let t;if("number"!=typeof e.code)throw Error("Error property 'code' is not a number");if("string"!=typeof e.message)throw Error("Error property 'message' is not a string");if(void 0===e.data)t=void 0;else if((0,n.isJsonCompatibleValue)(e.data))t=e.data;else throw Error("Error property 'data' is defined but not a JSON compatible value.");return{code:e.code,message:e.message,...void 0!==t?{data:t}:{}}}function a(e){if(!(0,n.isJsonCompatibleDictionary)(e))throw Error("Data must be JSON compatible dictionary");if("2.0"!==e.jsonrpc)throw Error(`Got unexpected jsonrpc version: ${JSON.stringify(e)}`);let t=e.id;if("number"!=typeof t&&"string"!=typeof t&&null!==t)throw Error("Invalid id field");if(void 0===e.error||!(0,n.isJsonCompatibleDictionary)(e.error))throw Error("Invalid error field");return{jsonrpc:"2.0",id:t,error:o(e.error)}}function s(e){if(!(0,n.isJsonCompatibleDictionary)(e))throw Error("Data must be JSON compatible dictionary");if("2.0"!==e.jsonrpc)throw Error(`Got unexpected jsonrpc version: ${JSON.stringify(e)}`);let t=e.id;if("number"!=typeof t&&"string"!=typeof t)throw Error("Invalid id field");if(void 0===e.result)throw Error("Invalid result field");return{jsonrpc:"2.0",id:t,result:e.result}}t.parseJsonRpcId=i,t.parseJsonRpcRequest=function(e){if(!(0,n.isJsonCompatibleDictionary)(e))throw Error("Data must be JSON compatible dictionary");if("2.0"!==e.jsonrpc)throw Error(`Got unexpected jsonrpc version: ${e.jsonrpc}`);let t=i(e);if(null===t)throw Error("Invalid id field");let r=e.method;if("string"!=typeof r)throw Error("Invalid method field");if(!(0,n.isJsonCompatibleArray)(e.params)&&!(0,n.isJsonCompatibleDictionary)(e.params))throw Error("Invalid params field");return{jsonrpc:"2.0",id:t,method:r,params:e.params}},t.parseJsonRpcErrorResponse=a,t.parseJsonRpcSuccessResponse=s,t.parseJsonRpcResponse=function(e){let t;try{t=a(e)}catch(r){t=s(e)}return t}},73297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Uint32=t.Int53=t.Decimal=void 0;var n=r(75154);Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return n.Decimal}});var i=r(29588);Object.defineProperty(t,"Int53",{enumerable:!0,get:function(){return i.Int53}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return i.Uint32}}),Object.defineProperty(t,"Uint53",{enumerable:!0,get:function(){return i.Uint53}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return i.Uint64}})},73999:(e,t,r)=>{var n=null;"undefined"!=typeof WebSocket?n=WebSocket:"undefined"!=typeof MozWebSocket?n=MozWebSocket:void 0!==r.g?n=r.g.WebSocket||r.g.MozWebSocket:"undefined"!=typeof window?n=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(n=self.WebSocket||self.MozWebSocket),e.exports=n},74068:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.PermanentLockedAccount=t.PeriodicVestingAccount=t.Period=t.DelayedVestingAccount=t.ContinuousVestingAccount=t.BaseVestingAccount=t.protobufPackage=void 0;let n=r(87332),i=r(91794),o=r(4696),a=r(92242);function s(){return{baseAccount:void 0,originalVesting:[],delegatedFree:[],delegatedVesting:[],endTime:BigInt(0)}}function d(){return{baseVestingAccount:void 0,startTime:BigInt(0)}}function l(){return{baseVestingAccount:void 0}}function c(){return{length:BigInt(0),amount:[]}}function u(){return{baseVestingAccount:void 0,startTime:BigInt(0),vestingPeriods:[]}}function p(){return{baseVestingAccount:void 0}}t.protobufPackage="cosmos.vesting.v1beta1",t.BaseVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.BaseVestingAccount",encode(e,t=o.BinaryWriter.create()){for(let r of(void 0!==e.baseAccount&&n.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim(),e.originalVesting))i.Coin.encode(r,t.uint32(18).fork()).ldelim();for(let r of e.delegatedFree)i.Coin.encode(r,t.uint32(26).fork()).ldelim();for(let r of e.delegatedVesting)i.Coin.encode(r,t.uint32(34).fork()).ldelim();return e.endTime!==BigInt(0)&&t.uint32(40).int64(e.endTime),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,d=s();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:d.baseAccount=n.BaseAccount.decode(r,r.uint32());break;case 2:d.originalVesting.push(i.Coin.decode(r,r.uint32()));break;case 3:d.delegatedFree.push(i.Coin.decode(r,r.uint32()));break;case 4:d.delegatedVesting.push(i.Coin.decode(r,r.uint32()));break;case 5:d.endTime=r.int64();break;default:r.skipType(7&e)}}return d},fromJSON(e){let t=s();return(0,a.isSet)(e.baseAccount)&&(t.baseAccount=n.BaseAccount.fromJSON(e.baseAccount)),Array.isArray(e?.originalVesting)&&(t.originalVesting=e.originalVesting.map(e=>i.Coin.fromJSON(e))),Array.isArray(e?.delegatedFree)&&(t.delegatedFree=e.delegatedFree.map(e=>i.Coin.fromJSON(e))),Array.isArray(e?.delegatedVesting)&&(t.delegatedVesting=e.delegatedVesting.map(e=>i.Coin.fromJSON(e))),(0,a.isSet)(e.endTime)&&(t.endTime=BigInt(e.endTime.toString())),t},toJSON(e){let t={};return void 0!==e.baseAccount&&(t.baseAccount=e.baseAccount?n.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map(e=>e?i.Coin.toJSON(e):void 0):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map(e=>e?i.Coin.toJSON(e):void 0):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map(e=>e?i.Coin.toJSON(e):void 0):t.delegatedVesting=[],void 0!==e.endTime&&(t.endTime=(e.endTime||BigInt(0)).toString()),t},fromPartial(e){let t=s();return void 0!==e.baseAccount&&null!==e.baseAccount&&(t.baseAccount=n.BaseAccount.fromPartial(e.baseAccount)),t.originalVesting=e.originalVesting?.map(e=>i.Coin.fromPartial(e))||[],t.delegatedFree=e.delegatedFree?.map(e=>i.Coin.fromPartial(e))||[],t.delegatedVesting=e.delegatedVesting?.map(e=>i.Coin.fromPartial(e))||[],void 0!==e.endTime&&null!==e.endTime&&(t.endTime=BigInt(e.endTime.toString())),t}},t.ContinuousVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.ContinuousVestingAccount",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,r.uint32(10).fork()).ldelim(),e.startTime!==BigInt(0)&&r.uint32(16).int64(e.startTime),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=d();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.baseVestingAccount=t.BaseVestingAccount.decode(n,n.uint32());break;case 2:a.startTime=n.int64();break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=d();return(0,a.isSet)(e.baseVestingAccount)&&(r.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount)),(0,a.isSet)(e.startTime)&&(r.startTime=BigInt(e.startTime.toString())),r},toJSON(e){let r={};return void 0!==e.baseVestingAccount&&(r.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(r.startTime=(e.startTime||BigInt(0)).toString()),r},fromPartial(e){let r=d();return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount&&(r.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount)),void 0!==e.startTime&&null!==e.startTime&&(r.startTime=BigInt(e.startTime.toString())),r}},t.DelayedVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.DelayedVestingAccount",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,r.uint32(10).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=l();for(;n.pos<i;){let e=n.uint32();e>>>3==1?a.baseVestingAccount=t.BaseVestingAccount.decode(n,n.uint32()):n.skipType(7&e)}return a},fromJSON(e){let r=l();return(0,a.isSet)(e.baseVestingAccount)&&(r.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount)),r},toJSON(e){let r={};return void 0!==e.baseVestingAccount&&(r.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),r},fromPartial(e){let r=l();return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount&&(r.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount)),r}},t.Period={typeUrl:"/cosmos.vesting.v1beta1.Period",encode(e,t=o.BinaryWriter.create()){for(let r of(e.length!==BigInt(0)&&t.uint32(8).int64(e.length),e.amount))i.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:a.length=r.int64();break;case 2:a.amount.push(i.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=c();return(0,a.isSet)(e.length)&&(t.length=BigInt(e.length.toString())),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>i.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.length&&(t.length=(e.length||BigInt(0)).toString()),e.amount?t.amount=e.amount.map(e=>e?i.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=c();return void 0!==e.length&&null!==e.length&&(t.length=BigInt(e.length.toString())),t.amount=e.amount?.map(e=>i.Coin.fromPartial(e))||[],t}},t.PeriodicVestingAccount={typeUrl:"/cosmos.vesting.v1beta1.PeriodicVestingAccount",encode(e,r=o.BinaryWriter.create()){for(let n of(void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,r.uint32(10).fork()).ldelim(),e.startTime!==BigInt(0)&&r.uint32(16).int64(e.startTime),e.vestingPeriods))t.Period.encode(n,r.uint32(26).fork()).ldelim();return r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.baseVestingAccount=t.BaseVestingAccount.decode(n,n.uint32());break;case 2:a.startTime=n.int64();break;case 3:a.vestingPeriods.push(t.Period.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=u();return(0,a.isSet)(e.baseVestingAccount)&&(r.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount)),(0,a.isSet)(e.startTime)&&(r.startTime=BigInt(e.startTime.toString())),Array.isArray(e?.vestingPeriods)&&(r.vestingPeriods=e.vestingPeriods.map(e=>t.Period.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.baseVestingAccount&&(r.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(r.startTime=(e.startTime||BigInt(0)).toString()),e.vestingPeriods?r.vestingPeriods=e.vestingPeriods.map(e=>
1e?t.Period.toJSON(e):void 0):r.vestingPeriods=[],r},fromPartial(e){let r=u();return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount&&(r.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount)),void 0!==e.startTime&&null!==e.startTime&&(r.startTime=BigInt(e.startTime.toString())),r.vestingPeriods=e.vestingPeriods?.map(e=>t.Period.fromPartial(e))||[],r}},t.PermanentLockedAccount={typeUrl:"/cosmos.vesting.v1beta1.PermanentLockedAccount",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,r.uint32(10).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=p();for(;n.pos<i;){let e=n.uint32();e>>>3==1?a.baseVestingAccount=t.BaseVestingAccount.decode(n,n.uint32()):n.skipType(7&e)}return a},fromJSON(e){let r=p();return(0,a.isSet)(e.baseVestingAccount)&&(r.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount)),r},toJSON(e){let r={};return void 0!==e.baseVestingAccount&&(r.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),r},fromPartial(e){let r=p();return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount&&(r.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount)),r}}},74194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTime=t.toSeconds=t.fromSeconds=t.toRfc3339WithNanoseconds=t.fromRfc3339WithNanoseconds=void 0;let n=r(25918),i=r(73297);function o(e){let t=(0,n.fromRfc3339)(e),r=e.match(/\.(\d+)Z$/);return t.nanoseconds=parseInt((r?r[1].slice(3):"").padEnd(6,"0"),10),t}function a(e){let t=e.toISOString(),r=e.nanoseconds?.toString()??"";return`${t.slice(0,-1)}${r.padStart(6,"0")}Z`}t.fromRfc3339WithNanoseconds=o,t.toRfc3339WithNanoseconds=a,t.fromSeconds=function(e,t=0){let r=new i.Uint32(t).toNumber();if(r>0x3b9ac9ff)throw Error("Nano seconds must not exceed 999999999");let n=new Date(1e3*e+Math.floor(r/1e6));return n.nanoseconds=r%1e6,n},t.toSeconds=function(e){return{seconds:Math.floor(e.getTime()/1e3),nanos:e.getTime()%1e3*1e6+(e.nanoseconds??0)}};class s{static decode(e){return o(e)}static encode(e){return a(e)}}t.DateTime=s},74909:e=>{"use strict";e.exports=Math.min},74950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupTypes=void 0;let n=r(50556);t.groupTypes=[["/cosmos.group.v1.MsgCreateGroup",n.MsgCreateGroup],["/cosmos.group.v1.MsgCreateGroupPolicy",n.MsgCreateGroupPolicy],["/cosmos.group.v1.MsgCreateGroupWithPolicy",n.MsgCreateGroupWithPolicy],["/cosmos.group.v1.MsgExec",n.MsgExec],["/cosmos.group.v1.MsgLeaveGroup",n.MsgLeaveGroup],["/cosmos.group.v1.MsgSubmitProposal",n.MsgSubmitProposal],["/cosmos.group.v1.MsgUpdateGroupAdmin",n.MsgUpdateGroupAdmin],["/cosmos.group.v1.MsgUpdateGroupMembers",n.MsgUpdateGroupMembers],["/cosmos.group.v1.MsgUpdateGroupMetadata",n.MsgUpdateGroupMetadata],["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",n.MsgUpdateGroupPolicyAdmin],["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",n.MsgUpdateGroupPolicyDecisionPolicy],["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",n.MsgUpdateGroupPolicyMetadata],["/cosmos.group.v1.MsgVote",n.MsgVote],["/cosmos.group.v1.MsgWithdrawProposal",n.MsgWithdrawProposal]]},75154:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decimal=void 0;let i=n(r(95163)),o=100;class a{static fromUserInput(e,t){let r,n;a.verifyFractionalDigits(t);let i=e.match(/[^0-9.]/);if(i)throw Error(`Invalid character at position ${i.index+1}`);if(""===e)r="0",n="";else if(-1===e.search(/\./))r=e,n="";else{let t=e.split(".");switch(t.length){case 0:case 1:throw Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!t[1])throw Error("Fractional part missing");r=t[0],n=t[1].replace(/0+$/,"");break;default:throw Error("More than one separator found")}}if(n.length>t)throw Error("Got more fractional digits than supported");return new a(`${r}${n.padEnd(t,"0")}`,t)}static fromAtomics(e,t){return a.verifyFractionalDigits(t),new a(e,t)}static zero(e){return a.verifyFractionalDigits(e),new a("0",e)}static one(e){return a.verifyFractionalDigits(e),new a("1"+"0".repeat(e),e)}static verifyFractionalDigits(e){if(!Number.isInteger(e))throw Error("Fractional digits is not an integer");if(e<0)throw Error("Fractional digits must not be negative");if(e>o)throw Error(`Fractional digits must not exceed ${o}`)}static compare(e,t){if(e.fractionalDigits!==t.fractionalDigits)throw Error("Fractional digits do not match");return e.data.atomics.cmp(new i.default(t.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}constructor(e,t){if(!e.match(/^[0-9]+$/))throw Error("Invalid string format. Only non-negative integers in decimal representation supported.");this.data={atomics:new i.default(e),fractionalDigits:t}}clone(){return new a(this.atomics,this.fractionalDigits)}floor(){let e=new i.default(10).pow(new i.default(this.data.fractionalDigits)),t=this.data.atomics.div(e);return this.data.atomics.mod(e).isZero()?this.clone():a.fromAtomics(t.mul(e).toString(),this.fractionalDigits)}ceil(){let e=new i.default(10).pow(new i.default(this.data.fractionalDigits)),t=this.data.atomics.div(e);return this.data.atomics.mod(e).isZero()?this.clone():a.fromAtomics(t.addn(1).mul(e).toString(),this.fractionalDigits)}toString(){let e=new i.default(10).pow(new i.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),r=this.data.atomics.mod(e);if(r.isZero())return t.toString();{let e=r.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${t.toString()}.${e}`}}toFloatApproximation(){let e=Number(this.toString());if(Number.isNaN(e))throw Error("Conversion to number failed");return e}plus(e){if(this.fractionalDigits!==e.fractionalDigits)throw Error("Fractional digits do not match");return new a(this.data.atomics.add(new i.default(e.atomics)).toString(),this.fractionalDigits)}minus(e){if(this.fractionalDigits!==e.fractionalDigits)throw Error("Fractional digits do not match");let t=this.data.atomics.sub(new i.default(e.atomics));if(t.ltn(0))throw Error("Difference must not be negative");return new a(t.toString(),this.fractionalDigits)}multiply(e){return new a(this.data.atomics.mul(new i.default(e.toString())).toString(),this.fractionalDigits)}equals(e){return 0===a.compare(this,e)}isLessThan(e){return 0>a.compare(this,e)}isLessThanOrEqual(e){return 0>=a.compare(this,e)}isGreaterThan(e){return a.compare(this,e)>0}isGreaterThanOrEqual(e){return a.compare(this,e)>=0}}t.Decimal=a},75616:(e,t,r)=>{"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.QueueingStreamingSocket=t.ConnectionStatus=void 0;let i=r(8579),o=r(29268),a=r(69499);!function(e){e[e.Unconnected=0]="Unconnected",e[e.Connecting=1]="Connecting",e[e.Connected=2]="Connected",e[e.Disconnected=3]="Disconnected"}(n=t.ConnectionStatus||(t.ConnectionStatus={}));class s{constructor(e,t=1e4,r){this.queue=[],this.isProcessingQueue=!1,this.url=e,this.timeout=t,this.reconnectedHandler=r;let s={start:e=>this.eventProducerListener=e,stop:()=>this.eventProducerListener=void 0};this.events=o.Stream.create(s),this.connectionStatusProducer=new i.DefaultValueProducer(n.Unconnected),this.connectionStatus=new i.ValueAndUpdates(this.connectionStatusProducer),this.socket=new a.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:e=>{if(!this.eventProducerListener)throw Error("No event producer listener set");this.eventProducerListener.next(e)},error:()=>this.connectionStatusProducer.update(n.Disconnected)})}connect(){this.connectionStatusProducer.update(n.Connecting),this.socket.connected.then(async()=>(this.connectionStatusProducer.update(n.Connected),this.processQueue()),()=>this.connectionStatusProducer.update(n.Disconnected)),this.socket.connect()}disconnect(){this.connectionStatusProducer.update(n.Disconnected),this.socket.disconnect()}reconnect(){this.socket=new a.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:e=>{if(!this.eventProducerListener)throw Error("No event producer listener set");this.eventProducerListener.next(e)},error:()=>this.connectionStatusProducer.update(n.Disconnected)}),this.socket.connected.then(()=>{this.reconnectedHandler&&this.reconnectedHandler()}),this.connect()}getQueueLength(){return this.queue.length}queueRequest(e){this.queue.push(e),this.processQueue()}async processQueue(){let e;if(!this.isProcessingQueue&&this.connectionStatus.value===n.Connected)for(this.isProcessingQueue=!0;e=this.queue.shift();)try{await this.socket.send(e),this.isProcessingQueue=!1}catch(t){this.queue.unshift(e),this.isProcessingQueue=!1;return}}}t.QueueingStreamingSocket=s},75687:(e,t,r)=>{var n=t;n.utils=r(6257),n.common=r(13309),n.sha=r(69754),n.ripemd=r(28355),n.hmac=r(95575),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},76198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=s,t.pbkdf2Async=d;let n=r(78356),i=r(14112);function o(e,t,r,o){(0,i.ahash)(e);let{c:a,dkLen:s,asyncTick:d}=(0,i.checkOpts)({dkLen:32,asyncTick:10},o);if((0,i.anumber)(a),(0,i.anumber)(s),(0,i.anumber)(d),a<1)throw Error("iterations (c) should be >= 1");let l=(0,i.kdfInputToBytes)(t),c=(0,i.kdfInputToBytes)(r),u=new Uint8Array(s),p=n.hmac.create(e,l),f=p._cloneInto().update(c);return{c:a,dkLen:s,asyncTick:d,DK:u,PRF:p,PRFSalt:f}}function a(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),(0,i.clean)(o),r}function s(e,t,r,n){let s,{c:d,dkLen:l,DK:c,PRF:u,PRFSalt:p}=o(e,t,r,n),f=new Uint8Array(4),h=(0,i.createView)(f),g=new Uint8Array(u.outputLen);for(let e=1,t=0;t<l;e++,t+=u.outputLen){let r=c.subarray(t,t+u.outputLen);h.setInt32(0,e,!1),(s=p._cloneInto(s)).update(f).digestInto(g),r.set(g.subarray(0,r.length));for(let e=1;e<d;e++){u._cloneInto(s).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}}return a(u,p,c,s,g)}async function d(e,t,r,n){let s,{c:d,dkLen:l,asyncTick:c,DK:u,PRF:p,PRFSalt:f}=o(e,t,r,n),h=new Uint8Array(4),g=(0,i.createView)(h),m=new Uint8Array(p.outputLen);for(let e=1,t=0;t<l;e++,t+=p.outputLen){let r=u.subarray(t,t+p.outputLen);g.setInt32(0,e,!1),(s=f._cloneInto(s)).update(h).digestInto(m),r.set(m.subarray(0,r.length)),await (0,i.asyncLoop)(d-1,c,()=>{p._cloneInto(s).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]})}return a(p,f,u,s,m)}},76589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrivKey=t.PubKey=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{key:new Uint8Array}}function a(){return{key:new Uint8Array}}t.protobufPackage="cosmos.crypto.secp256k1",t.PubKey={typeUrl:"/cosmos.crypto.secp256k1.PubKey",encode:(e,t=n.BinaryWriter.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.key=r.bytes():r.skipType(7&e)}return a},fromJSON(e){let t=o();
1return(0,i.isSet)(e.key)&&(t.key=(0,i.bytesFromBase64)(e.key)),t},toJSON(e){let t={};return void 0!==e.key&&(t.key=(0,i.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial(e){let t=o();return t.key=e.key??new Uint8Array,t}},t.PrivKey={typeUrl:"/cosmos.crypto.secp256k1.PrivKey",encode:(e,t=n.BinaryWriter.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.key=r.bytes():r.skipType(7&e)}return o},fromJSON(e){let t=a();return(0,i.isSet)(e.key)&&(t.key=(0,i.bytesFromBase64)(e.key)),t},toJSON(e){let t={};return void 0!==e.key&&(t.key=(0,i.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial(e){let t=a();return t.key=e.key??new Uint8Array,t}}},76948:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},77015:e=>{"use strict";e.exports=SyntaxError},77349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Responses=t.Params=void 0;var n=r(16877);Object.defineProperty(t,"Params",{enumerable:!0,get:function(){return n.Params}});var i=r(833);Object.defineProperty(t,"Responses",{enumerable:!0,get:function(){return i.Responses}})},78040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgDepositResponse=t.MsgDeposit=t.MsgVoteWeightedResponse=t.MsgVoteWeighted=t.MsgVoteResponse=t.MsgVote=t.MsgSubmitProposalResponse=t.MsgSubmitProposal=t.protobufPackage=void 0;let n=r(54573),i=r(91794),o=r(15412),a=r(4696),s=r(92242);function d(){return{content:void 0,initialDeposit:[],proposer:""}}function l(){return{proposalId:BigInt(0)}}function c(){return{proposalId:BigInt(0),voter:"",option:0}}function u(){return{}}function p(){return{proposalId:BigInt(0),voter:"",options:[]}}function f(){return{}}function h(){return{proposalId:BigInt(0),depositor:"",amount:[]}}function g(){return{}}t.protobufPackage="cosmos.gov.v1beta1",t.MsgSubmitProposal={typeUrl:"/cosmos.gov.v1beta1.MsgSubmitProposal",encode(e,t=a.BinaryWriter.create()){for(let r of(void 0!==e.content&&n.Any.encode(e.content,t.uint32(10).fork()).ldelim(),e.initialDeposit))i.Coin.encode(r,t.uint32(18).fork()).ldelim();return""!==e.proposer&&t.uint32(26).string(e.proposer),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=d();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.content=n.Any.decode(r,r.uint32());break;case 2:s.initialDeposit.push(i.Coin.decode(r,r.uint32()));break;case 3:s.proposer=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=d();return(0,s.isSet)(e.content)&&(t.content=n.Any.fromJSON(e.content)),Array.isArray(e?.initialDeposit)&&(t.initialDeposit=e.initialDeposit.map(e=>i.Coin.fromJSON(e))),(0,s.isSet)(e.proposer)&&(t.proposer=String(e.proposer)),t},toJSON(e){let t={};return void 0!==e.content&&(t.content=e.content?n.Any.toJSON(e.content):void 0),e.initialDeposit?t.initialDeposit=e.initialDeposit.map(e=>e?i.Coin.toJSON(e):void 0):t.initialDeposit=[],void 0!==e.proposer&&(t.proposer=e.proposer),t},fromPartial(e){let t=d();return void 0!==e.content&&null!==e.content&&(t.content=n.Any.fromPartial(e.content)),t.initialDeposit=e.initialDeposit?.map(e=>i.Coin.fromPartial(e))||[],t.proposer=e.proposer??"",t}},t.MsgSubmitProposalResponse={typeUrl:"/cosmos.gov.v1beta1.MsgSubmitProposalResponse",encode:(e,t=a.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.proposalId=r.uint64():r.skipType(7&e)}return i},fromJSON(e){let t=l();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),t},fromPartial(e){let t=l();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t}},t.MsgVote={typeUrl:"/cosmos.gov.v1beta1.MsgVote",encode:(e,t=a.BinaryWriter.create())=>(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),0!==e.option&&t.uint32(24).int32(e.option),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=c();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.option=r.int32();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=c();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.voter)&&(t.voter=String(e.voter)),(0,s.isSet)(e.option)&&(t.option=(0,o.voteOptionFromJSON)(e.option)),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.option&&(t.option=(0,o.voteOptionToJSON)(e.option)),t},fromPartial(e){let t=c();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.option=e.option??0,t}},t.MsgVoteResponse={typeUrl:"/cosmos.gov.v1beta1.MsgVoteResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=u();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>u(),toJSON:e=>({}),fromPartial:e=>u()},t.MsgVoteWeighted={typeUrl:"/cosmos.gov.v1beta1.MsgVoteWeighted",encode(e,t=a.BinaryWriter.create()){for(let r of(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),e.options))o.WeightedVoteOption.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.options.push(o.WeightedVoteOption.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=p();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.voter)&&(t.voter=String(e.voter)),Array.isArray(e?.options)&&(t.options=e.options.map(e=>o.WeightedVoteOption.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(t.voter=e.voter),e.options?t.options=e.options.map(e=>e?o.WeightedVoteOption.toJSON(e):void 0):t.options=[],t},fromPartial(e){let t=p();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.voter=e.voter??"",t.options=e.options?.map(e=>o.WeightedVoteOption.fromPartial(e))||[],t}},t.MsgVoteWeightedResponse={typeUrl:"/cosmos.gov.v1beta1.MsgVoteWeightedResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=f();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>f(),toJSON:e=>({}),fromPartial:e=>f()},t.MsgDeposit={typeUrl:"/cosmos.gov.v1beta1.MsgDeposit",encode(e,t=a.BinaryWriter.create()){for(let r of(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor),e.amount))i.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.proposalId=r.uint64();break;case 2:o.depositor=r.string();break;case 3:o.amount.push(i.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=h();return(0,s.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,s.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>i.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(e=>e?i.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=h();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t.amount=e.amount?.map(e=>i.Coin.fromPartial(e))||[],t}},t.MsgDepositResponse={typeUrl:"/cosmos.gov.v1beta1.MsgDepositResponse",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>g(),toJSON:e=>({}),fromPartial:e=>g()};class m{constructor(e){this.rpc=e,this.SubmitProposal=this.SubmitProposal.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this)}SubmitProposal(e){let r=t.MsgSubmitProposal.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",r).then(e=>t.MsgSubmitProposalResponse.decode(new a.BinaryReader(e)))}Vote(e){let r=t.MsgVote.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",r).then(e=>t.MsgVoteResponse.decode(new a.BinaryReader(e)))}VoteWeighted(e){let r=t.MsgVoteWeighted.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",r).then(e=>t.MsgVoteWeightedResponse.decode(new a.BinaryReader(e)))}Deposit(e){let r=t.MsgDeposit.encode(e).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",r).then(e=>t.MsgDepositResponse.decode(new a.BinaryReader(e)))}}t.MsgClientImpl=m},78355:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.createAuthzAminoConverters=void 0,t.createAuthzAminoConverters=function(){return{}}},78356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;let n=r(14112);class i extends n.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.ahash)(e);let r=(0,n.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,o=new Uint8Array(i);o.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,n.clean)(o)}update(e){return(0,n.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,n.aexists)(this),(0,n.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=i,t.hmac=(e,t,r)=>new i(e,t).update(r).digest(),t.hmac.create=(e,t)=>new i(e,t)},78605:(e,t,r)=>{"use strict";var n=r(6257),i=r(13309),o=r(98270),a=n.rotr64_hi,s=n.rotr64_lo,d=n.shr64_hi,l=n.shr64_lo,c=n.sum64,u=n.sum64_hi,p=n.sum64_lo,f=n.sum64_4_hi,h=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,y=i.BlockHash,b=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=b,this.W=Array(160)}function S(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=0x100000000),o}function A(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=0x100000000),a}function w(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=0x100000000),o}function _(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=0x100000000),a}function P(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=0x100000000),r}function k(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}function R(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=0x100000000),r}function O(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}function I(e,t){var r=a(e,t,1)^a(e,t,8)^d(e,t,7);return r<0&&(r+=0x100000000),r}function B(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=0x100000000),r}function x(e,t){var r=a(e,t,19)^a(t,e,29)^d(e,t,6);return r<0&&(r+=0x100000000),r}function E(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=0x100000000),r}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=x(r[n-4],r[n-3]),o=E(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],d=I(r[n-30],r[n-29]),l=B(r[n-30],r[n-29]),c=r[n-32],u=r[n-31];r[n]=f(i,o,a,s,d,l,c,u),r[n+1]=h(i,o,a,s,d,l,c,u)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],d=this.h[4],l=this.h[5],f=this.h[6],h=this.h[7],y=this.h[8],b=this.h[9],v=this.h[10],I=this.h[11],B=this.h[12],x=this.h[13],E=this.h[14],T=this.h[15];o(this.k.length===r.length);for(var N=0;N<r.length;N+=2){var C=E,M=T,U=R(y,b),D=O(y,b),J=S(y,b,v,I,B,x),H=A(y,b,v,I,B,x),V=this.k[N],q=this.k[N+1],L=r[N],j=r[N+1],F=g(C,M,U,D,J,H,V,q,L,j),W=m(C,M,U,D,J,H,V,q,L,j);C=P(n,i),M=k(n,i);var Q=u(C,M,U=w(n,i,a,s,d,l),D=_(n,i,a,s,d,l)),G=p(C,M,U,D);E=B,T=x,B=v,x=I,v=y,I=b,y=u(f,h,F,W),b=p(h,h,F,W),f=d,h=l,d=a,l=s,a=n,s=i,n=u(F,W,Q,G),i=p(F,W,Q,G)}c(this.h,0,n,i),c(this.h,2,a,s),c(this.h,4,d,l),c(this.h,6,f,h),c(this.h,8,y,b),c(this.h,10,v,I),c(this.h,12,B,x),c(this.h,14,E,T)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},78772:(e,t,r)=>{"use strict";var n=r(21098),i=r(76948),o=r(32125),a=r(41542);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},79340:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.CommunityPoolSpendProposalWithDeposit=t.DelegationDelegatorReward=t.DelegatorStartingInfo=t.CommunityPoolSpendProposal=t.FeePool=t.ValidatorSlashEvents=t.ValidatorSlashEvent=t.ValidatorOutstandingRewards=t.ValidatorAccumulatedCommission=t.ValidatorCurrentRewards=t.ValidatorHistoricalRewards=t.Params=t.protobufPackage=void 0;let n=r(91794),i=r(4696),o=r(92242);function a(){return{communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1}}function s(){return{cumulativeRewardRatio:[],referenceCount:0}}function d(){return{rewards:[],period:BigInt(0)}}function l(){return{commission:[]}}function c(){return{rewards:[]}}function u(){return{validatorPeriod:BigInt(0),fraction:""}}function p(){return{validatorSlashEvents:[]}}function f(){return{communityPool:[]}}function h(){return{title:"",description:"",recipient:"",amount:[]}}function g(){return{previousPeriod:BigInt(0),stake:"",height:BigInt(0)}}function m(){return{validatorAddress:"",reward:[]}}function y(){return{title:"",description:"",recipient:"",amount:"",deposit:""}}t.protobufPackage="cosmos.distribution.v1beta1",t.Params={typeUrl:"/cosmos.distribution.v1beta1.Params",encode:(e,t=i.BinaryWriter.create())=>(""!==e.communityTax&&t.uint32(10).string(e.communityTax),""!==e.baseProposerReward&&t.uint32(18).string(e.baseProposerReward),""!==e.bonusProposerReward&&t.uint32(26).string(e.bonusProposerReward),!0===e.withdrawAddrEnabled&&t.uint32(32).bool(e.withdrawAddrEnabled),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.communityTax=r.string();break;case 2:o.baseProposerReward=r.string();break;case 3:o.bonusProposerReward=r.string();break;case 4:o.withdrawAddrEnabled=r.bool();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=a();return(0,o.isSet)(e.communityTax)&&(t.communityTax=String(e.communityTax)),(0,o.isSet)(e.baseProposerReward)&&(t.baseProposerReward=String(e.baseProposerReward)),(0,o.isSet)(e.bonusProposerReward)&&(t.bonusProposerReward=String(e.bonusProposerReward)),(0,o.isSet)(e.withdrawAddrEnabled)&&(t.withdrawAddrEnabled=!!e.withdrawAddrEnabled),t},toJSON(e){let t={};return void 0!==e.communityTax&&(t.communityTax=e.communityTax),void 0!==e.baseProposerReward&&(t.baseProposerReward=e.baseProposerReward),void 0!==e.bonusProposerReward&&(t.bonusProposerReward=e.bonusProposerReward),void 0!==e.withdrawAddrEnabled&&(t.withdrawAddrEnabled=e.withdrawAddrEnabled),t},fromPartial(e){let t=a();return t.communityTax=e.communityTax??"",t.baseProposerReward=e.baseProposerReward??"",t.bonusProposerReward=e.bonusProposerReward??"",t.withdrawAddrEnabled=e.withdrawAddrEnabled??!1,t}},t.ValidatorHistoricalRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorHistoricalRewards",encode(e,t=i.BinaryWriter.create()){for(let r of e.cumulativeRewardRatio)n.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return 0!==e.referenceCount&&t.uint32(16).uint32(e.referenceCount),t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.cumulativeRewardRatio.push(n.DecCoin.decode(r,r.uint32()));break;case 2:a.referenceCount=r.uint32();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return Array.isArray(e?.cumulativeRewardRatio)&&(t.cumulativeRewardRatio=e.cumulativeRewardRatio.map(e=>n.DecCoin.fromJSON(e))),(0,o.isSet)(e.referenceCount)&&(t.referenceCount=Number(e.referenceCount)),t},toJSON(e){let t={};return e.cumulativeRewardRatio?t.cumulativeRewardRatio=e.cumulativeRewardRatio.map(e=>e?n.DecCoin.toJSON(e):void 0):t.cumulativeRewardRatio=[],void 0!==e.referenceCount&&(t.referenceCount=Math.round(e.referenceCount)),t},fromPartial(e){let t=s();return t.cumulativeRewardRatio=e.cumulativeRewardRatio?.map(e=>n.DecCoin.fromPartial(e))||[],t.referenceCount=e.referenceCount??0,t}},t.ValidatorCurrentRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorCurrentRewards",encode(e,t=i.BinaryWriter.create()){for(let r of e.rewards)n.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return e.period!==BigInt(0)&&t.uint32(16).uint64(e.period),t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.rewards.push(n.DecCoin.decode(r,r.uint32()));break;case 2:a.period=r.uint64();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=d();return Array.isArray(e?.rewards)&&(t.rewards=e.rewards.map(e=>n.DecCoin.fromJSON(e))),(0,o.isSet)(e.period)&&(t.period=BigInt(e.period.toString())),t},toJSON(e){let t={};return e.rewards?t.rewards=e.rewards.map(e=>e?n.DecCoin.toJSON(e):void 0):t.rewards=[],void 0!==e.period&&(t.period=(e.period||BigInt(0)).toString()),t},fromPartial(e){let t=d();return t.rewards=e.rewards?.map(e=>n.DecCoin.fromPartial(e))||[],void 0!==e.period&&null!==e.period&&(t.period=BigInt(e.period.toString())),t}},t.ValidatorAccumulatedCommission={typeUrl:"/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission",encode(e,t=i.BinaryWriter.create()){for(let r of e.commission)n.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<o;){let e=r.uint32();e>>>3==1?a.commission.push(n.DecCoin.decode(r,r.uint32())):r.skipType(7&e)}return a},fromJSON(e){let t=l();return Array.isArray(e?.commission)&&(t.commission=e.commission.map(e=>n.DecCoin.fromJSON(e))),t},toJSON(e){let t={};return e.commission?t.commission=e.commission.map(e=>e?n.DecCoin.toJSON(e):void 0):t.commission=[],t},fromPartial(e){let t=l();return t.commission=e.commission?.map(e=>n.DecCoin.fromPartial(e))||[],t}},t.ValidatorOutstandingRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorOutstandingRewards",encode(e,t=i.BinaryWriter.create()){for(let r of e.rewards)n.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<o;){let e=r.uint32();e>>>3==1?a.rewards.push(n.DecCoin.decode(r,r.uint32())):r.skipType(7&e)}return a},fromJSON(e){let t=c();return Array.isArray(e?.rewards)&&(t.rewards=e.rewards.map(e=>n.DecCoin.fromJSON(e))),t},toJSON(e){let t={};return e.rewards?t.rewards=e.rewards.map(e=>e?n.DecCoin.toJSON(e):void 0):t.rewards=[],t},fromPartial(e){let t=c();return t.rewards=e.rewards?.map(e=>n.DecCoin.fromPartial(e))||[],t}},t.ValidatorSlashEvent={typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEvent",encode:(e,t=i.BinaryWriter.create())=>(e.validatorPeriod!==BigInt(0)&&t.uint32(8).uint64(e.validatorPeriod),""!==e.fraction&&t.uint32(18).string(e.fraction),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.validatorPeriod=r.uint64();break;case 2:o.fraction=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=u();
1return(0,o.isSet)(e.validatorPeriod)&&(t.validatorPeriod=BigInt(e.validatorPeriod.toString())),(0,o.isSet)(e.fraction)&&(t.fraction=String(e.fraction)),t},toJSON(e){let t={};return void 0!==e.validatorPeriod&&(t.validatorPeriod=(e.validatorPeriod||BigInt(0)).toString()),void 0!==e.fraction&&(t.fraction=e.fraction),t},fromPartial(e){let t=u();return void 0!==e.validatorPeriod&&null!==e.validatorPeriod&&(t.validatorPeriod=BigInt(e.validatorPeriod.toString())),t.fraction=e.fraction??"",t}},t.ValidatorSlashEvents={typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEvents",encode(e,r=i.BinaryWriter.create()){for(let n of e.validatorSlashEvents)t.ValidatorSlashEvent.encode(n,r.uint32(10).fork()).ldelim();return r},decode(e,r){let n=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===r?n.len:n.pos+r,a=p();for(;n.pos<o;){let e=n.uint32();e>>>3==1?a.validatorSlashEvents.push(t.ValidatorSlashEvent.decode(n,n.uint32())):n.skipType(7&e)}return a},fromJSON(e){let r=p();return Array.isArray(e?.validatorSlashEvents)&&(r.validatorSlashEvents=e.validatorSlashEvents.map(e=>t.ValidatorSlashEvent.fromJSON(e))),r},toJSON(e){let r={};return e.validatorSlashEvents?r.validatorSlashEvents=e.validatorSlashEvents.map(e=>e?t.ValidatorSlashEvent.toJSON(e):void 0):r.validatorSlashEvents=[],r},fromPartial(e){let r=p();return r.validatorSlashEvents=e.validatorSlashEvents?.map(e=>t.ValidatorSlashEvent.fromPartial(e))||[],r}},t.FeePool={typeUrl:"/cosmos.distribution.v1beta1.FeePool",encode(e,t=i.BinaryWriter.create()){for(let r of e.communityPool)n.DecCoin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=f();for(;r.pos<o;){let e=r.uint32();e>>>3==1?a.communityPool.push(n.DecCoin.decode(r,r.uint32())):r.skipType(7&e)}return a},fromJSON(e){let t=f();return Array.isArray(e?.communityPool)&&(t.communityPool=e.communityPool.map(e=>n.DecCoin.fromJSON(e))),t},toJSON(e){let t={};return e.communityPool?t.communityPool=e.communityPool.map(e=>e?n.DecCoin.toJSON(e):void 0):t.communityPool=[],t},fromPartial(e){let t=f();return t.communityPool=e.communityPool?.map(e=>n.DecCoin.fromPartial(e))||[],t}},t.CommunityPoolSpendProposal={typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",encode(e,t=i.BinaryWriter.create()){for(let r of(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.recipient&&t.uint32(26).string(e.recipient),e.amount))n.Coin.encode(r,t.uint32(34).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=h();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.title=r.string();break;case 2:a.description=r.string();break;case 3:a.recipient=r.string();break;case 4:a.amount.push(n.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=h();return(0,o.isSet)(e.title)&&(t.title=String(e.title)),(0,o.isSet)(e.description)&&(t.description=String(e.description)),(0,o.isSet)(e.recipient)&&(t.recipient=String(e.recipient)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>n.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.recipient&&(t.recipient=e.recipient),e.amount?t.amount=e.amount.map(e=>e?n.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=h();return t.title=e.title??"",t.description=e.description??"",t.recipient=e.recipient??"",t.amount=e.amount?.map(e=>n.Coin.fromPartial(e))||[],t}},t.DelegatorStartingInfo={typeUrl:"/cosmos.distribution.v1beta1.DelegatorStartingInfo",encode:(e,t=i.BinaryWriter.create())=>(e.previousPeriod!==BigInt(0)&&t.uint32(8).uint64(e.previousPeriod),""!==e.stake&&t.uint32(18).string(e.stake),e.height!==BigInt(0)&&t.uint32(24).uint64(e.height),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.previousPeriod=r.uint64();break;case 2:o.stake=r.string();break;case 3:o.height=r.uint64();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=g();
1return(0,o.isSet)(e.previousPeriod)&&(t.previousPeriod=BigInt(e.previousPeriod.toString())),(0,o.isSet)(e.stake)&&(t.stake=String(e.stake)),(0,o.isSet)(e.height)&&(t.height=BigInt(e.height.toString())),t},toJSON(e){let t={};return void 0!==e.previousPeriod&&(t.previousPeriod=(e.previousPeriod||BigInt(0)).toString()),void 0!==e.stake&&(t.stake=e.stake),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),t},fromPartial(e){let t=g();return void 0!==e.previousPeriod&&null!==e.previousPeriod&&(t.previousPeriod=BigInt(e.previousPeriod.toString())),t.stake=e.stake??"",void 0!==e.height&&null!==e.height&&(t.height=BigInt(e.height.toString())),t}},t.DelegationDelegatorReward={typeUrl:"/cosmos.distribution.v1beta1.DelegationDelegatorReward",encode(e,t=i.BinaryWriter.create()){for(let r of(""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),e.reward))n.DecCoin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=m();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.validatorAddress=r.string();break;case 2:a.reward.push(n.DecCoin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=m();return(0,o.isSet)(e.validatorAddress)&&(t.validatorAddress=String(e.validatorAddress)),Array.isArray(e?.reward)&&(t.reward=e.reward.map(e=>n.DecCoin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),e.reward?t.reward=e.reward.map(e=>e?n.DecCoin.toJSON(e):void 0):t.reward=[],t},fromPartial(e){let t=m();return t.validatorAddress=e.validatorAddress??"",t.reward=e.reward?.map(e=>n.DecCoin.fromPartial(e))||[],t}},t.CommunityPoolSpendProposalWithDeposit={typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",encode:(e,t=i.BinaryWriter.create())=>(""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.recipient&&t.uint32(26).string(e.recipient),""!==e.amount&&t.uint32(34).string(e.amount),""!==e.deposit&&t.uint32(42).string(e.deposit),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.title=r.string();break;case 2:o.description=r.string();break;case 3:o.recipient=r.string();break;case 4:o.amount=r.string();break;case 5:o.deposit=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=y();return(0,o.isSet)(e.title)&&(t.title=String(e.title)),(0,o.isSet)(e.description)&&(t.description=String(e.description)),(0,o.isSet)(e.recipient)&&(t.recipient=String(e.recipient)),(0,o.isSet)(e.amount)&&(t.amount=String(e.amount)),(0,o.isSet)(e.deposit)&&(t.deposit=String(e.deposit)),t},toJSON(e){let t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.recipient&&(t.recipient=e.recipient),void 0!==e.amount&&(t.amount=e.amount),void 0!==e.deposit&&(t.deposit=e.deposit),t},fromPartial(e){let t=y();return t.title=e.title??"",t.description=e.description??"",t.recipient=e.recipient??"",t.amount=e.amount??"",t.deposit=e.deposit??"",t}}},79482:e=>{"use strict";e.exports=EvalError},79863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VoteType=t.broadcastTxSyncSuccess=t.broadcastTxCommitSuccess=t.SubscriptionEventType=t.Method=t.Comet38Client=void 0;var n=r(89183);Object.defineProperty(t,"Comet38Client",{enumerable:!0,get:function(){return n.Comet38Client}});var i=r(70707);Object.defineProperty(t,"Method",{enumerable:!0,get:function(){return i.Method}}),Object.defineProperty(t,"SubscriptionEventType",{enumerable:!0,get:function(){return i.SubscriptionEventType}});var o=r(91231);Object.defineProperty(t,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return o.broadcastTxCommitSuccess}}),Object.defineProperty(t,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return o.broadcastTxSyncSuccess}}),Object.defineProperty(t,"VoteType",{enumerable:!0,get:function(){return o.VoteType}})},79864:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1486),s=Object.prototype.propertyIsEnumerable,d=!s.call({toString:null},"toString"),l=s.call(function(){}
1,"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},p={$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},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),h=function(e){if("undefined"==typeof window||!f)return u(e);try{return u(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),u=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var p=l&&r;if(s&&e.length>0&&!i.call(e,0))for(var f=0;f<e.length;++f)u.push(String(f));if(n&&e.length>0)for(var g=0;g<e.length;++g)u.push(String(g));else for(var m in e)!(p&&"prototype"===m)&&i.call(e,m)&&u.push(String(m));if(d)for(var y=h(e),b=0;b<c.length;++b)!(y&&"constructor"===c[b])&&i.call(e,c[b])&&u.push(c[b]);return u}}e.exports=n},80194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utf8Write=t.utf8Read=t.utf8Length=void 0,t.utf8Length=function(e){let t=0,r=0;for(let n=0;n<e.length;++n)(r=e.charCodeAt(n))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(n+1))==56320?(++n,t+=4):t+=3;return t},t.utf8Read=function(e,t,r){if(r-t<1)return"";let n=[],i=[],o=0,a;for(;t<r;)(a=e[t++])<128?n[o++]=a:a>191&&a<224?n[o++]=(31&a)<<6|63&e[t++]:a>239&&a<365?(a=((7&a)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,n[o++]=55296+(a>>10),n[o++]=56320+(1023&a)):n[o++]=(15&a)<<12|(63&e[t++])<<6|63&e[t++],o>8191&&((i||(i=[])).push(String.fromCharCode(...n)),o=0);return i?(o&&i.push(String.fromCharCode(...n.slice(0,o))),i.join("")):String.fromCharCode(...n.slice(0,o))},t.utf8Write=function(e,t,r){let n,i,o=r;for(let o=0;o<e.length;++o)(n=e.charCodeAt(o))<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:((64512&n)==55296&&(64512&(i=e.charCodeAt(o+1)))==56320?(n=65536+((1023&n)<<10)+(1023&i),++o,t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128);return r-o}},80305:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupMintExtension=void 0;let n=r(63688),i=r(13864),o=r(51324);t.setupMintExtension=function(e){let t=(0,o.createProtobufRpcClient)(e),r=new i.QueryClientImpl(t);return{mint:{params:async()=>{let{params:e}=await r.Params({});return(0,n.assert)(e),{blocksPerYear:e.blocksPerYear,goalBonded:(0,o.decodeCosmosSdkDecFromProto)(e.goalBonded),inflationMin:(0,o.decodeCosmosSdkDecFromProto)(e.inflationMin),inflationMax:(0,o.decodeCosmosSdkDecFromProto)(e.inflationMax),inflationRateChange:(0,o.decodeCosmosSdkDecFromProto)(e.inflationRateChange),mintDenom:e.mintDenom}},inflation:async()=>{let{inflation:e}=await r.Inflation({});return(0,o.decodeCosmosSdkDecFromProto)(e)},annualProvisions:async()=>{let{annualProvisions:e}=await r.AnnualProvisions({});return(0,o.decodeCosmosSdkDecFromProto)(e)}}}}},80587:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.VoteType=t.broadcastTxCommitSuccess=t.broadcastTxSyncSuccess=void 0,t.broadcastTxSyncSuccess=function(e){return 0===e.code},t.broadcastTxCommitSuccess=function(e){return 0===e.checkTx.code&&!!e.deliverTx&&0===e.deliverTx.code},function(e){e[e.PreVote=1]="PreVote",e[e.PreCommit=2]="PreCommit"}(r=t.VoteType||(t.VoteType={}))},80846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstEvent=t.toListPromise=t.fromListPromise=void 0;let n=r(29268);async function i(e,t){return new Promise((r,n)=>{if(0===t)return void r([]);let i=[];e.take(t).subscribe({next:e=>{i.push(e),i.length===t&&r(i)},complete:()=>{n(`Stream completed before all events could be collected. Collected ${i.length}, expected ${t}`)},error:e=>n(e)})})}t.fromListPromise=function(e){let t={start:t=>{e.then(e=>{for(let r of e)t.next(r);t.complete()}).catch(e=>t.error(e))},stop:()=>{}};return n.Stream.create(t)},t.toListPromise=i,t.firstEvent=async function(e){return(await i(e,1))[0]}},81235:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},81336:(e,t,r)=>{"use strict";var n=r(91697),i=r(72056),o=r(95488),a=r(23071),s=r(62226),d=o.assert,l=r(47115),c=r(9982);function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(d(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.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}
1e.exports=u,u.prototype.keyPair=function(e){return new l(this,e)},u.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},u.prototype._truncateToN=function(e,t,r){if(n.isBN(e)||"number"==typeof e)i=(e=new n(e,16)).byteLength();else if("object"==typeof e)i=e.length,e=new n(e,16);else{var i,o=e.toString();i=o.length+1>>>1,e=new n(o,16)}"number"!=typeof r&&(r=8*i);var a=r-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,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof e&&"number"!=typeof e&&!n.isBN(e)){d("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),d(e.length>>>0===e.length);for(var a=0;a<e.length;a++)d((255&e[a])===e[a])}t=this.keyFromPrivate(t,r),d(!(e=this._truncateToN(e,!1,o.msgBitLength)).isNeg(),"Can not sign a negative message");var s=this.n.byteLength(),l=t.getPrivate().toArray("be",s),u=e.toArray("be",s);d(new n(u).eq(e),"Can not sign message");for(var p=new i({hash:this.hash,entropy:l,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),h=0;;h++){var g=o.k?o.k(h):new n(p.generate(this.n.byteLength()));if(0>=(g=this._truncateToN(g,!0)).cmpn(1)||g.cmp(f)>=0)continue;var m=this.g.mul(g);if(!m.isInfinity()){var y=m.getX(),b=y.umod(this.n);if(0!==b.cmpn(0)){var v=g.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var S=!!m.getY().isOdd()|2*(0!==y.cmp(b));return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),S^=1),new c({r:b,s:v,recoveryParam:S})}}}}},u.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o,a=(t=new c(t,"hex")).r,s=t.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var d=s.invm(this.n),l=d.mul(e).umod(this.n),u=d.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(l,r.getPublic(),u)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(l,r.getPublic(),u)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},u.prototype.recoverPubKey=function(e,t,r,i){d((3&r)===r,"The recovery param is more than two bits"),t=new c(t,i);var o=this.n,a=new n(e),s=t.r,l=t.s,u=1&r,p=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&p)throw Error("Unable to find sencond key candinate");s=p?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var f=t.r.invm(o),h=o.sub(a).mul(f).umod(o),g=l.mul(f).umod(o);return this.g.mulAdd(h,s,g)},u.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new c(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},81379:(e,t,r)=>{"use strict";let n,i;var o=r(40459),a=r(60996).Buffer;function s(e,t){return function(){return e.apply(t,arguments)}}let{toString:d}=Object.prototype,{getPrototypeOf:l}=Object,{iterator:c,toStringTag:u}=Symbol,p=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),f=(e,t)=>{let r=e,n=[];for(;null!=r&&r!==Object.prototype&&-1===n.indexOf(r);){if(n.push(r),p(r,t))return!0;r=l(r)}return!1},h=(e,t)=>null!=e&&f(e,t)?e[t]:void 0,g=(e=>t=>{let r=d.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),m=e=>(e=e.toLowerCase(),t=>g(t)===e),y=e=>t=>typeof t===e,{isArray:b}=Array,v=y("undefined");function S(e){return null!==e&&!v(e)&&null!==e.constructor&&!v(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let A=m("ArrayBuffer");function w(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&A(e.buffer)}let _=y("string"),P=y("function"),k=y("number"),R=e=>null!==e&&"object"==typeof e,O=e=>!0===e||!1===e,I=e=>{if(!R(e))return!1;let t=l(e);return(null===t||t===Object.prototype||null===l(t))&&!f(e,u)&&!f(e,c)},B=e=>{if(!R(e)||S(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},x=m("Date"),E=m("File"),T=e=>!!(e&&void 0!==e.uri),N=e=>e&&void 0!==e.getParts,C=m("Blob"),M=m("FileList"),U=e=>R(e)&&P(e.pipe),D=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{}}(),J=void 0!==D.FormData?D.FormData:void 0,H=e=>{if(!e)return!1;if(J&&e instanceof J)return!0;let t=l(e);if(!t||t===Object.prototype||!P(e.append))return!1;let r=g(e);return"formdata"===r||"object"===r&&P(e.toString)&&"[object FormData]"===e.toString()},V=m("URLSearchParams"),[q,L,j,F]=["ReadableStream","Request","Response","Headers"].map(m),W=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Q(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),b(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(S(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}function G(e,t){let r;if(S(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,K=e=>!v(e)&&e!==z;function Y(...e){let{caseless:t,skipUndefined:r}=K(this)&&this||{},n={},i=(e,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let o=t&&"string"==typeof i&&G(n,i)||i,a=p(n,o)?n[o]:void 0;I(a)&&I(e)?n[o]=Y(a,e):I(e)?n[o]=Y({},e):b(e)?n[o]=e.slice():r&&v(e)||(n[o]=e)};for(let t=0,r=e.length;t<r;t++){let r=e[t];if(!r||S(r)||(Q(r,i),"object"!=typeof r||b(r)))continue;let n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){let t=n[e];ed.call(r,t)&&i(r[t],t)}}return n}let Z=(e,t,r,{allOwnKeys:n}={})=>(Q(t,(t,n)=>{r&&P(t)?Object.defineProperty(e,n,{__proto__:null,value:s(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),X=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),$=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
1configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},ee=(e,t,r,n)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&l(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},et=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},er=e=>{if(!e)return null;if(b(e))return e;let t=e.length;if(!k(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},en=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&l(Uint8Array)),ei=(e,t)=>{let r,n=(e&&e[c]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},eo=(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},ea=m("HTMLFormElement"),es=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),{propertyIsEnumerable:ed}=Object.prototype,el=m("RegExp"),ec=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Q(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},eu=e=>{ec(e,(t,r)=>{if(P(e)&&["arguments","caller","callee"].includes(r))return!1;if(P(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ep=(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(b(e)?e:String(e).split(t)),r},ef=()=>{},eh=(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t;function eg(e){return!!(e&&P(e.append)&&"FormData"===e[u]&&e[c])}let em=e=>{let t=new WeakSet,r=e=>{if(R(e)){if(t.has(e))return;if(S(e))return e;if(!("toJSON"in e)){t.add(e);let n=b(e)?[]:{};return Q(e,(e,t)=>{let i=r(e);v(i)||(n[t]=i)}),t.delete(e),n}}return e};return r(e)},ey=m("AsyncFunction"),eb=e=>e&&(R(e)||P(e))&&P(e.then)&&P(e.catch),ev=(n="function"==typeof setImmediate,i=P(z.postMessage),n?setImmediate:i?((e,t)=>(z.addEventListener("message",({source:r,data:n})=>{r===z&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),z.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),eS="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):void 0!==o&&o.nextTick||ev,eA=e=>null!=e&&P(e[c]),ew=e=>null!=e&&f(e,c)&&eA(e);var e_={isArray:b,isArrayBuffer:A,isBuffer:S,isFormData:H,isArrayBufferView:w,isString:_,isNumber:k,isBoolean:O,isObject:R,isPlainObject:I,isEmptyObject:B,isReadableStream:q,isRequest:L,isResponse:j,isHeaders:F,isUndefined:v,isDate:x,isFile:E,isReactNativeBlob:T,isReactNative:N,isBlob:C,isRegExp:el,isFunction:P,isStream:U,isURLSearchParams:V,isTypedArray:en,isFileList:M,forEach:Q,merge:Y,extend:Z,trim:W,stripBOM:X,inherits:$,toFlatObject:ee,kindOf:g,kindOfTest:m,endsWith:et,toArray:er,forEachEntry:ei,matchAll:eo,isHTMLForm:ea,hasOwnProperty:p,hasOwnProp:p,hasOwnInPrototypeChain:f,getSafeProp:h,reduceDescriptors:ec,freezeMethods:eu,toObjectSet:ep,toCamelCase:es,noop:ef,toFiniteNumber:eh,findKey:G,global:z,isContextDefined:K,isSpecCompliantForm:eg,toJSONObject:em,isAsyncFn:ey,isThenable:eb,setImmediate:ev,asap:eS,isIterable:eA,isSafeIterable:ew};let eP=e_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ek=e=>{let t,r,n,i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&eP[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};function eR(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}let eO=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eI=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function eB(e,t){return e_.isArray(e)?e.map(e=>eB(e,t)):eR(String(e).replace(t,""))}let ex=e=>eB(e,eO),eE=e=>eB(e,eI);function eT(e){let t=Object.create(null);return e_.forEach(e.toJSON(),(e,r)=>{t[r]=eE(e)}),t}let eN=Symbol("internals");function eC(e){return e&&String(e).trim().toLowerCase()}function eM(e){return!1===e||null==e?e:e_.isArray(e)?e.map(eM):ex(String(e))}function eU(e){let t,r=Object.create(null),n=/([^\s,;
1=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}let eD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eJ(e,t,r,n,i){if(e_.isFunction(n))return n.call(this,t,r);if(i&&(t=r),e_.isString(t)){if(e_.isString(n))return -1!==t.indexOf(n);if(e_.isRegExp(n))return n.test(t)}}function eH(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function eV(e,t){let r=e_.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}class eq{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eC(t);if(!i)return;let o=e_.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=eM(e))}let o=(e,t)=>e_.forEach(e,(e,r)=>i(e,r,t));if(e_.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(e_.isString(e)&&(e=e.trim())&&!eD(e))o(ek(e),t);else if(e_.isObject(e)&&e_.isSafeIterable(e)){let r=Object.create(null),n,i;for(let t of e){if(!e_.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],e_.hasOwnProp(r,i)?(n=r[i],r[i]=e_.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}o(r,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=eC(e)){let r=e_.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return eU(e);if(e_.isFunction(t))return t.call(this,e,r);if(e_.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eC(e)){let r=e_.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eJ(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eC(e)){let i=e_.findKey(r,e);i&&(!t||eJ(r,r[i],i,t))&&(delete r[i],n=!0)}}return e_.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||eJ(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return e_.forEach(this,(n,i)=>{let o=e_.findKey(r,i);if(o){t[o]=eM(n),delete t[i];return}let a=e?eH(i):String(i).trim();a!==i&&delete t[i],t[a]=eM(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return e_.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&e_.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eN]=this[eN]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eC(e);t[n]||(eV(r,e),t[n]=!0)}return e_.isArray(e)?e.forEach(n):n(e),this}}eq.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),e_.reduceDescriptors(eq.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),e_.freezeMethods(eq);let eL="[REDACTED ****]";function ej(e){if(e_.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(e_.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function eF(e,t){let r=new Set(t.map(e=>String(e).toLowerCase())),n=[],i=e=>{let t;if(null===e||"object"!=typeof e||e_.isBuffer(e))return e;if(-1===n.indexOf(e)){if(e instanceof eq&&(e=e.toJSON()),n.push(e),e_.isArray(e))t=[],e.forEach((e,r)=>{let n=i(e);e_.isUndefined(n)||(t[r]=n)});else{if(!e_.isPlainObject(e)&&ej(e))return n.pop(),e;for(let[n,o]of(t=Object.create(null),Object.entries(e))){let e=r.has(n.toLowerCase())?eL:i(o);e_.isUndefined(e)||(t[n]=e)}}return n.pop(),t}};return i(e)}class eW extends Error{static from(e,t,r,n,i,o){let a=new eW(e.message,t||e.code,r,n,i);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&e_.hasOwnProp(e,"redact")?e.redact:void 0,r=e_.isArray(t)&&t.length>0?eF(e,t):e_.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}eW.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",eW.ERR_BAD_OPTION="ERR_BAD_OPTION",eW.ECONNABORTED="ECONNABORTED",eW.ETIMEDOUT="ETIMEDOUT",eW.ECONNREFUSED="ECONNREFUSED",eW.ERR_NETWORK="ERR_NETWORK",eW.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",eW.ERR_DEPRECATED="ERR_DEPRECATED",eW.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",eW.ERR_BAD_REQUEST="ERR_BAD_REQUEST",eW.ERR_CANCELED="ERR_CANCELED",eW.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",eW.ERR_INVALID_URL="ERR_INVALID_URL",eW.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var eQ=null;let eG=100;function ez(e){return e_.isPlainObject(e)||e_.isArray(e)}function eK(e){return e_.endsWith(e,"[]")?e.slice(0,-2):e}function eY(e,t,r){return e?e.concat(t).map(function(e,t){return e=eK(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function eZ(e){return e_.isArray(e)&&!e.some(ez)}let eX=e_.toFlatObject(e_,{},null,function(e){return/^is[A-Z]/.test(e)});function e$(e,t,r){if(!e_.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=e_.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!e_.isUndefined(t[e])})).metaTokens,i=r.visitor||g,o=r.dots,s=r.indexes,d=r.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===r.maxDepth?eG:r.maxDepth,c=d&&e_.isSpecCompliantForm(t),u=[];
1if(!e_.isFunction(i))throw TypeError("visitor must be a function");function p(e){if(null===e)return"";if(e_.isDate(e))return e.toISOString();if(e_.isBoolean(e))return e.toString();if(!c&&e_.isBlob(e))throw new eW("Blob is not supported. Use a Buffer instead.");return e_.isArrayBuffer(e)||e_.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):a.from(e):e}function f(e){if(e>l)throw new eW("Object is too deeply nested ("+e+" levels). Max depth: "+l,eW.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,t){if(l===1/0)return JSON.stringify(e);let r=[];return JSON.stringify(e,function(e,n){if(!e_.isObject(n))return n;for(;r.length&&r[r.length-1]!==this;)r.pop();return r.push(n),f(t+r.length-1),n})}function g(e,r,i){let a=e;if(e_.isReactNative(t)&&e_.isReactNativeBlob(e))return t.append(eY(i,r,o),p(e)),!1;if(e&&!i&&"object"==typeof e){if(e_.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=h(e,1);else if(e_.isArray(e)&&eZ(e)||(e_.isFileList(e)||e_.endsWith(r,"[]"))&&(a=e_.toArray(e)))return r=eK(r),a.forEach(function(e,n){e_.isUndefined(e)||null===e||t.append(!0===s?eY([r],n,o):null===s?r:r+"[]",p(e))}),!1}return!!ez(e)||(t.append(eY(i,r,o),p(e)),!1)}let m=Object.assign(eX,{defaultVisitor:g,convertValue:p,isVisitable:ez});function y(e,r,n=0){if(!e_.isUndefined(e)){if(f(n),-1!==u.indexOf(e))throw Error("Circular reference detected in "+r.join("."));u.push(e),e_.forEach(e,function(e,o){!0===(!(e_.isUndefined(e)||null===e)&&i.call(t,e,e_.isString(o)?o.trim():o,r,m))&&y(e,r?r.concat(o):[o],n+1)}),u.pop()}}if(!e_.isObject(e))throw TypeError("data must be an object");return y(e),t}function e0(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function e1(e,t){this._pairs=[],e&&e$(e,this,t)}let e2=e1.prototype;function e3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e6(e,t,r){let n;if(!t)return e;let i=e_.isFunction(r)?{serialize:r}:r,o=e_.getSafeProp(i,"encode")||e3,a=e_.getSafeProp(i,"serialize");if(n=a?a(t,i):e_.isURLSearchParams(t)?t.toString():new e1(t,i).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}e2.append=function(e,t){this._pairs.push([e,t])},e2.toString=function(e){let t=e?function(t){return e.call(this,t,e0)}:e0;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class e5{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){e_.forEach(this.handlers,function(t){null!==t&&e(t)})}}var e4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},e8={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:e1,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let e9="undefined"!=typeof window&&"undefined"!=typeof document,e7="object"==typeof navigator&&navigator||void 0,te=e9&&(!e7||0>["ReactNative","NativeScript","NS"].indexOf(e7.product)),tt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tr=e9&&window.location.href||"http://localhost";var tn={...Object.freeze({__proto__:null,hasBrowserEnv:e9,hasStandardBrowserEnv:te,hasStandardBrowserWebWorkerEnv:tt,navigator:e7,origin:tr}),...e8};function ti(e,t){return e$(e,new tn.classes.URLSearchParams,{visitor:function(e,t,r,n){return tn.isNode&&e_.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}let to=eG;function ta(e){if(e>to)throw new eW("FormData field is too deeply nested ("+e+" levels). Max depth: "+to,eW.ERR_FORM_DATA_DEPTH_EXCEEDED)}function ts(e){let t,r=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)ta(r.length),r.push("[]"===t[0]?"":t[1]||t[0]);return r}function td(e){let t,r,n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}function tl(e){function t(e,r,n,i){ta(i);let o=e[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=e.length;return(o=!o&&e_.isArray(n)?n.length:o,s)?e_.hasOwnProp(n,o)?n[o]=e_.isArray(n[o])?n[o].concat(r):[n[o],r]:n[o]=r:(e_.hasOwnProp(n,o)&&e_.isObject(n[o])||(n[o]=[]),t(e,r,n[o],i)&&e_.isArray(n[o])&&(n[o]=td(n[o]))),!a}if(e_.isFormData(e)&&e_.isFunction(e.entries)){let r={};return e_.forEachEntry(e,(e,n)=>{t(ts(e),n,r,0)}),r}return null}let tc=(e,t)=>null!=e&&e_.hasOwnProp(e,t)?e[t]:void 0;function tu(e,t,r){if(e_.isString(e))try{return(t||JSON.parse)(e),e_.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}let tp={transitional:e4,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=e_.isObject(e);
1if(o&&e_.isHTMLForm(e)&&(e=new FormData(e)),e_.isFormData(e))return i?JSON.stringify(tl(e)):e;if(e_.isArrayBuffer(e)||e_.isBuffer(e)||e_.isStream(e)||e_.isFile(e)||e_.isBlob(e)||e_.isReadableStream(e))return e;if(e_.isArrayBufferView(e))return e.buffer;if(e_.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){let t=tc(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return ti(e,t).toString();if((r=e_.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=tc(this,"env"),i=n&&n.FormData;return e$(r?{"files[]":e}:e,i&&new i,t)}}return o||i?(t.setContentType("application/json",!1),tu(e)):e}],transformResponse:[function(e){let t=tc(this,"transitional")||tp.transitional,r=t&&t.forcedJSONParsing,n=tc(this,"responseType"),i="json"===n;if(e_.isResponse(e)||e_.isReadableStream(e))return e;if(e&&e_.isString(e)&&(r&&!n||i)){let r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,tc(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw eW.from(e,eW.ERR_BAD_RESPONSE,this,null,tc(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function tf(e,t){let r=this||tp,n=t||r,i=eq.from(n.headers),o=n.data;return e_.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function th(e){return!!(e&&e.__CANCEL__)}e_.forEach(["delete","get","head","post","put","patch","query"],e=>{tp.headers[e]={}});class tg extends eW{constructor(e,t,r){super(null==e?"canceled":e,eW.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function tm(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new eW("Request failed with status code "+r.status,r.status>=400&&r.status<500?eW.ERR_BAD_REQUEST:eW.ERR_BAD_RESPONSE,r.config,r.request,r))}function ty(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function tb(e,t){let r,n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),l=i[a];r||(r=d),n[o]=s,i[o]=d;let c=a,u=0;for(;c!==o;)u+=n[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),d-r<t)return;let p=l&&d-l;return p?Math.round(1e3*u/p):void 0}}function tv(e,t){let r,n,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},o-s)))},()=>r&&a(r)]}let tS=(e,t,r=3)=>{let n=0,i=tb(50,250);return tv(r=>{if(!r||"number"!=typeof r.loaded)return;let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=null!=a?Math.min(o,a):o,d=Math.max(0,s-n),l=i(d);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},tA=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},tw=e=>(...t)=>e_.asap(()=>e(...t));var t_=tn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,tn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(tn.origin),tn.navigator&&/(msie|trident)/i.test(tn.navigator.userAgent)):()=>!0,tP=tn.hasStandardBrowserEnv?{write(e,t,r,n,i,o,a){if("undefined"==typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];e_.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),e_.isString(n)&&s.push(`path=${n}`),e_.isString(i)&&s.push(`domain=${i}`),!0===o&&s.push("secure"),e_.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)return decodeURIComponent(n.slice(i+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function tk(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}let tO=/^https?:(?!\/\/)/i,tI=/[\t\n\r]/g;function tB(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)}function tx(e){return tB(e).replace(tI,"")}function tE(e,t){if("string"==typeof e&&tO.test(tx(e)))throw new eW('Invalid URL: missing "//" after protocol',eW.ERR_INVALID_URL,t)}function tT(e,t,r,n){tE(t,n);let i=!tk(t);return e&&(i||!1===r)?(tE(e,n),tR(e,t)):t}let tN=e=>e instanceof eq?{...e}:e;
1function tC(e,t){t=t||{};let r=Object.create(null);function n(e,t,r,n){return e_.isPlainObject(e)&&e_.isPlainObject(t)?e_.merge.call({caseless:n},e,t):e_.isPlainObject(t)?e_.merge({},t):e_.isArray(t)?t.slice():t}function i(e,t,r,i){return e_.isUndefined(t)?e_.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!e_.isUndefined(t))return n(void 0,t)}function a(e,t){return e_.isUndefined(t)?e_.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r){let n=e_.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!e_.isUndefined(n)){if(!e_.isPlainObject(n))return;else if(e_.hasOwnProp(n,r))return n[r]}let i=e_.hasOwnProp(e,"transitional")?e.transitional:void 0;if(e_.isPlainObject(i)&&e_.hasOwnProp(i,r))return i[r]}function d(r,i,o){return e_.hasOwnProp(t,o)?n(r,i):e_.hasOwnProp(e,o)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:d,headers:(e,t,r)=>i(tN(e),tN(t),r,!0)};return e_.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=e_.hasOwnProp(l,n)?l[n]:i,a=o(e_.hasOwnProp(e,n)?e[n]:void 0,e_.hasOwnProp(t,n)?t[n]:void 0,n);e_.isUndefined(a)&&o!==d||(r[n]=a)}),e_.hasOwnProp(t,"validateStatus")&&e_.isUndefined(t.validateStatus)&&!1===s("validateStatusUndefinedResolves")&&(e_.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}let tM=["content-type","content-length"];function tU(e,t,r){if("content-only"!==r)return void e.set(t);Object.entries(t).forEach(([t,r])=>{tM.includes(t.toLowerCase())&&e.set(t,r)})}let tD=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function tJ(e){let t=tC({},e),r=e=>e_.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),i=r("withXSRFToken"),o=r("xsrfHeaderName"),a=r("xsrfCookieName"),s=r("headers"),d=r("auth"),l=r("baseURL"),c=r("allowAbsoluteUrls"),u=r("url");if(t.headers=s=eq.from(s),t.url=e6(tT(l,u,c,t),r("params"),r("paramsSerializer")),d){let e=e_.getSafeProp(d,"username")||"",t=e_.getSafeProp(d,"password")||"";s.set("Authorization","Basic "+btoa(e+":"+(t?tD(t):"")))}if(e_.isFormData(n)&&(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv||e_.isReactNative(n)?s.setContentType(void 0):e_.isFunction(n.getHeaders)&&tU(s,n.getHeaders(),r("formDataHeaderPolicy"))),tn.hasStandardBrowserEnv&&(e_.isFunction(i)&&(i=i(t)),!0===i||null==i&&t_(t.url))){let e=o&&a&&tP.read(a);e&&s.set(o,e)}return t}var tH="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o,a,s,d=tJ(e),l=d.data,c=eq.from(d.headers).normalize(),{responseType:u,onUploadProgress:p,onDownloadProgress:f}=d;function h(){a&&a(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(n),d.signal&&d.signal.removeEventListener("abort",n)}let g=new XMLHttpRequest;function m(){if(!g)return;let n=eq.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());tm(function(e){t(e),h()},function(e){r(e),h()},{data:u&&"text"!==u&&"json"!==u?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(d.method.toUpperCase(),d.url,!0),g.timeout=d.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(m)},g.onabort=function(){g&&(r(new eW("Request aborted",eW.ECONNABORTED,e,g)),h(),g=null)},g.onerror=function(t){let n=new eW(t&&t.message?t.message:"Network Error",eW.ERR_NETWORK,e,g);n.event=t||null,r(n),h(),g=null},g.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||e4;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),r(new eW(t,n.clarifyTimeoutError?eW.ETIMEDOUT:eW.ECONNABORTED,e,g)),h(),g=null},void 0===l&&c.setContentType(null),"setRequestHeader"in g&&e_.forEach(eT(c),function(e,t){g.setRequestHeader(t,e)}),e_.isUndefined(d.withCredentials)||(g.withCredentials=!!d.withCredentials),u&&"json"!==u&&(g.responseType=d.responseType),f&&([o,s]=tS(f,!0),g.addEventListener("progress",o)),p&&g.upload&&([i,a]=tS(p),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(d.cancelToken||d.signal)&&(n=t=>{g&&(r(!t||t.type?new tg(null,e,g):t),g.abort(),h(),g=null)},d.cancelToken&&d.cancelToken.subscribe(n),d.signal&&(d.signal.aborted?n():d.signal.addEventListener("abort",n)));let y=ty(d.url);if(y&&!tn.protocols.includes(y))return void r(new eW("Unsupported protocol "+y+":",eW.ERR_BAD_REQUEST,e));g.send(l||null)})};let tV=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof eW?t:new tg(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new eW(`timeout of ${t}ms exceeded`,eW.ETIMEDOUT))},t),a=()=>
1{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=r;return s.unsubscribe=()=>e_.asap(a),s},tq=function*(e,t){let r,n=e.byteLength;if(n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},tL=async function*(e,t){for await(let r of tj(e))yield*tq(r,t)},tj=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},tF=(e,t,r,n)=>{let i,o=tL(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){s(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},tW=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,tQ=(e,t,r)=>t+2<r&&tW(e.charCodeAt(t+1))&&tW(e.charCodeAt(t+2));function tG(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length,t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){let t=n.charCodeAt(r+1),i=n.charCodeAt(r+2);tW(t)&&tW(i)&&(e-=2,r+=2)}let r=0,i=t-1,o=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));i>=0&&(61===n.charCodeAt(i)?(r++,i--):o(i)&&(r++,i-=3)),1===r&&i>=0&&(61===n.charCodeAt(i)?r++:o(i)&&r++);let a=3*Math.floor(e/4)-(r||0);return a>0?a:0}let i=0;for(let e=0,t=n.length;e<t;e++){let r=n.charCodeAt(e);if(37===r&&tQ(n,e,t))i+=1,e+=2;else if(r<128)i+=1;else if(r<2048)i+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}let tz="1.18.0",tK=65536,{isFunction:tY}=e_,tZ=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),tX=e=>{if(!e_.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},t$=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},t0=e=>{let t=e.indexOf("://"),r=e;return -1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},t1=e=>{let t,r=void 0!==e_.global&&null!==e_.global?e_.global:globalThis,{ReadableStream:n,TextEncoder:i}=r,{fetch:o,Request:a,Response:s}=e=e_.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),d=o?tY(o):"function"==typeof fetch,l=tY(a),c=tY(s);if(!d)return!1;let u=d&&tY(n),p=d&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=l&&u&&t$(()=>{let e=!1,t=new a(tn.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=c&&u&&t$(()=>e_.isReadableStream(new s("").body)),g={stream:h&&(e=>e.body)};d&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{g[e]||(g[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new eW(`Response type '${e}' is not supported`,eW.ERR_NOT_SUPPORT,r)})})})();let m=async e=>{if(null==e)return 0;if(e_.isBlob(e))return e.size;if(e_.isSpecCompliantForm(e)){let t=new a(tn.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return e_.isArrayBufferView(e)||e_.isArrayBuffer(e)?e.byteLength:(e_.isURLSearchParams(e)&&(e+=""),e_.isString(e))?(await p(e)).byteLength:void 0},y=async(e,t)=>{let r=e_.toFiniteNumber(e.getContentLength());return null==r?m(t):r};return async e=>{let t,{url:r,method:n,data:d,signal:c,cancelToken:p,timeout:b,onDownloadProgress:v,onUploadProgress:S,responseType:A,headers:w,withCredentials:_="same-origin",fetchOptions:P,maxContentLength:k,maxBodyLength:R}=tJ(e),O=e_.isNumber(k)&&k>-1,I=e_.isNumber(R)&&R>-1,B=t=>e_.hasOwnProp(e,t)?e[t]:void 0,x=o||fetch;A=A?(A+"").toLowerCase():"text";let E=tV([c,p&&p.toAbortSignal()],b),T=null,N=E&&E.unsubscribe&&(()=>{E.unsubscribe()}),C=null,M=()=>new eW("Request body larger than maxBodyLength limit",eW.ERR_BAD_REQUEST,e,T);try{let o,c=B("auth");if(c){let e=e_.getSafeProp(c,"username")||"",t=e_.getSafeProp(c,"password")||"";o={username:e,password:t}}if(t0(r)){let e=new URL(r,tn.origin);if(!o&&(e.username||e.password)){let t=tX(e.username),r=tX(e.password);o={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(o&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa(tZ((o.username||"")+":"+(o.password||""))))),O&&"string"==typeof r&&r.startsWith("data:")&&tG(r)>k)throw new eW("maxContentLength size of "+k+" exceeded",eW.ERR_BAD_RESPONSE,e,T);if(I&&"get"!==n&&"head"!==n){let e=await m(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>R))throw M()}let p=I&&(e_.isReadableStream(d)||e_.isStream(d)),b=(e,t,r)=>tF(e,tK,e=>{if(I&&e>R)throw C=M();t&&t(e)},r);if(f&&"get"!==n&&"head"!==n&&(S||p)){if(t=null==t?await y(w,d):t,0!==t||p){let e,n=new a(r,{method:"POST",body:d,duplex:"half"});if(e_.isFormData(d)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){let[e,r]=S&&tA(t,tS(tw(S)))||[];d=b(n.body,e,r)}}}else if(p&&!l&&u&&"get"!==n&&"head"!==n)d=b(d);else if(p&&l&&!f&&"get"!==n&&"head"!==n)throw new eW("Stream request bodies are not supported by the current fetch implementation",eW.ERR_NOT_SUPPORT,e,T);e_.isString(_)||(_=_?"include":"omit");let U=l&&"credentials"in a.prototype;if(e_.isFormData(d)){let e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/"+tz,!1);let D={...P,signal:E,method:n.toUpperCase(),headers:eT(w.normalize()),body:d,duplex:"half",credentials:U?_:void 0};T=l&&new a(r,D);let J=await (l?x(T,P):x(r,D)),H=eq.from(J.headers);if(O){let t=e_.toFiniteNumber(H.getContentLength());if(null!=t&&t>k)throw new eW("maxContentLength size of "+k+" exceeded",eW.ERR_BAD_RESPONSE,e,T)}let V=h&&("stream"===A||"response"===A);if(h&&J.body&&(v||O||V&&N)){let t={};
1["status","statusText","headers"].forEach(e=>{t[e]=J[e]});let r=e_.toFiniteNumber(H.getContentLength()),[n,i]=v&&tA(r,tS(tw(v),!0))||[],o=0,a=t=>{if(O&&(o=t)>k)throw new eW("maxContentLength size of "+k+" exceeded",eW.ERR_BAD_RESPONSE,e,T);n&&n(t)};J=new s(tF(J.body,tK,a,()=>{i&&i(),N&&N()}),t)}A=A||"text";let q=await g[e_.findKey(g,A)||"text"](J,e);if(O&&!h&&!V){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>k)throw new eW("maxContentLength size of "+k+" exceeded",eW.ERR_BAD_RESPONSE,e,T)}return!V&&N&&N(),await new Promise((t,r)=>{tm(t,r,{data:q,headers:eq.from(J.headers),status:J.status,statusText:J.statusText,config:e,request:T})})}catch(t){if(N&&N(),E&&E.aborted&&E.reason instanceof eW){let r=E.reason;throw r.config=e,T&&(r.request=T),t!==r&&(r.cause=t),r}if(C)throw T&&!C.request&&(C.request=T),C;if(t instanceof eW)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new eW("Network Error",eW.ERR_NETWORK,e,T,t&&t.response),{cause:t.cause||t});throw eW.from(t,t&&t.code,e,T,t&&t.response)}}},t2=new Map,t3=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,o=[n,i,r],a=o.length,s,d,l=t2;for(;a--;)s=o[a],void 0===(d=l.get(s))&&l.set(s,d=a?new Map:t1(t)),l=d;return d};t3();let t6={http:eQ,xhr:tH,fetch:{get:t3}};e_.forEach(t6,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let t5=e=>`- ${e}`,t4=e=>e_.isFunction(e)||null===e||!1===e;var t8={getAdapter:function(e,t){let r,n,{length:i}=e=e_.isArray(e)?e:[e],o={};for(let a=0;a<i;a++){let i;if(n=r=e[a],!t4(r)&&void 0===(n=t6[(i=String(r)).toLowerCase()]))throw new eW(`Unknown adapter '${i}'`);if(n&&(e_.isFunction(n)||(n=n.get(t))))break;o[i||"#"+a]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new eW("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(t5).join("\n"):" "+t5(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n}};function t9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tg(null,e)}function t7(e){return t9(e),e.headers=eq.from(e.headers),e.data=tf.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),t8.getAdapter(e.adapter||tp.adapter,e)(e).then(function(t){t9(e),e.response=t;try{t.data=tf.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=eq.from(t.headers),t},function(t){if(!th(t)&&(t9(e),t&&t.response)){e.response=t.response;try{t.response.data=tf.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=eq.from(t.response.headers)}return Promise.reject(t)})}let re={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{re[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let rt={};re.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tz+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new eW(n(i," has been removed"+(t?" in "+t:"")),eW.ER
1R_DEPRECATED);return t&&!rt[i]&&(rt[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},re.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var rr={assertOptions:function(e,t,r){if("object"!=typeof e)throw new eW("options must be an object",eW.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new eW("option "+o+" must be "+r,eW.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new eW("Unknown option "+o,eW.ERR_BAD_OPTION)}},validators:re};let rn=rr.validators;class ri{constructor(e){this.defaults=e||{},this.interceptors={request:new e5,response:new e5}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=tC(this.defaults,t);void 0!==i&&rr.assertOptions(i,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean),legacyInterceptorReqResOrdering:rn.transitional(rn.boolean),advertiseZstdAcceptEncoding:rn.transitional(rn.boolean),validateStatusUndefinedResolves:rn.transitional(rn.boolean)},!1),null!=o&&(e_.isFunction(o)?t.paramsSerializer={serialize:o}:rr.assertOptions(o,{encode:rn.function,serialize:rn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),rr.assertOptions(t,{baseUrl:rn.spelling("baseURL"),withXsrfToken:rn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&e_.merge(a.common,a[t.method]);a&&e_.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=eq.concat(s,a);let d=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let r=t.transitional||e4;r&&r.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u=0;if(!l){let e=[t7.bind(this),void 0];for(e.unshift(...d),e.push(...c),n=e.length,r=Promise.resolve(t);u<n;)r=r.then(e[u++],e[u++]);return r}n=d.length;let p=t;for(;u<n;){let e=d[u++],t=d[u++];try{p=e(p)}catch(e){t.call(this,e);break}}try{r=t7.call(this,p)}catch(e){return Promise.reject(e)}for(u=0,n=c.length;u<n;)r=r.then(c[u++],c[u++]);return r}getUri(e){return e6(tT((e=tC(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}e_.forEach(["delete","get","head","options"],function(e){ri.prototype[e]=function(t,r){return this.request(tC(r||{},{method:e,url:t,data:r&&e_.hasOwnProp(r,"data")?r.data:void 0}))}}),e_.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,i){return this.request(tC(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ri.prototype[e]=t(),"query"!==e&&(ri.prototype[e+"Form"]=t(!0))});class ro{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new tg(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
1subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ro(function(t){e=t}),cancel:e}}}function ra(e){return function(t){return e.apply(null,t)}}function rs(e){return e_.isObject(e)&&!0===e.isAxiosError}let rd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};function rl(e){let t=new ri(e),r=s(ri.prototype.request,t);return e_.extend(r,ri.prototype,t,{allOwnKeys:!0}),e_.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return rl(tC(e,t))},r}Object.entries(rd).forEach(([e,t])=>{rd[t]=e});let rc=rl(tp);rc.Axios=ri,rc.CanceledError=tg,rc.CancelToken=ro,rc.isCancel=th,rc.VERSION=tz,rc.toFormData=e$,rc.AxiosError=eW,rc.Cancel=rc.CanceledError,rc.all=function(e){return Promise.all(e)},rc.spread=ra,rc.isAxiosError=rs,rc.mergeConfig=tC,rc.AxiosHeaders=eq,rc.formToJSON=e=>tl(e_.isHTMLForm(e)?new FormData(e):e),rc.getAdapter=t8.getAdapter,rc.HttpStatusCode=rd,rc.default=rc,e.exports=rc},82628:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(7574);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},82876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.DenomUnit=t.Supply=t.Output=t.Input=t.SendEnabled=t.Params=t.protobufPackage=void 0;let n=r(91794),i=r(4696),o=r(92242);function a(){return{sendEnabled:[],defaultSendEnabled:!1}}function s(){return{denom:"",enabled:!1}}function d(){return{address:"",coins:[]}}function l(){return{address:"",coins:[]}}function c(){return{total:[]}}function u(){return{denom:"",exponent:0,aliases:[]}}function p(){return{description:"",denomUnits:[],base:"",display:"",name:"",symbol:"",uri:"",uriHash:""}}t.protobufPackage="cosmos.bank.v1beta1",t.Params={typeUrl:"/cosmos.bank.v1beta1.Params",encode(e,r=i.BinaryWriter.create()){for(let n of e.sendEnabled)t.SendEnabled.encode(n,r.uint32(10).fork()).ldelim();return!0===e.defaultSendEnabled&&r.uint32(16).bool(e.defaultSendEnabled),r},decode(e,r){let n=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===r?n.len:n.pos+r,s=a();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:s.sendEnabled.push(t.SendEnabled.decode(n,n.uint32()));break;case 2:s.defaultSendEnabled=n.bool();break;default:n.skipType(7&e)}}return s},fromJSON(e){let r=a();return Array.isArray(e?.sendEnabled)&&(r.sendEnabled=e.sendEnabled.map(e=>t.SendEnabled.fromJSON(e))),(0,o.isSet)(e.defaultSendEnabled)&&(r.defaultSendEnabled=!!e.defaultSendEnabled),r},toJSON(e){let r={};return e.sendEnabled?r.sendEnabled=e.sendEnabled.map(e=>e?t.SendEnabled.toJSON(e):void 0):r.sendEnabled=[],void 0!==e.defaultSendEnabled&&(r.defaultSendEnabled=e.defaultSendEnabled),r},fromPartial(e){let r=a();return r.sendEnabled=e.sendEnabled?.map(e=>t.SendEnabled.fromPartial(e))||[],r.defaultSendEnabled=e.defaultSendEnabled??!1,r}},t.SendEnabled={typeUrl:"/cosmos.bank.v1beta1.SendEnabled",encode:(e,t=i.BinaryWriter.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),!0===e.enabled&&t.uint32(16).bool(e.enabled),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=s();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.denom=r.string();break;case 2:o.enabled=r.bool();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=s();return(0,o.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,o.isSet)(e.enabled)&&(t.enabled=!!e.enabled),t},toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial(e){let t=s();return t.denom=e.denom??"",t.enabled=e.enabled??!1,t}},t.Input={typeUrl:"/cosmos.bank.v1beta1.Input",encode(e,t=i.BinaryWriter.create()){for(let r of(""!==e.address&&t.uint32(10).string(e.address),e.coins))n.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.address=r.string();break;case 2:a.coins.push(n.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=d();return(0,o.isSet)(e.address)&&(t.address=String(e.address)),Array.isArray(e?.coins)&&(t.coins=e.coins.map(e=>
1n.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map(e=>e?n.Coin.toJSON(e):void 0):t.coins=[],t},fromPartial(e){let t=d();return t.address=e.address??"",t.coins=e.coins?.map(e=>n.Coin.fromPartial(e))||[],t}},t.Output={typeUrl:"/cosmos.bank.v1beta1.Output",encode(e,t=i.BinaryWriter.create()){for(let r of(""!==e.address&&t.uint32(10).string(e.address),e.coins))n.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=l();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.address=r.string();break;case 2:a.coins.push(n.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=l();return(0,o.isSet)(e.address)&&(t.address=String(e.address)),Array.isArray(e?.coins)&&(t.coins=e.coins.map(e=>n.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map(e=>e?n.Coin.toJSON(e):void 0):t.coins=[],t},fromPartial(e){let t=l();return t.address=e.address??"",t.coins=e.coins?.map(e=>n.Coin.fromPartial(e))||[],t}},t.Supply={typeUrl:"/cosmos.bank.v1beta1.Supply",encode(e,t=i.BinaryWriter.create()){for(let r of e.total)n.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<o;){let e=r.uint32();e>>>3==1?a.total.push(n.Coin.decode(r,r.uint32())):r.skipType(7&e)}return a},fromJSON(e){let t=c();return Array.isArray(e?.total)&&(t.total=e.total.map(e=>n.Coin.fromJSON(e))),t},toJSON(e){let t={};return e.total?t.total=e.total.map(e=>e?n.Coin.toJSON(e):void 0):t.total=[],t},fromPartial(e){let t=c();return t.total=e.total?.map(e=>n.Coin.fromPartial(e))||[],t}},t.DenomUnit={typeUrl:"/cosmos.bank.v1beta1.DenomUnit",encode(e,t=i.BinaryWriter.create()){for(let r of(""!==e.denom&&t.uint32(10).string(e.denom),0!==e.exponent&&t.uint32(16).uint32(e.exponent),e.aliases))t.uint32(26).string(r);return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.denom=r.string();break;case 2:o.exponent=r.uint32();break;case 3:o.aliases.push(r.string());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=u();return(0,o.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,o.isSet)(e.exponent)&&(t.exponent=Number(e.exponent)),Array.isArray(e?.aliases)&&(t.aliases=e.aliases.map(e=>String(e))),t},toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exponent&&(t.exponent=Math.round(e.exponent)),e.aliases?t.aliases=e.aliases.map(e=>e):t.aliases=[],t},fromPartial(e){let t=u();return t.denom=e.denom??"",t.exponent=e.exponent??0,t.aliases=e.aliases?.map(e=>e)||[],t}},t.Metadata={typeUrl:"/cosmos.bank.v1beta1.Metadata",encode(e,r=i.BinaryWriter.create()){for(let n of(""!==e.description&&r.uint32(10).string(e.description),e.denomUnits))t.DenomUnit.encode(n,r.uint32(18).fork()).ldelim();return""!==e.base&&r.uint32(26).string(e.base),""!==e.display&&r.uint32(34).string(e.display),""!==e.name&&r.uint32(42).string(e.name),""!==e.symbol&&r.uint32(50).string(e.symbol),""!==e.uri&&r.uint32(58).string(e.uri),""!==e.uriHash&&r.uint32(66).string(e.uriHash),r},decode(e,r){let n=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===r?n.len:n.pos+r,a=p();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:a.description=n.string();break;case 2:a.denomUnits.push(t.DenomUnit.decode(n,n.uint32()));break;case 3:a.base=n.string();break;case 4:a.display=n.string();break;case 5:a.name=n.string();break;case 6:a.symbol=n.string();break;case 7:a.uri=n.string();break;case 8:a.uriHash=n.string();break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=p();return(0,o.isSet)(e.description)&&(r.description=String(e.description)),Array.isArray(e?.denomUnits)&&(r.denomUnits=e.denomUnits.map(e=>t.DenomUnit.fromJSON(e))),(0,o.isSet)(e.base)&&(r.base=String(e.base)),(0,o.isSet)(e.display)&&(r.display=String(e.display)),(0,o.isSet)(e.name)&&(r.name=String(e.name)),(0,o.isSet)(e.symbol)&&(r.symbol=String(e.symbol)),(0,o.isSet)(e.uri)&&
1(r.uri=String(e.uri)),(0,o.isSet)(e.uriHash)&&(r.uriHash=String(e.uriHash)),r},toJSON(e){let r={};return void 0!==e.description&&(r.description=e.description),e.denomUnits?r.denomUnits=e.denomUnits.map(e=>e?t.DenomUnit.toJSON(e):void 0):r.denomUnits=[],void 0!==e.base&&(r.base=e.base),void 0!==e.display&&(r.display=e.display),void 0!==e.name&&(r.name=e.name),void 0!==e.symbol&&(r.symbol=e.symbol),void 0!==e.uri&&(r.uri=e.uri),void 0!==e.uriHash&&(r.uriHash=e.uriHash),r},fromPartial(e){let r=p();return r.description=e.description??"",r.denomUnits=e.denomUnits?.map(e=>t.DenomUnit.fromPartial(e))||[],r.base=e.base??"",r.display=e.display??"",r.name=e.name??"",r.symbol=e.symbol??"",r.uri=e.uri??"",r.uriHash=e.uriHash??"",r}}},83804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSearchTxQueryArray=void 0,t.isSearchTxQueryArray=function(e){return Array.isArray(e)}},84321:(e,t,r)=>{"use strict";var n=r(60996).Buffer;function i(e){return"object"==typeof e&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isDefined=t.isUint8Array=t.isNonNullObject=void 0,t.isNonNullObject=i,t.isUint8Array=function(e){return!(!i(e)||"[object Uint8Array]"!==Object.prototype.toString.call(e)||void 0!==n&&void 0!==n.isBuffer&&n.isBuffer(e))},t.isDefined=function(e){return void 0!==e}},84335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubkeyToAddress=t.pubkeyToRawAddress=t.rawSecp256k1PubkeyToRawAddress=t.rawEd25519PubkeyToRawAddress=void 0;let n=r(97470),i=r(25918);function o(e){if(32!==e.length)throw Error(`Invalid Ed25519 pubkey length: ${e.length}`);return(0,n.sha256)(e).slice(0,20)}function a(e){if(33!==e.length)throw Error(`Invalid Secp256k1 pubkey length (compressed): ${e.length}`);return(0,n.ripemd160)((0,n.sha256)(e))}function s(e,t){switch(e){case"ed25519":return o(t);case"secp256k1":return a(t);default:throw Error(`Pubkey type ${e} not supported`)}}t.rawEd25519PubkeyToRawAddress=o,t.rawSecp256k1PubkeyToRawAddress=a,t.pubkeyToRawAddress=s,t.pubkeyToAddress=function(e,t){return(0,i.toHex)(s(e,t)).toUpperCase()}},84879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsgVoteWeightedEncodeObject=t.isMsgVoteEncodeObject=t.isMsgSubmitProposalEncodeObject=t.isMsgDepositEncodeObject=t.govTypes=void 0;let n=r(24627),i=r(78040);t.govTypes=[["/cosmos.gov.v1.MsgDeposit",n.MsgDeposit],["/cosmos.gov.v1.MsgSubmitProposal",n.MsgSubmitProposal],["/cosmos.gov.v1.MsgUpdateParams",n.MsgUpdateParams],["/cosmos.gov.v1.MsgVote",n.MsgVote],["/cosmos.gov.v1.MsgVoteWeighted",n.MsgVoteWeighted],["/cosmos.gov.v1beta1.MsgDeposit",i.MsgDeposit],["/cosmos.gov.v1beta1.MsgSubmitProposal",i.MsgSubmitProposal],["/cosmos.gov.v1beta1.MsgVote",i.MsgVote],["/cosmos.gov.v1beta1.MsgVoteWeighted",i.MsgVoteWeighted]],t.isMsgDepositEncodeObject=function(e){return"/cosmos.gov.v1beta1.MsgDeposit"===e.typeUrl},t.isMsgSubmitProposalEncodeObject=function(e){return"/cosmos.gov.v1beta1.MsgSubmitProposal"===e.typeUrl},t.isMsgVoteEncodeObject=function(e){return"/cosmos.gov.v1beta1.MsgVote"===e.typeUrl},t.isMsgVoteWeightedEncodeObject=function(e){return"/cosmos.gov.v1beta1.MsgVoteWeighted"===e.typeUrl}},85485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Responses=t.decodeValidatorInfo=t.decodeValidatorGenesis=t.decodeValidatorUpdate=t.decodeEvent=void 0;let n=r(25918),i=r(63688),o=r(74194),a=r(551),s=r(62710),d=r(20865),l=r(92982);function c(e){return{data:e.data,lastBlockHeight:(0,d.may)(a.apiToSmallInt,e.last_block_height),lastBlockAppHash:(0,d.may)(n.fromBase64,e.last_block_app_hash)}}function u(e){return{ops:e.ops.map(e=>({type:e.type,key:(0,n.fromBase64)(e.key),data:(0,n.fromBase64)(e.data)}))}}function p(e){return{key:(0,n.fromBase64)((0,d.assertString)(e.key??"")),value:(0,n.fromBase64)((0,d.assertString)(e.value??"")),proof:(0,d.may)(u,e.proofOps),height:(0,d.may)(a.apiToSmallInt,e.height),code:(0,d.may)(a.apiToSmallInt,e.code),codespace:(0,d.assertString)(e.codespace??""),index:(0,d.may)(a.apiToSmallInt,e.index),log:e.log,info:(0,d.assertString)(e.info??"")}}function f(e){return{key:(0,n.fromBase64)((0,d.assertNotEmpty)(e.key)),value:(0,n.fromBase64)((0,d.assertString)(e.value??""))}}function h(e){return(0,d.assertArray)(e).map(f)}function g(e){return{type:e.type,attributes:e.attributes?h(e.attributes):[]}}function m(e){return(0,d.assertArray)(e).map(g)}function y(e){return{code:(0,a.apiToSmallInt)((0,d.assertNumber)(e.code??0)),codespace:e.codespace,log:e.log,data:(0,d.may)(n.fromBase64,e.data),events:e.events?m(e.events):[],gasWanted:(0,a.apiToBigInt)(e.gas_wanted??"0"),gasUsed:(0,a.apiToBigInt)(e.gas_used??"0")}}
1function b(e){if("Sum"in e){let[[t,r]]=Object.entries(e.Sum.value);return(0,i.assert)("ed25519"===t||"secp256k1"===t,`unknown pubkey type: ${t}`),{algorithm:t,data:(0,n.fromBase64)((0,d.assertNotEmpty)(r))}}switch(e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.value))};default:throw Error(`unknown pubkey type: ${e.type}`)}}function v(e){return{maxBytes:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_bytes)),maxGas:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_gas))}}function S(e){return{maxAgeNumBlocks:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_age_num_blocks)),maxAgeDuration:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.max_age_duration))}}function A(e){return{block:v((0,d.assertObject)(e.block)),evidence:S((0,d.assertObject)(e.evidence))}}function w(e){return{pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)(e.power??"0")}}function _(e){return{height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),results:(e.txs_results||[]).map(y),validatorUpdates:(e.validator_updates||[]).map(w),consensusUpdates:(0,d.may)(A,e.consensus_param_updates),beginBlockEvents:m(e.begin_block_events||[]),endBlockEvents:m(e.end_block_events||[])}}function P(e){return{hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),parts:{total:(0,d.assertNotEmpty)(e.parts.total),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.parts.hash))}}}function k(e){return{block:(0,a.apiToSmallInt)(e.block),app:(0,a.apiToSmallInt)(e.app??0)}}function R(e){return{version:k(e.version),chainId:(0,d.assertNotEmpty)(e.chain_id),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),time:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.time)),lastBlockId:e.last_block_id.hash?P(e.last_block_id):null,lastCommitHash:(0,n.fromHex)((0,d.assertSet)(e.last_commit_hash)),dataHash:(0,n.fromHex)((0,d.assertSet)(e.data_hash)),validatorsHash:(0,n.fromHex)((0,d.assertSet)(e.validators_hash)),nextValidatorsHash:(0,n.fromHex)((0,d.assertSet)(e.next_validators_hash)),consensusHash:(0,n.fromHex)((0,d.assertSet)(e.consensus_hash)),appHash:(0,n.fromHex)((0,d.assertSet)(e.app_hash)),lastResultsHash:(0,n.fromHex)((0,d.assertSet)(e.last_results_hash)),evidenceHash:(0,n.fromHex)((0,d.assertSet)(e.evidence_hash)),proposerAddress:(0,n.fromHex)((0,d.assertNotEmpty)(e.proposer_address))}}function O(e){return{blockId:P(e.block_id),blockSize:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.block_size)),header:R(e.header),numTxs:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.num_txs))}}function I(e){return{lastHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.last_height)),blockMetas:(0,d.assertArray)(e.block_metas).map(O)}}function B(e){return{...y(e),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash))}}function x(e){return{height:(0,a.apiToSmallInt)(e.height),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),checkTx:y((0,d.assertObject)(e.check_tx)),deliverTx:(0,d.may)(y,e.deliver_tx)}}function E(e){return(0,i.assert)(e in s.BlockIdFlag),e}function T(e){return{blockIdFlag:E(e.block_id_flag),validatorAddress:e.validator_address?(0,n.fromHex)(e.validator_address):void 0,timestamp:e.timestamp?(0,o.fromRfc3339WithNanoseconds)(e.timestamp):void 0,signature:e.signature?(0,n.fromBase64)(e.signature):void 0}}function N(e){return{blockId:P((0,d.assertObject)(e.block_id)),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),round:(0,a.apiToSmallInt)(e.round),signatures:(0,d.assertArray)(e.signatures).map(T)}}function C(e){return{canonical:(0,d.assertBoolean)(e.canonical),header:R(e.signed_header.header),commit:N(e.signed_header.commit)}}function M(e){return{address:(0,n.fromHex)((0,d.assertNotEmpty)(e.address)),pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)((0,d.assertNotEmpty)(e.power))}}function U(e){return{genesisTime:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.genesis_time)),chainId:(0,d.assertNotEmpty)(e.chain_id),consensusParams:A(e.consensus_params),validators:e.validators?(0,d.assertArray)(e.validators).map(M):[],appHash:(0,n.fromHex)((0,d.assertSet)(e.app_hash)),appState:e.app_state}}function D(e){return{pubkey:b((0,d.assertObject)(e.pub_key)),votingPower:(0,a.apiToBigInt)((0,d.assertNotEmpty)(e.voting_power)),address:(0,n.fromHex)((0,d.assertNotEmpty)(e.address)),proposerPriority:e.proposer_priority?(0,a.apiToSmallInt)(e.proposer_priority):void 0}}function J(e){return{id:(0,n.fromHex)((0,d.assertNotEmpty)(e.id)),listenAddr:(0,d.assertNotEmpty)(e.listen_addr),network:(0,d.assertNotEmpty)(e.network),version:(0,d.assertString)(e.version),channels:(0,d.assertNotEmpty)(e.channels),moniker:(0,d.assertNotEmpty)(e.moniker),other:(0,d.dictionaryToStringMap)(e.other),protocolVersion:{app:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.app)),block:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.block)),p2p:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.protocol_version.p2p))}}}function H(e){let t=e.earliest_block_height?(0,a.apiToSmallInt)(e.earliest_block_height):void 0,r=e.earliest_block_time?(0,o.fromRfc3339WithNanoseconds)(e.earliest_block_time):void 0;return{earliestAppHash:e.earliest_app_hash?(0,n.fromHex)(e.earliest_app_hash):void 0,earliestBlockHash:e.earliest_block_hash?(0,n.fromHex)(e.earliest_block_hash):void 0,earliestBlockHeight:t||void 0,earliestBlockTime:r?.getTime()?r:void 0,latestBlockHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.latest_block_hash)),latestAppHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.latest_app_hash)),latestBlockTime:(0,o.fromRfc3339WithNanoseconds)((0,d.assertNotEmpty)(e.latest_block_time)),latestBlockHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.latest_block_height)),catchingUp:(0,d.assertBoolean)(e.catching_up)}}function V(e){return{nodeInfo:J(e.node_info),syncInfo:H(e.sync_info),validatorInfo:D(e.validator_info)}}function q(e){return{data:(0,n.fromBase64)((0,d.assertNotEmpty)(e.data)),rootHash:(0,n.fromHex)((0,d.assertNotEmpty)(e.root_hash)),proof:{total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.proof.total)),index:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.proof.index)),leafHash:(0,n.fromBase64)((0,d.assertNotEmpty)(e.proof.leaf_hash)),au
1nts:(0,d.assertArray)(e.proof.aunts).map(n.fromBase64)}}}function L(e){return{tx:(0,n.fromBase64)((0,d.assertNotEmpty)(e.tx)),result:y((0,d.assertObject)(e.tx_result)),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height)),index:(0,a.apiToSmallInt)((0,d.assertNumber)(e.index)),hash:(0,n.fromHex)((0,d.assertNotEmpty)(e.hash)),proof:(0,d.may)(q,e.proof)}}function j(e){return{totalCount:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_count)),txs:(0,d.assertArray)(e.txs).map(L)}}function F(e){let t=(0,n.fromBase64)((0,d.assertNotEmpty)(e.tx));return{tx:t,hash:(0,l.hashTx)(t),result:y(e.result),height:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.height))}}function W(e){return{blockHeight:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.block_height)),validators:(0,d.assertArray)(e.validators).map(D),count:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.count)),total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total))}}function Q(e){return{header:R((0,d.assertObject)(e.header)),lastCommit:e.last_commit.block_id.hash?N((0,d.assertObject)(e.last_commit)):null,txs:e.data.txs?(0,d.assertArray)(e.data.txs).map(n.fromBase64):[],evidence:e.evidence?.evidence??[]}}function G(e){return{blockId:P(e.block_id),block:Q(e.block)}}function z(e){return{totalCount:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_count)),blocks:(0,d.assertArray)(e.blocks).map(G)}}function K(e){return{total:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total)),totalBytes:(0,a.apiToSmallInt)((0,d.assertNotEmpty)(e.total_bytes))}}t.decodeEvent=g,t.decodeValidatorUpdate=w,t.decodeValidatorGenesis=M,t.decodeValidatorInfo=D;class Y{static decodeAbciInfo(e){return c((0,d.assertObject)(e.result.response))}static decodeAbciQuery(e){return p((0,d.assertObject)(e.result.response))}static decodeBlock(e){return G(e.result)}static decodeBlockResults(e){return _(e.result)}static decodeBlockSearch(e){return z(e.result)}static decodeBlockchain(e){return I(e.result)}static decodeBroadcastTxSync(e){return B(e.result)}static decodeBroadcastTxAsync(e){return Y.decodeBroadcastTxSync(e)}static decodeBroadcastTxCommit(e){return x(e.result)}static decodeCommit(e){return C(e.result)}static decodeGenesis(e){return U((0,d.assertObject)(e.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(e){return K(e.result)}static decodeStatus(e){return V(e.result)}static decodeNewBlockEvent(e){return Q(e.data.value.block)}static decodeNewBlockHeaderEvent(e){return R(e.data.value.header)}static decodeTxEvent(e){return F(e.data.value.TxResult)}static decodeTx(e){return L(e.result)}static decodeTxSearch(e){return j(e.result)}static decodeValidators(e){return W(e.result)}}t.Responses=Y},85575:function(e,t,r){var n,i,o;!function(a){function s(e,t){"use strict";var r,n="uint8array",i=t.ready.then(function(){function n(){if(0!==r._sodium_init())throw Error("libsodium was not correctly initialized.");for(var t,n=["crypto_aead_aegis128l_decrypt","crypto_aead_aegis128l_decrypt_detached","crypto_aead_aegis128l_encrypt","crypto_aead_aegis128l_encrypt_detached","crypto_aead_aegis128l_keygen","crypto_aead_aegis256_decrypt","crypto_aead_aegis256_decrypt_detached","crypto_aead_aegis256_encrypt","crypto_aead_aegis256_encrypt_detached","crypto_aead_aegis256_keygen","crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_final","crypto_auth_hmacsha256_init","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_update","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512256","crypto_auth_hmacsha512256_final","crypto_auth_hmacsha512256_init","crypto_auth_hmacsha512256_keygen","crypto_auth_hmacsha512256_update","crypto_auth_hmacsha512256_verify","crypto_auth_hmacsha512_final","crypto_auth_hmacsha512_init","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_update","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_beforenm","crypto_box_curve25519xchacha20poly1305_detached","crypto_box_curve25519xchacha20poly1305_detached_afternm","crypto_box_curve25519xchacha20poly1305_easy","crypto_box_curve25519xchacha20poly1305_easy_afternm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_open_detached","crypto_box_curve25519xchacha20poly1305_open_detached_afternm","crypto_box_curve25519xchacha20poly1305_open_easy","crypto_box_curve25519xchacha20poly1305_open_easy_afternm","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_curve25519xchacha20poly1305_seed_keypair","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ed25519_add","crypto_core_ed25519_from_hash","crypto_core_ed25519_from_uniform","crypto_core_ed25519_is_valid_point","crypto_core_ed25519_random","crypto_core_ed25519_scalar_add","crypto_core_ed25519_scalar_complement","crypto_core_ed25519_scalar_invert","crypto_core_ed25519_scalar_mul","crypto_core_ed25519_scalar_negate","crypto_core_ed25519_scalar_random","crypto_core_ed25519_scalar_reduce","crypto_core_ed25519_scalar_sub","crypto_core_ed25519_sub","crypto_core_hchacha20","crypto_core_hsalsa20","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha256_final","crypto_hash_sha256_init","crypto_hash_sha256_update","crypto_hash_sha512","crypto_hash_sha512_final","crypto_hash_sha512_init","crypto_hash_sha512_update","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa2
108sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_needs_rehash","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ed25519","crypto_scalarmult_ed25519_base","crypto_scalarmult_ed25519_base_noclamp","crypto_scalarmult_ed25519_noclamp","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_version_string"],i=[w,_,P,k,R,O,I,B,x,E,T,N,C,M,U,D,J,H,V,q,L,j,F,W,Q,G,z,K,Y,Z,X,$,ee,et,er,en,ei,eo,ea,es,ed,el,ec,eu,ep,ef,eh,eg,em,ey,eb,ev,eS,eA,ew,e_,eP,ek,eR,eO,eI,eB,ex,eE,eT,eN,eC,eM,eU,eD,eJ,eH,eV,eq,eL,ej,eF,eW,eQ,eG,ez,eK,eY,eZ,eX,e$,e0,e1,e2,e3,e6,e5,e4,e8,e9,e7,te,tt,tr,tn,ti,to,ta,ts,td,tl,tc,tu,tp,tf,th,tg,tm,ty,tb,tv,tS,tA,tw,t_,tP,tk,tR,tO,tI,tB,tx,tE,tT,tN,tC,tM,tU,tD,tJ,tH,tV,tq,tL,tj,tF,tW,tQ,tG,tz,tK,tY,tZ,tX,t$,t0,t1,t2,t3,t6,t5,t4,t8,t9,t7,re,rt,rr,rn,ri,ro,ra,rs,rd,rl,rc,ru,rp,rf,rh,rg,rm,ry,rb,rv,rS,rA,rw,r_,rP,rk,rR,rO],o=0;o<i.length;o++)"function"==typeof r["_"+n[o]]&&(e[n[o]]=i[o]);var a=["SODIUM_LIBRARY_VERSION_MAJOR","SODIUM_LIBRARY_VERSION_MINOR","crypto_aead_aegis128l_ABYTES","crypto_aead_aegis128l_KEYBYTES","crypto_aead_aegis128l_MESSAGEBYTES_MAX","crypto_aead_aegis128l_NPUBBYTES","crypto_aead_aegis128l_NSECBYTES","crypto_aead_aegis256_ABYTES","crypto_aead_aegis256_KEYBYTES","crypto_aead_aegis256_MESSAGEBYTES_MAX","crypto_aead_aegis256_NPUBBYTES","crypto_aead_aegis256_NSECBYTES","crypto_aead_aes256gcm_ABYTES","crypto_aead_aes256gcm_KEYBYTES","crypto_aead_aes256gcm_MESSAGEBYTES_MAX","crypto_aead_aes256gcm_NPUBBYTES","crypto_aead_aes256gcm_NSECBYTES","crypto_aead_chacha20poly1305_ABYTES","crypto_aead_chacha20poly1305_IETF_ABYTES","crypto_aead_chacha20poly1305_IETF_KEYBYTES","crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_IETF_NPUBBYTES","crypto_aead_chacha20poly1305_IETF_NSECBYTES","crypto_aead_chacha20poly1305_KEYBYTES","crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_NPUBBYTES","crypto_aead_chacha20poly1305_NSECBYTES","crypto_aead_chacha20poly1305_ietf_ABYTES","crypto_aead_chacha20poly1305_ietf_KEYBYTES","crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_ietf_NPUBBYTES","crypto_aead_chacha20poly1305_ietf_NSECBYTES","crypto_aead_xchacha20poly1305_IETF_ABYTES","crypto_aead_xchacha20poly1305_IETF_KEYBYTES","crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_IETF_NPUBBYTES","crypto_aead_xchacha20poly1305_IETF_NSECBYTES","crypto_aead_xchacha20poly1305_ietf_ABYTES","crypto_aead_xchacha20poly1305_ietf_KEYBYTES","crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_ietf_NPUBBYTES","crypto_aead_xchacha20poly1305_ietf_NSECBYTES","crypto_auth_BYTES","crypto_auth_KEYBYTES","crypto_auth_hmacsha256_BYTES","crypto_auth_hmacsha256_KEYBYTES","crypto_auth_hmacsha512256_BYTES","crypto_auth_hmacsha512256_KEYBYTES","crypto_auth_hmacsha512_BYTES","crypto_auth_hmacsha512_KEYBYTES","crypto_box_BEFORENMBYTES","crypto_box_MACBYTES","crypto_box_MESSAGEBYTES_MAX","crypto_box_NONCEBYTES","crypto_box_PUBLICKEYBYTES","crypto_box_SEALBYTES","crypto_box_SECRETKEYBYTES","crypto_box_SEEDBYTES","crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES","crypto_box_curve25519xchacha20poly1305_MACBYTES","crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xchacha20poly1305_NONCEBYTES","crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEALBYTES","crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEEDBYTES","crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES","crypto_box_curve25519xsalsa20poly1305_MACBYTES","crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xsalsa20poly1305_NONCEBYTES","crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SEEDBYTES","crypto_core_ed25519_BYTES","crypto_core_ed25519_HASHBYTES","crypto_core_ed25519_NONREDUCEDSCALARBYTES","crypto_core_ed25519_SCALARBYTES","crypto_core_ed25519_UNIFORMBYTES","crypto_core_hchacha20_CONSTBYTES","crypto_core_hchacha20_INPUTBYTES","crypto_core_hchacha20_KEYBYTES","crypto_core_hchacha20_OUTPUTBYTES","crypto_core_hsalsa20_CONSTBYTES","crypto_core_hsalsa20_INPUTBYTES","crypto_core_hsalsa20_KEYBYTES","crypto_core_hsalsa20_OUTPUTBYTES","crypto_core_ristretto255_BYTES","crypto_core_ristretto255_HASHBYTES","crypto_core_ristretto255_NONREDUCEDSCALARBYTES","crypto_core_ristretto255_SCALARBYTES","crypto_core_salsa2012_CONSTBYTES","crypto_core_salsa2012_INPUTBYTES","crypto_core_salsa2012_KEYBYTES","crypto_core_salsa2012_OUTPUTBYTES","crypto_core_salsa208_CONSTBYTES","crypto_core_salsa208_INPUTBYTES","crypto_core_salsa208_KEYBYTES","crypto_core_salsa208_OUTPUTBYTES","crypto_core_salsa20_CONSTBYTES","crypto_core_salsa20_INPUTBYTES","crypto_core_salsa20_KEYBYTES","crypto_core_salsa20_OUTPUTBYTES","crypto_generichash_BYTES","crypto_generichash_BYTES_MAX","crypto_generichash_BYTES_MIN","crypto_generichash_KEYBYTES","crypto_generichash_KEYBYTES_MAX","crypto_generichash_KEYBYTES_MIN","crypto_generichash_blake2b_BYTES","crypto_generichash_blake2b_BYTES_MAX","crypto_generichash_blake2b_BYTES_MIN","crypto_generichash_blake2b_KEYBYTES","crypto_generichash_blake2b_KEYBYTES_MAX","crypto_generichash_blake2b_KEYBYTES_MIN","crypto_generichash_blake2b_PERSONALBYTES","crypto_generichash_blake2b_SALTBYTES","crypto_hash_BYTES","crypto_hash_sha256_BYTES","crypto_hash_sha512_BYTES","crypto_kdf_BYTES_MAX","crypto_kdf_BYTES_MIN","crypto_kdf_CONTEXTBYTES","crypto_kdf_KEYBYTES","crypto_kdf_blake2b_BYTES_MAX","crypto_kdf_blake2b_BYTES_MIN","crypto_kdf_blake2b_CONTEXTBYTES","crypto_kdf_blake2b_KEYBYTES","crypto_kdf_hkdf_sha256_BYTES_MAX","crypto_kdf_hkdf_sha256_BYTES_MIN","crypto_kdf_hkdf_sha256_KEYBYTES","crypto_kdf_hkdf_sha512_BYTES_MAX","crypto_kdf_hkdf_sha512_BYTES_MIN","crypto_kdf_hkdf_sha512_KEYBYTES","crypto_kx_PUBLICKEYBYTES","crypto_kx_SECRETKEYBYTES","crypto_kx_SEEDBYTES","crypto_kx_SESSIONKEYBYTES","crypto_onetimeauth_BYTES","crypto_onetimeauth_KEYBYTES","crypto_onetimeauth_poly1305_BYTES","crypto_onetimeauth_poly1305_KEYBYTES","crypto_pwhash_ALG_ARGON2I13","crypto_pwhash_ALG_ARGON2ID13","crypto_pwhash_ALG_DEFAULT","crypto_pwhash_BYTES_MAX","crypto_pwhash_BYTES_MIN","crypto_pwhash_MEMLIMIT_INTERACTIVE","crypto_pwhash_MEMLIMIT_MAX","crypto_pwhash_MEMLIMIT_MIN","crypto_pwhash_MEMLIMIT_MODERATE","crypto_pwhash_MEMLIMIT_SENSITIVE","crypto_pwhash_OPSLIMIT_INTERACTIVE","crypto_pwhash_OPSLIMIT_MAX","crypto_pwhash_OPSLIMIT_MIN","crypto_pwhash_OPSLIMIT_MODERATE","crypto_pwhash_OPSLIMIT_SENSITIVE","crypto_pwhash_PASSWD_MAX","crypto_pwhash_PASSWD_MIN","crypto_pwhash_SALTBYTES","crypto_pwhash_STRBYTES","crypto_pwhash_argon2i_BYTES_MAX","crypto_pwhash_argon2i_BYTES_MIN","crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE","crypto_pwhash_argon2i_MEMLIMIT_MAX","crypto_pwhash_argon2i_MEMLIMIT_MIN","crypto_pwhash_argon2i_MEMLIMIT_MODERATE","crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE","crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE","crypto_pwhash_argon2i_OPSLIMIT_MAX","crypto_pwhash_argon2i_OPSLIMIT_MIN","crypto_pwhash_argon2i_OPSLIMIT_MODERATE","crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE","crypto_pwhash_argon2i_PASSWD_MAX","crypto_pwhash_argon2i_PASSWD_MIN","crypto_pwhash_argon2i_SALTBYTES","crypto_pwhash_argon2i_STRBYTES","crypto_pwhash_argon2id_BYTES_MAX","crypto_pwhash_argon2id_BYTES_MIN","crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE","crypto_pwhash_argon2id_MEMLIMIT_MAX","crypto_pwhash_argon2id_MEMLIMIT_MIN","crypto_pwhash_argon2id_MEMLIMIT_MODERATE","crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE","crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE","crypto_pwhash_argon2id_OPSLIMIT_MAX","crypto_pwhash_argon2id_OPSLIMIT_MIN","crypto_pwhash_argon2id_OPSLIMIT_MODERATE","crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE","crypto_pwhash_argon2id_PASSWD_MAX","crypto_pwhash_argon2id_PASSWD_MIN","crypto_pwhash_argon2id_SALTBYTES","crypto_pwhash_argon2id_STRBYTES","crypto_pwhash_scryptsalsa2
108sha256_BYTES_MAX","crypto_pwhash_scryptsalsa208sha256_BYTES_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX","crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN","crypto_pwhash_scryptsalsa208sha256_SALTBYTES","crypto_pwhash_scryptsalsa208sha256_STRBYTES","crypto_scalarmult_BYTES","crypto_scalarmult_SCALARBYTES","crypto_scalarmult_curve25519_BYTES","crypto_scalarmult_curve25519_SCALARBYTES","crypto_scalarmult_ed25519_BYTES","crypto_scalarmult_ed25519_SCALARBYTES","crypto_scalarmult_ristretto255_BYTES","crypto_scalarmult_ristretto255_SCALARBYTES","crypto_secretbox_KEYBYTES","crypto_secretbox_MACBYTES","crypto_secretbox_MESSAGEBYTES_MAX","crypto_secretbox_NONCEBYTES","crypto_secretbox_xchacha20poly1305_KEYBYTES","crypto_secretbox_xchacha20poly1305_MACBYTES","crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xchacha20poly1305_NONCEBYTES","crypto_secretbox_xsalsa20poly1305_KEYBYTES","crypto_secretbox_xsalsa20poly1305_MACBYTES","crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xsalsa20poly1305_NONCEBYTES","crypto_secretstream_xchacha20poly1305_ABYTES","crypto_secretstream_xchacha20poly1305_HEADERBYTES","crypto_secretstream_xchacha20poly1305_KEYBYTES","crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretstream_xchacha20poly1305_TAG_FINAL","crypto_secretstream_xchacha20poly1305_TAG_MESSAGE","crypto_secretstream_xchacha20poly1305_TAG_PUSH","crypto_secretstream_xchacha20poly1305_TAG_REKEY","crypto_shorthash_BYTES","crypto_shorthash_KEYBYTES","crypto_shorthash_siphash24_BYTES","crypto_shorthash_siphash24_KEYBYTES","crypto_shorthash_siphashx24_BYTES","crypto_shorthash_siphashx24_KEYBYTES","crypto_sign_BYTES","crypto_sign_MESSAGEBYTES_MAX","crypto_sign_PUBLICKEYBYTES","crypto_sign_SECRETKEYBYTES","crypto_sign_SEEDBYTES","crypto_sign_ed25519_BYTES","crypto_sign_ed25519_MESSAGEBYTES_MAX","crypto_sign_ed25519_PUBLICKEYBYTES","crypto_sign_ed25519_SECRETKEYBYTES","crypto_sign_ed25519_SEEDBYTES","crypto_stream_KEYBYTES","crypto_stream_MESSAGEBYTES_MAX","crypto_stream_NONCEBYTES","crypto_stream_chacha20_IETF_KEYBYTES","crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX","crypto_stream_chacha20_IETF_NONCEBYTES","crypto_stream_chacha20_KEYBYTES","crypto_stream_chacha20_MESSAGEBYTES_MAX","crypto_stream_chacha20_NONCEBYTES","crypto_stream_chacha20_ietf_KEYBYTES","crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX","crypto_stream_chacha20_ietf_NONCEBYTES","crypto_stream_salsa2012_KEYBYTES","crypto_stream_salsa2012_MESSAGEBYTES_MAX","crypto_stream_salsa2012_NONCEBYTES","crypto_stream_salsa208_KEYBYTES","crypto_stream_salsa208_MESSAGEBYTES_MAX","crypto_stream_salsa208_NONCEBYTES","crypto_stream_salsa20_KEYBYTES","crypto_stream_salsa20_MESSAGEBYTES_MAX","crypto_stream_salsa20_NONCEBYTES","crypto_stream_xchacha20_KEYBYTES","crypto_stream_xchacha20_MESSAGEBYTES_MAX","crypto_stream_xchacha20_NONCEBYTES","crypto_stream_xsalsa20_KEYBYTES","crypto_stream_xsalsa20_MESSAGEBYTES_MAX","crypto_stream_xsalsa20_NONCEBYTES","crypto_verify_16_BYTES","crypto_verify_32_BYTES","crypto_verify_64_BYTES"];for(o=0;o<a.length;o++)"function"==typeof(t=r["_"+a[o].toLowerCase()])&&(e[a[o]]=t());var s=["SODIUM_VERSION_STRING","crypto_pwhash_STRPREFIX","crypto_pwhash_argon2i_STRPREFIX","crypto_pwhash_argon2id_STRPREFIX","crypto_pwhash_scryptsalsa208sha256_STRPREFIX"];for(o=0;o<s.length;o++)"function"==typeof(t=r["_"+s[o].toLowerCase()])&&(e[s[o]]=r.UTF8ToString(t()))}r=t;try{n();var i=new Uint8Array([98,97,108,108,115]),o=e.randombytes_buf(e.crypto_secretbox_NONCEBYTES),a=e.randombytes_buf(e.crypto_secretbox_KEYBYTES),s=e.crypto_secretbox_easy(i,o,a),d=e.crypto_secretbox_open_easy(s,o,a);if(e.memcmp(i,d))return}catch(e){if(null==r.useBackupModule)throw Error("Both wasm and asm failed to load"+e)}r.useBackupModule(),n()});function o(e){if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);e=unescape(encodeURIComponent(e));for(var t=new Uint8Array(e.length),r=0,n=e.length;r<n;r++)t[r]=e.charCodeAt(r);return t}function a(e){if("function"==typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(e);var t=8192,r=Math.ceil(e.length/t);if(r<=1)try{return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}
vendor: 4,580 bytes, line 1
1catch(e){throw TypeError("The encoded data was not valid.")}for(var n="",i=0,o=0;o<r;o++){var s=Array.prototype.slice.call(e,o*t+i,(o+1)*t+i);if(0!=s.length){var d,l=s.length,c=0;do{var u=s[--l];u>=240?(c=4,d=!0):u>=224?(c=3,d=!0):u>=192?(c=2,d=!0):u<128&&(c=1,d=!0)}while(!d);for(var p=c-(s.length-l),f=0;f<p;f++)i--,s.pop();n+=a(s)}}return n}function s(e){e=A(null,e,"input");for(var t,r,n,i="",o=0;o<e.length;o++)i+=String.fromCharCode(255&(n=87+(r=15&e[o])+(r-10>>8&-39)<<8|87+(t=e[o]>>>4)+(t-10>>8&-39)))+String.fromCharCode(n>>>8);return i}var d={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function l(e){if(null==e)return d.URLSAFE_NO_PADDING;if(e!==d.ORIGINAL&&e!==d.ORIGINAL_NO_PADDING&&e!==d.URLSAFE&&e!=d.URLSAFE_NO_PADDING)throw Error("unsupported base64 variant");return e}function c(e,t){t=l(t);var n,i=[],o=0|Math.floor((e=A(i,e,"input")).length/3),s=e.length-3*o,d=4*o+(0!==s?2&t?2+(s>>>1):4:0),c=new h(d+1),u=g(e);return i.push(u),i.push(c.address),0===r._sodium_bin2base64(c.address,c.length,u,e.length,t)&&b(i,"conversion failed"),c.length=d,n=a(c.to_Uint8Array()),y(i),n}function u(e,t){var r=t||n;if(!p(r))throw Error(r+" output format is not available");if(e instanceof h){if("uint8array"===r)return e.to_Uint8Array();if("text"===r)return a(e.to_Uint8Array());if("hex"===r)return s(e.to_Uint8Array());if("base64"===r)return c(e.to_Uint8Array(),d.URLSAFE_NO_PADDING);throw Error('What is output format "'+r+'"?')}if("object"==typeof e){for(var i=Object.keys(e),o={},l=0;l<i.length;l++)o[i[l]]=u(e[i[l]],r);return o}if("string"==typeof e)return e;throw TypeError("Cannot format output")}function p(e){for(var t=["uint8array","text","hex","base64"],r=0;r<t.length;r++)if(t[r]===e)return!0;return!1}function f(e){if(e){if("string"!=typeof e)throw TypeError("When defined, the output format must be a string");if(!p(e))throw Error(e+" is not a supported output format")}}function h(e){this.length=e,this.address=m(e)}function g(e){var t=m(e.length);return r.HEAPU8.set(e,t),t}function m(e){var t=r._malloc(e);if(0===t)throw{message:"_malloc() failed",length:e};return t}function y(e){if(e)for(var t,n=0;n<e.length;n++)t=e[n],r._free(t)}function b(e,t){throw y(e),Error(t)}function v(e,t){throw y(e),TypeError(t)}function S(e,t,r){null==t&&v(e,r+" cannot be null or undefined")}function A(e,t,r){return S(e,t,r),t instanceof Uint8Array?t:"string"==typeof t?o(t):void v(e,"unsupported input type for "+r)}function w(e,t,n,i,o,a){var s=[];f(a);var d=null;null!=e&&(d=g(e=A(s,e,"secret_nonce")),e.length,s.push(d)),t=A(s,t,"ciphertext");var l,c=r._crypto_aead_aegis128l_abytes(),p=t.length;p<c&&v(s,"ciphertext is too short"),l=g(t),s.push(l);var m=null,S=0;null!=n&&(m=g(n=A(s,n,"additional_data")),S=n.length,s.push(m)),i=A(s,i,"public_nonce");var w,_=0|r._crypto_aead_aegis128l_npubbytes();i.length!==_&&v(s,"invalid public_nonce length"),w=g(i),s.push(w),o=A(s,o,"key");var P,k=0|r._crypto_aead_aegis128l_keybytes();o.length!==k&&v(s,"invalid key length"),P=g(o),s.push(P);var R=new h(p-r._crypto_aead_aegis128l_abytes()|0),O=R.address;if(s.push(O),0===r._crypto_aead_aegis128l_decrypt(O,null,d,l,p,0,m,S,0,w,P)){var I=u(R,a);return y(s),I}b(s,"ciphertext cannot be decrypted using that key")}function _(e,t,n,i,o,a,s){var d=[];f(s);var l=null;null!=e&&(l=g(e=A(d,e,"secret_nonce")),e.length,d.push(l));var c=g(t=A(d,t,"ciphertext")),p=t.length;d.push(c),n=A(d,n,"mac");var m,S=0|r._crypto_box_macbytes();n.length!==S&&v(d,"invalid mac length"),m=g(n),d.push(m);var w=null,_=0;null!=i&&(w=g(i=A(d,i,"additional_data")),_=i.length,d.push(w)),o=A(d,o,"public_nonce");var P,k=0|r._crypto_aead_aegis128l_npubbytes();o.length!==k&&v(d,"invalid public_nonce length"),P=g(o),d.push(P),a=A(d,a,"key");var R,O=0|r._crypto_aead_aegis128l_keybytes();a.length!==O&&v(d,"invalid key length"),R=g(a),d.push(R);var I=new h(0|p),B=I.address;if(d.push(B),0===r._crypto_aead_aegis128l_decrypt_detached(B,l,c,p,0,m,w,_,0,P,R)){var x=u(I,s);return y(d),x}b(d,"ciphertext cannot be decrypted using that key")}function P(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_aegis128l_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_aegis128l_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(l+r._crypto_aead_aegis128l_abytes()|0),R=k.address;
vendor: 61,295 bytes, line 1
1if(s.push(R),0===r._crypto_aead_aegis128l_encrypt(R,null,d,l,0,c,p,0,m,S,_)){var O=u(k,a);return y(s),O}b(s,"invalid usage")}function k(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_aegis128l_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_aegis128l_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(0|l),R=k.address;s.push(R);var O=new h(0|r._crypto_aead_aegis128l_abytes()),I=O.address;if(s.push(I),0===r._crypto_aead_aegis128l_encrypt_detached(R,I,null,d,l,0,c,p,0,m,S,_)){var B=u({ciphertext:k,mac:O},a);return y(s),B}b(s,"invalid usage")}function R(e){var t=[];f(e);var n=new h(0|r._crypto_aead_aegis128l_keybytes()),i=n.address;t.push(i),r._crypto_aead_aegis128l_keygen(i);var o=u(n,e);return y(t),o}function O(e,t,n,i,o,a){var s=[];f(a);var d=null;null!=e&&(d=g(e=A(s,e,"secret_nonce")),e.length,s.push(d)),t=A(s,t,"ciphertext");var l,c=r._crypto_aead_aegis256_abytes(),p=t.length;p<c&&v(s,"ciphertext is too short"),l=g(t),s.push(l);var m=null,S=0;null!=n&&(m=g(n=A(s,n,"additional_data")),S=n.length,s.push(m)),i=A(s,i,"public_nonce");var w,_=0|r._crypto_aead_aegis256_npubbytes();i.length!==_&&v(s,"invalid public_nonce length"),w=g(i),s.push(w),o=A(s,o,"key");var P,k=0|r._crypto_aead_aegis256_keybytes();o.length!==k&&v(s,"invalid key length"),P=g(o),s.push(P);var R=new h(p-r._crypto_aead_aegis256_abytes()|0),O=R.address;if(s.push(O),0===r._crypto_aead_aegis256_decrypt(O,null,d,l,p,0,m,S,0,w,P)){var I=u(R,a);return y(s),I}b(s,"ciphertext cannot be decrypted using that key")}function I(e,t,n,i,o,a,s){var d=[];f(s);var l=null;null!=e&&(l=g(e=A(d,e,"secret_nonce")),e.length,d.push(l));var c=g(t=A(d,t,"ciphertext")),p=t.length;d.push(c),n=A(d,n,"mac");var m,S=0|r._crypto_box_macbytes();n.length!==S&&v(d,"invalid mac length"),m=g(n),d.push(m);var w=null,_=0;null!=i&&(w=g(i=A(d,i,"additional_data")),_=i.length,d.push(w)),o=A(d,o,"public_nonce");var P,k=0|r._crypto_aead_aegis256_npubbytes();o.length!==k&&v(d,"invalid public_nonce length"),P=g(o),d.push(P),a=A(d,a,"key");var R,O=0|r._crypto_aead_aegis256_keybytes();a.length!==O&&v(d,"invalid key length"),R=g(a),d.push(R);var I=new h(0|p),B=I.address;if(d.push(B),0===r._crypto_aead_aegis256_decrypt_detached(B,l,c,p,0,m,w,_,0,P,R)){var x=u(I,s);return y(d),x}b(d,"ciphertext cannot be decrypted using that key")}function B(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_aegis256_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_aegis256_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(l+r._crypto_aead_aegis256_abytes()|0),R=k.address;if(s.push(R),0===r._crypto_aead_aegis256_encrypt(R,null,d,l,0,c,p,0,m,S,_)){var O=u(k,a);return y(s),O}b(s,"invalid usage")}function x(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_aegis256_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_aegis256_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(0|l),R=k.address;s.push(R);var O=new h(0|r._crypto_aead_aegis256_abytes()),I=O.address;if(s.push(I),0===r._crypto_aead_aegis256_encrypt_detached(R,I,null,d,l,0,c,p,0,m,S,_)){var B=u({ciphertext:k,mac:O},a);return y(s),B}b(s,"invalid usage")}function E(e){var t=[];f(e);var n=new h(0|r._crypto_aead_aegis256_keybytes()),i=n.address;t.push(i),r._crypto_aead_aegis256_keygen(i);var o=u(n,e);return y(t),o}function T(e,t,n,i,o,a){var s=[];f(a);var d=null;null!=e&&(d=g(e=A(s,e,"secret_nonce")),e.length,s.push(d)),t=A(s,t,"ciphertext");var l,c=r._crypto_aead_chacha20poly1305_abytes(),p=t.length;p<c&&v(s,"ciphertext is too short"),l=g(t),s.push(l);var m=null,S=0;null!=n&&(m=g(n=A(s,n,"additional_data")),S=n.length,s.push(m)),i=A(s,i,"public_nonce");var w,_=0|r._crypto_aead_chacha20poly1305_npubbytes();i.length!==_&&v(s,"invalid public_nonce length"),w=g(i),s.push(w),o=A(s,o,"key");var P,k=0|r._crypto_aead_chacha20poly1305_keybytes();o.length!==k&&v(s,"invalid key length"),P=g(o),s.push(P);var R=new h(p-r._crypto_aead_chacha20poly1305_abytes()|0),O=R.address;if(s.push(O),0===r._crypto_aead_chacha20poly1305_decrypt(O,null,d,l,p,0,m,S,0,w,P)){var I=u(R,a);return y(s),I}b(s,"ciphertext cannot be decrypted using that key")}function N(e,t,n,i,o,a,s){var d=[];f(s);var l=null;null!=e&&(l=g(e=A(d,e,"secret_nonce")),e.length,d.push(l));var c=g(t=A(d,t,"ciphertext")),p=t.length;d.push(c),n=A(d,n,"mac");var m,S=0|r._crypto_box_macbytes();n.length!==S&&v(d,"invalid mac length"),m=g(n),d.push(m);var w=null,_=0;null!=i&&(w=g(i=A(d,i,"additional_data")),_=i.length,d.push(w)),o=A(d,o,"public_nonce");var P,k=0|r._crypto_aead_chacha20poly1305_npubbytes();o.length!==k&&v(d,"invalid public_nonce length"),P=g(o),d.push(P),a=A(d,a,"key");var R,O=0|r._crypto_aead_chacha20poly1305_keybytes();a.length!==O&&v(d,"invalid key length"),R=g(a),d.push(R);var I=new h(0|p),B=I.address;if(d.push(B),0===r._crypto_aead_chacha20poly1305_decrypt_detached(B,l,c,p,0,m,w,_,0,P,R)){var x=u(I,s);return y(d),x}b(d,"ciphertext cannot be decrypted using that key")}function C(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_chacha20poly1305_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_chacha20poly1305_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(l+r._crypto_aead_chacha20poly1305_abytes()|0),R=k.address;if(s.push(R),0===r._crypto_aead_chacha20poly1305_encrypt(R,null,d,l,0,c,p,0,m,S,_)){var O=u(k,a);return y(s),O}b(s,"invalid usage")}function M(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_chacha20poly1305_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_chacha20poly1305_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(0|l),R=k.address;s.push(R);var O=new h(0|r._crypto_aead_chacha20poly1305_abytes()),I=O.address;if(s.push(I),0===r._crypto_aead_chacha20poly1305_encrypt_detached(R,I,null,d,l,0,c,p,0,m,S,_)){var B=u({ciphertext:k,mac:O},a);return y(s),B}b(s,"invalid usage")}function U(e,t,n,i,o,a){var s=[];f(a);var d=null;null!=e&&(d=g(e=A(s,e,"secret_nonce")),e.length,s.push(d)),t=A(s,t,"ciphertext");var l,c=r._crypto_aead_chacha20poly1305_ietf_abytes(),p=t.length;p<c&&v(s,"ciphertext is too short"),l=g(t),s.push(l);var m=null,S=0;null!=n&&(m=g(n=A(s,n,"additional_data")),S=n.length,s.push(m)),i=A(s,i,"public_nonce");var w,_=0|r._crypto_aead_chacha20poly1305_ietf_npubbytes();i.length!==_&&v(s,"invalid public_nonce length"),w=g(i),s.push(w),o=A(s,o,"key");var P,k=0|r._crypto_aead_chacha20poly1305_ietf_keybytes();o.length!==k&&v(s,"invalid key length"),P=g(o),s.push(P);var R=new h(p-r._crypto_aead_chacha20poly1305_ietf_abytes()|0),O=R.address;if(s.push(O),0===r._crypto_aead_chacha20poly1305_ietf_decrypt(O,null,d,l,p,0,m,S,0,w,P)){var I=u(R,a);return y(s),I}b(s,"ciphertext cannot be decrypted using that key")}function D(e,t,n,i,o,a,s){var d=[];f(s);var l=null;null!=e&&(l=g(e=A(d,e,"secret_nonce")),e.length,d.push(l));var c=g(t=A(d,t,"ciphertext")),p=t.length;d.push(c),n=A(d,n,"mac");var m,S=0|r._crypto_box_macbytes();n.length!==S&&v(d,"invalid mac length"),m=g(n),d.push(m);var w=null,_=0;null!=i&&(w=g(i=A(d,i,"additional_data")),_=i.length,d.push(w)),o=A(d,o,"public_nonce");var P,k=0|r._crypto_aead_chacha20poly1305_ietf_npubbytes();o.length!==k&&v(d,"invalid public_nonce length"),P=g(o),d.push(P),a=A(d,a,"key");var R,O=0|r._crypto_aead_chacha20poly1305_ietf_keybytes();a.length!==O&&v(d,"invalid key length"),R=g(a),d.push(R);var I=new h(0|p),B=I.address;if(d.push(B),0===r._crypto_aead_chacha20poly1305_ietf_decrypt_detached(B,l,c,p,0,m,w,_,0,P,R)){var x=u(I,s);return y(d),x}b(d,"ciphertext cannot be decrypted using that key")}function J(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_chacha20poly1305_ietf_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_chacha20poly1305_ietf_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(l+r._crypto_aead_chacha20poly1305_ietf_abytes()|0),R=k.address;if(s.push(R),0===r._crypto_aead_chacha20poly1305_ietf_encrypt(R,null,d,l,0,c,p,0,m,S,_)){var O=u(k,a);return y(s),O}b(s,"invalid usage")}function H(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_chacha20poly1305_ietf_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_chacha20poly1305_ietf_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(0|l),R=k.address;s.push(R);var O=new h(0|r._crypto_aead_chacha20poly1305_ietf_abytes()),I=O.address;if(s.push(I),0===r._crypto_aead_chacha20poly1305_ietf_encrypt_detached(R,I,null,d,l,0,c,p,0,m,S,_)){var B=u({ciphertext:k,mac:O},a);return y(s),B}b(s,"invalid usage")}function V(e){var t=[];f(e);var n=new h(0|r._crypto_aead_chacha20poly1305_ietf_keybytes()),i=n.address;t.push(i),r._crypto_aead_chacha20poly1305_ietf_keygen(i);var o=u(n,e);return y(t),o}function q(e){var t=[];f(e);var n=new h(0|r._crypto_aead_chacha20poly1305_keybytes()),i=n.address;t.push(i),r._crypto_aead_chacha20poly1305_keygen(i);var o=u(n,e);return y(t),o}function L(e,t,n,i,o,a){var s=[];f(a);var d=null;null!=e&&(d=g(e=A(s,e,"secret_nonce")),e.length,s.push(d)),t=A(s,t,"ciphertext");var l,c=r._crypto_aead_xchacha20poly1305_ietf_abytes(),p=t.length;p<c&&v(s,"ciphertext is too short"),l=g(t),s.push(l);var m=null,S=0;null!=n&&(m=g(n=A(s,n,"additional_data")),S=n.length,s.push(m)),i=A(s,i,"public_nonce");var w,_=0|r._crypto_aead_xchacha20poly1305_ietf_npubbytes();i.length!==_&&v(s,"invalid public_nonce length"),w=g(i),s.push(w),o=A(s,o,"key");var P,k=0|r._crypto_aead_xchacha20poly1305_ietf_keybytes();o.length!==k&&v(s,"invalid key length"),P=g(o),s.push(P);var R=new h(p-r._crypto_aead_xchacha20poly1305_ietf_abytes()|0),O=R.address;if(s.push(O),0===r._crypto_aead_xchacha20poly1305_ietf_decrypt(O,null,d,l,p,0,m,S,0,w,P)){var I=u(R,a);return y(s),I}b(s,"ciphertext cannot be decrypted using that key")}function j(e,t,n,i,o,a,s){var d=[];f(s);var l=null;null!=e&&(l=g(e=A(d,e,"secret_nonce")),e.length,d.push(l));var c=g(t=A(d,t,"ciphertext")),p=t.length;d.push(c),n=A(d,n,"mac");var m,S=0|r._crypto_box_macbytes();n.length!==S&&v(d,"invalid mac length"),m=g(n),d.push(m);var w=null,_=0;null!=i&&(w=g(i=A(d,i,"additional_data")),_=i.length,d.push(w)),o=A(d,o,"public_nonce");var P,k=0|r._crypto_aead_xchacha20poly1305_ietf_npubbytes();o.length!==k&&v(d,"invalid public_nonce length"),P=g(o),d.push(P),a=A(d,a,"key");var R,O=0|r._crypto_aead_xchacha20poly1305_ietf_keybytes();a.length!==O&&v(d,"invalid key length"),R=g(a),d.push(R);var I=new h(0|p),B=I.address;if(d.push(B),0===r._crypto_aead_xchacha20poly1305_ietf_decrypt_detached(B,l,c,p,0,m,w,_,0,P,R)){var x=u(I,s);return y(d),x}b(d,"ciphertext cannot be decrypted using that key")}function F(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_xchacha20poly1305_ietf_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_xchacha20poly1305_ietf_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(l+r._crypto_aead_xchacha20poly1305_ietf_abytes()|0),R=k.address;if(s.push(R),0===r._crypto_aead_xchacha20poly1305_ietf_encrypt(R,null,d,l,0,c,p,0,m,S,_)){var O=u(k,a);return y(s),O}b(s,"invalid usage")}function W(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"message")),l=e.length;s.push(d);var c=null,p=0;null!=t&&(c=g(t=A(s,t,"additional_data")),p=t.length,s.push(c));var m=null;null!=n&&(m=g(n=A(s,n,"secret_nonce")),n.length,s.push(m)),i=A(s,i,"public_nonce");var S,w=0|r._crypto_aead_xchacha20poly1305_ietf_npubbytes();i.length!==w&&v(s,"invalid public_nonce length"),S=g(i),s.push(S),o=A(s,o,"key");var _,P=0|r._crypto_aead_xchacha20poly1305_ietf_keybytes();o.length!==P&&v(s,"invalid key length"),_=g(o),s.push(_);var k=new h(0|l),R=k.address;s.push(R);var O=new h(0|r._crypto_aead_xchacha20poly1305_ietf_abytes()),I=O.address;if(s.push(I),0===r._crypto_aead_xchacha20poly1305_ietf_encrypt_detached(R,I,null,d,l,0,c,p,0,m,S,_)){var B=u({ciphertext:k,mac:O},a);return y(s),B}b(s,"invalid usage")}function Q(e){var t=[];f(e);var n=new h(0|r._crypto_aead_xchacha20poly1305_ietf_keybytes()),i=n.address;t.push(i),r._crypto_aead_xchacha20poly1305_ietf_keygen(i);var o=u(n,e);return y(t),o}function G(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"key");var s,d=0|r._crypto_auth_keybytes();t.length!==d&&v(i,"invalid key length"),s=g(t),i.push(s);var l=new h(0|r._crypto_auth_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_auth(c,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function z(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"key");var s,d=0|r._crypto_auth_hmacsha256_keybytes();t.length!==d&&v(i,"invalid key length"),s=g(t),i.push(s);var l=new h(0|r._crypto_auth_hmacsha256_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_auth_hmacsha256(c,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function K(e,t){var n=[];f(t),S(n,e,"state_address");var i=new h(0|r._crypto_auth_hmacsha256_bytes()),o=i.address;if(n.push(o),!(0|r._crypto_auth_hmacsha256_final(e,o))){var a=(r._free(e),u(i,t));return y(n),a}b(n,"invalid usage")}function Y(e,t){var n=[];f(t);var i=null,o=0;null!=e&&(i=g(e=A(n,e,"key")),o=e.length,n.push(i));var a=new h(208).address;if(!(0|r._crypto_auth_hmacsha256_init(a,i,o))){var s=a;return y(n),s}b(n,"invalid usage")}function Z(e){var t=[];f(e);var n=new h(0|r._crypto_auth_hmacsha256_keybytes()),i=n.address;t.push(i),r._crypto_auth_hmacsha256_keygen(i);var o=u(n,e);return y(t),o}function X(e,t,n){var i=[];f(n),S(i,e,"state_address");var o=g(t=A(i,t,"message_chunk")),a=t.length;i.push(o),0|r._crypto_auth_hmacsha256_update(e,o,a)&&b(i,"invalid usage"),y(i)}function $(e,t,n){var i=[];e=A(i,e,"tag");var o,a=0|r._crypto_auth_hmacsha256_bytes();e.length!==a&&v(i,"invalid tag length"),o=g(e),i.push(o);var s=g(t=A(i,t,"message")),d=t.length;i.push(s),n=A(i,n,"key");var l,c=0|r._crypto_auth_hmacsha256_keybytes();n.length!==c&&v(i,"invalid key length"),l=g(n),i.push(l);var u=!(0|r._crypto_auth_hmacsha256_verify(o,s,d,0,l));return y(i),u}function ee(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"key");var s,d=0|r._crypto_auth_hmacsha512_keybytes();t.length!==d&&v(i,"invalid key length"),s=g(t),i.push(s);var l=new h(0|r._crypto_auth_hmacsha512_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_auth_hmacsha512(c,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function et(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"key");var s,d=0|r._crypto_auth_hmacsha512256_keybytes();t.length!==d&&v(i,"invalid key length"),s=g(t),i.push(s);var l=new h(0|r._crypto_auth_hmacsha512256_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_auth_hmacsha512256(c,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function er(e,t){var n=[];f(t),S(n,e,"state_address");var i=new h(0|r._crypto_auth_hmacsha512256_bytes()),o=i.address;if(n.push(o),!(0|r._crypto_auth_hmacsha512256_final(e,o))){var a=(r._free(e),u(i,t));return y(n),a}b(n,"invalid usage")}function en(e,t){var n=[];f(t);var i=null,o=0;null!=e&&(i=g(e=A(n,e,"key")),o=e.length,n.push(i));var a=new h(416).address;if(!(0|r._crypto_auth_hmacsha512256_init(a,i,o))){var s=a;return y(n),s}b(n,"invalid usage")}function ei(e){var t=[];f(e);var n=new h(0|r._crypto_auth_hmacsha512256_keybytes()),i=n.address;t.push(i),r._crypto_auth_hmacsha512256_keygen(i);var o=u(n,e);return y(t),o}function eo(e,t,n){var i=[];f(n),S(i,e,"state_address");var o=g(t=A(i,t,"message_chunk")),a=t.length;i.push(o),0|r._crypto_auth_hmacsha512256_update(e,o,a)&&b(i,"invalid usage"),y(i)}function ea(e,t,n){var i=[];e=A(i,e,"tag");var o,a=0|r._crypto_auth_hmacsha512256_bytes();e.length!==a&&v(i,"invalid tag length"),o=g(e),i.push(o);var s=g(t=A(i,t,"message")),d=t.length;i.push(s),n=A(i,n,"key");var l,c=0|r._crypto_auth_hmacsha512256_keybytes();n.length!==c&&v(i,"invalid key length"),l=g(n),i.push(l);var u=!(0|r._crypto_auth_hmacsha512256_verify(o,s,d,0,l));return y(i),u}function es(e,t){var n=[];f(t),S(n,e,"state_address");var i=new h(0|r._crypto_auth_hmacsha512_bytes()),o=i.address;if(n.push(o),!(0|r._crypto_auth_hmacsha512_final(e,o))){var a=(r._free(e),u(i,t));return y(n),a}b(n,"invalid usage")}function ed(e,t){var n=[];f(t);var i=null,o=0;null!=e&&(i=g(e=A(n,e,"key")),o=e.length,n.push(i));var a=new h(416).address;if(!(0|r._crypto_auth_hmacsha512_init(a,i,o))){var s=a;return y(n),s}b(n,"invalid usage")}function el(e){var t=[];f(e);var n=new h(0|r._crypto_auth_hmacsha512_keybytes()),i=n.address;t.push(i),r._crypto_auth_hmacsha512_keygen(i);var o=u(n,e);return y(t),o}function ec(e,t,n){var i=[];f(n),S(i,e,"state_address");var o=g(t=A(i,t,"message_chunk")),a=t.length;i.push(o),0|r._crypto_auth_hmacsha512_update(e,o,a)&&b(i,"invalid usage"),y(i)}function eu(e,t,n){var i=[];e=A(i,e,"tag");var o,a=0|r._crypto_auth_hmacsha512_bytes();e.length!==a&&v(i,"invalid tag length"),o=g(e),i.push(o);var s=g(t=A(i,t,"message")),d=t.length;i.push(s),n=A(i,n,"key");var l,c=0|r._crypto_auth_hmacsha512_keybytes();n.length!==c&&v(i,"invalid key length"),l=g(n),i.push(l);var u=!(0|r._crypto_auth_hmacsha512_verify(o,s,d,0,l));return y(i),u}function ep(e){var t=[];f(e);var n=new h(0|r._crypto_auth_keybytes()),i=n.address;t.push(i),r._crypto_auth_keygen(i);var o=u(n,e);return y(t),o}function ef(e,t,n){var i=[];e=A(i,e,"tag");var o,a=0|r._crypto_auth_bytes();e.length!==a&&v(i,"invalid tag length"),o=g(e),i.push(o);var s=g(t=A(i,t,"message")),d=t.length;i.push(s),n=A(i,n,"key");var l,c=0|r._crypto_auth_keybytes();n.length!==c&&v(i,"invalid key length"),l=g(n),i.push(l);var u=!(0|r._crypto_auth_verify(o,s,d,0,l));return y(i),u}function eh(e,t,n){var i=[];f(n),e=A(i,e,"publicKey");var o,a=0|r._crypto_box_publickeybytes();e.length!==a&&v(i,"invalid publicKey length"),o=g(e),i.push(o),t=A(i,t,"privateKey");var s,d=0|r._crypto_box_secretkeybytes();t.length!==d&&v(i,"invalid privateKey length"),s=g(t),i.push(s);var l=new h(0|r._crypto_box_beforenmbytes()),c=l.address;if(i.push(c),!(0|r._crypto_box_beforenm(c,o,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function eg(e,t,n){var i=[];f(n),e=A(i,e,"publicKey");var o,a=0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes();e.length!==a&&v(i,"invalid publicKey length"),o=g(e),i.push(o),t=A(i,t,"privateKey");var s,d=0|r._crypto_box_curve25519xchacha20poly1305_secretkeybytes();t.length!==d&&v(i,"invalid privateKey length"),s=g(t),i.push(s);var l=new h(0|r._crypto_box_curve25519xchacha20poly1305_beforenmbytes()),c=l.address;if(i.push(c),!(0|r._crypto_box_curve25519xchacha20poly1305_beforenm(c,o,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function em(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"message")),d=e.length;a.push(s),t=A(a,t,"nonce");var l,c=0|r._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==c&&v(a,"invalid nonce length"),l=g(t),a.push(l),n=A(a,n,"publicKey");var p,m=0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes();n.length!==m&&v(a,"invalid publicKey length"),p=g(n),a.push(p),i=A(a,i,"privateKey");var S,w=0|r._crypto_box_curve25519xchacha20poly1305_secretkeybytes();i.length!==w&&v(a,"invalid privateKey length"),S=g(i),a.push(S);var _=new h(0|d),P=_.address;a.push(P);var k=new h(0|r._crypto_box_curve25519xchacha20poly1305_macbytes()),R=k.address;if(a.push(R),!(0|r._crypto_box_curve25519xchacha20poly1305_detached(P,R,s,d,0,l,p,S))){var O=u({ciphertext:_,mac:k},o);return y(a),O}b(a,"invalid usage")}function ey(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"message")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"sharedKey");var c,p=0|r._crypto_box_curve25519xchacha20poly1305_beforenmbytes();n.length!==p&&v(o,"invalid sharedKey length"),c=g(n),o.push(c);var m=new h(0|s),S=m.address;o.push(S);var w=new h(0|r._crypto_box_curve25519xchacha20poly1305_macbytes()),_=w.address;if(o.push(_),!(0|r._crypto_box_curve25519xchacha20poly1305_detached_afternm(S,_,a,s,0,d,c))){var P=u({ciphertext:m,mac:w},i);return y(o),P}b(o,"invalid usage")}function eb(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"message")),d=e.length;a.push(s),t=A(a,t,"nonce");var l,c=0|r._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==c&&v(a,"invalid nonce length"),l=g(t),a.push(l),n=A(a,n,"publicKey");var p,m=0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes();n.length!==m&&v(a,"invalid publicKey length"),p=g(n),a.push(p),i=A(a,i,"privateKey");var S,w=0|r._crypto_box_curve25519xchacha20poly1305_secretkeybytes();i.length!==w&&v(a,"invalid privateKey length"),S=g(i),a.push(S);var _=new h(d+r._crypto_box_curve25519xchacha20poly1305_macbytes()|0),P=_.address;if(a.push(P),!(0|r._crypto_box_curve25519xchacha20poly1305_easy(P,s,d,0,l,p,S))){var k=u(_,o);return y(a),k}b(a,"invalid usage")}function ev(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"message")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"sharedKey");var c,p=0|r._crypto_box_curve25519xchacha20poly1305_beforenmbytes();n.length!==p&&v(o,"invalid sharedKey length"),c=g(n),o.push(c);var m=new h(s+r._crypto_box_curve25519xchacha20poly1305_macbytes()|0),S=m.address;if(o.push(S),!(0|r._crypto_box_curve25519xchacha20poly1305_easy_afternm(S,a,s,0,d,c))){var w=u(m,i);return y(o),w}b(o,"invalid usage")}function eS(e){var t=[];f(e);var n=new h(0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes()),i=n.address;t.push(i);var o=new h(0|r._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),a=o.address;t.push(a),r._crypto_box_curve25519xchacha20poly1305_keypair(i,a);var s=u({publicKey:n,privateKey:o,keyType:"curve25519"},e);return y(t),s}function eA(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"ciphertext")),l=e.length;s.push(d),t=A(s,t,"mac");var c,p=0|r._crypto_box_curve25519xchacha20poly1305_macbytes();t.length!==p&&v(s,"invalid mac length"),c=g(t),s.push(c),n=A(s,n,"nonce");var m,S=0|r._crypto_box_curve25519xchacha20poly1305_noncebytes();n.length!==S&&v(s,"invalid nonce length"),m=g(n),s.push(m),i=A(s,i,"publicKey");var w,_=0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes();i.length!==_&&v(s,"invalid publicKey length"),w=g(i),s.push(w),o=A(s,o,"privateKey");var P,k=0|r._crypto_box_curve25519xchacha20poly1305_secretkeybytes();o.length!==k&&v(s,"invalid privateKey length"),P=g(o),s.push(P);var R=new h(0|l),O=R.address;if(s.push(O),!(0|r._crypto_box_curve25519xchacha20poly1305_open_detached(O,d,c,l,0,m,w,P))){var I=u(R,a);return y(s),I}b(s,"incorrect key pair for the given ciphertext")}function ew(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"ciphertext")),d=e.length;a.push(s),t=A(a,t,"mac");var l,c=0|r._crypto_box_curve25519xchacha20poly1305_macbytes();t.length!==c&&v(a,"invalid mac length"),l=g(t),a.push(l),n=A(a,n,"nonce");var p,m=0|r._crypto_box_curve25519xchacha20poly1305_noncebytes();n.length!==m&&v(a,"invalid nonce length"),p=g(n),a.push(p),i=A(a,i,"sharedKey");var S,w=0|r._crypto_box_curve25519xchacha20poly1305_beforenmbytes();i.length!==w&&v(a,"invalid sharedKey length"),S=g(i),a.push(S);var _=new h(0|d),P=_.address;if(a.push(P),!(0|r._crypto_box_curve25519xchacha20poly1305_open_detached_afternm(P,s,l,d,0,p,S))){var k=u(_,o);return y(a),k}b(a,"incorrect secret key for the given ciphertext")}function e_(e,t,n,i,o){var a=[];f(o),e=A(a,e,"ciphertext");var s,d=r._crypto_box_curve25519xchacha20poly1305_macbytes(),l=e.length;l<d&&v(a,"ciphertext is too short"),s=g(e),a.push(s),t=A(a,t,"nonce");var c,p=0|r._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==p&&v(a,"invalid nonce length"),c=g(t),a.push(c),n=A(a,n,"publicKey");var m,S=0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes();n.length!==S&&v(a,"invalid publicKey length"),m=g(n),a.push(m),i=A(a,i,"privateKey");var w,_=0|r._crypto_box_curve25519xchacha20poly1305_secretkeybytes();i.length!==_&&v(a,"invalid privateKey length"),w=g(i),a.push(w);var P=new h(l-r._crypto_box_curve25519xchacha20poly1305_macbytes()|0),k=P.address;if(a.push(k),!(0|r._crypto_box_curve25519xchacha20poly1305_open_easy(k,s,l,0,c,m,w))){var R=u(P,o);return y(a),R}b(a,"incorrect key pair for the given ciphertext")}function eP(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"ciphertext")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"sharedKey");var c,p=0|r._crypto_box_curve25519xchacha20poly1305_beforenmbytes();n.length!==p&&v(o,"invalid sharedKey length"),c=g(n),o.push(c);var m=new h(s-r._crypto_box_curve25519xchacha20poly1305_macbytes()|0),S=m.address;if(o.push(S),!(0|r._crypto_box_curve25519xchacha20poly1305_open_easy_afternm(S,a,s,0,d,c))){var w=u(m,i);return y(o),w}b(o,"incorrect secret key for the given ciphertext")}function ek(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"publicKey");var s,d=0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==d&&v(i,"invalid publicKey length"),s=g(t),i.push(s);var l=new h(a+r._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),c=l.address;i.push(c),r._crypto_box_curve25519xchacha20poly1305_seal(c,o,a,0,s);var p=u(l,n);return y(i),p}function eR(e,t,n,i){var o=[];f(i),e=A(o,e,"ciphertext");var a,s=r._crypto_box_curve25519xchacha20poly1305_sealbytes(),d=e.length;d<s&&v(o,"ciphertext is too short"),a=g(e),o.push(a),t=A(o,t,"publicKey");var l,c=0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==c&&v(o,"invalid publicKey length"),l=g(t),o.push(l),n=A(o,n,"secretKey");var p,m=0|r._crypto_box_curve25519xchacha20poly1305_secretkeybytes();n.length!==m&&v(o,"invalid secretKey length"),p=g(n),o.push(p);var b=new h(d-r._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),S=b.address;o.push(S),r._crypto_box_curve25519xchacha20poly1305_seal_open(S,a,d,0,l,p);var w=u(b,i);return y(o),w}function eO(e,t){var n=[];f(t),e=A(n,e,"seed");var i,o=0|r._crypto_box_curve25519xchacha20poly1305_seedbytes();e.length!==o&&v(n,"invalid seed length"),i=g(e),n.push(i);var a=new h(0|r._crypto_box_curve25519xchacha20poly1305_publickeybytes()),s=a.address;n.push(s);var d=new h(0|r._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),l=d.address;if(n.push(l),!(0|r._crypto_box_curve25519xchacha20poly1305_seed_keypair(s,l,i))){var c={publicKey:u(a,t),privateKey:u(d,t),keyType:"x25519"};return y(n),c}b(n,"invalid usage")}function eI(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"message")),d=e.length;a.push(s),t=A(a,t,"nonce");var l,c=0|r._crypto_box_noncebytes();t.length!==c&&v(a,"invalid nonce length"),l=g(t),a.push(l),n=A(a,n,"publicKey");var p,m=0|r._crypto_box_publickeybytes();n.length!==m&&v(a,"invalid publicKey length"),p=g(n),a.push(p),i=A(a,i,"privateKey");var S,w=0|r._crypto_box_secretkeybytes();i.length!==w&&v(a,"invalid privateKey length"),S=g(i),a.push(S);var _=new h(0|d),P=_.address;a.push(P);var k=new h(0|r._crypto_box_macbytes()),R=k.address;if(a.push(R),!(0|r._crypto_box_detached(P,R,s,d,0,l,p,S))){var O=u({ciphertext:_,mac:k},o);return y(a),O}b(a,"invalid usage")}function eB(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"message")),d=e.length;a.push(s),t=A(a,t,"nonce");var l,c=0|r._crypto_box_noncebytes();t.length!==c&&v(a,"invalid nonce length"),l=g(t),a.push(l),n=A(a,n,"publicKey");var p,m=0|r._crypto_box_publickeybytes();n.length!==m&&v(a,"invalid publicKey length"),p=g(n),a.push(p),i=A(a,i,"privateKey");var S,w=0|r._crypto_box_secretkeybytes();i.length!==w&&v(a,"invalid privateKey length"),S=g(i),a.push(S);var _=new h(d+r._crypto_box_macbytes()|0),P=_.address;if(a.push(P),!(0|r._crypto_box_easy(P,s,d,0,l,p,S))){var k=u(_,o);return y(a),k}b(a,"invalid usage")}function ex(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"message")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_box_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"sharedKey");var c,p=0|r._crypto_box_beforenmbytes();n.length!==p&&v(o,"invalid sharedKey length"),c=g(n),o.push(c);var m=new h(s+r._crypto_box_macbytes()|0),S=m.address;if(o.push(S),!(0|r._crypto_box_easy_afternm(S,a,s,0,d,c))){var w=u(m,i);return y(o),w}b(o,"invalid usage")}function eE(e){var t=[];f(e);var n=new h(0|r._crypto_box_publickeybytes()),i=n.address;t.push(i);var o=new h(0|r._crypto_box_secretkeybytes()),a=o.address;if(t.push(a),!(0|r._crypto_box_keypair(i,a))){var s={publicKey:u(n,e),privateKey:u(o,e),keyType:"x25519"};return y(t),s}b(t,"internal error")}function eT(e,t,n,i,o,a){var s=[];f(a);var d=g(e=A(s,e,"ciphertext")),l=e.length;s.push(d),t=A(s,t,"mac");var c,p=0|r._crypto_box_macbytes();t.length!==p&&v(s,"invalid mac length"),c=g(t),s.push(c),n=A(s,n,"nonce");var m,S=0|r._crypto_box_noncebytes();n.length!==S&&v(s,"invalid nonce length"),m=g(n),s.push(m),i=A(s,i,"publicKey");var w,_=0|r._crypto_box_publickeybytes();i.length!==_&&v(s,"invalid publicKey length"),w=g(i),s.push(w),o=A(s,o,"privateKey");var P,k=0|r._crypto_box_secretkeybytes();o.length!==k&&v(s,"invalid privateKey length"),P=g(o),s.push(P);var R=new h(0|l),O=R.address;if(s.push(O),!(0|r._crypto_box_open_detached(O,d,c,l,0,m,w,P))){var I=u(R,a);return y(s),I}b(s,"incorrect key pair for the given ciphertext")}function eN(e,t,n,i,o){var a=[];f(o),e=A(a,e,"ciphertext");var s,d=r._crypto_box_macbytes(),l=e.length;l<d&&v(a,"ciphertext is too short"),s=g(e),a.push(s),t=A(a,t,"nonce");var c,p=0|r._crypto_box_noncebytes();t.length!==p&&v(a,"invalid nonce length"),c=g(t),a.push(c),n=A(a,n,"publicKey");var m,S=0|r._crypto_box_publickeybytes();n.length!==S&&v(a,"invalid publicKey length"),m=g(n),a.push(m),i=A(a,i,"privateKey");var w,_=0|r._crypto_box_secretkeybytes();i.length!==_&&v(a,"invalid privateKey length"),w=g(i),a.push(w);var P=new h(l-r._crypto_box_macbytes()|0),k=P.address;if(a.push(k),!(0|r._crypto_box_open_easy(k,s,l,0,c,m,w))){var R=u(P,o);return y(a),R}b(a,"incorrect key pair for the given ciphertext")}function eC(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"ciphertext")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_box_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"sharedKey");var c,p=0|r._crypto_box_beforenmbytes();n.length!==p&&v(o,"invalid sharedKey length"),c=g(n),o.push(c);var m=new h(s-r._crypto_box_macbytes()|0),S=m.address;if(o.push(S),!(0|r._crypto_box_open_easy_afternm(S,a,s,0,d,c))){var w=u(m,i);return y(o),w}b(o,"incorrect secret key for the given ciphertext")}function eM(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"publicKey");var s,d=0|r._crypto_box_publickeybytes();t.length!==d&&v(i,"invalid publicKey length"),s=g(t),i.push(s);var l=new h(a+r._crypto_box_sealbytes()|0),c=l.address;if(i.push(c),!(0|r._crypto_box_seal(c,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function eU(e,t,n,i){var o=[];f(i),e=A(o,e,"ciphertext");var a,s=r._crypto_box_sealbytes(),d=e.length;d<s&&v(o,"ciphertext is too short"),a=g(e),o.push(a),t=A(o,t,"publicKey");var l,c=0|r._crypto_box_publickeybytes();t.length!==c&&v(o,"invalid publicKey length"),l=g(t),o.push(l),n=A(o,n,"privateKey");var p,m=0|r._crypto_box_secretkeybytes();n.length!==m&&v(o,"invalid privateKey length"),p=g(n),o.push(p);var S=new h(d-r._crypto_box_sealbytes()|0),w=S.address;if(o.push(w),!(0|r._crypto_box_seal_open(w,a,d,0,l,p))){var _=u(S,i);return y(o),_}b(o,"incorrect key pair for the given ciphertext")}function eD(e,t){var n=[];f(t),e=A(n,e,"seed");var i,o=0|r._crypto_box_seedbytes();e.length!==o&&v(n,"invalid seed length"),i=g(e),n.push(i);var a=new h(0|r._crypto_box_publickeybytes()),s=a.address;n.push(s);var d=new h(0|r._crypto_box_secretkeybytes()),l=d.address;if(n.push(l),!(0|r._crypto_box_seed_keypair(s,l,i))){var c={publicKey:u(a,t),privateKey:u(d,t),keyType:"x25519"};return y(n),c}b(n,"invalid usage")}function eJ(e,t,n){var i=[];f(n),e=A(i,e,"p");var o,a=0|r._crypto_core_ed25519_bytes();e.length!==a&&v(i,"invalid p length"),o=g(e),i.push(o),t=A(i,t,"q");var s,d=0|r._crypto_core_ed25519_bytes();t.length!==d&&v(i,"invalid q length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ed25519_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_core_ed25519_add(c,o,s))){var p=u(l,n);return y(i),p}b(i,"input is an invalid element")}function eH(e,t){var n=[];f(t);var i=g(e=A(n,e,"r"));e.length,n.push(i);var o=new h(0|r._crypto_core_ed25519_bytes()),a=o.address;if(n.push(a),!(0|r._crypto_core_ed25519_from_hash(a,i))){var s=u(o,t);return y(n),s}b(n,"invalid usage")}function eV(e,t){var n=[];f(t);var i=g(e=A(n,e,"r"));e.length,n.push(i);var o=new h(0|r._crypto_core_ed25519_bytes()),a=o.address;if(n.push(a),!(0|r._crypto_core_ed25519_from_uniform(a,i))){var s=u(o,t);return y(n),s}b(n,"invalid usage")}function eq(e,t){var n=[];f(t),e=A(n,e,"repr");var i,o=0|r._crypto_core_ed25519_bytes();e.length!==o&&v(n,"invalid repr length"),i=g(e),n.push(i);var a=1==(0|r._crypto_core_ed25519_is_valid_point(i));return y(n),a}function eL(e){var t=[];f(e);var n=new h(0|r._crypto_core_ed25519_bytes()),i=n.address;t.push(i),r._crypto_core_ed25519_random(i);var o=u(n,e);return y(t),o}function ej(e,t,n){var i=[];f(n),e=A(i,e,"x");var o,a=0|r._crypto_core_ed25519_scalarbytes();e.length!==a&&v(i,"invalid x length"),o=g(e),i.push(o),t=A(i,t,"y");var s,d=0|r._crypto_core_ed25519_scalarbytes();t.length!==d&&v(i,"invalid y length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ed25519_scalarbytes()),c=l.address;i.push(c),r._crypto_core_ed25519_scalar_add(c,o,s);var p=u(l,n);return y(i),p}function eF(e,t){var n=[];f(t),e=A(n,e,"s");var i,o=0|r._crypto_core_ed25519_scalarbytes();e.length!==o&&v(n,"invalid s length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ed25519_scalarbytes()),s=a.address;n.push(s),r._crypto_core_ed25519_scalar_complement(s,i);var d=u(a,t);return y(n),d}function eW(e,t){var n=[];f(t),e=A(n,e,"s");var i,o=0|r._crypto_core_ed25519_scalarbytes();e.length!==o&&v(n,"invalid s length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ed25519_scalarbytes()),s=a.address;if(n.push(s),!(0|r._crypto_core_ed25519_scalar_invert(s,i))){var d=u(a,t);return y(n),d}b(n,"invalid reciprocate")}function eQ(e,t,n){var i=[];f(n),e=A(i,e,"x");var o,a=0|r._crypto_core_ed25519_scalarbytes();e.length!==a&&v(i,"invalid x length"),o=g(e),i.push(o),t=A(i,t,"y");var s,d=0|r._crypto_core_ed25519_scalarbytes();t.length!==d&&v(i,"invalid y length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ed25519_scalarbytes()),c=l.address;i.push(c),r._crypto_core_ed25519_scalar_mul(c,o,s);var p=u(l,n);return y(i),p}function eG(e,t){var n=[];f(t),e=A(n,e,"s");var i,o=0|r._crypto_core_ed25519_scalarbytes();e.length!==o&&v(n,"invalid s length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ed25519_scalarbytes()),s=a.address;n.push(s),r._crypto_core_ed25519_scalar_negate(s,i);var d=u(a,t);return y(n),d}function ez(e){var t=[];f(e);var n=new h(0|r._crypto_core_ed25519_scalarbytes()),i=n.address;t.push(i),r._crypto_core_ed25519_scalar_random(i);var o=u(n,e);return y(t),o}function eK(e,t){var n=[];f(t),e=A(n,e,"sample");var i,o=0|r._crypto_core_ed25519_nonreducedscalarbytes();e.length!==o&&v(n,"invalid sample length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ed25519_scalarbytes()),s=a.address;n.push(s),r._crypto_core_ed25519_scalar_reduce(s,i);var d=u(a,t);return y(n),d}function eY(e,t,n){var i=[];f(n),e=A(i,e,"x");var o,a=0|r._crypto_core_ed25519_scalarbytes();e.length!==a&&v(i,"invalid x length"),o=g(e),i.push(o),t=A(i,t,"y");var s,d=0|r._crypto_core_ed25519_scalarbytes();t.length!==d&&v(i,"invalid y length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ed25519_scalarbytes()),c=l.address;i.push(c),r._crypto_core_ed25519_scalar_sub(c,o,s);var p=u(l,n);return y(i),p}function eZ(e,t,n){var i=[];f(n),e=A(i,e,"p");var o,a=0|r._crypto_core_ed25519_bytes();e.length!==a&&v(i,"invalid p length"),o=g(e),i.push(o),t=A(i,t,"q");var s,d=0|r._crypto_core_ed25519_bytes();t.length!==d&&v(i,"invalid q length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ed25519_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_core_ed25519_sub(c,o,s))){var p=u(l,n);return y(i),p}b(i,"input is an invalid element")}function eX(e,t,n,i){var o=[];f(i),e=A(o,e,"input");var a,s=0|r._crypto_core_hchacha20_inputbytes();e.length!==s&&v(o,"invalid input length"),a=g(e),o.push(a),t=A(o,t,"privateKey");var d,l=0|r._crypto_core_hchacha20_keybytes();t.length!==l&&v(o,"invalid privateKey length"),d=g(t),o.push(d);var c=null;null!=n&&(c=g(n=A(o,n,"constant")),n.length,o.push(c));var p=new h(0|r._crypto_core_hchacha20_outputbytes()),m=p.address;if(o.push(m),!(0|r._crypto_core_hchacha20(m,a,d,c))){var S=u(p,i);return y(o),S}b(o,"invalid usage")}function e$(e,t,n,i){var o=[];f(i),e=A(o,e,"input");var a,s=0|r._crypto_core_hsalsa20_inputbytes();e.length!==s&&v(o,"invalid input length"),a=g(e),o.push(a),t=A(o,t,"privateKey");var d,l=0|r._crypto_core_hsalsa20_keybytes();t.length!==l&&v(o,"invalid privateKey length"),d=g(t),o.push(d);var c=null;null!=n&&(c=g(n=A(o,n,"constant")),n.length,o.push(c));var p=new h(0|r._crypto_core_hsalsa20_outputbytes()),m=p.address;if(o.push(m),!(0|r._crypto_core_hsalsa20(m,a,d,c))){var S=u(p,i);return y(o),S}b(o,"invalid usage")}function e0(e,t,n){var i=[];f(n),e=A(i,e,"p");var o,a=0|r._crypto_core_ristretto255_bytes();e.length!==a&&v(i,"invalid p length"),o=g(e),i.push(o),t=A(i,t,"q");var s,d=0|r._crypto_core_ristretto255_bytes();t.length!==d&&v(i,"invalid q length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ristretto255_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_core_ristretto255_add(c,o,s))){var p=u(l,n);return y(i),p}b(i,"input is an invalid element")}function e1(e,t){var n=[];f(t);var i=g(e=A(n,e,"r"));e.length,n.push(i);var o=new h(0|r._crypto_core_ristretto255_bytes()),a=o.address;if(n.push(a),!(0|r._crypto_core_ristretto255_from_hash(a,i))){var s=u(o,t);return y(n),s}b(n,"invalid usage")}function e2(e,t){var n=[];f(t),e=A(n,e,"repr");var i,o=0|r._crypto_core_ristretto255_bytes();e.length!==o&&v(n,"invalid repr length"),i=g(e),n.push(i);var a=1==(0|r._crypto_core_ristretto255_is_valid_point(i));return y(n),a}function e3(e){var t=[];f(e);var n=new h(0|r._crypto_core_ristretto255_bytes()),i=n.address;t.push(i),r._crypto_core_ristretto255_random(i);var o=u(n,e);return y(t),o}function e6(e,t,n){var i=[];f(n),e=A(i,e,"x");var o,a=0|r._crypto_core_ristretto255_scalarbytes();e.length!==a&&v(i,"invalid x length"),o=g(e),i.push(o),t=A(i,t,"y");var s,d=0|r._crypto_core_ristretto255_scalarbytes();t.length!==d&&v(i,"invalid y length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ristretto255_scalarbytes()),c=l.address;i.push(c),r._crypto_core_ristretto255_scalar_add(c,o,s);var p=u(l,n);return y(i),p}function e5(e,t){var n=[];f(t),e=A(n,e,"s");var i,o=0|r._crypto_core_ristretto255_scalarbytes();e.length!==o&&v(n,"invalid s length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ristretto255_scalarbytes()),s=a.address;n.push(s),r._crypto_core_ristretto255_scalar_complement(s,i);var d=u(a,t);return y(n),d}function e4(e,t){var n=[];f(t),e=A(n,e,"s");var i,o=0|r._crypto_core_ristretto255_scalarbytes();e.length!==o&&v(n,"invalid s length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ristretto255_scalarbytes()),s=a.address;if(n.push(s),!(0|r._crypto_core_ristretto255_scalar_invert(s,i))){var d=u(a,t);return y(n),d}b(n,"invalid reciprocate")}function e8(e,t,n){var i=[];f(n),e=A(i,e,"x");var o,a=0|r._crypto_core_ristretto255_scalarbytes();e.length!==a&&v(i,"invalid x length"),o=g(e),i.push(o),t=A(i,t,"y");var s,d=0|r._crypto_core_ristretto255_scalarbytes();t.length!==d&&v(i,"invalid y length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ristretto255_scalarbytes()),c=l.address;i.push(c),r._crypto_core_ristretto255_scalar_mul(c,o,s);var p=u(l,n);return y(i),p}function e9(e,t){var n=[];f(t),e=A(n,e,"s");var i,o=0|r._crypto_core_ristretto255_scalarbytes();e.length!==o&&v(n,"invalid s length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ristretto255_scalarbytes()),s=a.address;n.push(s),r._crypto_core_ristretto255_scalar_negate(s,i);var d=u(a,t);return y(n),d}function e7(e){var t=[];f(e);var n=new h(0|r._crypto_core_ristretto255_scalarbytes()),i=n.address;t.push(i),r._crypto_core_ristretto255_scalar_random(i);var o=u(n,e);return y(t),o}function te(e,t){var n=[];f(t),e=A(n,e,"sample");var i,o=0|r._crypto_core_ristretto255_nonreducedscalarbytes();e.length!==o&&v(n,"invalid sample length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ristretto255_scalarbytes()),s=a.address;n.push(s),r._crypto_core_ristretto255_scalar_reduce(s,i);var d=u(a,t);return y(n),d}function tt(e,t,n){var i=[];f(n),e=A(i,e,"x");var o,a=0|r._crypto_core_ristretto255_scalarbytes();e.length!==a&&v(i,"invalid x length"),o=g(e),i.push(o),t=A(i,t,"y");var s,d=0|r._crypto_core_ristretto255_scalarbytes();t.length!==d&&v(i,"invalid y length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ristretto255_scalarbytes()),c=l.address;i.push(c),r._crypto_core_ristretto255_scalar_sub(c,o,s);var p=u(l,n);return y(i),p}function tr(e,t,n){var i=[];f(n),e=A(i,e,"p");var o,a=0|r._crypto_core_ristretto255_bytes();e.length!==a&&v(i,"invalid p length"),o=g(e),i.push(o),t=A(i,t,"q");var s,d=0|r._crypto_core_ristretto255_bytes();t.length!==d&&v(i,"invalid q length"),s=g(t),i.push(s);var l=new h(0|r._crypto_core_ristretto255_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_core_ristretto255_sub(c,o,s))){var p=u(l,n);return y(i),p}b(i,"input is an invalid element")}function tn(e,t,n,i){var o=[];f(i),S(o,e,"hash_length"),("number"!=typeof e||(0|e)!==e||e<0)&&v(o,"hash_length must be an unsigned integer");var a=g(t=A(o,t,"message")),s=t.length;o.push(a);var d=null,l=0;null!=n&&(d=g(n=A(o,n,"key")),l=n.length,o.push(d));var c=new h(e|=0),p=c.address;if(o.push(p),!(0|r._crypto_generichash(p,e,a,s,0,d,l))){var m=u(c,i);return y(o),m}b(o,"invalid usage")}function ti(e,t,n,i,o){var a=[];f(o),S(a,e,"subkey_len"),("number"!=typeof e||(0|e)!==e||e<0)&&v(a,"subkey_len must be an unsigned integer");var s=null,d=0;null!=t&&(s=g(t=A(a,t,"key")),d=t.length,a.push(s));var l=null,c=0;null!=n&&(n=A(a,n,"id"),c=0|r._crypto_generichash_blake2b_saltbytes(),n.length!==c&&v(a,"invalid id length"),l=g(n),a.push(l));var p=null,m=0;null!=i&&(i=A(a,i,"ctx"),m=0|r._crypto_generichash_blake2b_personalbytes(),i.length!==m&&v(a,"invalid ctx length"),p=g(i),a.push(p));var w=new h(0|e),_=w.address;if(a.push(_),!(0|r._crypto_generichash_blake2b_salt_personal(_,e,null,0,0,s,d,l,p))){var P=u(w,o);return y(a),P}b(a,"invalid usage")}function to(e,t,n){var i=[];f(n),S(i,e,"state_address"),S(i,t,"hash_length"),("number"!=typeof t||(0|t)!==t||t<0)&&v(i,"hash_length must be an unsigned integer");var o=new h(t|=0),a=o.address;if(i.push(a),!(0|r._crypto_generichash_final(e,a,t))){var s=(r._free(e),u(o,n));return y(i),s}b(i,"invalid usage")}function ta(e,t,n){var i=[];f(n);var o=null,a=0;null!=e&&(o=g(e=A(i,e,"key")),a=e.length,i.push(o)),S(i,t,"hash_length"),("number"!=typeof t||(0|t)!==t||t<0)&&v(i,"hash_length must be an unsigned integer");var s=new h(357).address;if(!(0|r._crypto_generichash_init(s,o,a,t))){var d=s;return y(i),d}b(i,"invalid usage")}function ts(e){var t=[];f(e);var n=new h(0|r._crypto_generichash_keybytes()),i=n.address;t.push(i),r._crypto_generichash_keygen(i);var o=u(n,e);return y(t),o}function td(e,t,n){var i=[];f(n),S(i,e,"state_address");var o=g(t=A(i,t,"message_chunk")),a=t.length;i.push(o),0|r._crypto_generichash_update(e,o,a)&&b(i,"invalid usage"),y(i)}function tl(e,t){var n=[];f(t);var i=g(e=A(n,e,"message")),o=e.length;n.push(i);var a=new h(0|r._crypto_hash_bytes()),s=a.address;if(n.push(s),!(0|r._crypto_hash(s,i,o,0))){var d=u(a,t);return y(n),d}b(n,"invalid usage")}function tc(e,t){var n=[];f(t);var i=g(e=A(n,e,"message")),o=e.length;n.push(i);var a=new h(0|r._crypto_hash_sha256_bytes()),s=a.address;if(n.push(s),!(0|r._crypto_hash_sha256(s,i,o,0))){var d=u(a,t);return y(n),d}b(n,"invalid usage")}function tu(e,t){var n=[];f(t),S(n,e,"state_address");var i=new h(0|r._crypto_hash_sha256_bytes()),o=i.address;if(n.push(o),!(0|r._crypto_hash_sha256_final(e,o))){var a=(r._free(e),u(i,t));return y(n),a}b(n,"invalid usage")}function tp(e){var t=[];f(e);var n=new h(104).address;if(!(0|r._crypto_hash_sha256_init(n))){var i=n;return y(t),i}b(t,"invalid usage")}function tf(e,t,n){var i=[];f(n),S(i,e,"state_address");var o=g(t=A(i,t,"message_chunk")),a=t.length;i.push(o),0|r._crypto_hash_sha256_update(e,o,a)&&b(i,"invalid usage"),y(i)}function th(e,t){var n=[];f(t);var i=g(e=A(n,e,"message")),o=e.length;n.push(i);var a=new h(0|r._crypto_hash_sha512_bytes()),s=a.address;if(n.push(s),!(0|r._crypto_hash_sha512(s,i,o,0))){var d=u(a,t);return y(n),d}b(n,"invalid usage")}function tg(e,t){var n=[];f(t),S(n,e,"state_address");var i=new h(0|r._crypto_hash_sha512_bytes()),o=i.address;if(n.push(o),!(0|r._crypto_hash_sha512_final(e,o))){var a=(r._free(e),u(i,t));return y(n),a}b(n,"invalid usage")}function tm(e){var t=[];f(e);var n=new h(208).address;if(!(0|r._crypto_hash_sha512_init(n))){var i=n;return y(t),i}b(t,"invalid usage")}function ty(e,t,n){var i=[];f(n),S(i,e,"state_address");var o=g(t=A(i,t,"message_chunk")),a=t.length;i.push(o),0|r._crypto_hash_sha512_update(e,o,a)&&b(i,"invalid usage"),y(i)}function tb(e,t,n,i,a){var s=[];f(a),S(s,e,"subkey_len"),("number"!=typeof e||(0|e)!==e||e<0)&&v(s,"subkey_len must be an unsigned integer"),S(s,t,"subkey_id");var d,l=0;if("bigint"==typeof t&&t>=BigInt(0)){let e=t>>BigInt(32);e>BigInt(0xffffffff)&&v(s,"subkey_id cannot be more than 64 bits"),l=Number(e),d=Number(t&BigInt(0xffffffff))}else"number"==typeof t&&(0|t)===t&&t>=0?d=t:v(s,"subkey_id must be an unsigned integer or bigint");"string"!=typeof n&&v(s,"ctx must be a string"),n=o(n+"\0"),null!=p&&n.length-1!==p&&v(s,"invalid ctx length");var c=g(n),p=n.length-1;s.push(c),i=A(s,i,"key");var m,b=0|r._crypto_kdf_keybytes();i.length!==b&&v(s,"invalid key length"),m=g(i),s.push(m);var w=new h(0|e),_=w.address;s.push(_),r._crypto_kdf_derive_from_key(_,e,d,l,c,m);var P=u(w,a);return y(s),P}function tv(e){var t=[];f(e);var n=new h(0|r._crypto_kdf_keybytes()),i=n.address;t.push(i),r._crypto_kdf_keygen(i);var o=u(n,e);return y(t),o}function tS(e,t,n,i){var o=[];f(i),e=A(o,e,"clientPublicKey");var a,s=0|r._crypto_kx_publickeybytes();e.length!==s&&v(o,"invalid clientPublicKey length"),a=g(e),o.push(a),t=A(o,t,"clientSecretKey");var d,l=0|r._crypto_kx_secretkeybytes();t.length!==l&&v(o,"invalid clientSecretKey length"),d=g(t),o.push(d),n=A(o,n,"serverPublicKey");var c,p=0|r._crypto_kx_publickeybytes();n.length!==p&&v(o,"invalid serverPublicKey length"),c=g(n),o.push(c);var m=new h(0|r._crypto_kx_sessionkeybytes()),S=m.address;o.push(S);var w=new h(0|r._crypto_kx_sessionkeybytes()),_=w.address;if(o.push(_),!(0|r._crypto_kx_client_session_keys(S,_,a,d,c))){var P=u({sharedRx:m,sharedTx:w},i);return y(o),P}b(o,"invalid usage")}function tA(e){var t=[];f(e);var n=new h(0|r._crypto_kx_publickeybytes()),i=n.address;t.push(i);var o=new h(0|r._crypto_kx_secretkeybytes()),a=o.address;if(t.push(a),!(0|r._crypto_kx_keypair(i,a))){var s={publicKey:u(n,e),privateKey:u(o,e),keyType:"x25519"};return y(t),s}b(t,"internal error")}function tw(e,t){var n=[];f(t),e=A(n,e,"seed");var i,o=0|r._crypto_kx_seedbytes();e.length!==o&&v(n,"invalid seed length"),i=g(e),n.push(i);var a=new h(0|r._crypto_kx_publickeybytes()),s=a.address;n.push(s);var d=new h(0|r._crypto_kx_secretkeybytes()),l=d.address;if(n.push(l),!(0|r._crypto_kx_seed_keypair(s,l,i))){var c={publicKey:u(a,t),privateKey:u(d,t),keyType:"x25519"};return y(n),c}b(n,"internal error")}function t_(e,t,n,i){var o=[];f(i),e=A(o,e,"serverPublicKey");var a,s=0|r._crypto_kx_publickeybytes();e.length!==s&&v(o,"invalid serverPublicKey length"),a=g(e),o.push(a),t=A(o,t,"serverSecretKey");var d,l=0|r._crypto_kx_secretkeybytes();t.length!==l&&v(o,"invalid serverSecretKey length"),d=g(t),o.push(d),n=A(o,n,"clientPublicKey");var c,p=0|r._crypto_kx_publickeybytes();n.length!==p&&v(o,"invalid clientPublicKey length"),c=g(n),o.push(c);var m=new h(0|r._crypto_kx_sessionkeybytes()),S=m.address;o.push(S);var w=new h(0|r._crypto_kx_sessionkeybytes()),_=w.address;if(o.push(_),!(0|r._crypto_kx_server_session_keys(S,_,a,d,c))){var P=u({sharedRx:m,sharedTx:w},i);return y(o),P}b(o,"invalid usage")}function tP(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"key");var s,d=0|r._crypto_onetimeauth_keybytes();t.length!==d&&v(i,"invalid key length"),s=g(t),i.push(s);var l=new h(0|r._crypto_onetimeauth_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_onetimeauth(c,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function tk(e,t){var n=[];f(t),S(n,e,"state_address");var i=new h(0|r._crypto_onetimeauth_bytes()),o=i.address;if(n.push(o),!(0|r._crypto_onetimeauth_final(e,o))){var a=(r._free(e),u(i,t));return y(n),a}b(n,"invalid usage")}function tR(e,t){var n=[];f(t);var i=null;null!=e&&(i=g(e=A(n,e,"key")),e.length,n.push(i));var o=new h(144).address;if(!(0|r._crypto_onetimeauth_init(o,i))){var a=o;return y(n),a}b(n,"invalid usage")}function tO(e){var t=[];f(e);var n=new h(0|r._crypto_onetimeauth_keybytes()),i=n.address;t.push(i),r._crypto_onetimeauth_keygen(i);var o=u(n,e);return y(t),o}function tI(e,t,n){var i=[];f(n),S(i,e,"state_address");var o=g(t=A(i,t,"message_chunk")),a=t.length;i.push(o),0|r._crypto_onetimeauth_update(e,o,a)&&b(i,"invalid usage"),y(i)}function tB(e,t,n){var i=[];e=A(i,e,"hash");var o,a=0|r._crypto_onetimeauth_bytes();e.length!==a&&v(i,"invalid hash length"),o=g(e),i.push(o);var s=g(t=A(i,t,"message")),d=t.length;i.push(s),n=A(i,n,"key");var l,c=0|r._crypto_onetimeauth_keybytes();n.length!==c&&v(i,"invalid key length"),l=g(n),i.push(l);var u=!(0|r._crypto_onetimeauth_verify(o,s,d,0,l));return y(i),u}function tx(e,t,n,i,o,a,s){var d=[];f(s),S(d,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&v(d,"keyLength must be an unsigned integer");var l=g(t=A(d,t,"password")),c=t.length;d.push(l),n=A(d,n,"salt");var p,m=0|r._crypto_pwhash_saltbytes();n.length!==m&&v(d,"invalid salt length"),p=g(n),d.push(p),S(d,i,"opsLimit"),("number"!=typeof i||(0|i)!==i||i<0)&&v(d,"opsLimit must be an unsigned integer"),S(d,o,"memLimit"),("number"!=typeof o||(0|o)!==o||o<0)&&v(d,"memLimit must be an unsigned integer"),S(d,a,"algorithm"),("number"!=typeof a||(0|a)!==a||a<0)&&v(d,"algorithm must be an unsigned integer");var w=new h(0|e),_=w.address;if(d.push(_),!(0|r._crypto_pwhash(_,e,0,l,c,0,p,i,0,o,a))){var P=u(w,s);return y(d),P}b(d,"invalid usage")}function tE(e,t,n,i,o,a){var s=[];f(a),S(s,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&v(s,"keyLength must be an unsigned integer");var d=g(t=A(s,t,"password")),l=t.length;s.push(d),n=A(s,n,"salt");var c,p=0|r._crypto_pwhash_scryptsalsa208sha256_saltbytes();n.length!==p&&v(s,"invalid salt length"),c=g(n),s.push(c),S(s,i,"opsLimit"),("number"!=typeof i||(0|i)!==i||i<0)&&v(s,"opsLimit must be an unsigned integer"),S(s,o,"memLimit"),("number"!=typeof o||(0|o)!==o||o<0)&&v(s,"memLimit must be an unsigned integer");var m=new h(0|e),w=m.address;if(s.push(w),!(0|r._crypto_pwhash_scryptsalsa208sha256(w,e,0,d,l,0,c,i,0,o))){var _=u(m,a);return y(s),_}b(s,"invalid usage")}function tT(e,t,n,i,o,a,s){var d=[];f(s);var l=g(e=A(d,e,"password")),c=e.length;d.push(l);var p=g(t=A(d,t,"salt")),m=t.length;d.push(p),S(d,n,"opsLimit"),("number"!=typeof n||(0|n)!==n||n<0)&&v(d,"opsLimit must be an unsigned integer"),S(d,i,"r"),("number"!=typeof i||(0|i)!==i||i<0)&&v(d,"r must be an unsigned integer"),S(d,o,"p"),("number"!=typeof o||(0|o)!==o||o<0)&&v(d,"p must be an unsigned integer"),S(d,a,"keyLength"),("number"!=typeof a||(0|a)!==a||a<0)&&v(d,"keyLength must be an unsigned integer");var w=new h(0|a),_=w.address;if(d.push(_),!(0|r._crypto_pwhash_scryptsalsa208sha256_ll(l,c,p,m,n,0,i,o,_,a))){var P=u(w,s);return y(d),P}b(d,"invalid usage")}function tN(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"password")),s=e.length;o.push(a),S(o,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&v(o,"opsLimit must be an unsigned integer"),S(o,n,"memLimit"),("number"!=typeof n||(0|n)!==n||n<0)&&v(o,"memLimit must be an unsigned integer");var d=new h(0|r._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(o.push(d),!(0|r._crypto_pwhash_scryptsalsa208sha256_str(d,a,s,0,t,0,n))){var l=r.UTF8ToString(d);return y(o),l}b(o,"invalid usage")}function tC(e,t,n){var i=[];f(n),"string"!=typeof e&&v(i,"hashed_password must be a string"),e=o(e+"\0"),null!=s&&e.length-1!==s&&v(i,"invalid hashed_password length");var a=g(e),s=e.length-1;i.push(a);var d=g(t=A(i,t,"password")),l=t.length;i.push(d);var c=!(0|r._crypto_pwhash_scryptsalsa208sha256_str_verify(a,d,l,0));return y(i),c}function tM(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"password")),s=e.length;o.push(a),S(o,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&v(o,"opsLimit must be an unsigned integer"),S(o,n,"memLimit"),("number"!=typeof n||(0|n)!==n||n<0)&&v(o,"memLimit must be an unsigned integer");var d=new h(0|r._crypto_pwhash_strbytes()).address;if(o.push(d),!(0|r._crypto_pwhash_str(d,a,s,0,t,0,n))){var l=r.UTF8ToString(d);return y(o),l}b(o,"invalid usage")}function tU(e,t,n,i){var a=[];f(i),"string"!=typeof e&&v(a,"hashed_password must be a string"),e=o(e+"\0"),null!=d&&e.length-1!==d&&v(a,"invalid hashed_password length");var s=g(e),d=e.length-1;a.push(s),S(a,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&v(a,"opsLimit must be an unsigned integer"),S(a,n,"memLimit"),("number"!=typeof n||(0|n)!==n||n<0)&&v(a,"memLimit must be an unsigned integer");var l=!!(0|r._crypto_pwhash_str_needs_rehash(s,t,0,n));return y(a),l}function tD(e,t,n){var i=[];f(n),"string"!=typeof e&&v(i,"hashed_password must be a string"),e=o(e+"\0"),null!=s&&e.length-1!==s&&v(i,"invalid hashed_password length");var a=g(e),s=e.length-1;i.push(a);var d=g(t=A(i,t,"password")),l=t.length;i.push(d);var c=!(0|r._crypto_pwhash_str_verify(a,d,l,0));return y(i),c}function tJ(e,t,n){var i=[];f(n),e=A(i,e,"privateKey");var o,a=0|r._crypto_scalarmult_scalarbytes();e.length!==a&&v(i,"invalid privateKey length"),o=g(e),i.push(o),t=A(i,t,"publicKey");var s,d=0|r._crypto_scalarmult_bytes();t.length!==d&&v(i,"invalid publicKey length"),s=g(t),i.push(s);var l=new h(0|r._crypto_scalarmult_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_scalarmult(c,o,s))){var p=u(l,n);return y(i),p}b(i,"weak public key")}function tH(e,t){var n=[];f(t),e=A(n,e,"privateKey");var i,o=0|r._crypto_scalarmult_scalarbytes();e.length!==o&&v(n,"invalid privateKey length"),i=g(e),n.push(i);var a=new h(0|r._crypto_scalarmult_bytes()),s=a.address;if(n.push(s),!(0|r._crypto_scalarmult_base(s,i))){var d=u(a,t);return y(n),d}b(n,"unknown error")}function tV(e,t,n){var i=[];f(n),e=A(i,e,"n");var o,a=0|r._crypto_scalarmult_ed25519_scalarbytes();e.length!==a&&v(i,"invalid n length"),o=g(e),i.push(o),t=A(i,t,"p");var s,d=0|r._crypto_scalarmult_ed25519_bytes();t.length!==d&&v(i,"invalid p length"),s=g(t),i.push(s);var l=new h(0|r._crypto_scalarmult_ed25519_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_scalarmult_ed25519(c,o,s))){var p=u(l,n);return y(i),p}b(i,"invalid point or scalar is 0")}function tq(e,t){var n=[];f(t),e=A(n,e,"scalar");var i,o=0|r._crypto_scalarmult_ed25519_scalarbytes();e.length!==o&&v(n,"invalid scalar length"),i=g(e),n.push(i);var a=new h(0|r._crypto_scalarmult_ed25519_bytes()),s=a.address;if(n.push(s),!(0|r._crypto_scalarmult_ed25519_base(s,i))){var d=u(a,t);return y(n),d}b(n,"scalar is 0")}function tL(e,t){var n=[];f(t),e=A(n,e,"scalar");var i,o=0|r._crypto_scalarmult_ed25519_scalarbytes();e.length!==o&&v(n,"invalid scalar length"),i=g(e),n.push(i);var a=new h(0|r._crypto_scalarmult_ed25519_bytes()),s=a.address;if(n.push(s),!(0|r._crypto_scalarmult_ed25519_base_noclamp(s,i))){var d=u(a,t);return y(n),d}b(n,"scalar is 0")}function tj(e,t,n){var i=[];f(n),e=A(i,e,"n");var o,a=0|r._crypto_scalarmult_ed25519_scalarbytes();e.length!==a&&v(i,"invalid n length"),o=g(e),i.push(o),t=A(i,t,"p");var s,d=0|r._crypto_scalarmult_ed25519_bytes();t.length!==d&&v(i,"invalid p length"),s=g(t),i.push(s);var l=new h(0|r._crypto_scalarmult_ed25519_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_scalarmult_ed25519_noclamp(c,o,s))){var p=u(l,n);return y(i),p}b(i,"invalid point or scalar is 0")}function tF(e,t,n){var i=[];f(n),e=A(i,e,"scalar");var o,a=0|r._crypto_scalarmult_ristretto255_scalarbytes();e.length!==a&&v(i,"invalid scalar length"),o=g(e),i.push(o),t=A(i,t,"element");var s,d=0|r._crypto_scalarmult_ristretto255_bytes();t.length!==d&&v(i,"invalid element length"),s=g(t),i.push(s);var l=new h(0|r._crypto_scalarmult_ristretto255_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_scalarmult_ristretto255(c,o,s))){var p=u(l,n);return y(i),p}b(i,"result is identity element")}function tW(e,t){var n=[];f(t),e=A(n,e,"scalar");var i,o=0|r._crypto_core_ristretto255_scalarbytes();e.length!==o&&v(n,"invalid scalar length"),i=g(e),n.push(i);var a=new h(0|r._crypto_core_ristretto255_bytes()),s=a.address;if(n.push(s),!(0|r._crypto_scalarmult_ristretto255_base(s,i))){var d=u(a,t);return y(n),d}b(n,"scalar is 0")}function tQ(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"message")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_secretbox_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"key");var c,p=0|r._crypto_secretbox_keybytes();n.length!==p&&v(o,"invalid key length"),c=g(n),o.push(c);var m=new h(0|s),S=m.address;o.push(S);var w=new h(0|r._crypto_secretbox_macbytes()),_=w.address;if(o.push(_),!(0|r._crypto_secretbox_detached(S,_,a,s,0,d,c))){var P=u({mac:w,cipher:m},i);return y(o),P}b(o,"invalid usage")}function tG(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"message")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_secretbox_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"key");var c,p=0|r._crypto_secretbox_keybytes();n.length!==p&&v(o,"invalid key length"),c=g(n),o.push(c);var m=new h(s+r._crypto_secretbox_macbytes()|0),S=m.address;if(o.push(S),!(0|r._crypto_secretbox_easy(S,a,s,0,d,c))){var w=u(m,i);return y(o),w}b(o,"invalid usage")}function tz(e){var t=[];f(e);var n=new h(0|r._crypto_secretbox_keybytes()),i=n.address;t.push(i),r._crypto_secretbox_keygen(i);var o=u(n,e);return y(t),o}function tK(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"ciphertext")),d=e.length;a.push(s),t=A(a,t,"mac");var l,c=0|r._crypto_secretbox_macbytes();t.length!==c&&v(a,"invalid mac length"),l=g(t),a.push(l),n=A(a,n,"nonce");var p,m=0|r._crypto_secretbox_noncebytes();n.length!==m&&v(a,"invalid nonce length"),p=g(n),a.push(p),i=A(a,i,"key");var S,w=0|r._crypto_secretbox_keybytes();i.length!==w&&v(a,"invalid key length"),S=g(i),a.push(S);var _=new h(0|d),P=_.address;if(a.push(P),!(0|r._crypto_secretbox_open_detached(P,s,l,d,0,p,S))){var k=u(_,o);return y(a),k}b(a,"wrong secret key for the given ciphertext")}function tY(e,t,n,i){var o=[];f(i),e=A(o,e,"ciphertext");var a,s=r._crypto_secretbox_macbytes(),d=e.length;d<s&&v(o,"ciphertext is too short"),a=g(e),o.push(a),t=A(o,t,"nonce");var l,c=0|r._crypto_secretbox_noncebytes();t.length!==c&&v(o,"invalid nonce length"),l=g(t),o.push(l),n=A(o,n,"ke
1y");var p,m=0|r._crypto_secretbox_keybytes();n.length!==m&&v(o,"invalid key length"),p=g(n),o.push(p);var S=new h(d-r._crypto_secretbox_macbytes()|0),w=S.address;if(o.push(w),!(0|r._crypto_secretbox_open_easy(w,a,d,0,l,p))){var _=u(S,i);return y(o),_}b(o,"wrong secret key for the given ciphertext")}function tZ(e,t,n){var i=[];f(n),e=A(i,e,"header");var o,a=0|r._crypto_secretstream_xchacha20poly1305_headerbytes();e.length!==a&&v(i,"invalid header length"),o=g(e),i.push(o),t=A(i,t,"key");var s,d=0|r._crypto_secretstream_xchacha20poly1305_keybytes();t.length!==d&&v(i,"invalid key length"),s=g(t),i.push(s);var l=new h(52).address;if(!(0|r._crypto_secretstream_xchacha20poly1305_init_pull(l,o,s))){var c=l;return y(i),c}b(i,"invalid usage")}function tX(e,t){var n=[];f(t),e=A(n,e,"key");var i,o=0|r._crypto_secretstream_xchacha20poly1305_keybytes();e.length!==o&&v(n,"invalid key length"),i=g(e),n.push(i);var a=new h(52).address,s=new h(0|r._crypto_secretstream_xchacha20poly1305_headerbytes()),d=s.address;if(n.push(d),!(0|r._crypto_secretstream_xchacha20poly1305_init_push(a,d,i))){var l={state:a,header:u(s,t)};return y(n),l}b(n,"invalid usage")}function t$(e){var t=[];f(e);var n=new h(0|r._crypto_secretstream_xchacha20poly1305_keybytes()),i=n.address;t.push(i),r._crypto_secretstream_xchacha20poly1305_keygen(i);var o=u(n,e);return y(t),o}function t0(e,t,n,i){var o=[];f(i),S(o,e,"state_address"),t=A(o,t,"cipher");var a,s=r._crypto_secretstream_xchacha20poly1305_abytes(),d=t.length;d<s&&v(o,"cipher is too short"),a=g(t),o.push(a);var l=null,c=0;null!=n&&(l=g(n=A(o,n,"ad")),c=n.length,o.push(l));var p=new h(d-r._crypto_secretstream_xchacha20poly1305_abytes()|0),b=p.address;o.push(b);var w,_=(w=m(1),o.push(w),(_=0===r._crypto_secretstream_xchacha20poly1305_pull(e,b,0,w,a,d,0,l,c)&&{tag:r.HEAPU8[w],message:p})&&{message:u(_.message,i),tag:_.tag});return y(o),_}function t1(e,t,n,i,o){var a=[];f(o),S(a,e,"state_address");var s=g(t=A(a,t,"message_chunk")),d=t.length;a.push(s);var l=null,c=0;null!=n&&(l=g(n=A(a,n,"ad")),c=n.length,a.push(l)),S(a,i,"tag"),("number"!=typeof i||(0|i)!==i||i<0)&&v(a,"tag must be an unsigned integer");var p=new h(d+r._crypto_secretstream_xchacha20poly1305_abytes()|0),m=p.address;if(a.push(m),!(0|r._crypto_secretstream_xchacha20poly1305_push(e,m,0,s,d,0,l,c,0,i))){var w=u(p,o);return y(a),w}b(a,"invalid usage")}function t2(e,t){var n=[];return f(t),S(n,e,"state_address"),r._crypto_secretstream_xchacha20poly1305_rekey(e),y(n),!0}function t3(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"key");var s,d=0|r._crypto_shorthash_keybytes();t.length!==d&&v(i,"invalid key length"),s=g(t),i.push(s);var l=new h(0|r._crypto_shorthash_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_shorthash(c,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function t6(e){var t=[];f(e);var n=new h(0|r._crypto_shorthash_keybytes()),i=n.address;t.push(i),r._crypto_shorthash_keygen(i);var o=u(n,e);return y(t),o}function t5(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"key");var s,d=0|r._crypto_shorthash_siphashx24_keybytes();t.length!==d&&v(i,"invalid key length"),s=g(t),i.push(s);var l=new h(0|r._crypto_shorthash_siphashx24_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_shorthash_siphashx24(c,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function t4(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"privateKey");var s,d=0|r._crypto_sign_secretkeybytes();t.length!==d&&v(i,"invalid privateKey length"),s=g(t),i.push(s);var l=new h(e.length+r._crypto_sign_bytes()|0),c=l.address;if(i.push(c),!(0|r._crypto_sign(c,null,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function t8(e,t,n){var i=[];f(n);var o=g(e=A(i,e,"message")),a=e.length;i.push(o),t=A(i,t,"privateKey");var s,d=0|r._crypto_sign_secretkeybytes();t.length!==d&&v(i,"invalid privateKey length"),s=g(t),i.push(s);var l=new h(0|r._crypto_sign_bytes()),c=l.address;if(i.push(c),!(0|r._crypto_sign_detached(c,null,o,a,0,s))){var p=u(l,n);return y(i),p}b(i,"invalid usage")}function t9(e,t){var n=[];f(t),e=A(n,e,"edPk");var i,o=0|r._crypto_sign_publickeybytes();e.length!==o&&v(n,"invalid edPk length"),i=g(e),n.push(i);var a=new h(0|r._crypto_scalarmult_scalarbytes()),s=a.address;if(n.push(s),!(0|r._crypto_sign_ed25519_pk_to_curve25519(s,i))){var d=u(a,t);return y(n),d}b(n,"invalid key")}function t7(e,t){var n=[];f(t),e=A(n,e,"edSk");var i,o=0|r._crypto_sign_secretkeybytes();e.length!==o&&v(n,"invalid edSk length"),i=g(e),n.push(i);var a=new h(0|r._crypto_scalarmult_scalarbytes()),s=a.address;if(n.push(s),!(0|r._crypto_sign_ed25519_sk_to_curve25519(s,i))){var d=u(a,t);return y(n),d}b(n,"invalid key")}function re(e,t){var n=[];f(t),e=A(n,e,"privateKey");var i,o=0|r._crypto_sign_secretkeybytes();e.length!==o&&v(n,"invalid privateKey length"),i=g(e),n.push(i);var a=new h(0|r._crypto_sign_publickeybytes()),s=a.address;if(n.push(s),!(0|r._crypto_sign_ed25519_sk_to_pk(s,i))){var d=u(a,t);return y(n),d}b(n,"invalid key")}function rt(e,t){var n=[];f(t),e=A(n,e,"privateKey");var i,o=0|r._crypto_sign_secretkeybytes();e.length!==o&&v(n,"invalid privateKey length"),i=g(e),n.push(i);var a=new h(0|r._crypto_sign_seedbytes()),s=a.address;if(n.push(s),!(0|r._crypto_sign_ed25519_sk_to_seed(s,i))){var d=u(a,t);return y(n),d}b(n,"invalid key")}function rr(e,t,n){var i=[];f(n),S(i,e,"state_address"),t=A(i,t,"privateKey");var o,a=0|r._crypto_sign_secretkeybytes();t.length!==a&&v(i,"invalid privateKey length"),o=g(t),i.push(o);var s=new h(0|r._crypto_sign_bytes()),d=s.address;if(i.push(d),!(0|r._crypto_sign_final_create(e,d,null,o))){var l=(r._free(e),u(s,n));return y(i),l}b(i,"invalid usage")}function rn(e,t,n,i){var o=[];f(i),S(o,e,"state_address"),t=A(o,t,"signature");var a,s=0|r._crypto_sign_bytes();t.length!==s&&v(o,"invalid signature length"),a=g(t),o.push(a),n=A(o,n,"publicKey");var d,l=0|r._crypto_sign_publickeybytes();n.length!==l&&v(o,"invalid publicKey length"),d=g(n),o.push(d);var c=!(0|r._crypto_sign_final_verify(e,a,d));return y(o),c}function ri(e){var t=[];f(e);var n=new h(208).address;if(!(0|r._crypto_sign_init(n))){var i=n;return y(t),i}b(t,"internal error")}function ro(e){var t=[];f(e);var n=new h(0|r._crypto_sign_publickeybytes()),i=n.address;t.push(i);var o=new h(0|r._crypto_sign_secretkeybytes()),a=o.address;if(t.push(a),!(0|r._crypto_sign_keypair(i,a))){var s={publicKey:u(n,e),privateKey:u(o,e),keyType:"ed25519"};return y(t),s}b(t,"internal error")}function ra(e,t,n){var i=[];f(n),e=A(i,e,"signedMessage");var o,a=r._crypto_sign_bytes(),s=e.length;s<a&&v(i,"signedMessage is too short"),o=g(e),i.push(o),t=A(i,t,"publicKey");var d,l=0|r._crypto_sign_publickeybytes();t.length!==l&&v(i,"invalid publicKey length"),d=g(t),i.push(d);var c=new h(s-r._crypto_sign_bytes()|0),p=c.address;if(i.push(p),!(0|r._crypto_sign_open(p,null,o,s,0,d))){var m=u(c,n);return y(i),m}b(i,"incorrect signature for the given public key")}function rs(e,t){var n=[];f(t),e=A(n,e,"seed");var i,o=0|r._crypto_sign_seedbytes();e.length!==o&&v(n,"invalid seed length"),i=g(e),n.push(i);var a=new h(0|r._crypto_sign_publickeybytes()),s=a.address;n.push(s);var d=new h(0|r._crypto_sign_secretkeybytes()),l=d.address;if(n.push(l),!(0|r._crypto_sign_seed_keypair(s,l,i))){var c={publicKey:u(a,t),privateKey:u(d,t),keyType:"ed25519"};return y(n),c}b(n,"invalid usage")}function rd(e,t,n){var i=[];f(n),S(i,e,"state_address");var o=g(t=A(i,t,"message_chunk")),a=t.length;
vendor: 7,373 bytes, line 1
1i.push(o),0|r._crypto_sign_update(e,o,a,0)&&b(i,"invalid usage"),y(i)}function rl(e,t,n){var i=[];e=A(i,e,"signature");var o,a=0|r._crypto_sign_bytes();e.length!==a&&v(i,"invalid signature length"),o=g(e),i.push(o);var s=g(t=A(i,t,"message")),d=t.length;i.push(s),n=A(i,n,"publicKey");var l,c=0|r._crypto_sign_publickeybytes();n.length!==c&&v(i,"invalid publicKey length"),l=g(n),i.push(l);var u=!(0|r._crypto_sign_verify_detached(o,s,d,0,l));return y(i),u}function rc(e,t,n,i){var o=[];f(i),S(o,e,"outLength"),("number"!=typeof e||(0|e)!==e||e<0)&&v(o,"outLength must be an unsigned integer"),t=A(o,t,"key");var a,s=0|r._crypto_stream_chacha20_keybytes();t.length!==s&&v(o,"invalid key length"),a=g(t),o.push(a),n=A(o,n,"nonce");var d,l=0|r._crypto_stream_chacha20_noncebytes();n.length!==l&&v(o,"invalid nonce length"),d=g(n),o.push(d);var c=new h(0|e),p=c.address;o.push(p),r._crypto_stream_chacha20(p,e,0,d,a);var m=u(c,i);return y(o),m}function ru(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"input_message")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_stream_chacha20_ietf_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"key");var c,p=0|r._crypto_stream_chacha20_ietf_keybytes();n.length!==p&&v(o,"invalid key length"),c=g(n),o.push(c);var m=new h(0|s),S=m.address;if(o.push(S),0===r._crypto_stream_chacha20_ietf_xor(S,a,s,0,d,c)){var w=u(m,i);return y(o),w}b(o,"invalid usage")}function rp(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"input_message")),d=e.length;a.push(s),t=A(a,t,"nonce");var l,c=0|r._crypto_stream_chacha20_ietf_noncebytes();t.length!==c&&v(a,"invalid nonce length"),l=g(t),a.push(l),S(a,n,"nonce_increment"),("number"!=typeof n||(0|n)!==n||n<0)&&v(a,"nonce_increment must be an unsigned integer"),i=A(a,i,"key");var p,m=0|r._crypto_stream_chacha20_ietf_keybytes();i.length!==m&&v(a,"invalid key length"),p=g(i),a.push(p);var w=new h(0|d),_=w.address;if(a.push(_),0===r._crypto_stream_chacha20_ietf_xor_ic(_,s,d,0,l,n,p)){var P=u(w,o);return y(a),P}b(a,"invalid usage")}function rf(e){var t=[];f(e);var n=new h(0|r._crypto_stream_chacha20_keybytes()),i=n.address;t.push(i),r._crypto_stream_chacha20_keygen(i);var o=u(n,e);return y(t),o}function rh(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"input_message")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_stream_chacha20_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"key");var c,p=0|r._crypto_stream_chacha20_keybytes();n.length!==p&&v(o,"invalid key length"),c=g(n),o.push(c);var m=new h(0|s),S=m.address;if(o.push(S),0===r._crypto_stream_chacha20_xor(S,a,s,0,d,c)){var w=u(m,i);return y(o),w}b(o,"invalid usage")}function rg(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"input_message")),d=e.length;a.push(s),t=A(a,t,"nonce");var l,c=0|r._crypto_stream_chacha20_noncebytes();t.length!==c&&v(a,"invalid nonce length"),l=g(t),a.push(l),S(a,n,"nonce_increment"),("number"!=typeof n||(0|n)!==n||n<0)&&v(a,"nonce_increment must be an unsigned integer"),i=A(a,i,"key");var p,m=0|r._crypto_stream_chacha20_keybytes();i.length!==m&&v(a,"invalid key length"),p=g(i),a.push(p);var w=new h(0|d),_=w.address;if(a.push(_),0===r._crypto_stream_chacha20_xor_ic(_,s,d,0,l,n,0,p)){var P=u(w,o);return y(a),P}b(a,"invalid usage")}function rm(e){var t=[];f(e);var n=new h(0|r._crypto_stream_keybytes()),i=n.address;t.push(i),r._crypto_stream_keygen(i);var o=u(n,e);return y(t),o}function ry(e){var t=[];f(e);var n=new h(0|r._crypto_stream_xchacha20_keybytes()),i=n.address;t.push(i),r._crypto_stream_xchacha20_keygen(i);var o=u(n,e);return y(t),o}function rb(e,t,n,i){var o=[];f(i);var a=g(e=A(o,e,"input_message")),s=e.length;o.push(a),t=A(o,t,"nonce");var d,l=0|r._crypto_stream_xchacha20_noncebytes();t.length!==l&&v(o,"invalid nonce length"),d=g(t),o.push(d),n=A(o,n,"key");var c,p=0|r._crypto_stream_xchacha20_keybytes();n.length!==p&&v(o,"invalid key length"),c=g(n),o.push(c);var m=new h(0|s),S=m.address;if(o.push(S),0===r._crypto_stream_xchacha20_xor(S,a,s,0,d,c)){var w=u(m,i);return y(o),w}b(o,"invalid usage")}function rv(e,t,n,i,o){var a=[];f(o);var s=g(e=A(a,e,"input_message")),d=e.length;a.push(s),t=A(a,t,"nonce");var l,c=0|r._crypto_stream_xchacha20_noncebytes();t.length!==c&&v(a,"invalid nonce length"),l=g(t),a.push(l),S(a,n,"nonce_increment"),("number"!=typeof n||(0|n)!==n||n<0)&&v(a,"nonce_increment must be an unsigned integer"),i=A(a,i,"key");var p,m=0|r._crypto_stream_xchacha20_keybytes();i.length!==m&&v(a,"invalid key length"),p=g(i),a.push(p);var w=new h(0|d),_=w.address;if(a.push(_),0===r._crypto_stream_xchacha20_xor_ic(_,s,d,0,l,n,0,p)){var P=u(w,o);return y(a),P}b(a,"invalid usage")}function rS(e,t){var n=[];f(t),S(n,e,"length"),("number"!=typeof e||(0|e)!==e||e<0)&&v(n,"length must be an unsigned integer");var i=new h(0|e),o=i.address;n.push(o),r._randombytes_buf(o,e);var a=u(i,t);return y(n),a}function rA(e,t,n){var i=[];f(n),S(i,e,"length"),("number"!=typeof e||(0|e)!==e||e<0)&&v(i,"length must be an unsigned integer"),t=A(i,t,"seed");var o,a=0|r._randombytes_seedbytes();t.length!==a&&v(i,"invalid seed length"),o=g(t),i.push(o);var s=new h(0|e),d=s.address;i.push(d),r._randombytes_buf_deterministic(d,e,o);var l=u(s,n);return y(i),l}function rw(e){f(e),r._randombytes_close()}function r_(e){f(e);var t=r._randombytes_random()>>>0;return y([]),t}function rP(e,t){var n=[];f(t);for(var i=r._malloc(24),o=0;o<6;o++)r.setValue(i+4*o,r.Runtime.addFunction(e[["implementation_name","random","stir","uniform","buf","close"][o]]),"i32");0|r._randombytes_set_implementation(i)&&b(n,"unsupported implementation"),y(n)}function rk(e){f(e),r._randombytes_stir()}function rR(e,t){var n=[];f(t),S(n,e,"upper_bound"),("number"!=typeof e||(0|e)!==e||e<0)&&v(n,"upper_bound must be an unsigned integer");var i=r._randombytes_uniform(e)>>>0;return y(n),i}function rO(){var e=r._sodium_version_string(),t=r.UTF8ToString(e);return y([]),t}return h.prototype.to_Uint8Array=function(){var e=new Uint8Array(this.length);return e.set(r.HEAPU8.subarray(this.address,this.address+this.length)),e},e.add=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw TypeError("Only Uint8Array instances can added");var r=e.length,n=0,i=0;if(t.length!=e.length)throw TypeError("Arguments must have the same length");for(i=0;i<r;i++)n>>=8,n+=e[i]+t[i],e[i]=255&n},e.base64_variants=d,e.compare=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be compared");if(e.length!==t.length)throw TypeError("Only instances of identical length can be compared");for(var r=0,n=1,i=e.length;i-- >0;)r|=t[i]-e[i]>>8&n,n&=(t[i]^e[i])-1>>8;return r+r+n-1},e.from_base64=function(e,t){t=l(t);var n,i=[],o=new h(3*(e=A(i,e,"input")).length/4),a=g(e),s=m(4),d=m(4);return i.push(a),i.push(o.address),i.push(o.result_bin_len_p),i.push(o.b64_end_p),0!==r._sodium_base642bin(o.address,o.length,a,e.length,0,s,d,t)&&b(i,"invalid input"),r.getValue(d,"i32")-a!==e.length&&b(i,"incomplete input"),o.length=r.getValue(s,"i32"),n=o.to_Uint8Array(),y(i),n},e.from_hex=function(e){var t,n=[],i=new h((e=A(n,e,"input")).length/2),o=g(e),a=m(4);return n.push(o),n.push(i.address),n.push(i.hex_end_p),0!==r._sodium_hex2bin(i.address,i.length,o,e.length,0,0,a)&&b(n,"invalid input"),r.getValue(a,"i32")-o!==e.length&&b(n,"incomplete input"),t=i.to_Uint8Array(),y(n),t}
1,e.from_string=o,e.increment=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be incremented");for(var t=256,r=0,n=e.length;r<n;r++)t>>=8,t+=e[r],e[r]=255&t},e.is_zero=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be checked");for(var t=0,r=0,n=e.length;r<n;r++)t|=e[r];return 0===t},e.libsodium=t,e.memcmp=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be compared");if(e.length!==t.length)throw TypeError("Only instances of identical length can be compared");for(var r=0,n=0,i=e.length;n<i;n++)r|=e[n]^t[n];return 0===r},e.memzero=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be wiped");for(var t=0,r=e.length;t<r;t++)e[t]=0},e.output_formats=function(){return["uint8array","text","hex","base64"]},e.pad=function(e,t){if(!(e instanceof Uint8Array))throw TypeError("buffer must be a Uint8Array");if((t|=0)<=0)throw Error("block size must be > 0");var n,i=[],o=m(4),a=1,s=0,d=0|e.length,l=new h(d+t);i.push(o),i.push(l.address);for(var c=l.address,u=l.address+d+t;c<u;c++)r.HEAPU8[c]=e[s],s+=a=1&~((65535&((d-=a)>>>48|d>>>32|d>>>16|d))-1>>16);return 0!==r._sodium_pad(o,l.address,e.length,t,l.length)&&b(i,"internal error"),l.length=r.getValue(o,"i32"),n=l.to_Uint8Array(),y(i),n},e.unpad=function(e,t){if(!(e instanceof Uint8Array))throw TypeError("buffer must be a Uint8Array");if((t|=0)<=0)throw Error("block size must be > 0");var n=[],i=g(e),o=m(4);return n.push(i),n.push(o),0!==r._sodium_unpad(o,i,e.length,t)&&b(n,"unsupported/invalid padding"),e=(e=new 
1Uint8Array(e)).subarray(0,r.getValue(o,"i32")),y(n),e},e.ready=i,e.symbols=function(){return Object.keys(e).sort()},e.to_base64=c,e.to_hex=s,e.to_string=a,e}var d="object"==typeof a.sodium&&"function"==typeof a.sodium.onload?a.sodium.onload:null;i=[t,r(5334)],void 0===(o="function"==typeof(n=s)?n.apply(t,i):n)||(e.exports=o),d&&a.sodium.ready.then(function(){d(a.sodium)})}(this)},86091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasProtocol=t.instanceOfRpcStreamingClient=void 0,t.instanceOfRpcStreamingClient=function(e){return"function"==typeof e.listen},t.hasProtocol=function(e){return -1!==e.search("://")}},86498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamingSocket=t.SocketWrapper=t.ReconnectingSocket=t.QueueingStreamingSocket=t.ConnectionStatus=void 0;var n=r(75616);Object.defineProperty(t,"ConnectionStatus",{enumerable:!0,get:function(){return n.ConnectionStatus}}),Object.defineProperty(t,"QueueingStreamingSocket",{enumerable:!0,get:function(){return n.QueueingStreamingSocket}});var i=r(70292);Object.defineProperty(t,"ReconnectingSocket",{enumerable:!0,get:function(){return i.ReconnectingSocket}});var o=r(90318);Object.defineProperty(t,"SocketWrapper",{enumerable:!0,get:function(){return o.SocketWrapper}});var a=r(69499);Object.defineProperty(t,"StreamingSocket",{enumerable:!0,get:function(){return a.StreamingSocket}})},86587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QuerySigningInfosResponse=t.QuerySigningInfosRequest=t.QuerySigningInfoResponse=t.QuerySigningInfoRequest=t.QueryParamsResponse=t.QueryParamsRequest=t.protobufPackage=void 0;let n=r(64094),i=r(44362),o=r(4696),a=r(92242);function s(){return{}}function d(){return{params:i.Params.fromPartial({})}}function l(){return{consAddress:""}}function c(){return{valSigningInfo:i.ValidatorSigningInfo.fromPartial({})}}function u(){return{pagination:void 0}}function p(){return{info:[],pagination:void 0}}t.protobufPackage="cosmos.slashing.v1beta1",t.QueryParamsRequest={typeUrl:"/cosmos.slashing.v1beta1.QueryParamsRequest",encode:(e,t=o.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=s();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>s(),toJSON:e=>({}),fromPartial:e=>s()},t.QueryParamsResponse={typeUrl:"/cosmos.slashing.v1beta1.QueryParamsResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.params&&i.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.params=i.Params.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=d();return(0,a.isSet)(e.params)&&(t.params=i.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?i.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=d();return void 0!==e.params&&null!==e.params&&(t.params=i.Params.fromPartial(e.params)),t}},t.QuerySigningInfoRequest={typeUrl:"/cosmos.slashing.v1beta1.QuerySigningInfoRequest",encode:(e,t=o.BinaryWriter.create())=>(""!==e.consAddress&&t.uint32(10).string(e.consAddress),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.consAddress=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=l();return(0,a.isSet)(e.consAddress)&&(t.consAddress=String(e.consAddress)),t},toJSON(e){let t={};return void 0!==e.consAddress&&(t.consAddress=e.consAddress),t},fromPartial(e){let t=l();return t.consAddress=e.consAddress??"",t}},t.QuerySigningInfoResponse={typeUrl:"/cosmos.slashing.v1beta1.QuerySigningInfoResponse",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.valSigningInfo&&i.ValidatorSigningInfo.encode(e.valSigningInfo,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<n;){let e=r.uint32();e>>>3==1?a.valSigningInfo=i.ValidatorSigningInfo.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=c();return(0,a.isSet)(e.valSigningInfo)&&(t.valSigningInfo=i.ValidatorSigningInfo.fromJSON(e.valSigningInfo)),t},toJSON(e){let t={};return void 0!==e.valSigningInfo&&(t.valSigningInfo=e.valSigningInfo?i.ValidatorSigningInfo.toJSON(e.valSigningInfo):void 0),t},fromPartial(e){let t=c();return void 0!==e.valSigningInfo&&null!==e.valSigningInfo&&(t.valSigningInfo=i.ValidatorSigningInfo.fromPartial(e.valSigningInfo)),t}},t.QuerySigningInfosRequest={typeUrl:"/cosmos.slashing.v1beta1.QuerySigningInfosRequest",encode:(e,t=o.BinaryWriter.create())=>(void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=u();for(;r.pos<i;){let e=r.uint32();e>>>3==1?a.pagination=n.PageRequest.decode(r,r.uint32()):r.skipType(7&e)}return a},fromJSON(e){let t=u();return(0,a.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u();return void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QuerySigningInfosResponse={typeUrl:"/cosmos.slashing.v1beta1.QuerySigningInfosResponse",encode(e,t=o.BinaryWriter.create()){for(let r of e.info)i.ValidatorSigningInfo.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),a=void 0===t?r.len:r.pos+t,s=p();for(;r.pos<a;){let e=r.uint32();switch(e>>>3){case 1:s.info.push(i.ValidatorSigningInfo.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=p();return Array.isArray(e?.info)&&(t.info=e.info.map(e=>i.ValidatorSigningInfo.fromJSON(e))),(0,a.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.info?t.info=e.info.map(e=>e?i.ValidatorSigningInfo.toJSON(e):void 0):t.info=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=p();return t.info=e.info?.map(e=>i.ValidatorSigningInfo.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}};class f{constructor(e){this.rpc=e,this.Params=this.Params.bind(this),this.SigningInfo=this.SigningInfo.bind(this),this.SigningInfos=this.SigningInfos.bind(this)}Params(e={}){let r=t.QueryParamsRequest.encode(e).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","Params",r).then(e=>t.QueryParamsResponse.decode(new o.BinaryReader(e)))}SigningInfo(e){let r=t.QuerySigningInfoRequest.encode(e).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfo",r).then(e=>t.QuerySigningInfoResponse.decode(new o.BinaryReader(e)))}SigningInfos(e={pagination:n.PageRequest.fromPartial({})}){let r=t.QuerySigningInfosRequest.encode(e).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfos",r).then(e=>t.QuerySigningInfosResponse.decode(new o.BinaryReader(e)))}}t.QueryClientImpl=f},87024:e=>
vendor: 26,139 bytes, line 1
1{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"]]}}},
187332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.ModuleCredential=t.ModuleAccount=t.BaseAccount=t.protobufPackage=void 0;let n=r(54573),i=r(4696),o=r(92242);function a(){return{address:"",pubKey:void 0,accountNumber:BigInt(0),sequence:BigInt(0)}}function s(){return{baseAccount:void 0,name:"",permissions:[]}}function d(){return{moduleName:"",derivationKeys:[]}}function l(){return{maxMemoCharacters:BigInt(0),txSigLimit:BigInt(0),txSizeCostPerByte:BigInt(0),sigVerifyCostEd25519:BigInt(0),sigVerifyCostSecp256k1:BigInt(0)}}t.protobufPackage="cosmos.auth.v1beta1",t.BaseAccount={typeUrl:"/cosmos.auth.v1beta1.BaseAccount",encode:(e,t=i.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pubKey&&n.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber!==BigInt(0)&&t.uint32(24).uint64(e.accountNumber),e.sequence!==BigInt(0)&&t.uint32(32).uint64(e.sequence),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=a();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.address=r.string();break;case 2:s.pubKey=n.Any.decode(r,r.uint32());break;case 3:s.accountNumber=r.uint64();break;case 4:s.sequence=r.uint64();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=a();return(0,o.isSet)(e.address)&&(t.address=String(e.address)),(0,o.isSet)(e.pubKey)&&(t.pubKey=n.Any.fromJSON(e.pubKey)),(0,o.isSet)(e.accountNumber)&&(t.accountNumber=BigInt(e.accountNumber.toString())),(0,o.isSet)(e.sequence)&&(t.sequence=BigInt(e.sequence.toString())),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pubKey&&(t.pubKey=e.pubKey?n.Any.toJSON(e.pubKey):void 0),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||BigInt(0)).toString()),void 0!==e.sequence&&(t.sequence=(e.sequence||BigInt(0)).toString()),t},fromPartial(e){let t=a();return t.address=e.address??"",void 0!==e.pubKey&&null!==e.pubKey&&(t.pubKey=n.Any.fromPartial(e.pubKey)),void 0!==e.accountNumber&&null!==e.accountNumber&&(t.accountNumber=BigInt(e.accountNumber.toString())),void 0!==e.sequence&&null!==e.sequence&&(t.sequence=BigInt(e.sequence.toString())),t}},t.ModuleAccount={typeUrl:"/cosmos.auth.v1beta1.ModuleAccount",encode(e,r=i.BinaryWriter.create()){for(let n of(void 0!==e.baseAccount&&t.BaseAccount.encode(e.baseAccount,r.uint32(10).fork()).ldelim(),""!==e.name&&r.uint32(18).string(e.name),e.permissions))r.uint32(26).string(n);return r},decode(e,r){let n=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===r?n.len:n.pos+r,a=s();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:a.baseAccount=t.BaseAccount.decode(n,n.uint32());break;case 2:a.name=n.string();break;case 3:a.permissions.push(n.string());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=s();return(0,o.isSet)(e.baseAccount)&&(r.baseAccount=t.BaseAccount.fromJSON(e.baseAccount)),(0,o.isSet)(e.name)&&(r.name=String(e.name)),Array.isArray(e?.permissions)&&(r.permissions=e.permissions.map(e=>String(e))),r},toJSON(e){let r={};return void 0!==e.baseAccount&&(r.baseAccount=e.baseAccount?t.BaseAccount.toJSON(e.baseAccount):void 0),void 0!==e.name&&(r.name=e.name),e.permissions?r.permissions=e.permissions.map(e=>e):r.permissions=[],r},fromPartial(e){let r=s();return void 0!==e.baseAccount&&null!==e.baseAccount&&(r.baseAccount=t.BaseAccount.fromPartial(e.baseAccount)),r.name=e.name??"",r.permissions=e.permissions?.map(e=>e)||[],r}},t.ModuleCredential={typeUrl:"/cosmos.auth.v1beta1.ModuleCredential",encode(e,t=i.BinaryWriter.create()){for(let r of(""!==e.moduleName&&t.uint32(10).string(e.moduleName),e.derivationKeys))t.uint32(18).bytes(r);return t},decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=d();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.moduleName=r.string();break;case 2:o.derivationKeys.push(r.bytes());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=d();return(0,o.isSet)(e.moduleName)&&(t.moduleName=String(e.moduleName)),Array.isArray(e?.derivationKeys)&&(t.derivationKeys=e.derivationKeys.map(e=>(0,o.bytesFromBase64)(e))),t},toJSON(e){let t={};return void 0!==e.moduleName&&(t.moduleName=e.moduleName),e.derivationKeys?t.derivationKeys=e.derivationKeys.map(e=>(0,o.base64FromBytes)(void 0!==e?e:new Uint8Array)):t.derivationKeys=[],t},fromPartial(e){let t=d();return t.moduleName=e.moduleName??"",t.derivationKeys=e.derivationKeys?.map(e=>e)||[],t}}
1,t.Params={typeUrl:"/cosmos.auth.v1beta1.Params",encode:(e,t=i.BinaryWriter.create())=>(e.maxMemoCharacters!==BigInt(0)&&t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit!==BigInt(0)&&t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte!==BigInt(0)&&t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519!==BigInt(0)&&t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1!==BigInt(0)&&t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=l();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.maxMemoCharacters=r.uint64();break;case 2:o.txSigLimit=r.uint64();break;case 3:o.txSizeCostPerByte=r.uint64();break;case 4:o.sigVerifyCostEd25519=r.uint64();break;case 5:o.sigVerifyCostSecp256k1=r.uint64();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=l();return(0,o.isSet)(e.maxMemoCharacters)&&(t.maxMemoCharacters=BigInt(e.maxMemoCharacters.toString())),(0,o.isSet)(e.txSigLimit)&&(t.txSigLimit=BigInt(e.txSigLimit.toString())),(0,o.isSet)(e.txSizeCostPerByte)&&(t.txSizeCostPerByte=BigInt(e.txSizeCostPerByte.toString())),(0,o.isSet)(e.sigVerifyCostEd25519)&&(t.sigVerifyCostEd25519=BigInt(e.sigVerifyCostEd25519.toString())),(0,o.isSet)(e.sigVerifyCostSecp256k1)&&(t.sigVerifyCostSecp256k1=BigInt(e.sigVerifyCostSecp256k1.toString())),t},toJSON(e){let t={};return void 0!==e.maxMemoCharacters&&(t.maxMemoCharacters=(e.maxMemoCharacters||BigInt(0)).toString()),void 0!==e.txSigLimit&&(t.txSigLimit=(e.txSigLimit||BigInt(0)).toString()),void 0!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||BigInt(0)).toString()),void 0!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||BigInt(0)).toString()),void 0!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||BigInt(0)).toString()),t},fromPartial(e){let t=l();return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters&&(t.maxMemoCharacters=BigInt(e.maxMemoCharacters.toString())),void 0!==e.txSigLimit&&null!==e.txSigLimit&&(t.txSigLimit=BigInt(e.txSigLimit.toString())),void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=BigInt(e.txSizeCostPerByte.toString())),void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=BigInt(e.sigVerifyCostEd25519.toString())),void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=BigInt(e.sigVerifyCostSecp256k1.toString())),t}}},87774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QuerySendEnabledResponse=t.QuerySendEnabledRequest=t.QueryDenomOwnersResponse=t.DenomOwner=t.QueryDenomOwnersRequest=t.QueryDenomMetadataResponse=t.QueryDenomMetadataRequest=t.QueryDenomsMetadataResponse=t.QueryDenomsMetadataRequest=t.QueryParamsResponse=t.QueryParamsRequest=t.QuerySupplyOfResponse=t.QuerySupplyOfRequest=t.QueryTotalSupplyResponse=t.QueryTotalSupplyRequest=t.QuerySpendableBalanceByDenomResponse=t.QuerySpendableBalanceByDenomRequest=t.QuerySpendableBalancesResponse=t.QuerySpendableBalancesRequest=t.QueryAllBalancesResponse=t.QueryAllBalancesRequest=t.QueryBalanceResponse=t.QueryBalanceRequest=t.protobufPackage=void 0;let n=r(64094),i=r(91794),o=r(82876),a=r(4696),s=r(92242);function d(){return{address:"",denom:""}}function l(){return{balance:void 0}}function c(){return{address:"",pagination:void 0}}function u(){return{balances:[],pagination:void 0}}function p(){return{address:"",pagination:void 0}}function f(){return{balances:[],pagination:void 0}}function h(){return{address:"",denom:""}}function g(){return{balance:void 0}}function m(){return{pagination:void 0}}function y(){return{supply:[],pagination:void 0}}function b(){return{denom:""}}function v(){return{amount:i.Coin.fromPartial({})}}function S(){return{}}function A(){return{params:o.Params.fromPartial({})}}function w(){return{pagination:void 0}}function _(){return{metadatas:[],pagination:void 0}}function P(){return{denom:""}}function k(){return{metadata:o.Metadata.fromPartial({})}}function R(){return{denom:"",pagination:void 0}}function O(){return{address:"",balance:i.Coin.fromPartial({})}}function I(){return{denomOwners:[],pagination:void 0}}function B(){return{denoms:[],pagination:void 0}}function x(){return{sendEnabled:[],pagination:void 0}}t.protobufPackage="cosmos.bank.v1beta1",t.QueryBalanceRequest={typeUrl:"/cosmos.bank.v1beta1.QueryBalanceRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),""!==e.denom&&t.uint32(18).string(e.denom),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=d();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.address=r.string();break;case 2:i.denom=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=d();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),(0,s.isSet)(e.denom)&&(t.denom=String(e.denom)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.denom&&(t.denom=e.denom),t},fromPartial(e){let t=d();return t.address=e.address??"",t.denom=e.denom??"",t}},t.QueryBalanceResponse={typeUrl:"/cosmos.bank.v1beta1.QueryBalanceResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.balance&&i.Coin.encode(e.balance,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=l();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.balance=i.Coin.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=l();return(0,s.isSet)(e.balance)&&(t.balance=i.Coin.fromJSON(e.balance)),t},toJSON(e){let t={};return void 0!==e.balance&&(t.balance=e.balance?i.Coin.toJSON(e.balance):void 0),t},fromPartial(e){let t=l();return void 0!==e.balance&&null!==e.balance&&(t.balance=i.Coin.fromPartial(e.balance)),t}},t.QueryAllBalancesRequest={typeUrl:"/cosmos.bank.v1beta1.QueryAllBalancesRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=c();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.address=r.string();break;case 2:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=c();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=c();return t.address=e.address??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryAllBalancesResponse={typeUrl:"/cosmos.bank.v1beta1.QueryAllBalancesResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.balances)i.Coin.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=u();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.balances.push(i.Coin.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=u();return Array.isArray(e?.balances)&&(t.balances=e.balances.map(e=>i.Coin.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.balances?t.balances=e.balances.map(e=>e?i.Coin.toJSON(e):void 0):t.balances=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u();return t.balances=e.balances?.map(e=>i.Coin.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QuerySpendableBalancesRequest={typeUrl:"/cosmos.bank.v1beta1.QuerySpendableBalancesRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=p();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.address=r.string();break;case 2:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=p();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=p();return t.address=e.address??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QuerySpendableBalancesResponse={typeUrl:"/cosmos.bank.v1beta1.QuerySpendableBalancesResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.balances)i.Coin.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=f();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.balances.push(i.Coin.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=f();return Array.isArray(e?.balances)&&(t.balances=e.balances.map(e=>i.Coin.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.balances?t.balances=e.balances.map(e=>e?i.Coin.toJSON(e):void 0):t.balances=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=f();return t.balances=e.balances?.map(e=>i.Coin.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QuerySpendableBalanceByDenomRequest={typeUrl:"/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),""!==e.denom&&t.uint32(18).string(e.denom),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.address=r.string();break;case 2:i.denom=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),(0,s.isSet)(e.denom)&&(t.denom=String(e.denom)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.denom&&(t.denom=e.denom),t},fromPartial(e){let t=h();return t.address=e.address??"",t.denom=e.denom??"",t}},t.QuerySpendableBalanceByDenomResponse={typeUrl:"/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.balance&&i.Coin.encode(e.balance,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=g();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.balance=i.Coin.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=g();return(0,s.isSet)(e.balance)&&(t.balance=i.Coin.fromJSON(e.balance)),t},toJSON(e){let t={};return void 0!==e.balance&&(t.balance=e.balance?i.Coin.toJSON(e.balance):void 0),t},fromPartial(e){let t=g();return void 0!==e.balance&&null!==e.balance&&(t.balance=i.Coin.fromPartial(e.balance)),t}},t.QueryTotalSupplyRequest={typeUrl:"/cosmos.bank.v1beta1.QueryTotalSupplyRequest",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=m();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.pagination=n.PageRequest.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=m();return(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=m();return void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryTotalSupplyResponse={typeUrl:"/cosmos.bank.v1beta1.QueryTotalSupplyResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.supply)i.Coin.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=y();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.supply.push(i.Coin.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=y();return Array.isArray(e?.supply)&&(t.supply=e.supply.map(e=>i.Coin.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.supply?t.supply=e.supply.map(e=>e?i.Coin.toJSON(e):void 0):t.supply=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=y();return t.supply=e.supply?.map(e=>i.Coin.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QuerySupplyOfRequest={typeUrl:"/cosmos.bank.v1beta1.QuerySupplyOfRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.denom=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=b();return(0,s.isSet)(e.denom)&&(t.denom=String(e.denom)),t},toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),t},fromPartial(e){let t=b();return t.denom=e.denom??"",t}},t.QuerySupplyOfResponse={typeUrl:"/cosmos.bank.v1beta1.QuerySupplyOfResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.amount&&i.Coin.encode(e.amount,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=v();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.amount=i.Coin.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=v();return(0,s.isSet)(e.amount)&&(t.amount=i.Coin.fromJSON(e.amount)),t},toJSON(e){let t={};return void 0!==e.amount&&(t.amount=e.amount?i.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=v();return void 0!==e.amount&&null!==e.amount&&(t.amount=i.Coin.fromPartial(e.amount)),t}},t.QueryParamsRequest={typeUrl:"/cosmos.bank.v1beta1.QueryParamsRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>S(),toJSON:e=>({}),fromPartial:e=>S()},t.QueryParamsResponse={typeUrl:"/cosmos.bank.v1beta1.QueryParamsResponse",encode:(e,t=a.BinaryWriter.create())=>
1(void 0!==e.params&&o.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.params=o.Params.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=A();return(0,s.isSet)(e.params)&&(t.params=o.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?o.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=A();return void 0!==e.params&&null!==e.params&&(t.params=o.Params.fromPartial(e.params)),t}},t.QueryDenomsMetadataRequest={typeUrl:"/cosmos.bank.v1beta1.QueryDenomsMetadataRequest",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=w();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.pagination=n.PageRequest.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=w();return(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=w();return void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryDenomsMetadataResponse={typeUrl:"/cosmos.bank.v1beta1.QueryDenomsMetadataResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.metadatas)o.Metadata.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,s=_();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:s.metadatas.push(o.Metadata.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=_();return Array.isArray(e?.metadatas)&&(t.metadatas=e.metadatas.map(e=>o.Metadata.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.metadatas?t.metadatas=e.metadatas.map(e=>e?o.Metadata.toJSON(e):void 0):t.metadatas=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=_();return t.metadatas=e.metadatas?.map(e=>o.Metadata.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryDenomMetadataRequest={typeUrl:"/cosmos.bank.v1beta1.QueryDenomMetadataRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=P();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.denom=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=P();return(0,s.isSet)(e.denom)&&(t.denom=String(e.denom)),t},toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),t},fromPartial(e){let t=P();return t.denom=e.denom??"",t}},t.QueryDenomMetadataResponse={typeUrl:"/cosmos.bank.v1beta1.QueryDenomMetadataResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.metadata&&o.Metadata.encode(e.metadata,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=k();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.metadata=o.Metadata.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=k();return(0,s.isSet)(e.metadata)&&(t.metadata=o.Metadata.fromJSON(e.metadata)),t},toJSON(e){let t={};return void 0!==e.metadata&&(t.metadata=e.metadata?o.Metadata.toJSON(e.metadata):void 0),t},fromPartial(e){let t=k();return void 0!==e.metadata&&null!==e.metadata&&(t.metadata=o.Metadata.fromPartial(e.metadata)),t}},t.QueryDenomOwnersRequest={typeUrl:"/cosmos.bank.v1beta1.QueryDenomOwnersRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=R();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.denom=r.string();break;case 2:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=R();return(0,s.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=R();return t.denom=e.denom??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.DenomOwner={typeUrl:"/cosmos.bank.v1beta1.DenomOwner",encode:(e,t=a.BinaryWriter.create())=>(""!==e.address&&t.uint32(10).string(e.address),void 0!==e.balance&&i.Coin.encode(e.balance,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=O();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:o.address=r.string();break;case 2:o.balance=i.Coin.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o}
1,fromJSON(e){let t=O();return(0,s.isSet)(e.address)&&(t.address=String(e.address)),(0,s.isSet)(e.balance)&&(t.balance=i.Coin.fromJSON(e.balance)),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.balance&&(t.balance=e.balance?i.Coin.toJSON(e.balance):void 0),t},fromPartial(e){let t=O();return t.address=e.address??"",void 0!==e.balance&&null!==e.balance&&(t.balance=i.Coin.fromPartial(e.balance)),t}},t.QueryDenomOwnersResponse={typeUrl:"/cosmos.bank.v1beta1.QueryDenomOwnersResponse",encode(e,r=a.BinaryWriter.create()){for(let n of e.denomOwners)t.DenomOwner.encode(n,r.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,r.uint32(18).fork()).ldelim(),r},decode(e,r){let i=e instanceof a.BinaryReader?e:new a.BinaryReader(e),o=void 0===r?i.len:i.pos+r,s=I();for(;i.pos<o;){let e=i.uint32();switch(e>>>3){case 1:s.denomOwners.push(t.DenomOwner.decode(i,i.uint32()));break;case 2:s.pagination=n.PageResponse.decode(i,i.uint32());break;default:i.skipType(7&e)}}return s},fromJSON(e){let r=I();return Array.isArray(e?.denomOwners)&&(r.denomOwners=e.denomOwners.map(e=>t.DenomOwner.fromJSON(e))),(0,s.isSet)(e.pagination)&&(r.pagination=n.PageResponse.fromJSON(e.pagination)),r},toJSON(e){let r={};return e.denomOwners?r.denomOwners=e.denomOwners.map(e=>e?t.DenomOwner.toJSON(e):void 0):r.denomOwners=[],void 0!==e.pagination&&(r.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),r},fromPartial(e){let r=I();return r.denomOwners=e.denomOwners?.map(e=>t.DenomOwner.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(r.pagination=n.PageResponse.fromPartial(e.pagination)),r}},t.QuerySendEnabledRequest={typeUrl:"/cosmos.bank.v1beta1.QuerySendEnabledRequest",encode(e,t=a.BinaryWriter.create()){for(let r of e.denoms)t.uint32(10).string(r);return void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(794).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=B();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.denoms.push(r.string());break;case 99:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=B();return Array.isArray(e?.denoms)&&(t.denoms=e.denoms.map(e=>String(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.denoms?t.denoms=e.denoms.map(e=>e):t.denoms=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=B();return t.denoms=e.denoms?.map(e=>e)||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QuerySendEnabledResponse={typeUrl:"/cosmos.bank.v1beta1.QuerySendEnabledResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.sendEnabled)o.SendEnabled.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(794).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,s=x();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:s.sendEnabled.push(o.SendEnabled.decode(r,r.uint32()));break;case 99:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=x();return Array.isArray(e?.sendEnabled)&&(t.sendEnabled=e.sendEnabled.map(e=>o.SendEnabled.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.sendEnabled?t.sendEnabled=e.sendEnabled.map(e=>e?o.SendEnabled.toJSON(e):void 0):t.sendEnabled=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=x();return t.sendEnabled=e.sendEnabled?.map(e=>o.SendEnabled.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}};class E{constructor(e){this.rpc=e,this.Balance=this.Balance.bind(this),this.AllBalances=this.AllBalances.bind(this),this.SpendableBalances=this.SpendableBalances.bind(this),this.SpendableBalanceByDenom=this.SpendableBalanceByDenom.bind(this),this.TotalSupply=this.TotalSupply.bind(this),this.SupplyOf=this.SupplyOf.bind(this),this.Params=this.Params.bind(this),this.DenomMetadata=this.DenomMetadata.bind(this),this.DenomsMetadata=this.DenomsMetadata.bind(this),this.DenomOwners=this.DenomOwners.bind(this),this.SendEnabled=this.SendEnabled.bind(this)}Balance(e){let r=t.QueryBalanceRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","Balance",r).then(e=>t.QueryBalanceResponse.decode(new a.BinaryReader(e)))}AllBalances(e){let r=t.QueryAllBalancesRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","AllBalances",r).then(e=>t.QueryAllBalancesResponse.decode(new a.BinaryReader(e)))}SpendableBalances(e){let r=t.QuerySpendableBalancesRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalances",r).then(e=>t.QuerySpendableBalancesResponse.decode(new a.BinaryReader(e)))}SpendableBalanceByDenom(e){let r=t.QuerySpendableBalanceByDenomRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalanceByDenom",r).then(e=>t.QuerySpendableBalanceByDenomResponse.decode(new a.BinaryReader(e)))}TotalSupply(e={pagination:n.PageRequest.fromPartial({})}){let r=t.QueryTotalSupplyRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","TotalSupply",r).then(e=>t.QueryTotalSupplyResponse.decode(new a.BinaryReader(e)))}SupplyOf(e){let r=t.QuerySupplyOfRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SupplyOf",r).then(e=>t.QuerySupplyOfResponse.decode(new a.BinaryReader(e)))}Params(e={}){let r=t.QueryParamsRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","Params",r).then(e=>t.QueryParamsResponse.decode(new a.BinaryReader(e)))}DenomMetadata(e){let r=t.QueryDenomMetadataRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomMetadata",r).then(e=>t.QueryDenomMetadataResponse.decode(new a.BinaryReader(e)))}DenomsMetadata(e={pagination:n.PageRequest.fromPartial({})}){let r=t.QueryDenomsMetadataRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomsMetadata",r).then(e=>t.QueryDenomsMetadataResponse.decode(new a.BinaryReader(e)))}DenomOwners(e){let r=t.QueryDenomOwnersRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomOwners",r).then(e=>t.QueryDenomOwnersResponse.decode(new a.BinaryReader(e)))}SendEnabled(e){let r=t.QuerySendEnabledRequest.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SendEnabled",r).then(e=>t.QuerySendEnabledResponse.decode(new a.BinaryReader(e)))}}t.QueryClientImpl=E},87894:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.arrayContentStartsWith=t.arrayContentEquals=void 0,t.arrayContentEquals=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},t.arrayContentStartsWith=function(e,t){if(e.length<t.length)return!1;for(let r=0;r<t.length;++r)if(e[r]!==t[r])return!1;return!0}},88009:(e,t,r)=>{"use strict";var n=r(91697),i=r(45381),o=r(16010),a=r(95488);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function d(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(d,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new d(this,e,t)},s.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(e,t){return new d(e,t[0],t[1]||e.one)},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},d.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},d.prototype.add=function(){throw Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),d=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,d)},d.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},d.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},d.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},88250:e=>{"use strict";e.exports={rE:"6.6.1"}},88598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSignBytes=t.makeSignDoc=t.makeAuthInfoBytes=void 0;let n=r(63688),i=r(36843),o=r(13788);function a(e,t){return e.map(({pubkey:e,sequence:r})=>({publicKey:e,modeInfo:{single:{mode:t}},sequence:BigInt(r)}))}t.makeAuthInfoBytes=function(e,t,r,s,d,l=i.SignMode.SIGN_MODE_DIRECT){(0,n.assert)(void 0===s||"string"==typeof s,"feeGranter must be undefined or string"),(0,n.assert)(void 0===d||"string"==typeof d,"feePayer must be undefined or string");let c=o.AuthInfo.fromPartial({signerInfos:a(e,l),fee:{amount:[...t],gasLimit:BigInt(r),granter:s,payer:d}});return o.AuthInfo.encode(c).finish()},t.makeSignDoc=function(e,t,r,n){return{bodyBytes:e,authInfoBytes:t,chainId:r,accountNumber:BigInt(n)}},t.makeSignBytes=function({accountNumber:e,authInfoBytes:t,bodyBytes:r,chainId:n}){let i=o.SignDoc.fromPartial({accountNumber:e,authInfoBytes:t,bodyBytes:r,chainId:n});return o.SignDoc.encode(i).finish()}},88631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1Wallet=void 0;let n=r(32715),i=r(97470),o=r(25918),a=r(88598);class s{static async fromKey(e,t="cosmos"){let r=(await i.Secp256k1.makeKeypair(e)).pubkey;return new s(e,i.Secp256k1.compressPubkey(r),t)}constructor(e,t,r){this.privkey=e,this.pubkey=t,this.prefix=r}get address(){return(0,o.toBech32)(this.prefix,(0,n.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(e,t){let r=(0,a.makeSignBytes)(t);if(e!==this.address)throw Error(`Address ${e} not found in wallet`);let o=(0,i.sha256)(r),s=await i.Secp256k1.createSignature(o,this.privkey),d=new Uint8Array([...s.r(32),...s.s(32)]);return{signed:t,signature:(0,n.encodeSecp256k1Signature)(this.pubkey,d)}}}t.DirectSecp256k1Wallet=s},88636:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=b,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function d(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(d(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=l(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,i(c)}return e}function u(){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 p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?y(i):g(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function y(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function b(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}S(e,t,o,{once:!0}),"error"!==t&&v(e,i,{once:!0})})}function v(e,t,r){"function"==typeof e.on&&S(e,"error",t,r)}function S(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var d=o[e];if(void 0===d)return!1;if("function"==typeof d)n(d,this,t);else for(var l=d.length,c=g(d,l),r=0;r<l;++r)n(c[r],this,t);return!0},a.prototype.addListener=function(e,t){return c(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return c(this,e,t,!0)},a.prototype.once=function(e,t){return d(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,a;if(d(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
1("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():m(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},89183:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Comet38Client=void 0;let a=r(56662),s=r(151),d=r(77349),l=o(r(70707));class c{static async connect(e){let t;return t="object"==typeof e||e.startsWith("http://")||e.startsWith("https://")?new s.HttpClient(e):new s.WebsocketClient(e),await this.detectVersion(t),c.create(t)}static async create(e){return new c(e)}static async detectVersion(e){let t=(0,a.createJsonRpcRequest)(l.Method.Status),r=(await e.execute(t)).result;if(!r||!r.node_info)throw Error("Unrecognized format for status response");let n=r.node_info.version;if("string"!=typeof n)throw Error("Unrecognized version format: must be string");return n}constructor(e){this.client=e}disconnect(){this.client.disconnect()}async abciInfo(){let e={method:l.Method.AbciInfo};return this.doCall(e,d.Params.encodeAbciInfo,d.Responses.decodeAbciInfo)}async abciQuery(e){let t={params:e,method:l.Method.AbciQuery};return this.doCall(t,d.Params.encodeAbciQuery,d.Responses.decodeAbciQuery)}async block(e){let t={method:l.Method.Block,params:{height:e}};return this.doCall(t,d.Params.encodeBlock,d.Responses.decodeBlock)}async blockResults(e){let t={method:l.Method.BlockResults,params:{height:e}};return this.doCall(t,d.Params.encodeBlockResults,d.Responses.decodeBlockResults)}async blockSearch(e){let t={params:e,method:l.Method.BlockSearch},r=await this.doCall(t,d.Params.encodeBlockSearch,d.Responses.decodeBlockSearch);return{...r,blocks:[...r.blocks].sort((e,t)=>e.block.header.height-t.block.header.height)}}
1async blockSearchAll(e){let t=e.page||1,r=[],n=!1;for(;!n;){let i=await this.blockSearch({...e,page:t});r.push(...i.blocks),r.length<i.totalCount?t++:n=!0}return r.sort((e,t)=>e.block.header.height-t.block.header.height),{totalCount:r.length,blocks:r}}async blockchain(e,t){let r={method:l.Method.Blockchain,params:{minHeight:e,maxHeight:t}};return this.doCall(r,d.Params.encodeBlockchain,d.Responses.decodeBlockchain)}async broadcastTxSync(e){let t={params:e,method:l.Method.BroadcastTxSync};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxSync)}async broadcastTxAsync(e){let t={params:e,method:l.Method.BroadcastTxAsync};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxAsync)}async broadcastTxCommit(e){let t={params:e,method:l.Method.BroadcastTxCommit};return this.doCall(t,d.Params.encodeBroadcastTx,d.Responses.decodeBroadcastTxCommit)}async commit(e){let t={method:l.Method.Commit,params:{height:e}};return this.doCall(t,d.Params.encodeCommit,d.Responses.decodeCommit)}async genesis(){let e={method:l.Method.Genesis};return this.doCall(e,d.Params.encodeGenesis,d.Responses.decodeGenesis)}async health(){let e={method:l.Method.Health};return this.doCall(e,d.Params.encodeHealth,d.Responses.decodeHealth)}async numUnconfirmedTxs(){let e={method:l.Method.NumUnconfirmedTxs};return this.doCall(e,d.Params.encodeNumUnconfirmedTxs,d.Responses.decodeNumUnconfirmedTxs)}async status(){let e={method:l.Method.Status};return this.doCall(e,d.Params.encodeStatus,d.Responses.decodeStatus)}subscribeNewBlock(){let e={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.NewBlock}};return this.subscribe(e,d.Responses.decodeNewBlockEvent)}subscribeNewBlockHeader(){let e={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.NewBlockHeader}};return this.subscribe(e,d.Responses.decodeNewBlockHeaderEvent)}subscribeTx(e){let t={method:l.Method.Subscribe,query:{type:l.SubscriptionEventType.Tx,raw:e}};return this.subscribe(t,d.Responses.decodeTxEvent)}async tx(e){let t={params:e,method:l.Method.Tx};return this.doCall(t,d.Params.encodeTx,d.Responses.decodeTx)}async txSearch(e){let t={params:e,method:l.Method.TxSearch};return this.doCall(t,d.Params.encodeTxSearch,d.Responses.decodeTxSearch)}
1async txSearchAll(e){let t=e.page||1,r=[],n=!1;for(;!n;){let i=await this.txSearch({...e,page:t});r.push(...i.txs),r.length<i.totalCount?t++:n=!0}return{totalCount:r.length,txs:r}}async validators(e){let t={method:l.Method.Validators,params:e};return this.doCall(t,d.Params.encodeValidators,d.Responses.decodeValidators)}async validatorsAll(e){let t=[],r=1,n=!1,i=e;for(;!n;){let e=await this.validators({per_page:50,height:i,page:r});t.push(...e.validators),i=i||e.blockHeight,t.length<e.total?r++:n=!0}return{blockHeight:i??0,count:t.length,total:t.length,validators:t}}async doCall(e,t,r){let n=t(e);return r(await this.client.execute(n))}subscribe(e,t){if(!(0,s.instanceOfRpcStreamingClient)(this.client))throw Error("This RPC client type cannot subscribe to events");let r=d.Params.encodeSubscribe(e);return this.client.listen(r).map(e=>t(e))}}t.Comet38Client=c},89880:(e,t,r)=>{"use strict";let n,i,o,a,s,d,l,c,u,p,f,h,g,m,y,b,v,S,A;r.d(t,{k:()=>dV});var w={};r.r(w),r.d(w,{OG:()=>oZ,My:()=>oL,Ph:()=>oW,lX:()=>oQ,Id:()=>oY,fg:()=>o0,qj:()=>oK,aT:()=>oF,lq:()=>oG,z:()=>oz,Q5:()=>o2});var _=r(42984),P=r(8829),k=r(28014),R=r(3039);let O=32,I=new Uint8Array(32),B=["then"],x={},E=new WeakMap;function T(e){return E.get(e)}function N(e,t){E.set(e,t)}function C(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);throw r.error=t,r}function M(e,t,r){return e.indexOf(null)>=0?t.map((e,t)=>e instanceof U?M(T(e),e,r):e):e.reduce((e,n,i)=>{let o=t.getValue(n);return n in e||(r&&o instanceof U&&(o=M(T(o),o,r)),e[n]=o),e},{})}class U extends Array{#e;constructor(...e){let t=e[0],r=e[1],n=(e[2]||[]).slice(),i=!0;t!==x&&(r=e,n=[],i=!1),super(r.length),r.forEach((e,t)=>{this[t]=e});let o=n.reduce((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e),new Map);if(N(this,Object.freeze(r.map((e,t)=>{let r=n[t];return null!=r&&1===o.get(r)?r:null}))),this.#e=[],null==this.#e&&this.#e,!i)return;Object.freeze(this);let a=new Proxy(this,{get:(e,t,r)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){let r=(0,P.WZ)(t,"%index");if(r<0||r>=this.length)throw RangeError("out of result range");let n=e[r];return n instanceof Error&&C(`index ${r}`,n),n}if(B.indexOf(t)>=0)return Reflect.get(e,t,r);let n=e[t];if(n instanceof Function)return function(...t){return n.apply(this===r?e:this,t)};if(!(t in e))return e.getValue.apply(this===r?e:this,[t])}return Reflect.get(e,t,r)}});return N(a,T(this)),a}toArray(e){let t=[];return this.forEach((r,n)=>{r instanceof Error&&C(`index ${n}`,r),e&&r instanceof U&&(r=r.toArray(e)),t.push(r)}),t}toObject(e){let t=T(this);return t.reduce((r,n,i)=>((0,_.vA)(null!=n,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),M(t,this,e)),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);let r=T(this),n=[],i=[];for(let o=e;o<t;o++)n.push(this[o]),i.push(r[o]);return new U(x,n,i)}filter(e,t){let r=T(this),n=[],i=[];for(let o=0;o<this.length;o++){let a=this[o];a instanceof Error&&C(`index ${o}`,a),e.call(t,a,o,this)&&(n.push(a),i.push(r[o]))}return new U(x,n,i)}map(e,t){let r=[];for(let n=0;n<this.length;n++){let i=this[n];i instanceof Error&&C(`index ${n}`,i),r.push(e.call(t,i,n,this))}return r}getValue(e){let t=T(this).indexOf(e);if(-1===t)return;let r=this[t];return r instanceof Error&&C(`property ${JSON.stringify(e)}`,r.error),r}static fromItems(e,t){return new U(x,e,t)}}function D(e){let t=(0,P.c4)(e);return(0,_.vA)(t.length<=O,"value out-of-bounds","BUFFER_OVERRUN",{buffer:t,length:O,offset:t.length}),t.length!==O&&(t=(0,k.Lm)((0,k.xW)([I.slice(t.length%O),t]))),t}class J{name;type;localName;dynamic;constructor(e,t,r,n){(0,R.n)(this,{name:e,type:t,localName:r,dynamic:n},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,_.MR)(!1,e,this.localName,t)}}class H{#t;#r;constructor(){this.#t=[],this.#r=0}get data(){return(0,k.xW)(this.#t)}get length(){return this.#r}#n(e){return this.#t.push(e),this.#r+=e.length,e.length}appendWriter(e){return this.#n((0,k.Lm)(e.data))}writeBytes(e){let t=(0,k.Lm)(e),r=t.length%O;return r&&(t=(0,k.Lm)((0,k.xW)([t,I.slice(r)]))),this.#n(t)}writeValue(e){return this.#n(D(e))}writeUpdatableValue(){let e=this.#t.length;return this.#t.push(I),this.#r+=O,t=>{this.#t[e]=D(t)}}}class V{allowLoose;#t;#i;#o;#a;#s;constructor(e,t,r){(0,R.n)(this,{allowLoose:!!t}),this.#t=(0,k.Lm)(e),this.#o=0,this.#a=null,this.#s=null!=r?r:1024,this.#i=0}get data(){return(0,k.c$)(this.#t)}get dataLength(){return this.#t.length}get consumed(){return this.#i}get bytes(){return new Uint8Array(this.#t)}#d(e){if(this.#a)return this.#a.#d(e);this.#o+=e,(0,_.vA)(this.#s<1||this.#o<=this.#s*this.dataLength,`c
1ompressed ABI data exceeds inflation ratio of ${this.#s} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,k.Lm)(this.#t),offset:this.#i,length:e,info:{bytesRead:this.#o,dataLength:this.dataLength}})}#l(e,t,r){let n=Math.ceil(t/O)*O;return this.#i+n>this.#t.length&&(this.allowLoose&&r&&this.#i+t<=this.#t.length?n=t:(0,_.vA)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,k.Lm)(this.#t),length:this.#t.length,offset:this.#i+n})),this.#t.slice(this.#i,this.#i+n)}subReader(e){let t=new V(this.#t.slice(this.#i+e),this.allowLoose,this.#s);return t.#a=this,t}readBytes(e,t){let r=this.#l(0,e,!!t);return this.#d(e),this.#i+=r.length,r.slice(0,e)}readValue(){return(0,P.Dg)(this.readBytes(O))}readIndex(){return(0,P.Ro)(this.readBytes(O))}}function q(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function L(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function j(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function F(e,t){L(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}let W=BigInt(0x100000000-1),Q=BigInt(32);function G(e,t=!1){return t?{h:Number(e&W),l:Number(e>>Q&W)}:{h:0|Number(e>>Q&W),l:0|Number(e&W)}}function z(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:a}=G(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}let K=(e,t,r)=>e<<r|t>>>32-r,Y=(e,t,r)=>t<<r|e>>>32-r,Z=(e,t,r)=>t<<r-32|e>>>64-r,X=(e,t,r)=>e<<r-32|t>>>64-r,$={split:z,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,add:function(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/0x100000000|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)},ee=e=>e instanceof Uint8Array,et=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),er=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),en=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([0x11223344]).buffer)[0])throw Error("Non little-endian hardware is not supported");function ei(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function eo(e){if("string"==typeof e&&(e=ei(e)),!ee(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}class ea{clone(){return this._cloneInto()}}function es(e){let t=t=>e().update(eo(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}let[ed,el,ec]=[[],[],[]],eu=BigInt(0),ep=BigInt(1),ef=BigInt(2),eh=BigInt(7),eg=BigInt(256),em=BigInt(113);for(let e=0,t=ep,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],ed.push(2*(5*n+r)),el.push((e+1)*(e+2)/2%64);let i=eu;for(let e=0;e<7;e++)(t=(t<<ep^(t>>eh)*em)%eg)&ef&&(i^=ep<<(ep<<BigInt(e))-ep);ec.push(i)}let[ey,eb]=z(ec,!0),ev=(e,t,r)=>r>32?Z(e,t,r):K(e,t,r),eS=(e,t,r)=>r>32?X(e,t,r):Y(e,t,r);function eA(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=ev(o,a,1)^r[n],d=eS(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=d}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=el[r],o=ev(t,i,n),a=eS(t,i,n),s=ed[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=ey[n],e[1]^=eb[n]}r.fill(0)}class ew extends ea{constructor(e,t,r,n=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,q(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=et(this.state)}keccak(){eA(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){j(this);let{blockLen:t,state:r}=this,n=(e=eo(e)).length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){j(this,!1),L(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return q(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(F(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new ew(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}let e_=(v=1,S=136,A=32,es(()=>new ew(S,v,A))),eP=!1,ek=function(e){return e_(e)},eR=ek;function eO(e){let t=(0,k.q5)(e,"data");return(0,k.c$)(eR(t))}eO._=ek,eO.lock=function(){eP=!0},eO.register=function(e){if(eP)throw TypeError("keccak256 is locked");eR=e},Object.freeze(eO);let eI=BigInt(0),eB=BigInt(36);function ex(e){let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=(0,k.q5)(eO(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let eE={};for(let e=0;e<10;e++)eE[String(e)]=String(e);for(let e=0;e<26;e++)eE[String.fromCharCode(65+e)]=String(10+e);let eT=15;function eN(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>eE[e]).join("");for(;t.length>=eT;){let e=t.substring(0,eT);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}let eC=function(){let e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();function eM(e){e=e.toLowerCase();let t=eI;for(let r=0;r<e.length;r++)t=t*eB+eC[e[r]];return t}
1function eU(e){if((0,_.MR)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=ex(e);return(0,_.MR)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,_.MR)(e.substring(2,4)===eN(e),"bad icap checksum","address",e);let t=eM(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return ex("0x"+t)}(0,_.MR)(!1,"invalid address","address",e)}let eD={};function eJ(e,t){let r=!1;return t<0&&(r=!0,t*=-1),new eq(eD,`${r?"":"u"}int${t}`,e,{signed:r,width:t})}function eH(e,t){return new eq(eD,`bytes${t||""}`,e,{size:t})}let eV=Symbol.for("_ethers_typed");class eq{type;value;#c;_typedSymbol;constructor(e,t,r,n){null==n&&(n=null),(0,_.gk)(eD,e,"Typed"),(0,R.n)(this,{_typedSymbol:eV,type:t,value:r}),this.#c=n,this.format()}format(){if("array"===this.type||"dynamicArray"===this.type)throw Error("");return"tuple"===this.type?`tuple(${this.value.map(e=>e.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#c}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#c?-1:!1===this.#c?this.value.length:null}static from(e,t){return new eq(eD,e,t)}static uint8(e){return eJ(e,8)}static uint16(e){return eJ(e,16)}static uint24(e){return eJ(e,24)}static uint32(e){return eJ(e,32)}static uint40(e){return eJ(e,40)}static uint48(e){return eJ(e,48)}static uint56(e){return eJ(e,56)}static uint64(e){return eJ(e,64)}static uint72(e){return eJ(e,72)}static uint80(e){return eJ(e,80)}static uint88(e){return eJ(e,88)}static uint96(e){return eJ(e,96)}static uint104(e){return eJ(e,104)}static uint112(e){return eJ(e,112)}static uint120(e){return eJ(e,120)}static uint128(e){return eJ(e,128)}static uint136(e){return eJ(e,136)}static uint144(e){return eJ(e,144)}static uint152(e){return eJ(e,152)}static uint160(e){return eJ(e,160)}static uint168(e){return eJ(e,168)}static uint176(e){return eJ(e,176)}static uint184(e){return eJ(e,184)}static uint192(e){return eJ(e,192)}static uint200(e){return eJ(e,200)}static uint208(e){return eJ(e,208)}static uint216(e){return eJ(e,216)}static uint224(e){return eJ(e,224)}static uint232(e){return eJ(e,232)}static uint240(e){return eJ(e,240)}static uint248(e){return eJ(e,248)}static uint256(e){return eJ(e,256)}static uint(e){return eJ(e,256)}static int8(e){return eJ(e,-8)}static int16(e){return eJ(e,-16)}static int24(e){return eJ(e,-24)}static int32(e){return eJ(e,-32)}static int40(e){return eJ(e,-40)}static int48(e){return eJ(e,-48)}static int56(e){return eJ(e,-56)}static int64(e){return eJ(e,-64)}static int72(e){return eJ(e,-72)}static int80(e){return eJ(e,-80)}static int88(e){return eJ(e,-88)}static int96(e){return eJ(e,-96)}static int104(e){return eJ(e,-104)}static int112(e){return eJ(e,-112)}static int120(e){return eJ(e,-120)}static int128(e){return eJ(e,-128)}static int136(e){return eJ(e,-136)}static int144(e){return eJ(e,-144)}static int152(e){return eJ(e,-152)}static int160(e){return eJ(e,-160)}static int168(e){return eJ(e,-168)}static int176(e){return eJ(e,-176)}static int184(e){return eJ(e,-184)}static int192(e){return eJ(e,-192)}static int200(e){return eJ(e,-200)}static int208(e){return eJ(e,-208)}static int216(e){return eJ(e,-216)}static int224(e){return eJ(e,-224)}static int232(e){return eJ(e,-232)}static int240(e){return eJ(e,-240)}static int248(e){return eJ(e,-248)}static int256(e){return eJ(e,-256)}static int(e){return eJ(e,-256)}static bytes1(e){return eH(e,1)}static bytes2(e){return eH(e,2)}static bytes3(e){return eH(e,3)}static bytes4(e){return eH(e,4)}static bytes5(e){return eH(e,5)}static bytes6(e){return eH(e,6)}static bytes7(e){return eH(e,7)}static bytes8(e){return eH(e,8)}static bytes9(e){return eH(e,9)}static bytes10(e){return eH(e,10)}static bytes11(e){return eH(e,11)}static bytes12(e){return eH(e,12)}static bytes13(e){return eH(e,13)}static bytes14(e){return eH(e,14)}static bytes15(e){return eH(e,15)}static bytes16(e){return eH(e,16)}static bytes17(e){return eH(e,17)}static bytes18(e){return eH(e,18)}static bytes19(e){return eH(e,19)}static bytes20(e){return eH(e,20)}static bytes21(e){return eH(e,21)}static bytes22(e){return eH(e,22)}static bytes23(e){return eH(e,23)}static bytes24(e){return eH(e,24)}static bytes25(e){return eH(e,25)}static bytes26(e){return eH(e,26)}static bytes27(e){return eH(e,27)}static bytes28(e){return eH(e,28)}
1static bytes29(e){return eH(e,29)}static bytes30(e){return eH(e,30)}static bytes31(e){return eH(e,31)}static bytes32(e){return eH(e,32)}static address(e){return new eq(eD,"address",e)}static bool(e){return new eq(eD,"bool",!!e)}static bytes(e){return new eq(eD,"bytes",e)}static string(e){return new eq(eD,"string",e)}static array(e,t){throw Error("not implemented yet")}static tuple(e,t){throw Error("not implemented yet")}static overrides(e){return new eq(eD,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===eV}static dereference(e,t){if(eq.isTyped(e)){if(e.type!==t)throw Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}class eL extends J{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let r=eq.dereference(t,"string");try{r=eU(r)}catch(e){return this._throwError(e.message,t)}return e.writeValue(r)}decode(e){return eU((0,P.up)(e.readValue(),20))}}class ej extends J{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}function eF(e,t,r){let n=[];if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return(0,_.vA)(n,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),(0,_.vA)(!e[n],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),e[n]=!0,r[n]})}else(0,_.MR)(!1,"invalid tuple value","tuple",r);(0,_.MR)(t.length===n.length,"types/value length mismatch","tuple",r);let i=new H,o=new H,a=[];t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();a.push(e=>{n(e+t)})}else e.encode(i,r)}),a.forEach(e=>{e(i.length)});let s=e.appendWriter(i);return s+e.appendWriter(o)}function eW(e,t){let r=[],n=[],i=e.subReader(0);return t.forEach(t=>{let o=null;if(t.dynamic){let r=e.readIndex(),n=i.subReader(r);try{o=t.decode(n)}catch(e){if((0,_.bJ)(e,"BUFFER_OVERRUN"))throw e;(o=e).baseType=t.name,o.name=t.localName,o.type=t.type}}else try{o=t.decode(e)}catch(e){if((0,_.bJ)(e,"BUFFER_OVERRUN"))throw e;(o=e).baseType=t.name,o.name=t.localName,o.type=t.type}if(void 0==o)throw Error("investigate");r.push(o),n.push(t.localName||null)}),U.fromItems(r,n)}class eQ extends J{coder;length;constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),(0,R.n)(this,{coder:e,length:t})}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){let r=eq.dereference(t,"array");Array.isArray(r)||this._throwError("expected array value",r);let n=this.length;-1===n&&(n=r.length,e.writeValue(r.length)),(0,_.dd)(r.length,n,"coder array"+(this.localName?" "+this.localName:""));let i=[];for(let e=0;e<r.length;e++)i.push(this.coder);return eF(e,i,r)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,_.vA)(t*O<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*O,length:e.dataLength}));let r=[];for(let e=0;e<t;e++)r.push(new ej(this.coder));return eW(e,r)}}class eG extends J{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){let r=eq.dereference(t,"bool");return e.writeValue(+!!r)}decode(e){return!!e.readValue()}}class ez extends J{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,k.Lm)(t);let r=e.writeValue(t.length);return r+e.writeBytes(t)}decode(e){return e.readBytes(e.readIndex(),!0)}}class eK extends ez{constructor(e){super("bytes",e)}decode(e){return(0,k.c$)(super.decode(e))}}class eY extends J{size;constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),(0,R.n)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,k.Lm)(eq.dereference(t,this.type));return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return(0,k.c$)(e.readBytes(this.size))}}let eZ=new Uint8Array([]);class eX extends J{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(eZ)}decode(e){return e.readBytes(0),null}}let e$=BigInt(0),e0=BigInt(1),e1=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class e2 extends J{size;signed;constructor(e,t,r){let n=(t?"int":"uint")+8*e;super(n,n,r,!1),(0,R.n)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let r=(0,P.Ab)(eq.dereference(t,this.type)),n=(0,P.dK)(e1,8*O);if(this.signed){let e=(0,P.dK)(n,8*this.size-1);(r>e||r<-(e+e0))&&this._throwError("value out-of-bounds",t),r=(0,P.JJ)(r,8*O)}else(r<e$||r>(0,P.dK)(n,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(r)}decode(e){let t=(0,P.dK)(e.readValue(),8*this.size);return this.signed&&(t=(0,P.ST)(t,8*this.size)),t}}function e3(e,t,r,n,i){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;
1for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}function e6(e,t,r,n,i){return"OVERLONG"===e?((0,_.MR)("number"==typeof i,"invalid bad code point for replacement","badCodepoint",i),n.push(i),0):(n.push(65533),e3(e,t,r,n,i))}let e5=Object.freeze({error:function(e,t,r,n,i){(0,_.MR)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:e3,replace:e6});function e4(e,t){null==t&&(t=e5.error);let r=(0,k.q5)(e,"bytes"),n=[],i=0;for(;i<r.length;){let e=r[i++];if(e>>7==0){n.push(e);continue}let o=null,a=null;if((224&e)==192)o=1,a=127;else if((240&e)==224)o=2,a=2047;else if((248&e)==240)o=3,a=65535;else{(192&e)==128?i+=t("UNEXPECTED_CONTINUE",i-1,r,n):i+=t("BAD_PREFIX",i-1,r,n);continue}if(i-1+o>=r.length){i+=t("OVERRUN",i-1,r,n);continue}let s=e&(1<<8-o-1)-1;for(let e=0;e<o;e++){let e=r[i];if((192&e)!=128){i+=t("MISSING_CONTINUE",i,r,n),s=null;break}s=s<<6|63&e,i++}if(null!==s){if(s>1114111){i+=t("OUT_OF_RANGE",i-1-o,r,n,s);continue}if(s>=55296&&s<=57343){i+=t("UTF16_SURROGATE",i-1-o,r,n,s);continue}if(s<=a){i+=t("OVERLONG",i-1-o,r,n,s);continue}n.push(s)}}return n}function e8(e,t){(0,_.MR)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,_.SP)(t),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);(0,_.MR)(t<e.length&&(64512&i)==56320,"invalid surrogate pair","str",e);let o=65536+((1023&n)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}function e9(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function e7(e,t){return e9(e4(e,t))}class te extends ez{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,e8(eq.dereference(t,"string")))}decode(e){return e7(super.decode(e))}}class tt extends J{coders;constructor(e,t){let r=!1,n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super("tuple","tuple("+n.join(",")+")",t,r),(0,R.n)(this,{coders:Object.freeze(e.slice())})}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){let r=eq.dereference(t,"tuple");return eF(e,this.coders,r)}decode(e){return eW(e,this.coders)}}function tr(e){return eO(e8(e))}function tn(e){let t=new Set;return e.forEach(e=>t.add(e)),Object.freeze(t)}let ti=tn("external public payable override".split(" ")),to="constant external internal payable private public pure view override",ta=tn(to.split(" ")),ts="constructor error event fallback function receive struct",td=tn(ts.split(" ")),tl="calldata memory storage payable indexed",tc=tn(tl.split(" ")),tu=tn([ts,tl,"tuple returns",to].join(" ").split(" ")),tp={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},tf=RegExp("^(\\s*)"),th=RegExp("^([0-9]+)"),tg=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),tm=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),ty=RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class tb{#i;#u;get offset(){return this.#i}get length(){return this.#u.length-this.#i}constructor(e){this.#i=0,this.#u=e.slice()}clone(){return new tb(this.#u)}reset(){this.#i=0}#p(e=0,t=0){return new tb(this.#u.slice(e,t).map(t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e}))))}popKeyword(e){let t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){let t=this.peek();throw Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=this.#p(this.#i+1,e.match+1);return this.#i=e.match+1,t}popParams(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=[];for(;this.#i<e.match-1;){let e=this.peek().linkNext;t.push(this.#p(this.#i+1,e)),this.#i=e}return this.#i=e.match+1,t}peek(){if(this.#i>=this.#u.length)throw Error("out-of-bounds");return this.#u[this.#i]}peekKeyword(e){let t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;let t=this.peek();return t.type===e?t.text:null}pop(){let e=this.peek();return this.#i++,e}toString(){let e=[];for(let t=this.#i;t<this.#u.length;t++){let r=this.#u[t];e.push(`${r.type}:${r.text}`)}return`<TokenString ${e.join(" ")}>`}}function tv(e){let t=[],r=t=>{let r=o<e.length?JSON.stringify(e[o]):"$EOI";throw Error(`invalid token ${r} at ${o}: ${t}`)},n=[],i=[],o=0;for(;o<e.length;){let a=e.substring(o),s=a.match(tf);s&&(o+=s[1].length,a=e.substring(o));let d={depth:n.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:o,value:-1};t.push(d);let l=tp[a[0]]||"";if(l){if(d.type=l,d.text=a[0],o++,"OPEN_PAREN"===l)n.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==l)0===n.length&&r("no matching open bracket"),d.match=n.pop(),t[d.match].match=t.length-1,d.depth--,d.linkBack=i.pop(),t[d.linkBack].linkNext=t.length-1;else if("COMMA"===l)d.linkBack=i.pop(),t[d.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===l)d.type="BRACKET";else if("CLOSE_BRACKET"===l){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){let r=t.pop().text;e=r+e,t[t.length-1].value=(0,P.WZ)(r)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw Error("missing opening bracket");t[t.length-1].text+=e}continue}if(s=a.match(tg)){if(d.text=s[1],o+=d.text.length,tu.has(d.text)){d.type="KEYWORD";continue}if(d.text.match(ty)){d.type="TYPE";continue}d.type="ID";continue}if(s=a.match(th)){d.text=s[1],d.type="NUMBER",o+=d.text.length;continue}throw Error(`unexpected token ${JSON.stringify(a[0])} at position ${o}`)}return new tb(t.map(e=>Object.freeze(e)))}function tS(e,t){let r=[];for(let n in t.keys())e.has(n)&&r.push(n);if(r.length>1)throw Error(`conflicting types: ${r.join(", ")}`)}function tA(e,t){if(t.peekKeyword(td)){let r=t.pop().text;if(r!==e)throw Error(`expected ${e}, got ${r}`)}return t.popType("ID")}function tw(e,t){let r=new Set;for(;;){let n=e.peekType("KEYWORD");if(null==n||t&&!t.has(n))break;if(e.pop(),r.has(n))throw Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function t_(e){let t=tw(e,ta);return(tS(t,tn("constant payable nonpayable".split(" "))),tS(t,tn("pure view payable nonpayable".split(" "))),t.has("view"))?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function tP(e,t){return e.popParams().map(e=>tJ.from(e,t))}
1function tk(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,P.Ab)(e.pop().text);throw Error("invalid gas")}return null}function tR(e){if(e.length)throw Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}let tO=new RegExp(/^(.*)\[([0-9]*)\]$/);function tI(e){let t=e.match(ty);if((0,_.MR)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){let r=parseInt(t[2]);(0,_.MR)(0!==r&&r<=32,"invalid bytes length","type",e)}else if(t[3]){let r=parseInt(t[3]);(0,_.MR)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",e)}return e}let tB={},tx=Symbol.for("_ethers_internal"),tE="_ParamTypeInternal",tT="_ErrorInternal",tN="_EventInternal",tC="_ConstructorInternal",tM="_FallbackInternal",tU="_FunctionInternal",tD="_StructInternal";class tJ{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,r,n,i,o,a,s){if((0,_.gk)(e,tB,"ParamType"),Object.defineProperty(this,tx,{value:tE}),o&&(o=Object.freeze(o.slice())),"array"===n){if(null==a||null==s)throw Error("")}else if(null!=a||null!=s)throw Error("");if("tuple"===n){if(null==o)throw Error("")}else if(null!=o)throw Error("");(0,R.n)(this,{name:t,type:r,baseType:n,indexed:i,components:o,arrayLength:a,arrayChildren:s})}format(e){if(null==e&&(e="sighash"),"json"===e){let t=this.name||"";if(this.isArray()){let e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}let r={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(t=>t.format(e)).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw Error("array is wrong length");let r=this;return e.map(e=>r.arrayChildren.walk(e,t))}if(this.isTuple()){if(!Array.isArray(e))throw Error("invalid tuple value");if(e.length!==this.components.length)throw Error("array is wrong length");let r=this;return e.map((e,n)=>r.components[n].walk(e,t))}return t(this.type,e)}#f(e,t,r,n){if(this.isArray()){if(!Array.isArray(t))throw Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw Error("array is wrong length");let i=this.arrayChildren,o=t.slice();o.forEach((t,n)=>{i.#f(e,t,r,e=>{o[n]=e})}),n(o);return}if(this.isTuple()){let i,o=this.components;if(Array.isArray(t))i=t.slice();else{if(null==t||"object"!=typeof t)throw Error("invalid tuple value");i=o.map(e=>{if(!e.name)throw Error("cannot use object value with unnamed components");if(!(e.name in t))throw Error(`missing value for component ${e.name}`);return t[e.name]})}if(i.length!==this.components.length)throw Error("array is wrong length");i.forEach((t,n)=>{o[n].#f(e,t,r,e=>{i[n]=e})}),n(i);return}let i=r(this.type,t);i.then?e.push(async function(){n(await i)}()):n(i)}async walkAsync(e,t){let r=[],n=[e];return this.#f(r,e,t,e=>{n[0]=e}),r.length&&await Promise.all(r),n[0]}static from(e,t){if(tJ.isParamType(e))return e;if("string"==typeof e)try{return tJ.from(tv(e),t)}catch(t){(0,_.MR)(!1,"invalid param type","obj",e)}else if(e instanceof tb){let r="",n="",i=null;tw(e,tn(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(n="tuple",i=e.popParams().map(e=>tJ.from(e)),r=`tuple(${i.map(e=>e.format()).join(",")})`):n=r=tI(e.popType("TYPE"));let o=null,a=null;for(;e.length&&e.peekType("BRACKET");){let t=e.pop();o=new tJ(tB,"",r,n,null,i,a,o),a=t.value,r+=t.text,n="array",i=null}let s=null;if(tw(e,tc).has("indexed")){if(!t)throw Error("");s=!0}let d=e.peekType("ID")?e.pop().text:"";if(e.length)throw Error("leftover tokens");return new tJ(tB,d,r,n,s,i,a,o)}let r=e.name;(0,_.MR)(!r||"string"==typeof r&&r.match(tm),"invalid name","obj.name",r);let n=e.indexed;null!=n&&((0,_.MR)(t,"parameter cannot be indexed","obj.indexed",e.indexed),n=!!n);let i=e.type,o=i.match(tO);if(o){let t=parseInt(o[2]||"-1"),a=tJ.from({type:o[1],components:e.components});return new tJ(tB,r||"",i,"array",n,null,t,a)}if("tuple"===i||i.startsWith("tuple(")||i.startsWith("(")){let t=null!=e.components?e.components.map(e=>tJ.from(e)):null;return new tJ(tB,r||"",i,"tuple",n,t,null,null)}return new tJ(tB,r||"",i=tI(e.type),i,n,null,null,null)}static isParamType(e){return e&&e[tx]===tE}}class tH{type;inputs;constructor(e,t,r){(0,_.gk)(e,tB,"Fragment"),r=Object.freeze(r.slice()),(0,R.n)(this,{type:t,inputs:r})}static from(e){if("string"==typeof e){try{tH.from(JSON.parse(e))}catch(e){}return tH.from(tv(e))}if(e instanceof tb)switch(e.peekKeyword(td)){case"constructor":return tF.from(e);case"error":return tL.from(e);case"event":return tj.from(e);case"fallback":case"receive":return tW.from(e);case"function":return tQ.from(e);case"struct":return tG.from(e)}else if("object"==typeof e){switch(e.type){case"constructor":return tF.from(e);case"error":return tL.from(e);case"event":return tj.from(e);case"fallback":case"receive":return tW.from(e);case"function":return tQ.from(e);case"struct":return tG.from(e)}(0,_.vA)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,_.MR)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return tF.isFragment(e)}static isError(e){return tL.isFragment(e)}static isEvent(e){return tj.isFragment(e)}static isFunction(e){return tQ.isFragment(e)}static isStruct(e){return tG.isFragment(e)}}class tV extends tH{name;
1constructor(e,t,r,n){super(e,t,n),(0,_.MR)("string"==typeof r&&r.match(tm),"invalid identifier","name",r),n=Object.freeze(n.slice()),(0,R.n)(this,{name:r})}}function tq(e,t){return"("+t.map(t=>t.format(e)).join("full"===e?", ":",")+")"}class tL extends tV{constructor(e,t,r){super(e,"error",t,r),Object.defineProperty(this,tx,{value:tT})}get selector(){return tr(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+tq(e,this.inputs)),t.join(" ")}static from(e){if(tL.isFragment(e))return e;if("string"==typeof e)return tL.from(tv(e));if(e instanceof tb){let t=tA("error",e),r=tP(e);return tR(e),new tL(tB,t,r)}return new tL(tB,e.name,e.inputs?e.inputs.map(tJ.from):[])}static isFragment(e){return e&&e[tx]===tT}}class tj extends tV{anonymous;constructor(e,t,r,n){super(e,"event",t,r),Object.defineProperty(this,tx,{value:tN}),(0,R.n)(this,{anonymous:n})}get topicHash(){return tr(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+tq(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){return new tj(tB,e,t=(t||[]).map(e=>tJ.from(e)),!1).topicHash}static from(e){if(tj.isFragment(e))return e;if("string"==typeof e)try{return tj.from(tv(e))}catch(t){(0,_.MR)(!1,"invalid event fragment","obj",e)}else if(e instanceof tb){let t=tA("event",e),r=tP(e,!0),n=!!tw(e,tn(["anonymous"])).has("anonymous");return tR(e),new tj(tB,t,r,n)}return new tj(tB,e.name,e.inputs?e.inputs.map(e=>tJ.from(e,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[tx]===tN}}class tF extends tH{payable;gas;constructor(e,t,r,n,i){super(e,t,r),Object.defineProperty(this,tx,{value:tC}),(0,R.n)(this,{payable:n,gas:i})}format(e){if((0,_.vA)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[`constructor${tq(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(tF.isFragment(e))return e;if("string"==typeof e)try{return tF.from(tv(e))}catch(t){(0,_.MR)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof tb){tw(e,tn(["constructor"]));let t=tP(e),r=!!tw(e,ti).has("payable"),n=tk(e);return tR(e),new tF(tB,"constructor",t,r,n)}return new tF(tB,"constructor",e.inputs?e.inputs.map(tJ.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[tx]===tC}}class tW extends tH{payable;constructor(e,t,r){super(e,"fallback",t),Object.defineProperty(this,tx,{value:tM}),(0,R.n)(this,{payable:r})}format(e){let t=0===this.inputs.length?"receive":"fallback";return"json"===e?JSON.stringify({type:t,stateMutability:this.payable?"payable":"nonpayable"}):`${t}()${this.payable?" payable":""}`}static from(e){if(tW.isFragment(e))return e;if("string"==typeof e)try{return tW.from(tv(e))}catch(t){(0,_.MR)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof tb){let t=e.toString(),r=e.peekKeyword(tn(["fallback","receive"]));if((0,_.MR)(r,"type must be fallback or receive","obj",t),"receive"===e.popKeyword(tn(["fallback","receive"]))){let t=tP(e);return(0,_.MR)(0===t.length,"receive cannot have arguments","obj.inputs",t),tw(e,tn(["payable"])),tR(e),new tW(tB,[],!0)}let n=tP(e);n.length?(0,_.MR)(1===n.length&&"bytes"===n[0].type,"invalid fallback inputs","obj.inputs",n.map(e=>e.format("minimal")).join(", ")):n=[tJ.from("bytes")];let i=t_(e);if((0,_.MR)("nonpayable"===i||"payable"===i,"fallback cannot be constants","obj.stateMutability",i),tw(e,tn(["returns"])).has("returns")){let t=tP(e);
1(0,_.MR)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map(e=>e.format("minimal")).join(", "))}return tR(e),new tW(tB,n,"payable"===i)}return"receive"===e.type?new tW(tB,[],!0):"fallback"===e.type?new tW(tB,[tJ.from("bytes")],"payable"===e.stateMutability):void(0,_.MR)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[tx]===tM}}class tQ extends tV{constant;outputs;stateMutability;payable;gas;constructor(e,t,r,n,i,o){super(e,"function",t,n),Object.defineProperty(this,tx,{value:tU}),i=Object.freeze(i.slice());let a="view"===r||"pure"===r,s="payable"===r;(0,R.n)(this,{constant:a,gas:o,outputs:i,payable:s,stateMutability:r})}get selector(){return tr(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+tq(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(tq(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){return new tQ(tB,e,"view",t=(t||[]).map(e=>tJ.from(e)),[],null).selector}static from(e){if(tQ.isFragment(e))return e;if("string"==typeof e)try{return tQ.from(tv(e))}catch(t){(0,_.MR)(!1,"invalid function fragment","obj",e)}else if(e instanceof tb){let t=tA("function",e),r=tP(e),n=t_(e),i=[];tw(e,tn(["returns"])).has("returns")&&(i=tP(e));let o=tk(e);return tR(e),new tQ(tB,t,n,r,i,o)}let t=e.stateMutability;return null==t&&(t="payable","boolean"==typeof e.constant?(t="view",!e.constant&&(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new tQ(tB,e.name,t,e.inputs?e.inputs.map(tJ.from):[],e.outputs?e.outputs.map(tJ.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[tx]===tU}}class tG extends tV{constructor(e,t,r){super(e,"struct",t,r),Object.defineProperty(this,tx,{value:tD})}format(){throw Error("@TODO")}static from(e){if("string"==typeof e)try{return tG.from(tv(e))}catch(t){(0,_.MR)(!1,"invalid struct fragment","obj",e)}else if(e instanceof tb){let t=tA("struct",e),r=tP(e);return tR(e),new tG(tB,t,r)}return new tG(tB,e.name,e.inputs?e.inputs.map(tJ.from):[])}static isFragment(e){return e&&e[tx]===tD}}let tz=new Map;tz.set(0,"GENERIC_PANIC"),tz.set(1,"ASSERT_FALSE"),tz.set(17,"OVERFLOW"),tz.set(18,"DIVIDE_BY_ZERO"),tz.set(33,"ENUM_RANGE_ERROR"),tz.set(34,"BAD_STORAGE_DATA"),tz.set(49,"STACK_UNDERFLOW"),tz.set(50,"ARRAY_RANGE_ERROR"),tz.set(65,"OUT_OF_MEMORY"),tz.set(81,"UNINITIALIZED_FUNCTION_CALL");let tK=new RegExp(/^bytes([0-9]*)$/),tY=new RegExp(/^(u?int)([0-9]*)$/),tZ=null,tX=1024;function t$(e,t,r,n){let i="missing revert data",o=null,a=null,s=null;if(r){i="execution reverted";let e=(0,k.q5)(r);if(r=(0,k.c$)(r),0===e.length)i+=" (no data present; likely require(false) occurred",o="require(false)";else if(e.length%32!=4)i+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,k.c$)(e.slice(0,4)))try{o=n.decode(["string"],e.slice(4))[0],s={signature:"Error(string)",name:"Error",args:[o]},i+=`: ${JSON.stringify(o)}`}catch(e){i+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,k.c$)(e.slice(0,4)))try{let t=Number(n.decode(["uint256"],e.slice(4))[0]);s={signature:"Panic(uint256)",name:"Panic",args:[t]},o=`Panic due to ${tz.get(t)||"UNKNOWN"}(${t})`,i+=`: ${o}`}catch(e){i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}let d={to:t.to?eU(t.to):null,data:t.data||"0x"};return t.from&&(d.from=eU(t.from)),(0,_.xz)(i,"CALL_EXCEPTION",{action:e,data:r,reason:o,transaction:d,invocation:a,revert:s})}class t0{#h(e){if(e.isArray())return new eQ(this.#h(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new tt(e.components.map(e=>this.#h(e)),e.name);switch(e.baseType){case"address":return new eL(e.name);case"bool":return new eG(e.name);case"string":return new te(e.name);case"bytes":return new eK(e.name);case"":return new eX(e.name)}let t=e.type.match(tY);if(t){let r=parseInt(t[2]||"256");return(0,_.MR)(0!==r&&r<=256&&r%8==0,"invalid "+t[1]+" bit length","param",e),new e2(r/8,"int"===t[1],e.name)}if(t=e.type.match(tK)){let r=parseInt(t[1]);
1return(0,_.MR)(0!==r&&r<=32,"invalid bytes length","param",e),new eY(r,e.name)}(0,_.MR)(!1,"invalid type","type",e.type)}getDefaultValue(e){return new tt(e.map(e=>this.#h(tJ.from(e))),"_").defaultValue()}encode(e,t){(0,_.dd)(t.length,e.length,"types/values length mismatch");let r=new tt(e.map(e=>this.#h(tJ.from(e))),"_"),n=new H;return r.encode(n,t),n.data}decode(e,t,r){return new tt(e.map(e=>this.#h(tJ.from(e))),"_").decode(new V(t,r,tX))}static _setDefaultMaxInflation(e){(0,_.MR)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),tX=e}static defaultAbiCoder(){return null==tZ&&(tZ=new t0),tZ}static getBuiltinCallException(e,t,r){return t$(e,t,r,t0.defaultAbiCoder())}}function t1(e){return e&&"function"==typeof e.getAddress}async function t2(e,t){let r=await t;return(null==r||"0x0000000000000000000000000000000000000000"===r)&&((0,_.vA)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,_.MR)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),eU(r)}function t3(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?eU(e):((0,_.vA)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),t2(e,t.resolveName(e))):t1(e)?t2(e,e.getAddress()):e&&"function"==typeof e.then?t2(e,e):void(0,_.MR)(!1,"unsupported addressable value","target",e)}let t6=new Uint8Array(32);t6.fill(0);let t5=BigInt(-1),t4=BigInt(0),t8=BigInt(1),t9=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function t7(e){let t=(0,k.q5)(e),r=t.length%32;return r?(0,k.xW)([t,t6.slice(r)]):(0,k.c$)(t)}let re=(0,P.up)(t8,32),rt=(0,P.up)(t4,32),rr={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},rn=["name","version","chainId","verifyingContract","salt"];function ri(e){return function(t){return(0,_.MR)("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let ro={name:ri("name"),version:ri("version"),chainId:function(e){let t=(0,P.Ab)(e,"domain.chainId");return((0,_.MR)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t))?Number(t):(0,P.nD)(t)},verifyingContract:function(e){try{return eU(e).toLowerCase()}catch(e){}(0,_.MR)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){let t=(0,k.q5)(e,"domain.salt");return(0,_.MR)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,k.c$)(t)}};function ra(e){{let t=e.match(/^(u?)int(\d+)$/);if(t){let r=""===t[1],n=parseInt(t[2]);(0,_.MR)(n%8==0&&0!==n&&n<=256&&t[2]===String(n),"invalid numeric width","type",e);let i=(0,P.dK)(t9,r?n-1:n),o=r?(i+t8)*t5:t4;return function(t){let n=(0,P.Ab)(t,"value");return(0,_.MR)(n>=o&&n<=i,`value out-of-bounds for ${e}`,"value",n),(0,P.up)(r?(0,P.JJ)(n,256):n,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0,_.MR)(0!==r&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(t){let n=(0,k.q5)(t);return(0,_.MR)(n.length===r,`invalid length for ${e}`,"value",t),t7(t)}}}switch(e){case"address":return function(e){return(0,k.nx)(eU(e),32)};case"bool":return function(e){return e?re:rt};case"bytes":return function(e){return eO(e)};case"string":return function(e){return tr(e)}}return null}function rs(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}function rd(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class rl{primaryType;#g;get types(){return JSON.parse(this.#g)}#m;#y;constructor(e){this.#m=new Map,this.#y=new Map;let t=new Map,r=new Map,n=new Map,i={};for(let o in Object.keys(e).forEach(o=>{i[o]=e[o].map(({name:t,type:r})=>{let{base:n,index:i}=rd(r);return"int"!==n||e.int||(n="int256"),"uint"!==n||e.uint||(n="uint256"),{name:t,type:n+(i||"")}}),t.set(o,new Set),r.set(o,[]),n.set(o,new Set)}),this.#g=JSON.stringify(i),i){let n=new Set;for(let a of i[o]){(0,_.MR)(!n.has(a.name),`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(o)}`,"types",e),n.add(a.name);let i=rd(a.type).base;(0,_.MR)(i!==o,`circular type reference to ${JSON.stringify(i)}`,"types",e),ra(i)||((0,_.MR)(r.has(i),`unknown type ${JSON.stringify(i)}`,"types",e),r.get(i).push(o),t.get(o).add(i))}}let o=Array.from(r.keys()).filter(e=>0===r.get(e).length);function a(i,o){for(let s of((0,_.MR)(!o.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),o.add(i),t.get(i)))if(r.has(s))for(let e of(a(s,o),o))n.get(e).add(s);o.delete(i)}for(let[t,r]of((0,_.MR)(0!==o.length,"missing primary type","types",e),(0,_.MR)(1===o.length,`ambiguous primary types or unused types: ${o.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,R.n)(this,{primaryType:o[0]}),a(this.primaryType,new Set),n)){let e=Array.from(r);e.sort(),this.#m.set(t,rs(t,i[t])+e.map(e=>rs(e,i[e])).join(""))}}getEncoder(e){let t=this.#y.get(e);return t||(t=this.#b(e),this.#y.set(e,t)),t}#b(e){{let t=ra(e);if(t)return t}let t=rd(e).array;
1if(t){let e=t.prefix,r=this.getEncoder(e);return n=>{(0,_.MR)(-1===t.count||t.count===n.length,`array length mismatch; expected length ${t.count}`,"value",n);let i=n.map(r);return this.#m.has(e)&&(i=i.map(eO)),eO((0,k.xW)(i))}}let r=this.types[e];if(r){let t=tr(this.#m.get(e));return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this.#m.has(r)?eO(n):n});return n.unshift(t),(0,k.xW)(n)}}(0,_.MR)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){let t=this.#m.get(e);return(0,_.MR)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return eO(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(ra(e))return r(e,t);let n=rd(e).array;if(n)return(0,_.MR)(-1===n.count||n.count===t.length,`array length mismatch; expected length ${n.count}`,"value",t),t.map(e=>this._visit(n.prefix,e,r));let i=this.types[e];if(i)return i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{});(0,_.MR)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new rl(e)}static getPrimaryType(e){return rl.from(e).primaryType}static hashStruct(e,t,r){return rl.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){if(null==e[r])continue;let n=rr[r];(0,_.MR)(n,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>rn.indexOf(e.name)-rn.indexOf(t.name)),rl.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,k.xW)(["0x1901",rl.hashDomain(e),rl.from(t).hash(r)])}static hash(e,t,r){return eO(rl.encode(e,t,r))}static async resolveNames(e,t,r,n){for(let t in e=Object.assign({},e))null==e[t]&&delete e[t];let i={};e.verifyingContract&&!(0,k.Lo)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");let o=rl.from(t);for(let e in o.visit(r,(e,t)=>("address"!==e||(0,k.Lo)(t,20)||(i[t]="0x"),t)),i)i[e]=await n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,(e,t)=>"address"===e&&i[t]?i[t]:t),{domain:e,value:r}}static getPayload(e,t,r){rl.hashDomain(e);let n={},i=[];rn.forEach(t=>{let r=e[t];null!=r&&(n[t]=ro[t](r),i.push({name:t,type:rr[t]}))});let o=rl.from(t),a=Object.assign({},t=o.types);return(0,_.MR)(null==a.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),a.EIP712Domain=i,o.encode(r),{types:a,domain:n,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,k.c$)((0,k.q5)(t));if(e.match(/^u?int/))return(0,P.Ab)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,_.MR)("string"==typeof t,"invalid string","value",t),t}(0,_.MR)(!1,"unsupported type","type",e)})}}}function rc(e,t){return{address:eU(e),storageKeys:t.map((e,t)=>((0,_.MR)((0,k.Lo)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase()))}}function ru(e){if(Array.isArray(e))return e.map((t,r)=>Array.isArray(t)?((0,_.MR)(2===t.length,"invalid slot set",`value[${r}]`,t),rc(t[0],t[1])):((0,_.MR)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),rc(t.address,t.storageKeys)));(0,_.MR)(null!=e&&"object"==typeof e,"invalid access list","value",e);let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return rc(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}let rp="0x0000000000000000000000000000000000000000000000000000000000000000",rf=BigInt(0),rh=BigInt(1),rg=BigInt(2),rm=BigInt(27),ry=BigInt(28),rb=BigInt(35),rv=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),rS=rv/rg,rA=Symbol.for("nodejs.util.inspect.custom"),rw={};function r_(e){return(0,k.nx)((0,P.c4)(e),32)}class rP{#v;#S;#A;#w;get r(){return this.#v}set r(e){(0,_.MR)(32===(0,k.pO)(e),"invalid r","value",e),this.#v=(0,k.c$)(e)}get s(){return(0,_.MR)(8>parseInt(this.#S.substring(0,3)),"non-canonical s; use ._s","s",this.#S),this.#S}set s(e){(0,_.MR)(32===(0,k.pO)(e),"invalid s","value",e),this.#S=(0,k.c$)(e)}get _s(){return this.#S}isValid(){return BigInt(this.#S)<=rS}get v(){return this.#A}set v(e){let t=(0,P.WZ)(e,"value");
1(0,_.MR)(27===t||28===t,"invalid v","v",e),this.#A=t}get networkV(){return this.#w}get legacyChainId(){let e=this.networkV;return null==e?null:rP.getChainId(e)}get yParity(){return+(27!==this.v)}get yParityAndS(){let e=(0,k.q5)(this.s);return this.yParity&&(e[0]|=128),(0,k.c$)(e)}get compactSerialized(){return(0,k.xW)([this.r,this.yParityAndS])}get serialized(){return(0,k.xW)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,n){(0,_.gk)(e,rw,"Signature"),this.#v=t,this.#S=r,this.#A=n,this.#w=null}getCanonical(){if(this.isValid())return this;let e=rv-BigInt(this._s),t=55-this.v,r=new rP(rw,this.r,r_(e),t);return this.networkV&&(r.#w=this.networkV),r}clone(){let e=new rP(rw,this.r,this._s,this.v);return this.networkV&&(e.#w=this.networkV),e}toJSON(){let e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}[rA](){return this.toString()}toString(){return this.isValid()?`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v} }`:`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v}, valid: false }`}static getChainId(e){let t=(0,P.Ab)(e,"v");return t==rm||t==ry?rf:((0,_.MR)(t>=rb,"invalid EIP-155 v","v",e),(t-rb)/rg)}static getChainIdV(e,t){return(0,P.Ab)(e)*rg+BigInt(35+t-27)}static getNormalizedV(e){let t=(0,P.Ab)(e);return t===rf||t===rm?27:t===rh||t===ry?28:((0,_.MR)(t>=rb,"invalid v","v",e),t&rh?27:28)}static from(e){function t(t,r){(0,_.MR)(t,r,"signature",e)}if(null==e)return new rP(rw,rp,rp,27);if("string"==typeof e){let r=(0,k.q5)(e,"signature");if(64===r.length){let e=(0,k.c$)(r.slice(0,32)),t=r.slice(32,64),n=128&t[0]?28:27;return t[0]&=127,new rP(rw,e,(0,k.c$)(t),n)}if(65===r.length){let e=(0,k.c$)(r.slice(0,32)),t=(0,k.c$)(r.slice(32,64)),n=rP.getNormalizedV(r[64]);return new rP(rw,e,t,n)}t(!1,"invalid raw signature length")}if(e instanceof rP)return e.clone();let r=e.r;t(null!=r,"missing r");let n=r_(r),i=function(e,r){if(null!=e)return r_(e);if(null!=r){t((0,k.Lo)(r,32),"invalid yParityAndS");let e=(0,k.q5)(r);return e[0]&=127,(0,k.c$)(e)}t(!1,"missing s")}(e.s,e.yParityAndS),{networkV:o,v:a}=function(e,r,n){if(null!=e){let t=(0,P.Ab)(e);return{networkV:t>=rb?t:void 0,v:rP.getNormalizedV(t)}}if(null!=r)return t((0,k.Lo)(r,32),"invalid yParityAndS"),{v:128&(0,k.q5)(r)[0]?28:27};if(null!=n){switch((0,P.WZ)(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),s=new rP(rw,n,i,a);return o&&(s.#w=o),t(null==e.yParity||(0,P.WZ)(e.yParity,"sig.yParity")===s.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===s.yParityAndS,"yParityAndS mismatch"),s}}function rk(e){return{address:eU(e.address),nonce:(0,P.Ab)(null!=e.nonce?e.nonce:0),chainId:(0,P.Ab)(null!=e.chainId?e.chainId:0),signature:rP.from(e.signature)}}function rR(e){let t=new Uint8Array((e=atob(e)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return(0,k.q5)(t)}function rO(e){let t=(0,k.q5)(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}function rI(e){return async function(t,r){let n;(0,_.vA)(null==r||!r.cancelled,"request cancelled before sending","CANCELLED");let i=t.url.split(":")[0].toLowerCase();(0,_.vA)("http"===i||"https"===i,`unsupported protocol ${i}`,"UNSUPPORTED_OPERATION",{info:{protocol:i},operation:"request"}),(0,_.vA)("https"===i||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let o=null,a=new AbortController,s=setTimeout(()=>{o=(0,_.xz)("request timeout","TIMEOUT"),a.abort()},t.timeout);r&&r.addListener(()=>{o=(0,_.xz)("request cancelled","CANCELLED"),a.abort()});let d=Object.assign({},e,{method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:a.signal});try{n=await fetch(t.url,d)}catch(e){if(clearTimeout(s),o)throw o;throw e}clearTimeout(s);let l={};n.headers.forEach((e,t)=>{l[t.toLowerCase()]=e});let c=await n.arrayBuffer(),u=null==c?null:new Uint8Array(c);return{statusCode:n.status,statusMessage:n.statusText,headers:l,body:u}}}rI({});let rB=12,rx=250,rE=rI(),rT=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),rN=RegExp("^ipfs://(ipfs/)?(.*)$","i"),rC=!1;async function rM(e,t){try{let t=e.match(rT);if(!t)throw Error("invalid data");return new rL(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?rR(t[3]):rF(t[3]))}catch(t){return new rL(599,"BAD REQUEST (invalid data: URI)",{},null,new rq(e))}}function rU(e){return async function(t,r){try{let r=t.match(rN);if(!r)throw Error("invalid link");return new rq(`${e}${r[2]}`)}catch(e){return new rL(599,"BAD REQUEST (invalid IPFS URI)",{},null,new rq(t))}}}let rD={data:rM,ipfs:rU("https://gateway.ipfs.io/ipfs/")},rJ=new WeakMap;class rH{#_;#P;constructor(e){this.#_=[],this.#P=!1,rJ.set(e,()=>{if(!this.#P){for(let e of(this.#P=!0,this.#_))setTimeout(()=>{e()},0);this.#_=[]}})}addListener(e){(0,_.vA)(!this.#P,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#_.push(e)}get cancelled(){return this.#P}checkSignal(){(0,_.vA)(!this.cancelled,"cancelled","CANCELLED",{})}}function rV(e){if(null==e)throw Error("missing signal; should not happen");return e.checkSignal(),e}class rq{#k;#R;#O;#I;#B;#x;#E;#T;#N;#C;#M;#U;#D;#J;#H;get url(){return this.#x}set url(e){this.#x=String(e)}get body(){return null==this.#E?null:new Uint8Array(this.#E)}set body(e){if(null==e)this.#E=void 0,this.#T=void 0;else if("string"==typeof e)this.#E=e8(e),this.#T="text/plain";else if(e instanceof Uint8Array)this.#E=e,this.#T="application/octet-stream";else if("object"==typeof e)this.#E=e8(JSON.stringify(e)),this.#T="application/json";else throw Error("invalid body")}hasBody(){return null!=this.#E}get method(){return this.#I?this.#I:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#I=String(e).toUpperCase()}get headers(){let e=Object.assign({},this.#O);return this.#N&&(e.authorization=`Basic ${rO(e8(this.#N))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#T&&(e["content-type"]=this.#T),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#O[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#O={}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r<t.length){let n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#N||null}setCredentials(e,t){(0,_.MR)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#N=`${e}:${t}`}get allowGzip(){return this.#R}set allowGzip(e){this.#R=!!e}get allowInsecureAuthentication(){return!!this.#k}set allowInsecureAuthentication(e){this.#k=!!e}get timeout(){return this.#B}set timeout(e){(0,_.MR)(e>=0,"timeout must be non-zero","timeout",e),this.#B=e}get preflightFunc(){return this.#C||null}set preflightFunc(e){this.#C=e}get processFunc(){return this.#M||null}set processFunc(e){this.#M=e}get retryFunc(){return this.#U||null}set retryFunc(e){this.#U=e}get getUrlFunc(){return this.#H||rE}set getUrlFunc(e){this.#H=e}constructor(e){this.#x=String(e),this.#k=!1,this.#R=!0,this.#O={},this.#I="",this.#B=3e5,this.#J={slotInterval:rx,maxAttempts:rB},this.#H=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#E?(0,k.c$)(this.#E):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#J.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#J.maxAttempts=e.maxAttempts)}async #V(e,t,r,n,i){if(e>=this.#J.maxAttempts)return i.makeServerError("exceeded maximum retry limit");(0,_.vA)(rj()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await rW(r);let o=this.clone(),a=(o.url.split(":")[0]||"").toLowerCase();if(a in rD){let e=await rD[a](o.url,rV(n.#D));if(e instanceof rL){let t=e;if(this.processFunc){rV(n.#D);try{t=await this.processFunc(o,t)}catch(e){(null==e.throttle||"number"!=typeof e.stall)&&t.makeServerError("error in post-processing function",e).assertOk()}}return t}o=e}this.preflightFunc&&(o=await this.preflightFunc(o));let s=await this.getUrlFunc(o,rV(n.#D)),d=new rL(s.statusCode,s.statusMessage,s.headers,s.body,n);if(301===d.statusCode||302===d.statusCode){try{let r=d.headers.location||"";return o.redirect(r).#V(e+1,t,0,n,d)}catch(e){}return d}if(429===d.statusCode&&(null==this.retryFunc||await this.retryFunc(o,d,e))){let r=d.headers["retry-after"],i=this.#J.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(i=parseInt(r)),o.clone().#V(e+1,t,i,n,d)}if(this.processFunc){rV(n.#D);try{d=await this.processFunc(o,d)}catch(i){(null==i.throttle||"number"!=typeof i.stall)&&d.makeServerError("error in post-processing function",i).assertOk();let r=this.#J.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return i.stall>=0&&(r=i.stall),o.clone().#V(e+1,t,r,n,d)}}return d}send(){return(0,_.vA)(null==this.#D,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#D=new rH(this),this.#V(0,rj()+this.timeout,0,this,new rL(0,"",{},null,this))}cancel(){(0,_.vA)(null!=this.#D,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});let e=rJ.get(this);if(!e)throw Error("missing signal; should not happen");e()}redirect(e){let t=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();(0,_.vA)("GET"===this.method&&("https"!==t||"http"!==r)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});let n=new rq(e);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#O=Object.assign({},this.#O),this.#E&&(n.#E=new Uint8Array(this.#E)),n.#T=this.#T,n}clone(){let e=new rq(this.url);return e.#I=this.#I,this.#E&&(e.#E=this.#E),e.#T=this.#T,e.#O=Object.assign({},this.#O),e.#N=this.#N,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#C=this.#C,e.#M=this.#M,e.#U=this.#U,e.#J=Object.assign({},this.#J),e.#H=this.#H,e}static lockConfig(){rC=!0}static getGateway(e){return rD[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw Error(`cannot intercept ${e}; use registerGetUrl`);if(rC)throw Error("gateways locked");rD[e]=t}static registerGetUrl(e){if(rC)throw Error("gateways locked");rE=e}static createGetUrlFunc(e){return rI(e)}static createDataGateway(){return rM}static createIpfsGatewayFunc(e){return rU(e)}}class rL{#q;#L;#O;#E;#j;#F;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#E?(0,k.c$)(this.#E):"null"}>`}get statusCode(){return this.#q}get statusMessage(){return this.#L}get headers(){return Object.assign({},this.#O)}get body(){return null==this.#E?null:new Uint8Array(this.#E)}get bodyText(){try{return null==this.#E?"":e7(this.#E)}
1catch(e){(0,_.vA)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,_.vA)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r<t.length){let n=t[r++];return{value:[n,e[n]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,r,n,i){this.#q=e,this.#L=t,this.#O=Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=String(r[t]),e),{}),this.#E=null==n?null:new Uint8Array(n),this.#j=i||null,this.#F={message:""}}makeServerError(e,t){let r;e?r=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,r=`CLIENT ESCALATED SERVER ERROR (${e})`);let n=new rL(599,r,this.headers,this.body,this.#j||void 0);return n.#F={message:e,error:t},n}throwThrottleError(e,t){null==t?t=-1:(0,_.MR)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);let r=Error(e||"throttling requests");throw(0,R.n)(r,{stall:t,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#E}get request(){return this.#j}ok(){return""===this.#F.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#F;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let n=null;try{this.#E&&(n=e7(this.#E))}catch(e){}(0,_.vA)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:r,responseBody:n,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function rj(){return new Date().getTime()}function rF(e){return e8(e.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))}function rW(e){return new Promise(t=>setTimeout(t,e))}let rQ="0x0000000000000000000000000000000000000000";class rG{fragment;name;signature;topic;args;constructor(e,t,r){let n=e.name,i=e.format();(0,R.n)(this,{fragment:e,name:n,signature:i,topic:t,args:r})}}class rz{fragment;name;args;signature;selector;value;constructor(e,t,r,n){let i=e.name,o=e.format();(0,R.n)(this,{fragment:e,name:i,args:r,signature:o,selector:t,value:n})}}class rK{fragment;name;args;signature;selector;constructor(e,t,r){let n=e.name,i=e.format();(0,R.n)(this,{fragment:e,name:n,args:r,signature:i,selector:t})}}class rY{hash;_isIndexed;static isIndexed(e){return!!(e&&e._isIndexed)}constructor(e){(0,R.n)(this,{hash:e,_isIndexed:!0})}}let rZ={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},rX={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&rZ[e.toString()]&&(t=rZ[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class r${fragments;deploy;fallback;receive;#W;#Q;#G;#z;constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,this.#G=new Map,this.#W=new Map,this.#Q=new Map;let r=[];for(let e of t)try{r.push(tH.from(e))}catch(t){console.log(`[Warning] Invalid Fragment ${JSON.stringify(e)}:`,t.message)}(0,R.n)(this,{fragments:Object.freeze(r)});let n=null,i=!1;this.#z=this.getAbiCoder(),this.fragments.forEach((e,t)=>{let r;switch(e.type){case"constructor":if(this.deploy)return void console.log("duplicate definition - constructor");(0,R.n)(this,{deploy:e});return;case"fallback":0===e.inputs.length?i=!0:((0,_.MR)(!n||e.payable!==n.payable,"conflicting fallback fragments",`fragments[${t}]`,e),i=(n=e).payable);return;case"function":r=this.#G;break;case"event":r=this.#Q;break;case"error":r=this.#W;break;default:return}let o=e.format();r.has(o)||r.set(o,e)}),this.deploy||(0,R.n)(this,{deploy:tF.from("constructor()")}),(0,R.n)(this,{fallback:n,receive:i})}
1format(e){let t=e?"minimal":"full";return this.fragments.map(e=>e.format(t))}formatJson(){return JSON.stringify(this.fragments.map(e=>e.format("json")).map(e=>JSON.parse(e)))}getAbiCoder(){return t0.defaultAbiCoder()}#K(e,t,r){if((0,k.Lo)(e)){let t=e.toLowerCase();for(let e of this.#G.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#G)t.split("(")[0]===e&&n.push(r);if(t){let e=t.length>0?t[t.length-1]:null,r=t.length,i=!0;eq.isTyped(e)&&"overrides"===e.type&&(i=!1,r--);for(let e=n.length-1;e>=0;e--){let t=n[e].inputs.length;t===r||i&&t===r-1||n.splice(e,1)}for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let i=0;i<t.length;i++)if(eq.isTyped(t[i])){if(i>=r.length){if("overrides"===t[i].type)continue;n.splice(e,1);break}if(t[i].type!==r[i].baseType){n.splice(e,1);break}}}}if(1===n.length&&t&&t.length!==n[0].inputs.length){let e=t[t.length-1];(null==e||Array.isArray(e)||"object"!=typeof e)&&n.splice(0,1)}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,_.MR)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return n[0]}let n=this.#G.get(tQ.from(e).format());return n||null}getFunctionName(e){let t=this.#K(e,null,!1);return(0,_.MR)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#K(e,null,!1)}getFunction(e,t){return this.#K(e,t||null,!0)}forEachFunction(e){let t=Array.from(this.#G.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#G.get(n),r)}}#Y(e,t,r){if((0,k.Lo)(e)){let t=e.toLowerCase();for(let e of this.#Q.values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#Q)t.split("(")[0]===e&&n.push(r);if(t){for(let e=n.length-1;e>=0;e--)n[e].inputs.length<t.length&&n.splice(e,1);for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let i=0;i<t.length;i++)if(eq.isTyped(t[i])&&t[i].type!==r[i].baseType){n.splice(e,1);break}}}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,_.MR)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return n[0]}let n=this.#Q.get(tj.from(e).format());return n||null}getEventName(e){let t=this.#Y(e,null,!1);return(0,_.MR)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#Y(e,null,!1)}getEvent(e,t){return this.#Y(e,t||null,!0)}forEachEvent(e){let t=Array.from(this.#Q.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#Q.get(n),r)}}getError(e,t){if((0,k.Lo)(e)){let t=e.toLowerCase();if(rX[t])return tL.from(rX[t].signature);for(let e of this.#W.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let t=[];for(let[r,n]of this.#W)r.split("(")[0]===e&&t.push(n);if(0===t.length)return"Error"===e?tL.from("error Error(string)"):"Panic"===e?tL.from("error Panic(uint256)"):null;if(t.length>1){let r=t.map(e=>JSON.stringify(e.format())).join(", ");(0,_.MR)(!1,`ambiguous error description (i.e. ${r})`,"name",e)}return t[0]}if("Error(string)"===(e=tL.from(e).format()))return tL.from("error Error(string)");if("Panic(uint256)"===e)return tL.from("error Panic(uint256)");let r=this.#W.get(e);return r||null}forEachError(e){let t=Array.from(this.#W.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r<t.length;r++){let n=t[r];e(this.#W.get(n),r)}}_decodeParams(e,t){return this.#z.decode(e,t)}_encodeParams(e,t){return this.#z.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"==typeof e){let t=this.getError(e);(0,_.MR)(t,"unknown error","fragment",e),e=t}return(0,_.MR)((0,k.ZG)(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,k.ZG)(t,4))}encodeErrorResult(e,t){if("string"==typeof e){let t=this.getError(e);(0,_.MR)(t,"unknown error","fragment",e),e=t}return(0,k.xW)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,_.MR)(t,"unknown function","fragment",e),e=t}return(0,_.MR)((0,k.ZG)(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,k.ZG)(t,4))}encodeFunctionData(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,_.MR)(t,"unknown function","fragment",e),e=t}return(0,k.xW)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,_.MR)(t,"unknown function","fragment",e),e=t}let r="invalid length for result data",n=(0,k.Lm)(t);if(n.length%32==0)try{return this.#z.decode(e.outputs,n)}catch(e){r="could not decode result data"}(0,_.vA)(!1,r,"BAD_DATA",{value:(0,k.c$)(n),info:{method:e.name,signature:e.format()}})}makeError(e,t){let r=(0,k.q5)(e,"data"),n=t0.getBuiltinCallException("call",t,r),i="execution reverted (unknown custom error)";if(n.message.startsWith(i)){let e=(0,k.c$)(r.slice(0,4)),t=this.getError(e);
1if(t)try{let e=this.#z.decode(t.inputs,r.slice(4));n.revert={name:t.name,signature:t.format(),args:e},n.reason=n.revert.signature,n.message=`execution reverted: ${n.reason}`}catch(e){n.message="execution reverted (coult not decode custom error)"}}let o=this.parseTransaction(t);return o&&(n.invocation={method:o.name,signature:o.signature,args:o.args}),n}encodeFunctionResult(e,t){if("string"==typeof e){let t=this.getFunction(e);(0,_.MR)(t,"unknown function","fragment",e),e=t}return(0,k.c$)(this.#z.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,_.MR)(t,"unknown event","eventFragment",e),e=t}(0,_.vA)(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});let r=[];e.anonymous||r.push(e.topicHash);let n=(e,t)=>"string"===e.type?tr(t):"bytes"===e.type?eO((0,k.c$)(t)):("bool"===e.type&&"boolean"==typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,P.up)(t):e.type.match(/^bytes/)?t=(0,k.X_)(t,32):"address"===e.type&&this.#z.encode(["address"],[t]),(0,k.nx)((0,k.c$)(t),32));for(t.forEach((t,i)=>{let o=e.inputs[i];if(!o.indexed)return void(0,_.MR)(null==t,"cannot filter non-indexed parameters; must be null","contract."+o.name,t);null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?(0,_.MR)(!1,"filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map(e=>n(o,e))):r.push(n(o,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,_.MR)(t,"unknown event","eventFragment",e),e=t}let r=[],n=[],i=[];return e.anonymous||r.push(e.topicHash),(0,_.MR)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((e,o)=>{let a=t[o];if(e.indexed)if("string"===e.type)r.push(tr(a));else if("bytes"===e.type)r.push(eO(a));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this.#z.encode([e.type],[a]));else n.push(e),i.push(a)}),{data:this.#z.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e){let t=this.getEvent(e);(0,_.MR)(t,"unknown event","eventFragment",e),e=t}if(null!=r&&!e.anonymous){let t=e.topicHash;(0,_.MR)((0,k.Lo)(r[0],32)&&r[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}let n=[],i=[],o=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(tJ.from({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(i.push(e),o.push(!1))});let a=null!=r?this.#z.decode(n,(0,k.xW)(r)):null,s=this.#z.decode(i,t,!0),d=[],l=[],c=0,u=0;return e.inputs.forEach((e,t)=>{let r=null;if(e.indexed)if(null==a)r=new rY(null);else if(o[t])r=new rY(a[u++]);else try{r=a[u++]}catch(e){r=e}else try{r=s[c++]}catch(e){r=e}d.push(r),l.push(e.name||null)}),U.fromItems(d,l)}parseTransaction(e){let t=(0,k.q5)(e.data,"tx.data"),r=(0,P.Ab)(null!=e.value?e.value:0,"tx.value"),n=this.getFunction((0,k.c$)(t.slice(0,4)));if(!n)return null;let i=this.#z.decode(n.inputs,t.slice(4));return new rz(n,n.selector,i,r)}parseCallResult(e){throw Error("@TODO")}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new rG(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){let t=(0,k.c$)(e),r=this.getError((0,k.ZG)(t,0,4));if(!r)return null;let n=this.#z.decode(r.inputs,(0,k.ZG)(t,4));return new rK(r,r.selector,n)}static from(e){return e instanceof r$?e:new r$("string"==typeof e?JSON.parse(e):"function"==typeof e.formatJson?e.formatJson():"function"==typeof e.format?e.format("json"):e)}}let r0=BigInt(0);function r1(e){return null==e?null:e}function r2(e){return null==e?null:e.toString()}class r3{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,r){(0,R.n)(this,{gasPrice:r1(e),maxFeePerGas:r1(t),maxPriorityFeePerGas:r1(r)})}toJSON(){let{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:r2(e),maxFeePerGas:r2(t),maxPriorityFeePerGas:r2(r)}}}function r6(e){let t={};for(let r of(e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,k.c$)(e.data)),"chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/)))r in e&&null!=e[r]&&(t[r]=(0,P.Ab)(e[r],`request.${r}`));for(let r of"type,nonce".split(/,/))r in e&&null!=e[r]&&(t[r]=(0,P.WZ)(e[r],`request.${r}`));return e.accessList&&(t.accessList=ru(e.accessList)),e.authorizationList&&(t.authorizationList=e.authorizationList.slice()),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobWrapperVersion"in e&&(t.blobWrapperVersion=e.blobWrapperVersion),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map(e=>(0,k.f)(e)?(0,k.c$)(e):Object.assign({},e))),t}class r5{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;
1gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#Z;constructor(e,t){this.#Z=e.transactions.map(e=>"string"!=typeof e?new r9(e,t):e),(0,R.n)(this,{provider:t,hash:r1(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:r1(e.prevRandao),extraData:e.extraData,baseFeePerGas:r1(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#Z.map(e=>"string"==typeof e?e:e.hash)}get prefetchedTransactions(){let e=this.#Z.slice();return 0===e.length?[]:((0,_.vA)("object"==typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){let{baseFeePerGas:e,difficulty:t,extraData:r,gasLimit:n,gasUsed:i,hash:o,miner:a,prevRandao:s,nonce:d,number:l,parentHash:c,parentBeaconBlockRoot:u,stateRoot:p,receiptsRoot:f,timestamp:h,transactions:g}=this;return{_type:"Block",baseFeePerGas:r2(e),difficulty:r2(t),extraData:r,gasLimit:r2(n),gasUsed:r2(i),blobGasUsed:r2(this.blobGasUsed),excessBlobGas:r2(this.excessBlobGas),hash:o,miner:a,prevRandao:s,nonce:d,number:l,parentHash:c,timestamp:h,parentBeaconBlockRoot:u,stateRoot:p,receiptsRoot:f,transactions:g}}[Symbol.iterator](){let e=0,t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#Z.length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"==typeof e)t=this.#Z[e];else{let r=e.toLowerCase();for(let e of this.#Z)if("string"==typeof e){if(e!==r)continue;t=e;break}else{if(e.hash!==r)continue;t=e;break}}if(null==t)throw Error("no such tx");return"string"==typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){let t=this.prefetchedTransactions;if("number"==typeof e)return t[e];for(let r of(e=e.toLowerCase(),t))if(r.hash===e)return r;(0,_.MR)(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw Error("");return r7(this)}}class r4{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(e,t){this.provider=t;let r=Object.freeze(e.topics.slice());(0,R.n)(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:r,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){let{address:e,blockHash:t,blockNumber:r,data:n,index:i,removed:o,topics:a,transactionHash:s,transactionIndex:d}=this;return{_type:"log",address:e,blockHash:t,blockNumber:r,data:n,index:i,removed:o,topics:a,transactionHash:s,transactionIndex:d}}async getBlock(){let e=await this.provider.getBlock(this.blockHash);return(0,_.vA)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){let e=await this.provider.getTransaction(this.transactionHash);return(0,_.vA)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){let e=await this.provider.getTransactionReceipt(this.transactionHash);return(0,_.vA)(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return nr(this)}}class r8{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#X;constructor(e,t){this.#X=Object.freeze(e.logs.map(e=>new r4(e,t)));let r=r0;null!=e.effectiveGasPrice?r=e.effectiveGasPrice:null!=e.gasPrice&&(r=e.gasPrice),(0,R.n)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:r,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#X}toJSON(){let{to:e,from:t,contractAddress:r,hash:n,index:i,blockHash:o,blockNumber:a,logsBloom:s,logs:d,status:l,root:c}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:r,cumulativeGasUsed:r2(this.cumulativeGasUsed),from:t,gasPrice:r2(this.gasPrice),blobGasUsed:r2(this.blobGasUsed),blobGasPrice:r2(this.blobGasPrice),gasUsed:r2(this.gasUsed),hash:n,index:i,logs:d,logsBloom:s,root:c,status:l,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){let e=await this.provider.getBlock(this.blockHash);if(null==e)throw Error("TODO");return e}async getTransaction(){let e=await this.provider.getTransaction(this.hash);if(null==e)throw Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return nt(this)}reorderedEvent(e){return(0,_.vA)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),ne(this,e)}}class r9{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;authorizationList;#$;constructor(e,t){this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLim
1it,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.authorizationList=null!=e.authorizationList?e.authorizationList:null,this.#$=-1}toJSON(){let{blockNumber:e,blockHash:t,index:r,hash:n,type:i,to:o,from:a,nonce:s,data:d,signature:l,accessList:c,blobVersionedHashes:u}=this;return{_type:"TransactionResponse",accessList:c,blockNumber:e,blockHash:t,blobVersionedHashes:u,chainId:r2(this.chainId),data:d,from:a,gasLimit:r2(this.gasLimit),gasPrice:r2(this.gasPrice),hash:n,maxFeePerGas:r2(this.maxFeePerGas),maxPriorityFeePerGas:r2(this.maxPriorityFeePerGas),maxFeePerBlobGas:r2(this.maxFeePerBlobGas),nonce:s,signature:l,to:o,index:r,type:i,value:r2(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){let t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;let t=this.provider.getBlock(e);if(null==t)throw Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){let{tx:e,blockNumber:t}=await (0,R.k)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){let r=null==e?1:e,n=null==t?0:t,i=this.#$,o=-1,a=-1===i,s=async()=>{if(a)return null;let{blockNumber:e,nonce:t}=await (0,R.k)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce){i=e;return}if(a)return null;let n=await this.getTransaction();if(!n||null==n.blockNumber)for(-1===o&&(o=i-3)<this.#$&&(o=this.#$);o<=e;){if(a)return null;let t=await this.provider.getBlock(o,!0);if(null==t)break;for(let e of t)if(e===this.hash)return;for(let n=0;n<t.length;n++){let o=await t.getTransaction(n);if(o.from===this.from&&o.nonce===this.nonce){if(a)return null;let t=await this.provider.getTransactionReceipt(o.hash);if(null==t||e-t.blockNumber+1<r)return;let n="replaced";o.data===this.data&&o.to===this.to&&o.value===this.value?n="repriced":"0x"===o.data&&o.from===o.to&&o.value===r0&&(n="cancelled"),(0,_.vA)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===n||"cancelled"===n,reason:n,replacement:o.replaceableTransaction(i),hash:o.hash,receipt:t})}}o++}},d=e=>{if(null==e||0!==e.status)return e;(0,_.vA)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},l=await this.provider.getTransactionReceipt(this.hash);if(0===r)return d(l);if(l){if(1===r||await l.confirmations()>=r)return d(l)}else if(await s(),0===r)return null;let c=new Promise((e,t)=>{let o=[],l=()=>{o.forEach(e=>e())};if(o.push(()=>{a=!0}),n>0){let e=setTimeout(()=>{l(),t((0,_.xz)("wait for transaction timeout","TIMEOUT"))},n);o.push(()=>{clearTimeout(e)})}let c=async n=>{if(await n.confirmations()>=r){l();try{e(d(n))}catch(e){t(e)}}};if(o.push(()=>{this.provider.off(this.hash,c)}),this.provider.on(this.hash,c),i>=0){let e=async()=>{try{await s()}catch(e){if((0,_.bJ)(e,"TRANSACTION_REPLACED")){l(),t(e);return}}a||this.provider.once("block",e)};o.push(()=>{this.provider.off("block",e)}),this.provider.once("block",e)}});return await c}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,_.vA)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),nt(this)}reorderedEvent(e){return(0,_.vA)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,_.vA)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),ne(this,e)}replaceableTransaction(e){(0,_.MR)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);let t=new r9(this,this.provider);return t.#$=e,t}}function r7(e){return{orphan:"drop-block",hash:e.hash,number:e.number}}function ne(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function nt(e){return{orphan:"drop-transaction",tx:e}}function nr(e){return{orphan:"drop-log",log:{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}}}class nn{filter;emitter;#ee;constructor(e,t,r){this.#ee=t,(0,R.n)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#ee&&await this.emitter.off(this.filter,this.#ee)}}class ni extends r4{interface;fragment;args;constructor(e,t,r){super(e,e.provider);let n=t.decodeEventLog(r,e.data,e.topics);(0,R.n)(this,{args:n,fragment:r,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class no extends r4{error;constructor(e,t){super(e,e.provider),(0,R.n)(this,{error:t})}}class na extends r8{#et;constructor(e,t,r){super(r,t),this.#et=e}get logs(){return super.logs.map(e=>{let t=e.topics.length?this.#et.getEvent(e.topics[0]):null;if(t)try{return new ni(e,this.#et,t)}catch(t){return new no(e,t)}return e})}}class ns extends r9{#et;constructor(e,t,r){super(r,t),this.#et=e}async wait(e,t){let r=await super.wait(e,t);return null==r?null:new na(this.#et,this.provider,r)}}class nd extends nn{log;constructor(e,t,r,n){super(e,t,r),(0,R.n)(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class nl extends nd{constructor(e,t,r,n,i){super(e,t,r,new ni(i,e.interface,n));let o=e.interface.decodeEventLog(n,this.log.data,this.log.topics);(0,R.n)(this,{args:o,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}let nc=BigInt(0);function nu(e){return e&&"function"==typeof e.call}function np(e){return e&&"function"==typeof e.estimateGas}function nf(e){return e&&"function"==typeof e.resolveName}function nh(e){return e&&"function"==typeof e.sendTransaction}function ng(e){if(null!=e){if(nf(e))return e;if(e.provider)return e.provider}}class nm{#er;fragment;constructor(e,t,r){if((0,R.n)(this,{fragment:t}
1),t.inputs.length<r.length)throw Error("too many arguments");let n=ny(e.runner,"resolveName"),i=nf(n)?n:null;this.#er=async function(){let n=await Promise.all(t.inputs.map((e,t)=>null==r[t]?null:e.walkAsync(r[t],(e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map(e=>t3(e,i))):t3(t,i):t)));return e.interface.encodeFilterTopics(t,n)}()}getTopicFilter(){return this.#er}}function ny(e,t){return null==e?null:"function"==typeof e[t]?e:e.provider&&"function"==typeof e.provider[t]?e.provider:null}function nb(e){return null==e?null:e.provider||null}async function nv(e,t){let r=eq.dereference(e,"overrides");(0,_.MR)("object"==typeof r,"invalid overrides parameter","overrides",e);let n=r6(r);return(0,_.MR)(null==n.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),(0,_.MR)(null==n.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function nS(e,t,r){let n=ny(e,"resolveName"),i=nf(n)?n:null;return await Promise.all(t.map((e,t)=>e.walkAsync(r[t],(e,t)=>(t=eq.dereference(t,e),"address"===e)?t3(t,i):t)))}function nA(e){let t=async function(t){let r=await nv(t,["data"]);r.to=await e.getAddress(),r.from&&(r.from=await t3(r.from,ng(e.runner)));let n=e.interface,i=(0,P.Ab)(r.value||nc,"overrides.value")===nc,o="0x"===(r.data||"0x");!n.fallback||n.fallback.payable||!n.receive||o||i||(0,_.MR)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,_.MR)(n.fallback||o,"cannot send data to receive-only contract","overrides.data",r.data);let a=n.receive||n.fallback&&n.fallback.payable;return(0,_.MR)(a||i,"cannot send value to non-payable fallback","overrides.value",r.value),(0,_.MR)(n.fallback||o,"cannot send data to receive-only contract","overrides.data",r.data),r},r=async function(r){let n=ny(e.runner,"call");(0,_.vA)(nu(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let i=await t(r);try{return await n.call(i)}catch(t){if((0,_.E)(t)&&t.data)throw e.interface.makeError(t.data,i);throw t}},n=async function(r){let n=e.runner;(0,_.vA)(nh(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let i=await n.sendTransaction(await t(r)),o=nb(e.runner);return new ns(e.interface,o,i)},i=async function(r){let n=ny(e.runner,"estimateGas");return(0,_.vA)(np(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await t(r))},o=async e=>await n(e);return(0,R.n)(o,{_contract:e,estimateGas:i,populateTransaction:t,send:n,staticCall:r}),o}function nw(e,t){let r=function(...r){let n=e.interface.getFunction(t,r);return(0,_.vA)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=async function(...t){let n=r(...t),i={};if(n.inputs.length+1===t.length&&(i=await nv(t.pop())).from&&(i.from=await t3(i.from,ng(e.runner))),n.inputs.length!==t.length)throw Error("internal error: fragment inputs doesn't match arguments; should not happen");let o=await nS(e.runner,n.inputs,t);return Object.assign({},i,await (0,R.k)({to:e.getAddress(),data:e.interface.encodeFunctionData(n,o)}))},i=async function(...e){let t=await s(...e);return 1===t.length?t[0]:t},o=async function(...t){let r=e.runner;(0,_.vA)(nh(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let i=await r.sendTransaction(await n(...t)),o=nb(e.runner);return new ns(e.interface,o,i)},a=async function(...t){let r=ny(e.runner,"estimateGas");return(0,_.vA)(np(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...t))},s=async function(...t){let i=ny(e.runner,"call");(0,_.vA)(nu(i),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let o=await n(...t),a="0x";try{a=await i.call(o)}catch(t){if((0,_.E)(t)&&t.data)throw e.interface.makeError(t.data,o);throw t}let s=r(...t);return e.interface.decodeFunctionResult(s,a)},d=async(...e)=>r(...e).constant?await i(...e):await o(...e);return(0,R.n)(d,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:r,estimateGas:a,populateTransaction:n,send:o,staticCall:i,staticCallResult:s}),Object.defineProperty(d,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getFunction(t);return(0,_.vA)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),d}function n_(e,t){let r=function(...r){let n=e.interface.getEvent(t,r);return(0,_.vA)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=function(...t){return new nm(e,r(...t),t)};return(0,R.n)(n,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getEvent(t);return(0,_.vA)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),n}let nP=Symbol.for("_ethersInternal_contract"),nk=new WeakMap;function nR(e,t){nk.set(e[nP],t)}function nO(e){return nk.get(e[nP])}function nI(e){return e&&"object"==typeof e&&"getTopicFilter"in e&&"function"==typeof e.getTopicFilter&&e.fragment}async function nB(e,t){let r,n=null;if(Array.isArray(t)){let n=function(t){if((0,k.Lo)(t,32))return t;let r=e.interface.getEvent(t);return(0,_.MR)(r,"unknown fragment","name",t),r.topicHash};r=t.map(e=>null==e?null:Array.isArray(e)?e.map(n):n(e))}else"*"===t?r=[null]:"string"==typeof t?(0,k.Lo)(t,32)?r=[t]:(n=e.interface.getEvent(t),(0,_.MR)(n,"unknown fragment","event",t),r=[n.topicHash]):nI(t)?r=await t.getTopicFilter():"fragment"in t?r=[(n=t.fragment).topicHash]:(0,_.MR)(!1,"unknown event name","event",t);return{fragment:n,tag:(r=r.map(e=>{if(null==e)return null;if(Array.isArray(e)){let t=Array.from(new Set(e.map(e=>e.toLowerCase())).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()})).map(e=>null==e?"null":Array.isArray(e)?e.join("|"):e).join("&"),topics:r}}async function nx(e,t){let{subs:r}=nO(e);return r.get((await nB(e,t)).tag)||null}async function nE(e,t,r){let n=nb(e.runner);(0,_.vA)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});let{fragment:i,tag:o,topics:a}=await nB(e,r),{addr:s,subs:d}=nO(e),l=d.get(o);if(!l){let t={address:s||e,topics:a},c=t=>{let n=i;if(null==n)try{n=e.interface.getEvent(t.topics[0])}catch(e){}if(n){let o=n,a=i?e.interface.decodeEventLog(i,t.data,t.topics):[];nC(e,r,a,n=>new nl(e,n,r,o,t))}else nC(e,r,[],n=>new nd(e,n,r,t))},u=[];l={tag:o,listeners:[],start:()=>{u.length||u.push(n.on(t,c))},stop:async()=>
1{if(0==u.length)return;let e=u;u=[],await Promise.all(e),n.off(t,c)}},d.set(o,l)}return l}let nT=Promise.resolve();async function nN(e,t,r,n){await nT;let i=await nx(e,t);if(!i)return!1;let o=i.listeners.length;return i.listeners=i.listeners.filter(({listener:t,once:i})=>{let o=Array.from(r);n&&o.push(n(i?null:t));try{t.call(e,...o)}catch(e){}return!i}),0===i.listeners.length&&(i.stop(),nO(e).subs.delete(i.tag)),o>0}async function nC(e,t,r,n){try{await nT}catch(e){}let i=nN(e,t,r,n);return nT=i,await i}let nM=["then"];class nU{target;interface;runner;filters;[nP];fallback;constructor(e,t,r,n){let i;(0,_.MR)("string"==typeof e||t1(e),"invalid value for Contract target","target",e),null==r&&(r=null);let o=r$.from(t);(0,R.n)(this,{target:e,runner:r,interface:o}),Object.defineProperty(this,nP,{value:{}});let a=null,s=null;if(n){let e=nb(r);s=new ns(this.interface,e,n)}let d=new Map;if("string"==typeof e)if((0,k.Lo)(e))a=e,i=Promise.resolve(e);else{let t=ny(r,"resolveName");if(!nf(t))throw(0,_.xz)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});i=t.resolveName(e).then(t=>{if(null==t)throw(0,_.xz)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return nO(this).addr=t,t})}else i=e.getAddress().then(e=>{if(null==e)throw Error("TODO");return nO(this).addr=e,e});nR(this,{addrPromise:i,addr:a,deployTx:s,subs:d});let l=new Proxy({},{get:(e,t,r)=>{if("symbol"==typeof t||nM.indexOf(t)>=0)return Reflect.get(e,t,r);try{return this.getEvent(t)}catch(e){if(!(0,_.bJ)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>nM.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,R.n)(this,{filters:l}),(0,R.n)(this,{fallback:o.receive||o.fallback?nA(this):null}),new Proxy(this,{get:(e,t,r)=>{if("symbol"==typeof t||t in e||nM.indexOf(t)>=0)return Reflect.get(e,t,r);try{return e.getFunction(t)}catch(e){if(!(0,_.bJ)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>"symbol"==typeof t||t in e||nM.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new nU(this.target,this.interface,e)}attach(e){return new nU(e,this.interface,this.runner)}async getAddress(){return await nO(this).addrPromise}async getDeployedCode(){let e=nb(this.runner);(0,_.vA)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});let t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){let e=this.deploymentTransaction();
1if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;let t=nb(this.runner);return(0,_.vA)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((e,r)=>{let n=async()=>{try{let r=await this.getDeployedCode();if(null!=r)return e(this);t.once("block",n)}catch(e){r(e)}};n()})}deploymentTransaction(){return nO(this).deployTx}getFunction(e){return"string"!=typeof e&&(e=e.format()),nw(this,e)}getEvent(e){return"string"!=typeof e&&(e=e.format()),n_(this,e)}async queryTransaction(e){throw Error("@TODO")}async queryFilter(e,t,r){null==t&&(t=0),null==r&&(r="latest");let{addr:n,addrPromise:i}=nO(this),o=n||await i,{fragment:a,topics:s}=await nB(this,e),d={address:o,topics:s,fromBlock:t,toBlock:r},l=nb(this.runner);return(0,_.vA)(l,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await l.getLogs(d)).map(e=>{let t=a;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(e){}if(t)try{return new ni(e,this.interface,t)}catch(t){return new no(e,t)}return new r4(e,l)})}async on(e,t){let r=await nE(this,"on",e);return r.listeners.push({listener:t,once:!1}),r.start(),this}async once(e,t){let r=await nE(this,"once",e);return r.listeners.push({listener:t,once:!0}),r.start(),this}async emit(e,...t){return await nC(this,e,t,null)}async listenerCount(e){if(e){let t=await nx(this,e);return t?t.listeners.length:0}let{subs:t}=nO(this),r=0;for(let{listeners:e}of t.values())r+=e.length;return r}async listeners(e){if(e){let t=await nx(this,e);return t?t.listeners.map(({listener:e})=>e):[]}let{subs:t}=nO(this),r=[];for(let{listeners:e}of t.values())r=r.concat(e.map(({listener:e})=>e));return r}async off(e,t){let r=await nx(this,e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return(null==t||0===r.listeners.length)&&(r.stop(),nO(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){let t=await nx(this,e);if(!t)return this;t.stop(),nO(this).subs.delete(t.tag)}else{let{subs:e}=nO(this);for(let{tag:t,stop:r}of e.values())r(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){class t extends nU{constructor(t,r=null){super(t,e,r)}}return t}static from(e,t,r){return null==r&&(r=null),new this(e,t,r)}}function nD(){return nU}class nJ extends nD(){}var nH="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAf
1SfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46
1dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84R
1Z84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29
1+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";let nV=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),nq=4;function nL(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let e=1;e<n;e++)o.push(i+=r());let a=r(),s=t;t+=a;let d=0,l=0;function c(){return 0==d&&(l=l<<8|e[t++],d=8),l>>--d&1}let u=31,p=2**u,f=p>>>1,h=f>>1,g=p-1,m=0;for(let e=0;e<u;e++)m=m<<1|c();let y=[],b=0,v=p;for(;;){let e=Math.floor(((m-b+1)*i-1)/v),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;y.push(t);let a=b+Math.floor(v*o[t]/i),s=b+Math.floor(v*o[t+1]/i)-1;for(;((a^s)&f)==0;)m=m<<1&g|c(),a=a<<1&g,s=s<<1&g|1;for(;a&~s&h;)m=m&f|m<<1&g>>>1|c(),a=a<<1^f,s=(s^f)<<1|f|1;b=a,v=1+s-a}let S=n-4;return y.map(t=>{switch(t-S){case 3:return S+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return S+256+(e[s++]<<8|e[s++]);case 1:return S+e[s++];default:return t-1}})}function nj(e){let t=0;return()=>e[t++]}function nF(e){return nj(nL(nW(e)))}function nW(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>
13);for(let i=0,o=0,a=0,s=0;i<r;i++)s=s<<6|t[e.charCodeAt(i)],(a+=6)>=8&&(n[o++]=s>>(a-=8));return n}function nQ(e){return 1&e?~e>>1:e>>1}function nG(e,t){let r=Array(e);for(let n=0,i=0;n<e;n++)r[n]=i+=nQ(t());return r}function nz(e,t=0){let r=[];for(;;){let n=e(),i=e();if(!i)break;t+=n;for(let e=0;e<i;e++)r.push(t+e);t+=i+1}return r}function nK(e){return nZ(()=>{let t=nz(e);if(t.length)return t})}function nY(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(n$(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(n0(r,e))}return t.flat()}function nZ(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function nX(e,t,r){let n=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)nG(e,r).forEach((e,t)=>n[t].push(e));return n}function n$(e,t){let r=1+t(),n=t(),i=nZ(t);return nX(i.length,1+e,t).flatMap((e,t)=>{let[o,...a]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*n;return[o+t*r,a.map(e=>e+i)]})})}function n0(e,t){return nX(1+t(),1+e,t).map(e=>[e[0],e.slice(1)])}function n1(e){let t=[],r=nz(e);return i(n([]),[]),t;function n(t){return{S:e(),B:nZ(()=>{let t=nz(e).map(e=>r[e]);if(t.length)return n(t)}),Q:t}}function i({S:e,B:r},n,o){if(!(4&e)||o!==n[n.length-1])for(let a of(2&e&&(o=n[n.length-1]),1&e&&t.push(n),r))for(let e of a.Q)i(a,[...n,e],o)}}function n2(e){return e.toString(16).toUpperCase().padStart(2,"0")}function n3(e){return`{${n2(e)}}`}function n6(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}function n5(e){let t=4096,r=e.length;if(r<t)return String.fromCodePoint(...e);let n=[];for(let i=0;i<r;)n.push(String.fromCodePoint(...e.slice(i,i+=t)));return n.join("")}function n4(e,t){let r=e.length,n=r-t.length;for(let i=0;0==n&&i<r;i++)n=e[i]-t[i];return n}var n8=
vendor: 7,453 bytes, line 1
1"AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g"
1;let n9=44032,n7=4352,ie=4449,it=4519,ir=28,ii=588,io=55204,ia=4371,is=4470,id=4547;function il(e){return e>>24&255}function ic(e){return 0xffffff&e}function iu(){let e=nF(n8);for(let[t,r]of(n=new Map(nK(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),i=new Set(nz(e)),o=new Map,a=new Map,nY(e))){if(!i.has(t)&&2==r.length){let[e,n]=r,i=a.get(e);i||(i=new Map,a.set(e,i)),i.set(n,t)}o.set(t,r.reverse())}}function ip(e){return e>=n9&&e<io}function ih(e,t){if(e>=n7&&e<ia&&t>=ie&&t<is)return n9+(e-n7)*ii+(t-ie)*ir;{if(ip(e)&&t>it&&t<id&&(e-n9)%ir==0)return e+(t-it);let r=a.get(e);return r&&(r=r.get(t))?r:-1}}function ig(e){n||iu();let t=[],r=[],i=!1;function a(e){let r=n.get(e);r&&(i=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(ip(n)){let e=n-n9,t=e/ii|0,r=e%ii/ir|0,i=e%ir;a(n7+t),a(ie+r),i>0&&a(it+i)}else{let e=o.get(n);e?r.push(...e):a(n)}if(!r.length)break;n=r.pop()}if(i&&t.length>1){let e=il(t[0]);for(let r=1;r<t.length;r++){let n=il(t[r]);if(0==n||e<=n){e=n;continue}let i=r-1;for(;;){let r=t[i+1];if(t[i+1]=t[i],t[i]=r,!i||(e=il(t[--i]))<=n)break}e=il(t[r])}}return t}function im(e){let t=[],r=[],n=-1,i=0;for(let o of e){let e=il(o),a=ic(o);if(-1==n)0==e?n=a:t.push(a);else if(i>0&&i>=e)0==e?(t.push(n,...r),r.length=0,n=a):r.push(a),i=e;else{let o=ih(n,a);o>=0?n=o:0==i&&0==e?(t.push(n),n=a):(r.push(a),i=e)}}return n>=0&&t.push(n,...r),t}function iy(e){return ig(e).map(ic)}function ib(e){return im(ig(e))}let iv=45,iS=".",iA=65039,iw=1,i_=e=>Array.from(e);function iP(e,t){return e.P.has(t)||e.Q.has(t)}class ik extends Array{get is_emoji(){return!0}}function iR(){if(s)return;let e=nF(nH),t=()=>nz(e),r=()=>new Set(t()),n=(e,t)=>t.forEach(t=>e.add(t));s=new Map(nY(e)),d=r(),l=t(),c=new Set(t().map(e=>l[e])),l=new Set(l),u=r(),p=r();let i=nK(e),o=e(),a=()=>{let e=new Set;return t().forEach(t=>n(e,i[t])),n(e,t()),e};f=nZ(t=>{let r=nZ(e).map(e=>e+96);if(r.length){let n=t>=o;r[0]-=32,r=n5(r),n&&(r=`Restricted[${r}]`);let i=a();return{N:r,P:i,Q:a(),M:!e(),R:n}}}),h=r(),g=new Map;let v=t().concat(i_(h)).sort((e,t)=>e-t);for(let{V:t,M:r}of(v.forEach((t,r)=>{let n=e(),i=v[r]=n?v[r-n]:{V:[],M:new Map};i.V.push(t),h.has(t)||g.set(t,i)}),new Set(g.values()))){let e=[];for(let r of t){let t=f.filter(e=>iP(e,r)),i=e.find(({G:e})=>t.some(t=>e.has(t)));i||(i={G:new Set,V:[]},e.push(i)),i.V.push(r),n(i.G,t)}let i=e.flatMap(e=>i_(e.G));for(let{G:t,V:n}of e){let e=new Set(i.filter(e=>!t.has(e)));for(let t of n)r.set(t,e)}}m=new Set;let S=new Set,A=e=>m.has(e)?S.add(e):m.add(e);for(let e of f){for(let t of e.P)A(t);for(let t of e.Q)A(t)}for(let e of m)g.has(e)||S.has(e)||g.set(e,iw);for(let t of(n(m,iy(m)),y=n1(e).map(e=>ik.from(e)).sort(n4),b=new Map,y)){let e=[b];for(let r of t){let t=e.map(e=>{let t=e.get(r);return t||(t=new Map,e.set(r,t)),t});r===iA?e.push(...t):e=t}for(let r of e)r.V=t}}function iO(e){return(iC(e)?"":`${iI(iT([e]))} `)+n3(e)}function iI(e){return`"${e}"\u200E`}function iB(e){if(e.length>=4&&e[2]==iv&&e[3]==iv)throw Error(`invalid label extension: "${n5(e.slice(0,4))}"`)}function ix(e){let t=95;for(let r=e.lastIndexOf(t);r>0;)if(e[--r]!==t)throw Error("underscore allowed only at start")}function iE(e){let t=e[0],r=nV.get(t);if(r)throw iL(`leading ${r}`);let n=e.length,i=-1;for(let o=1;o<n;o++){t=e[o];let n=nV.get(t);if(n){if(i==o)throw iL(`${r} + ${n}`);i=o+1,r=n}}if(i==n)throw iL(`trailing ${r}`)}function iT(e,t=1/0,r=n3){let n=[];iN(e[0])&&n.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let i=0,o=e.length;for(let t=0;t<o;t++){let o=e[t];
1iC(o)&&(n.push(n5(e.slice(i,t))),n.push(r(o)),i=t+1)}return n.push(n5(e.slice(i,o))),n.join("")}function iN(e){return iR(),l.has(e)}function iC(e){return iR(),u.has(e)}function iM(e){return iH(iU(e,ib,iW))}function iU(e,t,r){if(!e)return[];iR();let n=0;return e.split(iS).map(e=>{let i=n6(e),o={input:i,offset:n};n+=i.length+1;try{let e,n=o.tokens=iF(i,t,r),a=n.length;if(!a)throw Error("empty label");let s=o.output=n.flat();if(ix(s),!(o.emoji=a>1||n[0].is_emoji)&&s.every(e=>e<128))iB(s),e="ASCII";else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(l.has(s[0]))throw iL("leading combining mark");for(let e=1;e<a;e++){let t=n[e];if(!t.is_emoji&&l.has(t[0]))throw iL(`emoji + combining mark: "${n5(n[e-1])} + ${iT([t[0]])}"`)}iE(s);let r=i_(new Set(t)),[i]=iJ(r);ij(i,t),iD(i,r),e=i.N}else e="Emoji"}o.type=e}catch(e){o.error=e}return o})}function iD(e,t){let r,n=[];for(let e of t){let t=g.get(e);if(t===iw)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):i_(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>iP(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}function iJ(e){let t=f;for(let r of e){let e=t.filter(e=>iP(e,r));if(!e.length)if(f.some(e=>iP(e,r)))throw iq(t[0],r);else throw iV(r);if(t=e,1==e.length)break}return t}function iH(e){return e.map(({input:t,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==e.length?n:`Invalid label ${iI(iT(t,63))}: ${n}`)}return n5(n)}).join(iS)}function iV(e){return Error(`disallowed character: ${iO(e)}`)}function iq(e,t){let r=iO(t),n=f.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function iL(e){return Error(`illegal placement: ${e}`)}function ij(e,t){for(let r of t)if(!iP(e,r))throw iq(e,r);if(e.M){let e=iy(t);for(let t=1,r=e.length;t<r;t++)if(c.has(e[t])){let n=t+1;for(let i;n<r&&c.has(i=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==i)throw Error(`duplicate non-spacing marks: ${iO(i)}`);if(n-t>nq)throw Error(`excessive non-spacing marks: ${iI(iT(e.slice(t-1,n)))} (${n-t}/${nq})`);t=n}}}function iF(e,t,r){let n=[],i=[];for(e=e.slice().reverse();e.length;){let o=iQ(e);if(o)i.length&&(n.push(t(i)),i=[]),n.push(r(o));else{let t=e.pop();if(m.has(t))i.push(t);else{let e=s.get(t);if(e)i.push(...e);else if(!d.has(t))throw iV(t)}}}return i.length&&n.push(t(i)),n}function iW(e){return e.filter(e=>e!=iA)}function iQ(e,t){let r,n=b,i=e.length;for(;i&&(n=n.get(e[--i]));){let{V:o}=n;o&&(r=o,t&&t.push(...e.slice(i).reverse()),e.length=i)}return r}let iG=new Uint8Array(32);function iz(e){return(0,_.MR)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function iK(e){let t=e8(iY(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(iz(t.slice(n,e))),n=e+1);return(0,_.MR)(n<t.length,"invalid ENS name; empty component","name",e),r.push(iz(t.slice(n))),r}function iY(e){try{if(0===e.length)throw Error("empty label");return iM(e)}catch(t){(0,_.MR)(!1,`invalid ENS name (${t.message})`,"name",e)}}function iZ(e){(0,_.MR)("string"==typeof e,"invalid ENS name; not a string","name",e),(0,_.MR)(e.length,"invalid ENS name (empty label)","name",e);let t=iG,r=iK(e);for(;r.length;)t=eO((0,k.xW)([t,eO(r.pop())]));return(0,k.c$)(t)}function iX(e,t){let r=null!=t?t:63;return(0,_.MR)(r<=255,"DNS encoded label cannot exceed 255","length",r),(0,k.c$)((0,k.xW)(iK(e).map(t=>{(0,_.MR)(t.length<=r,`label ${JSON.stringify(e)} exceeds ${r} bytes`,"name",e);let n=new Uint8Array(t.length+1);return n.set(t,1),n[0]=n.length-1,n})))+"00"}function i$(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(0xffffffff),a=Number(r>>i&o),s=Number(r&o),d=4*!!n,l=4*!n;e.setUint32(t+d,a,n),e.setUint32(t+l,s,n)}iG.fill(0);class i0 extends ea{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=er(this.buffer)}update(e){j(this);let{view:t,buffer:r,blockLen:n}=this,i=(e=eo(e)).length;for(let o=0;o<i;){let a=Math.min(n-this.pos,i-o);if(a===n){let t=er(e);for(;n<=i-o;o+=n)this.process(t,o);continue}r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){j(this),F(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:n,isLE:i}=this,{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let e=o;e<n;e++)t[e]=0;i$(r,n-8,BigInt(8*this.length),i),this.process(r,0);let a=er(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let d=s/4,l=this.get();if(d>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<d;e++)a.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}let i1=(e,t,r)=>e&t^~e&r,i2=(e,t,r)=>e&t^e&r^t&r,i3=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
vendor: 2,341 bytes, line 1
176c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),i6=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),i5=new Uint32Array(64);class i4 extends i0{constructor(){super(64,32,8,!1),this.A=0|i6[0],this.B=0|i6[1],this.C=0|i6[2],this.D=0|i6[3],this.E=0|i6[4],this.F=0|i6[5],this.G=0|i6[6],this.H=0|i6[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)i5[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=i5[e-15],r=i5[e-2],n=en(t,7)^en(t,18)^t>>>3,i=en(r,17)^en(r,19)^r>>>10;i5[e]=i+i5[e-7]+n+i5[e-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:d,H:l}=this;for(let e=0;e<64;e++){let t=l+(en(a,6)^en(a,11)^en(a,25))+i1(a,s,d)+i3[e]+i5[e]|0,c=(en(r,2)^en(r,13)^en(r,22))+i2(r,n,i)|0;l=d,d=s,s=a,a=o+t|0,o=i,i=n,n=r,r=t+c|0}r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,d=d+this.G|0,l=l+this.H|0,this.set(r,n,i,o,a,s,d,l)}roundClean(){i5.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let i8=es(()=>new i4),[i9,i7]=$.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
15771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),oe=new Uint32Array(80),ot=new Uint32Array(80);class or extends i0{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:d,El:l,Fh:c,Fl:u,Gh:p,Gl:f,Hh:h,Hl:g}=this;return[e,t,r,n,i,o,a,s,d,l,c,u,p,f,h,g]}set(e,t,r,n,i,o,a,s,d,l,c,u,p,f,h,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|d,this.El=0|l,this.Fh=0|c,this.Fl=0|u,this.Gh=0|p,this.Gl=0|f,this.Hh=0|h,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)oe[r]=e.getUint32(t),ot[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|oe[e-15],r=0|ot[e-15],n=$.rotrSH(t,r,1)^$.rotrSH(t,r,8)^$.shrSH(t,r,7),i=$.rotrSL(t,r,1)^$.rotrSL(t,r,8)^$.shrSL(t,r,7),o=0|oe[e-2],a=0|ot[e-2],s=$.rotrSH(o,a,19)^$.rotrBH(o,a,61)^$.shrSH(o,a,6),d=$.rotrSL(o,a,19)^$.rotrBL(o,a,61)^$.shrSL(o,a,6),l=$.add4L(i,d,ot[e-7],ot[e-16]),c=$.add4H(l,n,s,oe[e-7],oe[e-16]);oe[e]=0|c,ot[e]=0|l}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:a,Cl:s,Dh:d,Dl:l,Eh:c,El:u,Fh:p,Fl:f,Gh:h,Gl:g,Hh:m,Hl:y}=this;for(let e=0;e<80;e++){let t=$.rotrSH(c,u,14)^$.rotrSH(c,u,18)^$.rotrBH(c,u,41),b=$.rotrSL(c,u,14)^$.rotrSL(c,u,18)^$.rotrBL(c,u,41),v=c&p^~c&h,S=u&f^~u&g,A=$.add5L(y,b,S,i7[e],ot[e]),w=$.add5H(A,m,t,v,i9[e],oe[e]),_=0|A,P=$.rotrSH(r,n,28)^$.rotrBH(r,n,34)^$.rotrBH(r,n,39),k=$.rotrSL(r,n,28)^$.rotrBL(r,n,34)^$.rotrBL(r,n,39),R=r&i^r&a^i&a,O=n&o^n&s^o&s;m=0|h,y=0|g,h=0|p,g=0|f,p=0|c,f=0|u,({h:c,l:u}=$.add(0|d,0|l,0|w,0|_)),d=0|a,l=0|s,a=0|i,s=0|o,i=0|r,o=0|n;let I=$.add3L(_,k,O);r=$.add3H(I,w,P,R),n=0|I}({h:r,l:n}=$.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=$.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:a,l:s}=$.add(0|this.Ch,0|this.Cl,0|a,0|s)),({h:d,l:l}=$.add(0|this.Dh,0|this.Dl,0|d,0|l)),({h:c,l:u}=$.add(0|this.Eh,0|this.El,0|c,0|u)),({h:p,l:f}=$.add(0|this.Fh,0|this.Fl,0|p,0|f)),({h:h,l:g}=$.add(0|this.Gh,0|this.Gl,0|h,0|g)),({h:m,l:y}=$.add(0|this.Hh,0|this.Hl,0|m,0|y)),this.set(r,n,i,o,a,s,d,l,c,u,p,f,h,g,m,y)}roundClean(){oe.fill(0),ot.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}let on=es(()=>new or),oi=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();function oo(e){switch(e){case"sha256":return i8.create();case"sha512":return on.create()}(0,_.MR)(!1,"invalid hashing algorithm name","algorithm",e)}oi.crypto||oi.msCrypto;let oa=function(e){return oo("sha256").update(e).digest()},os=function(e){return oo("sha512").update(e).digest()},od=oa,ol=os,oc=!1,ou=!1;function op(e){let t=(0,k.q5)(e,"data");return(0,k.c$)(od(t))}function of(e){let t=(0,k.q5)(e,"data");return(0,k.c$)(ol(t))}function oh(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function og(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function om(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");oh(e.outputLen),oh(e.blockLen)}function oy(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function ob(e,t){og(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}op._=oa,op.lock=function(){oc=!0},op.register=function(e){if(oc)throw Error("sha256 is locked");od=e},Object.freeze(op),of._=os,of.lock=function(){ou=!0},of.register=function(e){if(ou)throw Error("sha512 is locked");ol=e},Object.freeze(op);let ov="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,oS=e=>e instanceof Uint8Array,oA=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),ow=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([0x11223344]).buffer)[0])throw Error("Non little-endian hardware is not supported");function o_(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}
1function oP(e){if("string"==typeof e&&(e=o_(e)),!oS(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}function ok(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!oS(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}class oR{clone(){return this._cloneInto()}}function oO(e){let t=t=>e().update(oP(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function oI(e=32){if(ov&&"function"==typeof ov.getRandomValues)return ov.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}function oB(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(0xffffffff),a=Number(r>>i&o),s=Number(r&o),d=4*!!n,l=4*!n;e.setUint32(t+d,a,n),e.setUint32(t+l,s,n)}class ox extends oR{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=oA(this.buffer)}update(e){oy(this);let{view:t,buffer:r,blockLen:n}=this,i=(e=oP(e)).length;for(let o=0;o<i;){let a=Math.min(n-this.pos,i-o);if(a===n){let t=oA(e);for(;n<=i-o;o+=n)this.process(t,o);continue}r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){oy(this),ob(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:n,isLE:i}=this,{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let e=o;e<n;e++)t[e]=0;oB(r,n-8,BigInt(8*this.length),i),this.process(r,0);let a=oA(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let d=s/4,l=this.get();if(d>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<d;e++)a.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}let oE=(e,t,r)=>e&t^~e&r,oT=(e,t,r)=>e&t^e&r^t&r,oN=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),oC=new Uint32Array([0x6a09e66
17,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),oM=new Uint32Array(64);class oU extends ox{constructor(){super(64,32,8,!1),this.A=0|oC[0],this.B=0|oC[1],this.C=0|oC[2],this.D=0|oC[3],this.E=0|oC[4],this.F=0|oC[5],this.G=0|oC[6],this.H=0|oC[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)oM[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=oM[e-15],r=oM[e-2],n=ow(t,7)^ow(t,18)^t>>>3,i=ow(r,17)^ow(r,19)^r>>>10;oM[e]=i+oM[e-7]+n+oM[e-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:d,H:l}=this;for(let e=0;e<64;e++){let t=l+(ow(a,6)^ow(a,11)^ow(a,25))+oE(a,s,d)+oN[e]+oM[e]|0,c=(ow(r,2)^ow(r,13)^ow(r,22))+oT(r,n,i)|0;l=d,d=s,s=a,a=o+t|0,o=i,i=n,n=r,r=t+c|0}r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,d=d+this.G|0,l=l+this.H|0,this.set(r,n,i,o,a,s,d,l)}roundClean(){oM.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let oD=oO(()=>new oU);BigInt(0);let oJ=BigInt(1),oH=BigInt(2),oV=e=>e instanceof Uint8Array,oq=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function oL(e){if(!oV(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=oq[e[r]];return t}function oj(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function oF(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){let n=2*t,i=Number.parseInt(e.slice(n,n+2),16);if(Number.isNaN(i)||i<0)throw Error("Invalid byte sequence");r[t]=i}return r}function oW(e){return oj(oL(e))}function oQ(e){if(!oV(e))throw Error("Uint8Array expected");return oj(oL(Uint8Array.from(e).reverse()))}function oG(e,t){return oF(e.toString(16).padStart(2*t,"0"))}function oz(e,t){return oG(e,t).reverse()}function oK(e,t,r){let n;if("string"==typeof t)try{n=oF(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(oV(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if("number"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n}function oY(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!oV(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}let oZ=e=>(oH<<BigInt(e-1))-oJ,oX=e=>new Uint8Array(e),o$=e=>Uint8Array.from(e);function o0(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=oX(e),i=oX(e),o=0,a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),d=(e=oX())=>{i=s(o$([0]),e),n=s(),0!==e.length&&(i=s(o$([1]),e),n=s())},l=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=s()).slice();r.push(t),e+=n.length}return oY(...r)};return(e,t)=>{let r;for(a(),d(e);!(r=t(l()));)d();return a(),r}}let o1={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function o2(e,t,r={}){let n=(t,r,n)=>{let i=o1[r];if("function"!=typeof i)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}let o3=BigInt(0),o6=BigInt(1),o5=BigInt(2),o4=BigInt(3),o8=BigInt(4),o9=BigInt(5),o7=BigInt(8);function ae(e,t){let r=e%t;return r>=o3?r:t+r}function at(e,t,r){if(r<=o3||t<o3)throw Error("Expected power/modulo > 0");if(r===o6)return o3;let n=o6;for(;t>o3;)t&o6&&(n=n*e%r),e=e*e%r,t>>=o6;return n}function ar(e,t,r){let n=e;for(;t-- >o3;)n*=n,n%=r;return n}function an(e,t){if(e===o3||t<=o3)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=ae(e,t),n=t,i=o3,o=o6,a=o6,s=o3;for(;r!==o3;){let e=n/r,t=n%r,d=i-a*e,l=o-s*e;n=r,r=t,i=a,o=s,a=d,s=l}if(n!==o6)throw Error("invert: does not exist");return ae(i,t)}function ai(e){let t,r,n,i=(e-o6)/o5;for(t=e-o6,r=0;t%o5===o3;t/=o5,r++);for(n=o5;n<e&&at(n,i,e)!==e-o6;n++);if(1===r){let t=(e+o6)/o8;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let o=(t+o6)/o5;return function(e,a){if(e.pow(a,i)===e.neg(e.ONE))throw Error("Cannot find square root");let s=r,d=e.pow(e.mul(e.ONE,n),t),l=e.pow(a,o),c=e.pow(a,t);for(;!e.eql(c,e.ONE);){if(e.eql(c,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(c);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(d,o6<<BigInt(s-t-1));d=e.sqr(r),l=e.mul(l,r),c=e.mul(c,d),s=t}return l}}function ao(e){if(e%o8===o4){let t=(e+o6)/o8;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%o7===o9){let t=(e-o9)/o7;return function(e,r){let n=e.mul(r,o5),i=e.pow(n,t),o=e.mul(r,i),a=e.mul(e.mul(o,o5),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),r))throw Error("Cannot find square root");return s}}return ai(e)}BigInt(9),BigInt(16);let aa=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function as(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"};return o2(e,aa.reduce((e,t)=>
1(e[t]="function",e),t))}function ad(e,t,r){if(r<o3)throw Error("Expected power > 0");if(r===o3)return e.ONE;if(r===o6)return t;let n=e.ONE,i=t;for(;r>o3;)r&o6&&(n=e.mul(n,i)),i=e.sqr(i),r>>=o6;return n}function al(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r}function ac(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function au(e,t,r=!1,n={}){if(e<=o3)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:i,nByteLength:o}=ac(e,t);if(o>2048)throw Error("Field lengths over 2048 bytes are not supported");let a=ao(e),s=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:oZ(i),ZERO:o3,ONE:o6,create:t=>ae(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return o3<=t&&t<e},is0:e=>e===o3,isOdd:e=>(e&o6)===o6,neg:t=>ae(-t,e),eql:(e,t)=>e===t,sqr:t=>ae(t*t,e),add:(t,r)=>ae(t+r,e),sub:(t,r)=>ae(t-r,e),mul:(t,r)=>ae(t*r,e),pow:(e,t)=>ad(s,e,t),div:(t,r)=>ae(t*an(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>an(t,e),sqrt:n.sqrt||(e=>a(s,e)),invertBatch:e=>al(s,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?oz(e,o):oG(e,o),fromBytes:e=>{if(e.length!==o)throw Error(`Fp.fromBytes: expected ${o}, got ${e.length}`);return r?oQ(e):oW(e)}});return Object.freeze(s)}function ap(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function af(e){let t=ap(e);return t+Math.ceil(t/2)}function ah(e,t,r=!1){let n=e.length,i=ap(t),o=af(t);if(n<16||n<o||n>1024)throw Error(`expected ${o}-1024 bytes of input, got ${n}`);let a=ae(r?oW(e):oQ(e),t-o6)+o6;return r?oz(a,i):oG(a,i)}class ag extends oR{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,om(e);let r=oP(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return oy(this),this.iHash.update(e),this}digestInto(e){oy(this),og(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let am=(e,t,r)=>new ag(e,t).update(r).digest();am.create=(e,t)=>new ag(e,t);let ay=BigInt(0),ab=BigInt(1);function av(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>ay;)r&ab&&(n=n.add(i)),i=i.double(),r>>=ab;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],a=e,s=a;for(let e=0;e<r;e++){s=a,o.push(s);for(let e=1;e<i;e++)s=s.add(a),o.push(s);a=s.double()}return o},wNAF(t,i,o){let{windows:a,windowSize:s}=n(t),d=e.ZERO,l=e.BASE,c=BigInt(2**t-1),u=2**t,p=BigInt(t);for(let e=0;e<a;e++){let t=e*s,n=Number(o&c);o>>=p,n>s&&(n-=u,o+=ab);let a=t,f=t+Math.abs(n)-1,h=e%2!=0,g=n<0;0===n?l=l.add(r(h,i[a])):d=d.add(r(g,i[f]))}return{p:d,f:l}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}}function aS(e){return as(e.Fp),o2(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ac(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}function aA(e){let t=aS(e);o2(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}let{Ph:aw,aT:a_}
1=w,aP={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=aP;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(128&n[0])throw new t("Invalid signature integer: negative");if(0===n[0]&&!(128&n[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:aw(n),l:e.subarray(r+2)}},toSig(e){let{Err:t}=aP,r="string"==typeof e?a_(e):e;if(!(r instanceof Uint8Array))throw Error("ui8a expected");let n=r.length;if(n<2||48!=r[0])throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");let{d:i,l:o}=aP._parseInt(r.subarray(2)),{d:a,l:s}=aP._parseInt(o);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),d=r(a);return`30${r(a+o+4)}02${d}${i}02${s}${n}`}},ak=BigInt(0),aR=BigInt(1),aO=(BigInt(2),BigInt(3));function aI(e){let t=aA(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{let i=t.toAffine();return oY(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),i=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function o(e){let{a:n,b:i}=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&ak<e&&e<t.n}function s(e){if(!a(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function d(e){let r,{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:o,n:a}=t;if(n&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=oL(e)),"string"!=typeof e||!n.includes(e.length))throw Error("Invalid key");e=e.padStart(2*i,"0")}try{r="bigint"==typeof e?e:oW(oK("private key",e,i))}catch(t){throw Error(`private key must be ${i} bytes, hex or bigint, not ${typeof e}`)}return o&&(r=ae(r,a)),s(r),r}let l=new Map;function c(e){if(!(e instanceof u))throw Error("ProjectivePoint expected")}class u{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof u)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?u.ZERO:new u(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(u.fromAffine)}static fromHex(e){let t=u.fromAffine(i(oK("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return u.BASE.multiply(d(e))}_setWindowSize(e){this._WINDOW_SIZE=e,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let i=r.sqr(n),a=o(e);if(!r.eql(i,a))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){c(e);let{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,d=r.eql(r.mul(t,s),r.mul(o,i)),l=r.eql(r.mul(n,s),r.mul(a,i));return d&&l}negate(){return new u(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,aO),{px:o,py:a,pz:s}=this,d=r.ZERO,l=r.ZERO,c=r.ZERO,p=r.mul(o,o),f=r.mul(a,a),h=r.mul(s,s),g=r.mul(o,a);return g=r.add(g,g),c=r.mul(o,s),c=r.add(c,c),d=r.mul(e,c),l=r.mul(i,h),l=r.add(d,l),d=r.sub(f,l),l=r.add(f,l),l=r.mul(d,l),d=r.mul(g,d),c=r.mul(i,c),h=r.mul(e,h),g=r.sub(p,h),g=r.mul(e,g),g=r.add(g,c),c=r.add(p,p),p=r.add(c,p),p=r.add(p,h),p=r.mul(p,g),l=r.add(l,p),h=r.mul(a,s),h=r.add(h,h),p=r.mul(h,g),d=r.sub(d,p),c=r.mul(h,f),c=r.add(c,c),new u(d,l,c=r.add(c,c))}add(e){c(e);let{px:n,py:i,pz:o}=this,{px:a,py:s,pz:d}=e,l=r.ZERO,p=r.ZERO,f=r.ZERO,h=t.a,g=r.mul(t.b,aO),m=r.mul(n,a),y=r.mul(i,s),b=r.mul(o,d),v=r.add(n,i),S=r.add(a,s);v=r.mul(v,S),S=r.add(m,y),v=r.sub(v,S),S=r.add(n,o);let A=r.add(a,d);return S=r.mul(S,A),A=r.add(m,b),S=r.sub(S,A),A=r.add(i,o),l=r.add(s,d),A=r.mul(A,l),l=r.add(y,b),A=r.sub(A,l),f=r.mul(h,S),l=r.mul(g,b),f=r.add(l,f),l=r.sub(y,f),f=r.add(y,f),p=r.mul(l,f),y=r.add(m,m),y=r.add(y,m),b=r.mul(h,b),S=r.mul(g,S),y=r.add(y,b),b=r.sub(m,b),b=r.mul(h,b),S=r.add(S,b),m=r.mul(y,S),p=r.add(p,m),m=r.mul(A,S),l=r.mul(v,l),l=r.sub(l,m),m=r.mul(v,y),f=r.mul(A,f),new u(l,p,f=r.add(f,m))}subtract(e){return this.add(e.negate())}is0(){return this.equals(u.ZERO)}wNAF(e){return f.wNAFCached(this,l,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(u.fromAffine)})}multiplyUnsafe(e){let n=u.ZERO;if(e===ak)return n;if(s(e),e===aR)return this;let{endo:i}=t;if(!i)return f.unsafeLadder(this,e);
1let{k1neg:o,k1:a,k2neg:d,k2:l}=i.splitScalar(e),c=n,p=n,h=this;for(;a>ak||l>ak;)a&aR&&(c=c.add(h)),l&aR&&(p=p.add(h)),h=h.double(),a>>=aR,l>>=aR;return o&&(c=c.negate()),d&&(p=p.negate()),p=new u(r.mul(p.px,i.beta),p.py,p.pz),c.add(p)}multiply(e){let n,i;s(e);let o=e,{endo:a}=t;if(a){let{k1neg:e,k1:t,k2neg:s,k2:d}=a.splitScalar(o),{p:l,f:c}=this.wNAF(t),{p:p,f:h}=this.wNAF(d);l=f.constTimeNegate(e,l),p=f.constTimeNegate(s,p),p=new u(r.mul(p.px,a.beta),p.py,p.pz),n=l.add(p),i=c.add(h)}else{let{p:e,f:t}=this.wNAF(o);n=e,i=t}return u.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=u.BASE,i=(e,t)=>t!==ak&&t!==aR&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){let{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));let a=r.mul(t,e),s=r.mul(n,e),d=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(d,r.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===aR)return!0;if(r)return r(u,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===aR?this:r?r(u,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(u,this,e)}toHex(e=!0){return oL(this.toRawBytes(e))}}u.BASE=new u(t.Gx,t.Gy,r.ONE),u.ZERO=new u(r.ZERO,r.ONE,r.ZERO);let p=t.nBitLength,f=av(u,t.endo?Math.ceil(p/2):p);return{CURVE:t,ProjectivePoint:u,normPrivateKeyToScalar:d,weierstrassEquation:o,isWithinCurveOrder:a}}function aB(e){let t=aS(e);return o2(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function ax(e){let t=aB(e),{Fp:r,n:n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function a(e){return ak<e&&e<r.ORDER}function s(e){return ae(e,n)}function d(e){return an(e,n)}let{ProjectivePoint:l,normPrivateKeyToScalar:c,weierstrassEquation:u,isWithinCurveOrder:p}=aI({...t,toBytes(e,t,n){let i=t.toAffine(),o=r.toBytes(i.x),a=oY;return n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(e){let t=e.length,n=e[0],s=e.subarray(1);if(t===i&&(2===n||3===n)){let e=oW(s);if(!a(e))throw Error("Point is not on curve");let t=u(e),i=r.sqrt(t);return(1&n)==1!=((i&aR)===aR)&&(i=r.neg(i)),{x:e,y:i}}if(t===o&&4===n)return{x:r.fromBytes(s.subarray(0,r.BYTES)),y:r.fromBytes(s.subarray(r.BYTES,2*r.BYTES))};throw Error(`Point of length ${t} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}}),f=e=>oL(oG(e,t.nByteLength));function h(e){return e>n>>aR}function g(e){return h(e)?s(-e):e}let m=(e,t,r)=>oW(e.slice(t,r));class y{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new y(m(e=oK("compactSignature",e,2*r),0,r),m(e,r,2*r))}static fromDER(e){let{r:t,s:r}=aP.toSig(oK("DER",e));return new y(t,r)}assertValidity(){if(!p(this.r))throw Error("r must be 0 < r < CURVE.n");if(!p(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new y(this.r,this.s,e)}recoverPublicKey(e){let{r:n,s:i,recovery:o}=this,a=_(oK("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");let c=2===o||3===o?n+t.n:n;if(c>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let u=(1&o)==0?"02":"03",p=l.fromHex(u+f(c)),h=d(c),g=s(-a*h),m=s(i*h),y=l.BASE.multiplyAndAddUnsafe(p,g,m);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return h(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return oF(this.toDERHex())}toDERHex(){return aP.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return oF(this.toCompactHex())}toCompactHex(){return f(this.r)+f(this.s)}}let b={isValidPrivateKey(e){try{return c(e),!0}catch(e){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{let e=af(t.n);return ah(t.randomBytes(e),t.n)},precompute:(e=8,t=l.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function v(e,t=!0){return l.fromPrivateKey(e).toRawBytes(t)}function S(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===i||n===o:r?n===2*i||n===2*o:e instanceof l}function A(e,t,r=!0){if(S(e))throw Error("first arg must be private key");if(!S(t))throw Error("second arg must be public key");return l.fromHex(t).multiply(c(e)).toRawBytes(r)}let w=t.bits2int||function(e){let r=oW(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},_=t.bits2int_modN||function(e){return s(w(e))},P=oZ(t.nBitLength);function k(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(ak<=e&&e<P))throw Error(`bigint expected < 2^${t.nBitLength}`);return oG(e,t.nByteLength)}function R(e,n,i=O){if(["recovered","canonical"].some(e=>e in i))throw Error("sign() legacy options not supported");let{hash:o,randomBytes:a}=t,{lowS:u,prehash:f,extraEntropy:m}=i;null==u&&(u=!0),e=oK("msgHash",e),f&&(e=oK("prehashed msgHash",o(e)));let b=_(e),v=c(n),S=[k(v),k(b)];if(null!=m){let e=!0===m?a(r.BYTES):m;S.push(oK("extraEntropy",e))}let A=oY(...S),P=b;return{seed:A,k2sig:function(e){let t=w(e);if(!p(t))return;let r=d(t),n=l.BASE.multiply(t).toAffine(),i=s(n.x);if(i===ak)return;let o=s(r*s(P+i*v));if(o===ak)return;let a=2*(n.x!==i)|Number(n.y&aR),c=o;return u&&h(o)&&(c=g(o),a^=1),new y(i,c,a)}}}let O={lowS:t.lowS,prehash:!1},I={lowS:t.lowS,prehash:!1};function B(e,r,n=O){let{seed:i,k2sig:o}=R(e,r,n),a=t;return o0(a.hash.outputLen,a.nByteLength,a.hmac)(i,o)}function x(e,r,n,i=I){let o,a,c=e;if(r=oK("msgHash",r),n=oK("publicKey",n),"strict"in i)throw Error("options.strict was renamed to lowS");let{lowS:u,prehash:p}=i;try{if("string"==typeof c||c instanceof Uint8Array)try{a=y.fromDER(c)}catch(e){if(!(e instanceof aP.Err))throw e;a=y.fromCompact(c)}else if("object"==typeof c&&"bigint"==typeof c.r&&"bigint"==typeof c.s){let{r:e,s:t}=c;a=new y(e,t)}else throw Error("PARSE");o=l.fromHex(n)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&a.hasHighS())return!1;p&&(r=t.hash(r));let{r:f,s:h}=a,g=_(r),m=d(h),b=s(g*m),v=s(f*m),S=l.BASE.multiplyAndAddUnsafe(o,b,v)?.toAffine();return!!S&&s(S.x)===f}return l.BASE._setWindowSize(8),{CURVE:t,getPublicKey:v,getSharedSecret:A,sign:B,verify:x,ProjectivePoint:l,Signature:y,utils:b}}function aE(e){return{hash:e,hmac:(t,...r)=>am(e,t,ok(...r)),randomBytes:oI}}function aT(e,t){let r=t=>ax({...e,...aE(t)});return Object.freeze({...r(t),create:r})}BigInt(4);let aN=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),aC=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),aM=BigInt(1),aU=BigInt(2),aD=(e,t)=>(e+t/aU)/t;function aJ(e){let t=aN,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),d=BigInt(88),l=e*e*e%t,c=l*l*e%t,u=ar(c,r,t)*c%t,p=ar(u,r,t)*c%t,f=ar(p,aU,t)*l%t,h=ar(f,i,t)*f%t,g=ar(h,o,t)*h%t,m=ar(g,s,t)*g%t,y=ar(m,d,t)*m%t,b=ar(y,s,t)*g%t,v=ar(b,r,t)*c%t,S=ar(v,a,t)*h%t,A=ar(S,n,t)*l%t,w=ar(A,aU,t);if(!aH.eql(aH.sqr(w),e))throw Error("Cannot find square root");return w}let aH=au(aN,void 0,void 0,{sqrt:aJ}),aV=aT({a:BigInt(0),b:BigInt(7),Fp:aH,n:aC,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=aC,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-aM*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),s=aD(o*e,t),d=aD(-n*e,t),l=ae(e-s*r-d*i,t),c=ae(-s*n-d*o,t),u=l>a,p=c>a;if(u&&(l=t-l),p&&(c=t-c),l>a||c>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:l,k2neg:p,k2:c}}}},oD),aq=BigInt(0);aV.ProjectivePoint;class aL{#en;constructor(e){(0,_.MR)(32===(0,k.pO)(e),"invalid private key","privateKey","[REDACTED]"),this.#en=(0,k.c$)(e)}get privateKey(){return this.#en}get publicKey(){return aL.computePublicKey(this.#en)}get compressedPublicKey(){return aL.computePublicKey(this.#en,!0)}sign(e){(0,_.MR)(32===(0,k.pO)(e),"invalid digest length","digest",e);let t=aV.sign((0,k.Lm)(e),(0,k.Lm)(this.#en),{lowS:!0});return rP.from({r:(0,P.up)(t.r,32),s:(0,P.up)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){let t=aL.computePublicKey(e);return(0,k.c$)(aV.getSharedSecret((0,k.Lm)(this.#en),(0,k.q5)(t),!1))}static computePublicKey(e,t){let r=(0,k.q5)(e,"key");if(32===r.length){let e=aV.getPublicKey(r,!!t);return(0,k.c$)(e)}if(64===r.length){let e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}let n=aV.ProjectivePoint.fromHex(r);return(0,k.c$)(n.toRawBytes(t))}static recoverPublicKey(e,t){(0,_.MR)(32===(0,k.pO)(e),"invalid digest length","digest",e);let r=rP.from(t),n=aV.Signature.fromCompact((0,k.Lm)((0,k.xW)([r.r,r.s]))),i=(n=n.addRecoveryBit(r.yParity)).recoverPublicKey((0,k.Lm)(e));return(0,_.MR)(null!=i,"invalid signature for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,r){let n=aV.ProjectivePoint.fromHex(aL.computePublicKey(e).substring(2)),i=aV.ProjectivePoint.fromHex(aL.computePublicKey(t).substring(2));return"0x"+n.add(i).toHex(!!r)}}function aj(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function aF(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function aW(e,t,r,n){let i=[];for(;r<t+1+n;){let o=aQ(e,r);i.push(o.result),r+=o.consumed,(0,_.vA)(r<=t+1+n,"child data too short","BUFFER_OVERRUN",{buffer:e,length:n,offset:t})}return{consumed:1+n,result:i}}function aQ(e,t){(0,_.vA)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});let r=t=>{(0,_.vA)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){let n=e[t]-247;r(t+1+n);let i=aF(e,t+1,n);return r(t+1+n+i),aW(e,t,t+1+n,n+i)}if(e[t]>=192){let n=e[t]-192;return r(t+1+n),aW(e,t,t+1,n)}if(e[t]>=184){let n=e[t]-183;r(t+1+n);let i=aF(e,t+1,n);r(t+1+n+i);let o=(0,k.c$)(e.slice(t+1+n,t+1+n+i));return{consumed:1+n+i,result:o}}if(e[t]>=128){let n=e[t]-128;r(t+1+n);let i=(0,k.c$)(e.slice(t+1,t+1+n));return{consumed:1+n,result:i}}return{consumed:1,result:aj(e[t])}}function aG(e){let t=(0,k.q5)(e,"data"),r=aQ(t,0);return(0,_.MR)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}function az(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function aK(e){if(Array.isArray(e)){let t=[];if(e.forEach(function(e){t=t.concat(aK(e))}),t.length<=55)return t.unshift(192+t.length),t;let r=az(t.length);return r.unshift(247+r.length),r.concat(t)}let t=Array.prototype.slice.call((0,k.q5)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;let r=az(t.length);return r.unshift(183+r.length),r.concat(t)}let aY="0123456789abcdef";function aZ(e){let t="0x";for(let r of aK(e))t+=aY[r>>4],t+=aY[15&r];return t}function aX(e){let t;return eU(eO("0x"+(t="string"==typeof e?aL.computePublicKey(e,!1):e.publicKey).substring(4)).substring(26))}function a$(e,t){return aX(aL.recoverPublicKey(e,t))}let a0=BigInt(0),a1=BigInt(2),a2=BigInt(27),a3=BigInt(28),a6=BigInt(35),a5=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),a4=Symbol.for("nodejs.util.inspect.custom"),a8=131072,a9=128;function a7(e){return{blobToKzgCommitment:t=>{if("computeBlobProof"in e){if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,k.q5)(e.blobToKzgCommitment((0,k.c$)(t)))}else if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,k.q5)(e.blobToKzgCommitment(t));if("blobToKZGCommitment"in e&&"function"==typeof e.blobToKZGCommitment)return(0,k.q5)(e.blobToKZGCommitment((0,k.c$)(t)));(0,_.MR)(!1,"unsupported KZG library","kzg",e)},computeBlobKzgProof:(t,r)=>"computeBlobProof"in e&&"function"==typeof e.computeBlobProof?(0,k.q5)(e.computeBlobProof((0,k.c$)(t),(0,k.c$)(r))):"computeBlobKzgProof"in e&&"function"==typeof e.computeBlobKzgProof?e.computeBlobKzgProof(t,r):"computeBlobKZGProof"in e&&"function"==typeof e.computeBlobKZGProof?(0,k.q5)(e.computeBlobKZGProof((0,k.c$)(t),(0,k.c$)(r))):void(0,_.MR)(!1,"unsupported KZG library","kzg",e)}}function se(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return"0x"+(r+=op(t).substring(4))}function st(e){return"0x"===e?null:eU(e)}function sr(e,t){try{return ru(e)}catch(r){(0,_.MR)(!1,r.message,t,e)}}function sn(e,t){try{if(!Array.isArray(e))throw Error("authorizationList: invalid array");let t=[];for(let r=0;r<e.length;r++){let n=e[r];if(!Array.isArray(n))throw Error(`authorization[${r}
1]: invalid array`);if(6!==n.length)throw Error(`authorization[${r}]: wrong length`);if(!n[1])throw Error(`authorization[${r}]: null address`);t.push({address:st(n[1]),nonce:so(n[2],"nonce"),chainId:so(n[0],"chainId"),signature:rP.from({yParity:si(n[3],"yParity"),r:(0,k.nx)(n[4],32),s:(0,k.nx)(n[5],32)})})}return t}catch(r){(0,_.MR)(!1,r.message,t,e)}}function si(e,t){return"0x"===e?0:(0,P.WZ)(e,t)}function so(e,t){if("0x"===e)return a0;let r=(0,P.Ab)(e,t);return(0,_.MR)(r<=a5,"value exceeds uint size",t,r),r}function sa(e,t){let r=(0,P.Ab)(e,"value"),n=(0,P.c4)(r);return(0,_.MR)(n.length<=32,"value too large",`tx.${t}`,r),n}function ss(e){return ru(e).map(e=>[e.address,e.storageKeys])}function sd(e){return e.map(e=>[sa(e.chainId,"chainId"),e.address,sa(e.nonce,"nonce"),sa(e.signature.yParity,"yParity"),(0,P.c4)(e.signature.r),(0,P.c4)(e.signature._s)])}function sl(e,t){(0,_.MR)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;t<e.length;t++)(0,_.MR)((0,k.Lo)(e[t],32),"invalid ${ param } hash",`value[${t}]`,e[t]);return e}function sc(e){let t=aG(e);(0,_.MR)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);let r={type:0,nonce:si(t[0],"nonce"),gasPrice:so(t[1],"gasPrice"),gasLimit:so(t[2],"gasLimit"),to:st(t[3]),value:so(t[4],"value"),data:(0,k.c$)(t[5]),chainId:a0};if(6===t.length)return r;let n=so(t[6],"v"),i=so(t[7],"r"),o=so(t[8],"s");if(i===a0&&o===a0)r.chainId=n;else{let e=(n-a6)/a1;e<a0&&(e=a0),r.chainId=e,(0,_.MR)(e!==a0||n===a2||n===a3,"non-canonical legacy v","v",t[6]),r.signature=rP.from({r:(0,k.nx)(t[7],32),s:(0,k.nx)(t[8],32),v:n})}return r}function su(e,t){let r=[sa(e.nonce,"nonce"),sa(e.gasPrice||0,"gasPrice"),sa(e.gasLimit,"gasLimit"),e.to||"0x",sa(e.value,"value"),e.data],n=a0;if(e.chainId!=a0)n=(0,P.Ab)(e.chainId,"tx.chainId"),(0,_.MR)(!t||null==t.networkV||t.legacyChainId===n,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){let t=e.signature.legacyChainId;null!=t&&(n=t)}if(!t)return n!==a0&&(r.push((0,P.c4)(n)),r.push("0x"),r.push("0x")),aZ(r);let i=BigInt(27+t.yParity);return n!==a0?i=rP.getChainIdV(n,t.v):BigInt(t.v)!==i&&(0,_.MR)(!1,"tx.chainId/sig.v mismatch","sig",t),r.push((0,P.c4)(i)),r.push((0,P.c4)(t.r)),r.push((0,P.c4)(t._s)),aZ(r)}function sp(e,t){let r;try{if(r=si(t[0],"yParity"),0!==r&&1!==r)throw Error("bad yParity")}catch(e){(0,_.MR)(!1,"invalid yParity","yParity",t[0])}let n=(0,k.nx)(t[1],32),i=(0,k.nx)(t[2],32);e.signature=rP.from({r:n,s:i,yParity:r})}function sf(e){let t=aG((0,k.q5)(e).slice(1));(0,_.MR)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,k.c$)(e));let r={type:2,chainId:so(t[0],"chainId"),nonce:si(t[1],"nonce"),maxPriorityFeePerGas:so(t[2],"maxPriorityFeePerGas"),maxFeePerGas:so(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:so(t[4],"gasLimit"),to:st(t[5]),value:so(t[6],"value"),data:(0,k.c$)(t[7]),accessList:sr(t[8],"accessList")};return 9===t.length||sp(r,t.slice(9)),r}function sh(e,t){let r=[sa(e.chainId,"chainId"),sa(e.nonce,"nonce"),sa(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),sa(e.maxFeePerGas||0,"maxFeePerGas"),sa(e.gasLimit,"gasLimit"),e.to||"0x",sa(e.value,"value"),e.data,ss(e.accessList||[])];return t&&(r.push(sa(t.yParity,"yParity")),r.push((0,P.c4)(t.r)),r.push((0,P.c4)(t.s))),(0,k.xW)(["0x02",aZ(r)])}function sg(e){let t=aG((0,k.q5)(e).slice(1));(0,_.MR)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,k.c$)(e));let r={type:1,chainId:so(t[0],"chainId"),nonce:si(t[1],"nonce"),gasPrice:so(t[2],"gasPrice"),gasLimit:so(t[3],"gasLimit"),to:st(t[4]),value:so(t[5],"value"),data:(0,k.c$)(t[6]),accessList:sr(t[7],"accessList")};return 8===t.length||sp(r,t.slice(8)),r}function sm(e,t){let r=[sa(e.chainId,"chainId"),sa(e.nonce,"nonce"),sa(e.gasPrice||0,"gasPrice"),sa(e.gasLimit,"gasLimit"),e.to||"0x",sa(e.value,"value"),e.data,ss(e.accessList||[])];return t&&(r.push(sa(t.yParity,"recoveryParam")),r.push((0,P.c4)(t.r)),r.push((0,P.c4)(t.s))),(0,k.xW)(["0x01",aZ(r)])}function sy(e){let t=aG((0,k.q5)(e).slice(1)),r="3",n=null,i=null;if(4===t.length&&Array.isArray(t[0])){r="3 (network format)";let e=t[1],n=t[2],o=t[3];(0,_.MR)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,_.MR)(Array.isArray(n),"invalid network format: commitments not an array","fields[2]",
1n),(0,_.MR)(Array.isArray(o),"invalid network format: proofs not an array","fields[3]",o),(0,_.MR)(e.length===n.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,_.MR)(e.length===o.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let r=0;r<t[1].length;r++)i.push({data:e[r],commitment:n[r],proof:o[r]});t=t[0]}else if(5===t.length&&Array.isArray(t[0])){r="3 (EIP-7594 network format)",n=(0,P.WZ)(t[1]);let e=t[2],o=t[3],a=t[4];(0,_.MR)(1===n,`unsupported EIP-7594 network format version: ${n}`,"fields[1]",n),(0,_.MR)(Array.isArray(e),"invalid EIP-7594 network format: blobs not an array","fields[2]",e),(0,_.MR)(Array.isArray(o),"invalid EIP-7594 network format: commitments not an array","fields[3]",o),(0,_.MR)(Array.isArray(a),"invalid EIP-7594 network format: proofs not an array","fields[4]",a),(0,_.MR)(e.length===o.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,_.MR)(e.length*a9===a.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let t=0;t<e.length;t++){let r=[];for(let e=0;e<a9;e++)r.push(a[t*a9+e]);i.push({data:e[t],commitment:o[t],proof:(0,k.xW)(r)})}t=t[0]}(0,_.MR)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${r}`,"data",(0,k.c$)(e));let o={type:3,chainId:so(t[0],"chainId"),nonce:si(t[1],"nonce"),maxPriorityFeePerGas:so(t[2],"maxPriorityFeePerGas"),maxFeePerGas:so(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:so(t[4],"gasLimit"),to:st(t[5]),value:so(t[6],"value"),data:(0,k.c$)(t[7]),accessList:sr(t[8],"accessList"),maxFeePerBlobGas:so(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10],blobWrapperVersion:n};i&&(o.blobs=i),(0,_.MR)(null!=o.to,`invalid address for transaction type: ${r}`,"data",e),(0,_.MR)(Array.isArray(o.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let t=0;t<o.blobVersionedHashes.length;t++)(0,_.MR)((0,k.Lo)(o.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,"data",e);return 11===t.length||sp(o,t.slice(11)),o}function sb(e,t,r){let n=[sa(e.chainId,"chainId"),sa(e.nonce,"nonce"),sa(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),sa(e.maxFeePerGas||0,"maxFeePerGas"),sa(e.gasLimit,"gasLimit"),e.to||rQ,sa(e.value,"value"),e.data,ss(e.accessList||[]),sa(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),sl(e.blobVersionedHashes||[],"blobVersionedHashes")];if(t&&(n.push(sa(t.yParity,"yParity")),n.push((0,P.c4)(t.r)),n.push((0,P.c4)(t.s)),r)){if(null!=e.blobWrapperVersion){let t=(0,P.c4)(e.blobWrapperVersion),i=[];for(let{proof:e}of r){let t=(0,k.q5)(e),r=t.length/a9;for(let e=0;e<t.length;e+=r)i.push(t.subarray(e,e+r))}return(0,k.xW)(["0x03",aZ([n,t,r.map(e=>e.data),r.map(e=>e.commitment),i])])}return(0,k.xW)(["0x03",aZ([n,r.map(e=>e.data),r.map(e=>e.commitment),r.map(e=>e.proof)])])}return(0,k.xW)(["0x03",aZ(n)])}function sv(e){let t=aG((0,k.q5)(e).slice(1));(0,_.MR)(Array.isArray(t)&&(10===t.length||13===t.length),"invalid field count for transaction type: 4","data",(0,k.c$)(e));let r={type:4,chainId:so(t[0],"chainId"),nonce:si(t[1],"nonce"),maxPriorityFeePerGas:so(t[2],"maxPriorityFeePerGas"),maxFeePerGas:so(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:so(t[4],"gasLimit"),to:st(t[5]),value:so(t[6],"value"),data:(0,k.c$)(t[7]),accessList:sr(t[8],"accessList"),authorizationList:sn(t[9],"authorizationList")};return 10===t.length||sp(r,t.slice(10)),r}function sS(e,t){let r=[sa(e.chainId,"chainId"),sa(e.nonce,"nonce"),sa(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),sa(e.maxFeePerGas||0,"maxFeePerGas"),sa(e.gasLimit,"gasLimit"),e.to||"0x",sa(e.value,"value"),e.data,ss(e.accessList||[]),sd(e.authorizationList||[])];return t&&(r.push(sa(t.yParity,"yParity")),r.push((0,P.c4)(t.r)),r.push((0,P.c4)(t.s))),(0,k.xW)(["0x04",aZ(r)])}class sA{#ei;#eo;#t;#ea;#es;#ed;#el;#ec;#eu;#ep;#ef;#eh;#eg;#em;#ey;#eb;#ev;#eS;get type(){return this.#ei}set type(e){switch(e){case null:this.#ei=null;break;case 0:case"legacy":this.#ei=0;break;case 1:case"berlin":case"eip-2930":this.#ei=1;break;
1case 2:case"london":case"eip-1559":this.#ei=2;break;case 3:case"cancun":case"eip-4844":this.#ei=3;break;case 4:case"pectra":case"eip-7702":this.#ei=4;break;default:(0,_.MR)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){let e=this.#eo;return null==e&&3===this.type?rQ:e}set to(e){this.#eo=null==e?null:eU(e)}get nonce(){return this.#ea}set nonce(e){this.#ea=(0,P.WZ)(e,"value")}get gasLimit(){return this.#es}set gasLimit(e){this.#es=(0,P.Ab)(e)}get gasPrice(){let e=this.#ed;return null==e&&(0===this.type||1===this.type)?a0:e}set gasPrice(e){this.#ed=null==e?null:(0,P.Ab)(e,"gasPrice")}get maxPriorityFeePerGas(){let e=this.#el;return null==e?2===this.type||3===this.type?a0:null:e}set maxPriorityFeePerGas(e){this.#el=null==e?null:(0,P.Ab)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){let e=this.#ec;return null==e?2===this.type||3===this.type?a0:null:e}set maxFeePerGas(e){this.#ec=null==e?null:(0,P.Ab)(e,"maxFeePerGas")}get data(){return this.#t}set data(e){this.#t=(0,k.c$)(e)}get value(){return this.#eu}set value(e){this.#eu=(0,P.Ab)(e,"value")}get chainId(){return this.#ep}set chainId(e){this.#ep=(0,P.Ab)(e)}get signature(){return this.#ef||null}set signature(e){this.#ef=null==e?null:rP.from(e)}isValid(){let e=this.signature;if(e&&!e.isValid())return!1;let t=this.authorizationList;if(t){for(let e of t)if(!e.signature.isValid())return!1}return!0}get accessList(){let e=this.#eh||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#eh=null==e?null:ru(e)}get authorizationList(){let e=this.#ev||null;return null==e&&4===this.type?[]:e}set authorizationList(e){this.#ev=null==e?null:e.map(e=>rk(e))}get maxFeePerBlobGas(){let e=this.#eg;return null==e&&3===this.type?a0:e}set maxFeePerBlobGas(e){this.#eg=null==e?null:(0,P.Ab)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#em;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,_.MR)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,_.MR)((0,k.Lo)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#em=e}get blobs(){return null==this.#eb?null:this.#eb.map(e=>Object.assign({},e))}set blobs(e){if(null==e){this.#eb=null;return}let t=[],r=[];for(let n=0;n<e.length;n++){let i=e[n];if((0,k.f)(i)){(0,_.vA)(this.#ey,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,k.q5)(i);if((0,_.MR)(e.length<=a8,"blob is too large",`blobs[${n}]`,i),e.length!==a8){let t=new Uint8Array(a8);t.set(e),e=t}let o=this.#ey.blobToKzgCommitment(e),a=(0,k.c$)(this.#ey.computeBlobKzgProof(e,o));t.push({data:(0,k.c$)(e),commitment:(0,k.c$)(o),proof:a}),r.push(se(1,o))}else{let e=(0,k.c$)(i.data),n=(0,k.c$)(i.commitment),o=(0,k.c$)(i.proof);t.push({data:e,commitment:n,proof:o}),r.push(se(1,n))}}this.#eb=t,this.#em=r}get kzg(){return this.#ey}set kzg(e){null==e?this.#ey=null:this.#ey=a7(e)}get blobWrapperVersion(){return this.#eS}set blobWrapperVersion(e){this.#eS=e}constructor(){this.#ei=null,this.#eo=null,this.#ea=0,this.#es=a0,this.#ed=null,this.#el=null,this.#ec=null,this.#t="0x",this.#eu=a0,this.#ep=a0,this.#ef=null,this.#eh=null,this.#eg=null,this.#em=null,this.#ey=null,this.#eb=null,this.#ev=null,this.#eS=null}get hash(){return null==this.signature?null:eO(this.#eA(!0,!1))}get unsignedHash(){return eO(this.unsignedSerialized)}get from(){return null==this.signature?null:a$(this.unsignedHash,this.signature.getCanonical())}get fromPublicKey(){return null==this.signature?null:aL.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return null!=this.signature}#eA(e,t){(0,_.vA)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});let r=e?this.signature:null;switch(this.inferType()){case 0:return su(this,r);case 1:return sm(this,r);case 2:return sh(this,r);case 3:return sb(this,r,t?this.blobs:null);case 4:return sS(this,r)}(0,_.vA)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#eA(!0,!0)}get unsignedSerialized(){return this.#eA(!1,!1)}inferType(){let e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){let e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,n=null!=this.#eg||this.#em;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,_.vA)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,_.vA)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,_.vA)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});let i=[];return null!=this.type?i.push(this.type):this.authorizationList&&this.authorizationList.length?
1i.push(4):t?i.push(2):e?(i.push(1),r||i.push(0)):r?(i.push(1),i.push(2)):(n&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return sA.from(this)}toJSON(){let e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[a4](){return this.toString()}toString(){let e=[],t=t=>{let r=this[t];"string"==typeof r&&(r=JSON.stringify(r)),e.push(`${t}: ${r}`)};this.type&&t("type"),t("to"),t("data"),t("nonce"),t("gasLimit"),t("value"),null!=this.chainId&&t("chainId"),this.signature&&(t("from"),e.push(`signature: ${this.signature.toString()}`));let r=this.authorizationList;if(r){let t=[];for(let e of r){let r=[];r.push(`address: ${JSON.stringify(e.address)}`),null!=e.nonce&&r.push(`nonce: ${e.nonce}`),null!=e.chainId&&r.push(`chainId: ${e.chainId}`),e.signature&&r.push(`signature: ${e.signature.toString()}`),t.push(`Authorization { ${r.join(", ")} }`)}e.push(`authorizations: [ ${t.join(", ")} ]`)}return`Transaction { ${e.join(", ")} }`}static from(e){if(null==e)return new sA;if("string"==typeof e){let t=(0,k.q5)(e);if(t[0]>=127)return sA.from(sc(t));switch(t[0]){case 1:return sA.from(sg(t));case 2:return sA.from(sf(t));case 3:return sA.from(sy(t));case 4:return sA.from(sv(t))}(0,_.vA)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}let t=new sA;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=rP.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.authorizationList&&(t.authorizationList=e.authorizationList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobWrapperVersion&&(t.blobWrapperVersion=e.blobWrapperVersion),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&((0,_.MR)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,_.MR)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,_.MR)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,_.MR)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}let sw="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";BigInt(0);let s_=BigInt(58);function sP(e){let t=(0,k.q5)(e),r=(0,P.Dg)(t),n="";for(;r;)n=sw[Number(r%s_)]+n,r/=s_;for(let e=0;e<t.length&&!t[e];e++)n=sw[0]+n;return n}function sk(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,_.MR)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class sR{name;constructor(e){(0,R.n)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw Error("unsupported coin")}async decodeAddress(e,t){throw Error("unsupported coin")}}let sO=RegExp("^(ipfs)://(.*)$","i"),sI=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),sO,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class sB{provider;address;name;#ew;#e_;constructor(e,t,r){(0,R.n)(this,{provider:e,address:t,name:r}),this.#ew=null,this.#e_=new nJ(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e)}async supportsWildcard(){return null==this.#ew&&(this.#ew=(async()=>{try{return await this.#e_.supportsInterface("0x9061b923")}catch(e){if((0,_.bJ)(e,"CALL_EXCEPTION"))return!1;throw this.#ew=null,e}})()),await this.#ew}async #eP(e,t){t=(t||[]).slice();let r=this.#e_.interface;t.unshift(iZ(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(e),(0,_.vA)(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[iX(this.name,255),r.encodeFunctionData(n,t)],e="resolve(bytes,b
1ytes)"),t.push({enableCcipRead:!0});try{let i=await this.#e_[e](...t);if(n)return r.decodeFunctionResult(n,i)[0];return i}catch(e){if(!(0,_.bJ)(e,"CALL_EXCEPTION"))throw e}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{let e=await this.#eP("addr(bytes32)");if(null==e||e===rQ)return null;return e}catch(e){if((0,_.bJ)(e,"CALL_EXCEPTION"))return null;throw e}if(e>=0&&e<0x80000000){let t=e+0x80000000,r=await this.#eP("addr(bytes32,uint)",[t]);if((0,k.Lo)(r,20))return eU(r)}let t=null;for(let r of this.provider.plugins)if(r instanceof sR&&r.supportsCoinType(e)){t=r;break}if(null==t)return null;let r=await this.#eP("addr(bytes32,uint)",[e]);if(null==r||"0x"===r)return null;let n=await t.decodeAddress(e,r);if(null!=n)return n;(0,_.vA)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:r}})}async getText(e){let t=await this.#eP("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){let e=await this.#eP("contenthash(bytes32)");if(null==e||"0x"===e)return null;let t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e="e3010170"===t[1]?"ipfs":"ipns",r=parseInt(t[4],16);if(t[5].length===2*r)return`${e}://${sP("0x"+t[2])}`}let r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return`bzz://${r[1]}`;(0,_.vA)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){let e=[{type:"name",value:this.name}];try{let t=await this.getText("avatar");if(null==t)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let r=0;r<sI.length;r++){let n=t.match(sI[r]);if(null==n)continue;let i=n[1].toLowerCase();switch(i){case"https":case"data":return e.push({type:"url",value:t}),{linkage:e,url:t};case"ipfs":{let r=sk(t);return e.push({type:"ipfs",value:t}),e.push({type:"url",value:r}),{linkage:e,url:r}}case"erc721":case"erc1155":{let r="erc721"===i?"tokenURI(uint256)":"uri(uint256)";e.push({type:i,value:t});let o=await this.getAddress();if(null==o)return e.push({type:"!owner",value:""}),{url:null,linkage:e};let a=(n[2]||"").split("/");if(2!==a.length)return e.push({type:`!${i}caip`,value:n[2]||""}),{url:null,linkage:e};let s=a[1],d=new nJ(a[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if("erc721"===i){let t=await d.ownerOf(s);if(o!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===i){let t=await d.balanceOf(o,s);
1if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let l=await d[r](s);if(null==l||"0x"===l)return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:l}),"erc1155"===i&&(l=l.replace("{id}",(0,P.up)(s,32).substring(2)),e.push({type:"metadata-url-expanded",value:l})),l.match(/^ipfs:/i)&&(l=sk(l)),e.push({type:"metadata-url",value:l});let c={},u=await new rq(l).send();u.assertOk();try{c=u.bodyJson}catch(t){try{e.push({type:"!metadata",value:u.bodyText})}catch(r){let t=u.body;t&&e.push({type:"!metadata",value:(0,k.c$)(t)})}return{url:null,linkage:e}}if(!c)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(c)});let p=c.image;if("string"!=typeof p)return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(p.match(/^(https:\/\/|data:)/i));else{let t=p.match(sO);if(null==t)return e.push({type:"!imageUrl-ipfs",value:p}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:p}),p=sk(p)}return e.push({type:"url",value:p}),{linkage:e,url:p}}}}}catch(e){}return{linkage:e,url:null}}static async getEnsAddress(e){let t=await e.getNetwork(),r=t.getPlugin("org.ethers.plugins.network.Ens");return(0,_.vA)(r,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),r.address}static async #ek(e,t){let r=await sB.getEnsAddress(e);try{let n=new nJ(r,["function resolver(bytes32) view returns (address)"],e),i=await n.resolver(iZ(t),{enableCcipRead:!0});if(i===rQ)return null;return i}catch(e){throw e}}static async fromName(e,t){let r=t;for(;;){if(""===r||"."===r||"eth"!==t&&"eth"===r)return null;let n=await sB.#ek(e,r);if(null!=n){let i=new sB(e,n,t);if(r!==t&&!await i.supportsWildcard())return null;return i}r=r.split(".").slice(1).join(".")}}}function sx(e){let t=eU(e.from),r=(0,P.Ab)(e.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,eU((0,k.ZG)(eO(aZ([t,r])),12))}let sE=BigInt(0);function sT(e,t){return function(r){return null==r?t:e(r)}}function sN(e,t){return r=>{if(t&&null==r)return null;if(!Array.isArray(r))throw Error("not an array");return r.map(t=>e(t))}}function sC(e,t){return r=>{let n={};for(let i in e){let o=i;if(t&&i in t&&!(o in r)){for(let e of t[i])if(e in r){o=e;break}}try{let t=e[i](r[o]);void 0!==t&&(n[i]=t)}catch(t){let e=t instanceof Error?t.message:"not-an-error";(0,_.vA)(!1,`invalid value for value.${i} (${e})`,"BAD_DATA",{value:r})}}return n}}function sM(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,_.MR)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function sU(e){return(0,_.MR)((0,k.Lo)(e,!0),"invalid data","value",e),e}function sD(e){return(0,_.MR)((0,k.Lo)(e,32),"invalid hash","value",e),e}let sJ=sC({address:eU,blockHash:sD,blockNumber:P.WZ,data:sU,index:P.WZ,removed:sT(sM,!1),topics:sN(sD),transactionHash:sD,transactionIndex:P.WZ},{index:["logIndex"]});function sH(e){return sJ(e)}let sV=sC({hash:sT(sD),parentHash:sD,parentBeaconBlockRoot:sT(sD,null),number:P.WZ,timestamp:P.WZ,nonce:sT(sU),difficulty:P.Ab,gasLimit:P.Ab,gasUsed:P.Ab,stateRoot:sT(sD,null),receiptsRoot:sT(sD,null),blobGasUsed:sT(P.Ab,null),excessBlobGas:sT(P.Ab,null),miner:sT(eU),prevRandao:sT(sD,null),extraData:sU,baseFeePerGas:sT(P.Ab)},{prevRandao:["mixHash"]});function sq(e){let t=sV(e);return t.transactions=e.transactions.map(e=>"string"==typeof e?e:sQ(e)),t}let sL=sC({transactionIndex:P.WZ,blockNumber:P.WZ,transactionHash:sD,address:eU,topics:sN(sD),data:sU,index:P.WZ,blockHash:sD},{index:["logIndex"]});function sj(e){return sL(e)}let sF=sC({to:sT(eU,null),from:sT(eU,null),contractAddress:sT(eU,null),index:P.WZ,root:sT(k.c$),gasUsed:P.Ab,blobGasUsed:sT(P.Ab,null),logsBloom:sT(sU),blockHash:sD,hash:sD,logs:sN(sj),blockNumber:P.WZ,cumulativeGasUsed:P.Ab,effectiveGasPrice:sT(P.Ab),blobGasPrice:sT(P.Ab,null),status:sT(P.WZ),type:sT(P.WZ,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function sW(e){return sF(e)}function sQ(e){e.to&&(0,P.Ab)(e.to)===sE&&(e.to="0x0000000000000000000000000000000000000000");let t=sC({hash:sD,index:sT(P.WZ,void 0),type:e=>"0x"===e||null==e?0:(0,P.WZ)(e),accessList:sT(ru,null),blobVersionedHashes:sT(sN(sD,!0),null),authorizationList:sT(sN(e=>{let t;if(e.signature)t=e.signature;else{let r=e.yParity;"0x1b"===r?r=0:"0x1c"===r&&(r=1),t=Object.assign({},e,{yParity:r})}return{address:eU(e.address),chainId:(0,P.Ab)(e.chainId),nonce:(0,P.Ab)(e.nonce),signature:rP.from(t)}},!1),null),blockHash:sT(sD,null),blockNumber:sT(P.WZ,null),transactionIndex:sT(P.WZ,null),from:eU,gasPrice:sT(P.Ab),maxPriorityFeePerGas:sT(P.Ab),maxFeePerGas:sT(P.Ab),maxFeePerBlobGas:sT(P.Ab,null),gasLimit:P.Ab,to:sT(eU,null),value:P.Ab,nonce:P.WZ,data:sU,creates:sT(eU,null),chainId:sT(P.Ab,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=sx(t)),(1===e.type||2===e.type)&&null==e.accessList&&(t.accessList=[]),e.signature?t.signature=rP.from(e.signature):t.signature=rP.from(e),null==t.chainId){let e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,P.Ab)(t.blockHash)===sE&&(t.blockHash=null),t}let sG="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class sz{name;constructor(e){(0,R.n)(this,{name:e})}clone(){return new sz(this.name)}}class sK extends sz{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);let r={effectiveBlock:e};function n(e,n){let i=(t||{})[e];null==i&&(i=n),(0,_.MR)("number"==typeof i,`invalud value for ${e}`,"costs",t),r[e]=i}n("txBase",21e3),n("txCreate",32e3),n("txDataZero",4),n("txDataNonzero",16),n("txAccessListStorageKey",1900),n("txAccessListAddress",2400),(0,R.n)(this,r)}clone(){return new sK(this.effectiveBlock,this)}}class sY extends sz{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,R.n)(this,{address:e||sG,targetNetwork:null==t?1:t})}clone(){return new sY(this.address,this.targetNetwork)}}class sZ extends sz{#x;#eR;get url(){return this.#x}get processFunc(){return this.#eR}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#x=e,this.#eR=t}clone(){return this}}let sX=new Map;class s${#eO;#ep;#eI;constructor(e,t){this.#eO=e,this.#ep=(0,P.Ab)(t),this.#eI=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#eO}set name(e){this.#eO=e}get chainId(){return this.#ep}set chainId(e){this.#ep=(0,P.Ab)(e,"chainId")}matches(e){if(null==e)return!1;if("string"==typeof e){try{return this.chainId===(0,P.Ab)(e)}catch(e){}return this.name===e}if("number"==typeof e||"bigint"==typeof e){try{return this.chainId===(0,P.Ab)(e)}catch(e){}return!1}if("object"==typeof e){if(null!=e.chainId){try{return this.chainId===(0,P.Ab)(e.chainId)}catch(e){}return!1}if(null!=e.name)return this.name===e.name}return!1}get plugins(){return Array.from(this.#eI.values())}attachPlugin(e){if(this.#eI.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#eI.set(e.name,e.clone()),this}getPlugin(e){return this.#eI.get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){let e=new s$(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){let t=this.getPlugin("org.ethers.plugins.network.GasCost")||new sK,r=t.txBase;if(null==e.to&&(r+=t.txCreate),e.data)for(let n=2;n<e.data.length;n+=2)"00"===e.data.substring(n,n+2)?r+=t.txDataZero:r+=t.txDataNonzero;if(e.accessList){let n=ru(e.accessList);for(let e in n)r+=t.txAccessListAddress+t.txAccessListStorageKey*n[e].storageKeys.length}return r}static from(e){if(s3(),null==e)return s$.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){let t=sX.get(e);if(t)return t();if("bigint"==typeof e)return new s$("unknown",e);(0,_.MR)(!1,"unknown network","network",e)}if("function"==typeof e.clone)return e.clone();
1if("object"==typeof e){(0,_.MR)("string"==typeof e.name&&"number"==typeof e.chainId,"invalid network object name or chainId","network",e);let t=new s$(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new sY(e.ensAddress,e.ensNetwork)),t}(0,_.MR)(!1,"invalid network","network",e)}static register(e,t){"number"==typeof e&&(e=BigInt(e));let r=sX.get(e);r&&(0,_.MR)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",e),sX.set(e,t)}}function s0(e,t){let r=String(e);if(!r.match(/^[0-9.]+$/))throw Error(`invalid gwei value: ${e}`);let n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw Error(`invalid gwei value: ${e}`);for(;n[1].length<t;)n[1]+="0";if(n[1].length>9){let e=BigInt(n[1].substring(0,9));!n[1].substring(9).match(/^0+$/)&&e++,n[1]=e.toString()}return BigInt(n[0]+n[1])}function s1(e){return new sZ(e,async(e,t,r)=>{let n;r.setHeader("User-Agent","ethers");try{let[t,i]=await Promise.all([r.send(),e()]),o=(n=t).bodyJson.standard;return{gasPrice:i.gasPrice,maxFeePerGas:s0(o.maxFee,9),maxPriorityFeePerGas:s0(o.maxPriorityFee,9)}}catch(e){(0,_.vA)(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:n,error:e})}})}let s2=!1;function s3(){s2||(s2=!0,e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",0xaa36a7,{ensNetwork:0xaa36a7}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("filecoin",314,{}),e("filecoin-calibration",314159,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[s1("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[s1("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",0xaa37dc,{}),e("xdai",100,{ensNetwork:1}));function e(e,t,r){let n=function(){let n=new s$(e,t);return null!=r.ensNetwork&&n.attachPlugin(new sY(null,r.ensNetwork)),n.attachPlugin(new sK),(r.plugins||[]).forEach(e=>{n.attachPlugin(e)}),n};s$.register(e,n),s$.register(t,n),r.altNames&&r.altNames.forEach(e=>{s$.register(e,n)})}}function s6(e){return JSON.parse(JSON.stringify(e))}class s5{#eB;#ex;#eE;#eT;constructor(e){this.#eB=e,this.#ex=null,this.#eE=4e3,this.#eT=-2}get pollingInterval(){return this.#eE}set pollingInterval(e){this.#eE=e}async #eN(){try{let e=await this.#eB.getBlockNumber();if(-2===this.#eT){this.#eT=e;return}if(e!==this.#eT){for(let t=this.#eT+1;t<=e;t++){if(null==this.#ex)return;await this.#eB.emit("block",t)}this.#eT=e}}catch(e){}null!=this.#ex&&(this.#ex=this.#eB._setTimeout(this.#eN.bind(this),this.#eE))}start(){this.#ex||(this.#ex=this.#eB._setTimeout(this.#eN.bind(this),this.#eE),this.#eN())}stop(){this.#ex&&(this.#eB._clearTimeout(this.#ex),this.#ex=null)}pause(e){this.stop(),e&&(this.#eT=-2)}resume(){this.start()}}class s4{#eB;#eN;#eC;constructor(e){this.#eB=e,this.#eC=!1,this.#eN=e=>{this._poll(e,this.#eB)}}async _poll(e,t){throw Error("sub-classes must override this")}start(){this.#eC||(this.#eC=!0,this.#eN(-2),this.#eB.on("block",this.#eN))}stop(){this.#eC&&(this.#eC=!1,this.#eB.off("block",this.#eN))}pause(e){this.stop()}resume(){this.start()}}class s8 extends s4{#eM;#eU;constructor(e,t){super(e),this.#eM=t,this.#eU=-2}pause(e){e&&(this.#eU=-2),super.pause(e)}async _poll(e,t){let r=await t.getBlock(this.#eM);null!=r&&(-2===this.#eU?this.#eU=r.number:r.number>this.#eU&&(t.emit(this.#eM,r.number),this.#eU=r.number))}}class s9 extends s4{#er;constructor(e,t){super(e),this.#er=s6(t)}async _poll(e,t){throw Error("@TODO")}}class s7 extends s4{#eD;constructor(e,t){super(e),this.#eD=t}async _poll(e,t){let r=await t.getTransactionReceipt(this.#eD);r&&t.emit(this.#eD,r)}}class de{#eB;#er;#ex;#eC;#eT;constructor(e,t){this.#eB=e,this.#er=s6(t),this.#ex=this.#eN.bind(this),this.#eC=!1,this.#eT=-2}async #eN(e){if(-2===this.#eT)return;let t=s6(this.#er);t.fromBlock=this.#eT+1,t.toBlock=e;let r=await this.#eB.getLogs(t);if(0===r.length){this.#eT<e-60&&(this.#eT=e-60);return}for(let e of r)this.#eB.emit(this.#er,e),this.#eT=e.blockNumber}start(){this.#eC||(this.#eC=!0,-2===this.#eT&&this.#eB.getBlockNumber().then(e=>{this.#eT=e}),this.#eB.on("block",this.#ex))}stop(){this.#eC&&(this.#eC=!1,this.#eB.off("block",this.#ex))}pause(e){this.stop(),e&&(this.#eT=-2)}resume(){this.start()}}let dt=BigInt(2),dr=10;function dn(e){return e&&"function"==typeof e.then}function di(e,t){return e+":"+JSON.stringify(t,(e,t)=>{if(null==t)return"null";if("bigint"==typeof t)return`bigint:${t.toString()}`;if("string"==typeof t)return t.toLowerCase();if("object"==typeof t&&!Array.isArray(t)){let e=Object.keys(t);return e.sort(),e.reduce((e,r)=>(e[r]=t[r],e),{})}return t})}class da{name;constructor(e){(0,R.n)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function ds(e){return JSON.parse(JSON.stringify(e))}
1function dd(e){return(e=Array.from(new Set(e).values())).sort(),e}async function dl(e,t){if(null==e)throw Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"==typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,k.Lo)(e,32)){let t=e.toLowerCase();return{type:"transaction",tag:di("tx",{hash:t}),hash:t}}if(e.orphan){let t=e;return{type:"orphan",tag:di("orphan",t),filter:ds(t)}}if(e.address||e.topics){let r=e,n={topics:(r.topics||[]).map(e=>null==e?null:Array.isArray(e)?dd(e.map(e=>e.toLowerCase())):e.toLowerCase())};if(r.address){let e=[],i=[],o=r=>{(0,k.Lo)(r)?e.push(r):i.push((async()=>{e.push(await t3(r,t))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=dd(e.map(e=>e.toLowerCase()))}return{filter:n,tag:di("event",n),type:"event"}}(0,_.MR)(!1,"unknown ProviderEvent","event",e)}function dc(){return new Date().getTime()}let du={cacheTimeout:250,pollingInterval:4e3};class dp{#eJ;#eI;#eH;#eV;#eq;#eL;#ej;#eF;#eW;#eQ;#eG;#c;constructor(e,t){if(this.#c=Object.assign({},du,t||{}),"any"===e)this.#eL=!0,this.#eq=null;else if(e){let t=s$.from(e);this.#eL=!1,this.#eq=Promise.resolve(t),setTimeout(()=>{this.emit("network",t,null)},0)}else this.#eL=!1,this.#eq=null;this.#eF=-1,this.#ej=new Map,this.#eJ=new Map,this.#eI=new Map,this.#eH=null,this.#eV=!1,this.#eW=1,this.#eQ=new Map,this.#eG=!1}get pollingInterval(){return this.#c.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#eI.values())}attachPlugin(e){if(this.#eI.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#eI.set(e.name,e.connect(this)),this}getPlugin(e){return this.#eI.get(e)||null}get disableCcipRead(){return this.#eG}set disableCcipRead(e){this.#eG=!!e}async #ez(e){let t=this.#c.cacheTimeout;if(t<0)return await this._perform(e);let r=di(e.method,e),n=this.#ej.get(r);return n||(n=this._perform(e),this.#ej.set(r,n),setTimeout(()=>{this.#ej.get(r)===n&&this.#ej.delete(r)},t)),await n}async ccipReadFetch(e,t,r){if(this.disableCcipRead||0===r.length||null==e.to)return null;let n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let t=0;t<r.length;t++){let a,s=r[t],d=new rq(s.replace("{sender}",n).replace("{data}",i));-1===s.indexOf("{data}")&&(d.body={data:i,sender:n}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:d,index:t,urls:r});let l="unknown error";try{a=await d.send()}catch(e){o.push(e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:d,result:{error:e}});continue}try{let e=a.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:d,result:e}),e.data;e.message&&(l=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:d,result:e})}catch(e){}(0,_.vA)(a.statusCode<400||a.statusCode>=500,`response not found during CCIP fetch: ${l}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:s,errorMessage:l}}),o.push(l)}(0,_.vA)(!1,`error encountered during CCIP fetch: ${o.map(e=>JSON.stringify(e)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:o}})}_wrapBlock(e,t){return new r5(sq(e),this)}_wrapLog(e,t){return new r4(sH(e),this)}_wrapTransactionReceipt(e,t){return new r8(sW(e),this)}_wrapTransactionResponse(e,t){return new r9(sQ(e),this)}_detectNetwork(){(0,_.vA)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,_.vA)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){let e=(0,P.WZ)(await this.#ez({method:"getBlockNumber"}),"%response");return this.#eF>=0&&(this.#eF=e),e}_getAddress(e){return t3(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,k.Lo)(e)?(0,k.Lo)(e,32)?e:(0,P.nD)(e):("bigint"==typeof e&&(e=(0,P.WZ)(e,"blockTag")),"number"==typeof e)?e>=0?(0,P.nD)(e):this.#eF>=0?(0,P.nD)(this.#eF+e):this.getBlockNumber().then(t=>(0,P.nD)(t+e)):void(0,_.MR)(!1,"invalid blockTag","blockTag",e)}_getFilter(e){let t,r,n=(e.topics||[]).map(e=>null==e?null:Array.isArray(e)?dd(e.map(e=>e.toLowerCase())):e.toLowerCase()),i="blockHash"in e?e.blockHash:void 0,o=(e,t,r)=>{let o;switch(e.length){case 0:break;case 1:o=e[0];break;default:e.sort(),o=e}if(i&&(null!=t||null!=r))throw Error("invalid filter");let a={};return o&&(a.address=o),n.length&&(a.topics=n),t&&(a.fromBlock=t),r&&(a.toBlock=r),i&&(a.blockHash=i),a},a=[];if(e.address)if(Array.isArray(e.address))for(let t of e.address)a.push(this._getAddress(t));else a.push(this._getAddress(e.address));return"fromBlock"in e&&(t=this._getBlockTag(e.fromBlock)),("toBlock"in e&&(r=this._getBlockTag(e.toBlock)),a.filter(e=>"string"!=typeof e).length||null!=t&&"string"!=typeof t||null!=r&&"string"!=typeof r)?Promise.all([Promise.all(a),t,r]).then(e=>o(e[0],e[1],e[2])):o(a,t,r)}_getTransactionRequest(e){let t=r6(e),r=[];
1if(["to","from"].forEach(e=>{if(null==t[e])return;let n=t3(t[e],this);dn(n)?r.push(async function(){t[e]=await n}()):t[e]=n}),null!=t.blockTag){let e=this._getBlockTag(t.blockTag);dn(e)?r.push(async function(){t.blockTag=await e}()):t.blockTag=e}return r.length?async function(){return await Promise.all(r),t}():t}async getNetwork(){if(null==this.#eq){let e=(async()=>{try{let e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#eq===e&&(this.#eq=null),t}})();return this.#eq=e,(await e).clone()}let e=this.#eq,[t,r]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==r.chainId&&(this.#eL?(this.emit("network",r,t),this.#eq===e&&(this.#eq=Promise.resolve(r))):(0,_.vA)(!1,`network changed: ${t.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){let e=await this.getNetwork(),t=async()=>{let{_block:t,gasPrice:r,priorityFee:n}=await (0,R.k)({_block:this.#eK("latest",!1),gasPrice:(async()=>{try{let e=await this.#ez({method:"getGasPrice"});return(0,P.Ab)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{let e=await this.#ez({method:"getPriorityFee"});return(0,P.Ab)(e,"%response")}catch(e){}return null})()}),i=null,o=null,a=this._wrapBlock(t,e);return a&&a.baseFeePerGas&&(o=null!=n?n:BigInt("1000000000"),i=a.baseFeePerGas*dt+o),new r3(r,i,o)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){let e=new rq(r.url),n=await r.processFunc(t,this,e);return new r3(n.gasPrice,n.maxFeePerGas,n.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return dn(t)&&(t=await t),(0,P.Ab)(await this.#ez({method:"estimateGas",transaction:t}),"%response")}async #eY(e,t,r){(0,_.vA)(r<dr,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});let n=r6(e);try{return(0,k.c$)(await this._perform({method:"call",transaction:n,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,_.E)(e)&&e.data&&r>=0&&"latest"===t&&null!=n.to&&"0x556f1830"===(0,k.ZG)(e.data,0,4)){let i,o=e.data,a=await t3(n.to,this);try{i=dS((0,k.ZG)(e.data,4))}catch(e){(0,_.vA)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:n,info:{data:o}})}(0,_.vA)(i.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:n,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:i.errorArgs}});let s=await this.ccipReadFetch(n,i.calldata,i.urls);(0,_.vA)(null!=s,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:n,info:{data:e.data,errorArgs:i.errorArgs}});let d={to:a,data:(0,k.xW)([i.selector,db([s,i.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:d});try{let e=await this.#eY(d,t,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},d),result:e}),e}catch(e){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},d),error:e}),e}}throw e}}async #eZ(e){let{value:t}=await (0,R.k)({network:this.getNetwork(),value:e});return t}async call(e){let{tx:t,blockTag:r}=await (0,R.k)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#eZ(this.#eY(t,r,e.enableCcipRead?0:-1))}async #eX(e,t,r){let n=this._getAddress(t),i=this._getBlockTag(r);return("string"!=typeof n||"string"!=typeof i)&&([n,i]=await Promise.all([n,i])),await this.#eZ(this.#ez(Object.assign(e,{address:n,blockTag:i})))}async getBalance(e,t){return(0,P.Ab)(await this.#eX({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,P.WZ)(await this.#eX({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,k.c$)(await this.#eX({method:"getCode"},e,t))}async getStorage(e,t,r){let n=(0,P.Ab)(t,"position");return(0,k.c$)(await this.#eX({method:"getStorage",position:n},e,r))}async broadcastTransaction(e){let{blockNumber:t,hash:r,network:n}=await (0,R.k)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=sA.from(e);if(i.hash!==r)throw Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,n).replaceableTransaction(t)}async #eK(e,t){if((0,k.Lo)(e,32))return await this.#ez({method:"getBlock",blockHash:e,includeTransactions:t});let r=this._getBlockTag(e);return"string"!=typeof r&&(r=await r),await this.#ez({method:"getBlock",blockTag:r,includeTransactions:t})}async getBlock(e,t){let{network:r,params:n}=await (0,R.k)({network:this.getNetwork(),params:this.#eK(e,!!t)});return null==n?null:this._wrapBlock(n,r)}async getTransaction(e){let{network:t,params:r}=await (0,R.k)({network:this.getNetwork(),params:this.#ez({method:"getTransaction",hash:e})});return null==r?null:this._wrapTransactionResponse(r,t)}async getTransactionReceipt(e){let{network:t,params:r}=await (0,R.k)({network:this.getNetwork(),params:this.#ez({method:"getTransactionReceipt",hash:e})});if(null==r)return null;if(null==r.gasPrice&&null==r.effectiveGasPrice){let t=await this.#ez({method:"getTransaction",hash:e});if(null==t)throw Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(r,t)}async getTransactionResult(e){let{result:t}=await (0,R.k)({network:this.getNetwork(),result:this.#ez({method:"getTransactionResult",hash:e})});return null==t?null:(0,k.c$)(t)}async getLogs(e){let t=this._getFilter(e);dn(t)&&(t=await t);let{network:r,params:n}=await (0,R.k)({network:this.getNetwork(),params:this.#ez({method:"getLogs",filter:t})});return n.map(e=>this._wrapLog(e,r))}_getProvider(e){(0,_.vA)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await sB.fromName(this,e)}async getAvatar(e){let t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){let t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){let t=iZ((e=eU(e)).substring(2).toLowerCase()+".addr.reverse");try{let r=await sB.getEnsAddress(this),n=new nJ(r,["function resolver(bytes32) view returns (address)"],this),i=await n.resolver(t);if(null==i||i===rQ)return null;let o=new nJ(i,["function name(bytes32) view returns (string)"],this),a=await o.name(t);if(await this.resolveName(a)!==e)return null;return a}catch(e){if((0,_.bJ)(e,"BAD_DATA")&&"0x"===e.value||(0,_.bJ)(e,"CALL_EXCEPTION"))return null;throw e}}async waitForTransaction(e,t,r){let n=null!=t?t:1;return 0===n?this.getTransactionReceipt(e):new Promise(async(t,i)=>{let o=null,a=async r=>{try{let i=await this.getTransactionReceipt(e);
1if(null!=i&&r-i.blockNumber+1>=n){t(i),o&&(clearTimeout(o),o=null);return}}catch(e){console.log("EEE",e)}this.once("block",a)};null!=r&&(o=setTimeout(()=>{null!=o&&(o=null,this.off("block",a),i((0,_.xz)("timeout","TIMEOUT",{reason:"timeout"})))},r)),a(await this.getBlockNumber())})}async waitForBlock(e){(0,_.vA)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){let t=this.#eQ.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#eQ.delete(e))}_setTimeout(e,t){null==t&&(t=0);let r=this.#eW++,n=()=>{this.#eQ.delete(r),e()};if(this.paused)this.#eQ.set(r,{timer:null,func:n,time:t});else{let e=setTimeout(n,t);this.#eQ.set(r,{timer:e,func:n,time:dc()})}return r}_forEachSubscriber(e){for(let t of this.#eJ.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new da(e.type);case"block":{let e=new s5(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new s8(this,e.type);case"event":return new de(this,e.filter);case"transaction":return new s7(this,e.hash);case"orphan":return new s9(this,e.filter)}throw Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(let r of this.#eJ.values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=t,r.started&&t.start(),null!=this.#eH&&t.pause(this.#eH);break}}async #e$(e,t){let r=await dl(e,this);return"event"===r.type&&t&&t.length>0&&!0===t[0].removed&&(r=await dl({orphan:"drop-log",log:t[0]},this)),this.#eJ.get(r.tag)||null}async #e0(e){let t=await dl(e,this),r=t.tag,n=this.#eJ.get(r);if(!n){let e=this._getSubscriber(t);n={subscriber:e,tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#eJ.set(r,n)}return n}async on(e,t){let r=await this.#e0(e);return r.listeners.push({listener:t,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#eH&&r.subscriber.pause(this.#eH)),this}async once(e,t){let r=await this.#e0(e);return r.listeners.push({listener:t,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#eH&&r.subscriber.pause(this.#eH)),this}async emit(e,...t){let r=await this.#e$(e,t);if(!r||0===r.listeners.length)return!1;let n=r.listeners.length;return r.listeners=r.listeners.filter(({listener:r,once:n})=>{let i=new nn(this,n?null:r,e);try{r.call(this,...t,i)}catch(e){}return!n}),0===r.listeners.length&&(r.started&&r.subscriber.stop(),this.#eJ.delete(r.tag)),n>0}async listenerCount(e){if(e){let t=await this.#e$(e);return t?t.listeners.length:0}let t=0;for(let{listeners:e}of this.#eJ.values())t+=e.length;return t}async listeners(e){if(e){let t=await this.#e$(e);return t?t.listeners.map(({listener:e})=>e):[]}let t=[];for(let{listeners:e}of this.#eJ.values())t=t.concat(e.map(({listener:e})=>e));return t}async off(e,t){let r=await this.#e$(e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return t&&0!==r.listeners.length||(r.started&&r.subscriber.stop(),this.#eJ.delete(r.tag)),this}async removeAllListeners(e){if(e){let{tag:t,started:r,subscriber:n}=await this.#e0(e);r&&n.stop(),this.#eJ.delete(t)}else for(let[e,{started:t,subscriber:r}]of this.#eJ)t&&r.stop(),this.#eJ.delete(e);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#eV}destroy(){for(let e of(this.removeAllListeners(),this.#eQ.keys()))this._clearTimeout(e);this.#eV=!0}get paused(){return null!=this.#eH}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#eF=-1,null!=this.#eH){if(!!e==this.#eH)return;(0,_.vA)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}for(let t of(this._forEachSubscriber(t=>t.pause(e)),this.#eH=!!e,this.#eQ.values()))t.timer&&clearTimeout(t.timer),t.time=dc()-t.time}resume(){if(null!=this.#eH)for(let e of(this._forEachSubscriber(e=>e.resume()),this.#eH=null,this.#eQ.values())){let t=e.time;t<0&&(t=0),e.time=dc(),setTimeout(e.func,t)}}}function df(e,t){try{let r=dh(e,t);if(r)return e7(r)}catch(e){}return null}function dh(e,t){if("0x"===e)return null;try{let r=(0,P.WZ)((0,k.ZG)(e,t,t+32)),n=(0,P.WZ)((0,k.ZG)(e,r,r+32));return(0,k.ZG)(e,r+32,r+32+n)}catch(e){}return null}function dg(e){let t=(0,P.c4)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function dm(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}let dy=new Uint8Array([]);function db(e){let t=[],r=0;for(let n=0;n<e.length;n++)t.push(dy),r+=32;for(let n=0;n<e.length;n++){let i=(0,k.q5)(e[n]);t[n]=dg(r),t.push(dg(i.length)),t.push(dm(i)),r+=32+32*Math.ceil(i.length/32)}return(0,k.xW)(t)}let dv="0x0000000000000000000000000000000000000000000000000000000000000000";function dS(e){let t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,_.vA)((0,k.pO)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});let r=(0,k.ZG)(e,0,32);(0,_.vA)((0,k.ZG)(r,0,12)===(0,k.ZG)(dv,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,k.ZG)(r,12);try{let r=[],n=(0,P.WZ)((0,k.ZG)(e,32,64)),i=(0,P.WZ)((0,k.ZG)(e,n,n+32)),o=(0,k.ZG)(e,n+32);for(let e=0;e<i;e++){let t=df(o,32*e);if(null==t)throw Error("abort");r.push(t)}t.urls=r}catch(e){(0,_.vA)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{let r=dh(e,64);if(null==r)throw Error("abort");t.calldata=r}catch(e){(0,_.vA)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,_.vA)((0,k.ZG)(e,100,128)===(0,k.ZG)(dv,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=(0,k.ZG)(e,96,100);try{let r=dh(e,128);if(null==r)throw Error("abort");t.extraData=r}catch(e){(0,_.vA)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}
1return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(e=>t[e]),t}function dA(e,t){if(e.provider)return e.provider;(0,_.vA)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function dw(e,t){let r=r6(t);if(null!=r.to&&(r.to=t3(r.to,e)),null!=r.from){let t=r.from;r.from=Promise.all([e.getAddress(),t3(t,e)]).then(([e,t])=>((0,_.MR)(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e))}else r.from=e.getAddress();return await (0,R.k)(r)}class d_{provider;constructor(e){(0,R.n)(this,{provider:e||null})}async getNonce(e){return dA(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await dw(this,e)}async populateTransaction(e){let t=dA(this,"populateTransaction"),r=await dw(this,e);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));let n=await this.provider.getNetwork();if(null!=r.chainId){let t=(0,P.Ab)(r.chainId);(0,_.MR)(t===n.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=n.chainId;let i=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null!=r.gasPrice&&(2===r.type||i)?(0,_.MR)(!1,"eip-1559 transaction do not support gasPrice","tx",e):(0===r.type||1===r.type)&&i&&(0,_.MR)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(2===r.type||null==r.type)&&null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)r.type=2;else if(0===r.type||1===r.type){let e=await t.getFeeData();(0,_.vA)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice)}else{let e=await t.getFeeData();if(null==r.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(r.authorizationList&&r.authorizationList.length?r.type=4:r.type=2,null!=r.gasPrice){let e=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=e,r.maxPriorityFeePerGas=e}else null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?((0,_.vA)(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice),r.type=0):(0,_.vA)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(2===r.type||3===r.type||4===r.type)&&(null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return await (0,R.k)(r)}async populateAuthorization(e){let t=Object.assign({},e);return null==t.chainId&&(t.chainId=(await dA(this,"getNetwork").getNetwork()).chainId),null==t.nonce&&(t.nonce=await this.getNonce()),t}async estimateGas(e){return dA(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return dA(this,"call").call(await this.populateCall(e))}async resolveName(e){let t=dA(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){let t=dA(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;let n=sA.from(r);return await t.broadcastTransaction(await this.signTransaction(n))}authorize(e){(0,_.vA)(!1,"authorization not implemented for this signer","UNSUPPORTED_OPERATION",{operation:"authorize"})}}function dP(e){return JSON.parse(JSON.stringify(e))}class dk{#eB;#e1;#ex;#eC;#e2;#e3;constructor(e){this.#eB=e,this.#e1=null,this.#ex=this.#eN.bind(this),this.#eC=!1,this.#e2=null,this.#e3=!1}_subscribe(e){throw Error("subclasses must override this")}_emitResults(e,t){throw Error("subclasses must override this")}_recover(e){throw Error("subclasses must override this")}async #eN(e){try{null==this.#e1&&(this.#e1=this._subscribe(this.#eB));let e=null;try{e=await this.#e1}catch(e){if(!(0,_.bJ)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e){this.#e1=null,this.#eB._recoverSubscriber(this,this._recover(this.#eB));return}let t=await this.#eB.getNetwork();if(this.#e2||(this.#e2=t),this.#e2.chainId!==t.chainId)throw Error("chaid changed");if(this.#e3)return;let r=await this.#eB.send("eth_getFilterChanges",[e]);await this._emitResults(this.#eB,r)}catch(e){console.log("@TODO",e)}this.#eB.once("block",this.#ex)}#e6(){let e=this.#e1;e&&(this.#e1=null,e.then(e=>{this.#eB.destroyed||this.#eB.send("eth_uninstallFilter",[e])}))}start(){this.#eC||(this.#eC=!0,this.#eN(-2))}stop(){this.#eC&&(this.#eC=!1,this.#e3=!0,this.#e6(),this.#eB.off("block",this.#ex))}pause(e){e&&this.#e6(),this.#eB.off("block",this.#ex)}resume(){this.start()}}class dR extends dk{#e5;constructor(e,t){super(e),this.#e5=dP(t)}_recover(e){return new de(e,this.#e5)}async _subscribe(e){return await e.send("eth_newFilter",[this.#e5])}async _emitResults(e,t){for(let r of t)e.emit(this.#e5,e._wrapLog(r,e._network))}}class dO extends dk{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(let r of t)e.emit("pending",r)}}let dI="bigint,boolean,function,number,string,symbol".split(/,/g);function dB(e){if(null==e||dI.indexOf(typeof e)>=0||"function"==typeof e.getAddress)return e;if(Array.isArray(e))return e.map(dB);if("object"==typeof e)return Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),{});throw Error(`should not happen: ${e} (${typeof e})`)}function dx(e){return new Promise(t=>{setTimeout(t,e)})}function dE(e){return e?e.toLowerCase():e}function dT(e){return e&&"number"==typeof e.pollingInterval}let dN={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1048576,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class dC extends d_{address;constructor(e,t){super(e),t=eU(t),(0,R.n)(this,{address:t})}connect(e){(0,_.vA)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){let t=dB(e),r=[];if(t.from){let n=t.from;r.push((async()=>{let r=await t3(n,this.provider);(0,_.MR)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r})())}else t.from=this.address;if(null==t.gasLimit&&r.push((async()=>
1{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){let e=t.to;r.push((async()=>{t.to=await t3(e,this.provider)})())}r.length&&await Promise.all(r);let n=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(e){let t=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(e);return await new Promise((e,n)=>{let i=[1e3,100],o=0,a=async()=>{try{let n=await this.provider.getTransaction(r);if(null!=n)return void e(n.replaceableTransaction(t))}catch(e){if((0,_.bJ)(e,"CANCELLED")||(0,_.bJ)(e,"BAD_DATA")||(0,_.bJ)(e,"NETWORK_ERROR")||(0,_.bJ)(e,"UNSUPPORTED_OPERATION")){null==e.info&&(e.info={}),e.info.sendTransactionHash=r,n(e);return}if((0,_.bJ)(e,"INVALID_ARGUMENT")&&(o++,null==e.info&&(e.info={}),e.info.sendTransactionHash=r,o>10))return void n(e);this.provider.emit("error",(0,_.xz)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:e}))}this.provider._setTimeout(()=>{a()},i.pop()||4e3)};a()})}async signTransaction(e){let t=dB(e);if(t.from){let r=await t3(t.from,this.provider);(0,_.MR)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r}else t.from=this.address;let r=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[r])}async signMessage(e){let t="string"==typeof e?e8(e):e;return await this.provider.send("personal_sign",[(0,k.c$)(t),this.address.toLowerCase()])}async signTypedData(e,t,r){let n=dB(r),i=await rl.resolveNames(e,t,n,async e=>{let t=await t3(e);return(0,_.MR)(null!=t,"TypedData does not support null address","value",e),t});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(rl.getPayload(i.domain,t,i.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){let t="string"==typeof e?e8(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,k.c$)(t)])}}class dM extends dp{#c;#e4;#e8;#e9;#e7;#e2;#te;#tt(){if(this.#e9)return;let e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#e9=setTimeout(()=>{this.#e9=null;let e=this.#e8;for(this.#e8=[];e.length;){let t=[e.shift()];for(;e.length&&t.length!==this.#c.batchMaxCount;)if(t.push(e.shift()),JSON.stringify(t.map(e=>e.payload)).length>this.#c.batchMaxSize){e.unshift(t.pop());break}(async()=>{let e=1===t.length?t[0].payload:t.map(e=>e.payload);this.emit("debug",{action:"sendRpcPayload",payload:e});try{let r=await this._send(e);for(let{resolve:e,reject:n,payload:i}of(this.emit("debug",{action:"receiveRpcResult",result:r}),t)){if(this.destroyed){n((0,_.xz)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:i.method}));continue}let t=r.filter(e=>e.id===i.id)[0];if(null==t){let e=(0,_.xz)("missing response for request","BAD_DATA",{value:r,info:{payload:i}});this.emit("error",e),n(e);continue}if("error"in t){n(this.getRpcError(i,t));continue}e(t.result)}}catch(e){for(let{reject:r}of(this.emit("debug",{action:"receiveRpcError",error:e}),t))r(e)}})()}},e)}constructor(e,t){super(e,t),this.#e4=1,this.#c=Object.assign({},dN,t||{}),this.#e8=[],this.#e9=null,this.#e2=null,this.#te=null;{let e=null,t=new Promise(t=>{e=t});this.#e7={promise:t,resolve:e}}let r=this._getOption("staticNetwork");"boolean"==typeof r?((0,_.MR)(!r||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),r&&null!=e&&(this.#e2=s$.from(e))):r&&((0,_.MR)(null==e||r.matches(e),"staticNetwork MUST match network object","options",t),this.#e2=r)}_getOption(e){return this.#c[e]}get _network(){return(0,_.vA)(this.#e2,"network is not available yet","NETWORK_ERROR"),this.#e2}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,P.Ab)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){let r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}let t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){let e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;else if(this.#e2)return this.#e2}return this.#te||(this.ready?this.#te=(async()=>{try{let e=s$.from((0,P.Ab)(await this.send("eth_chainId",[])));return this.#te=null,e}catch(e){throw this.#te=null,e}})():this.#te=(async()=>{let e,t={id:this.#e4++,method:"eth_chainId",params:[],jsonrpc:"2.0"};
1this.emit("debug",{action:"sendRpcPayload",payload:t});try{e=(await this._send(t))[0],this.#te=null}catch(e){throw this.#te=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}if(this.emit("debug",{action:"receiveRpcResult",result:e}),"result"in e)return s$.from((0,P.Ab)(e.result));throw this.getRpcError(t,e)})()),await this.#te}_start(){null!=this.#e7&&null!=this.#e7.resolve&&(this.#e7.resolve(),this.#e7=null,(async()=>{for(;null==this.#e2&&!this.destroyed;)try{this.#e2=await this._detectNetwork()}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,_.xz)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await dx(1e3)}this.#tt()})())}async _waitUntilReady(){if(null!=this.#e7)return await this.#e7.promise}_getSubscriber(e){return"pending"===e.type?new dO(this):"event"===e.type?this._getOption("polling")?new de(this,e.filter):new dR(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new da("orphan"):super._getSubscriber(e)}get ready(){return null==this.#e7}getRpcTransaction(e){let t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(null==e[r])return;let n=r;"gasLimit"===r&&(n="gas"),t[n]=(0,P.nD)((0,P.Ab)(e[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{null!=e[r]&&(t[r]=(0,k.c$)(e[r]))}),e.accessList&&(t.accessList=ru(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map(e=>e.toLowerCase())),e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>{let t=rk(e);return{address:t.address,nonce:(0,P.nD)(t.nonce),chainId:(0,P.nD)(t.chainId),yParity:(0,P.nD)(t.signature.yParity),r:(0,P.nD)(t.signature.r),s:(0,P.nD)(t.signature.s)}})),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[dE(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[dE(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[dE(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[dE(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(dE):e.filter.address=dE(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){let{method:r}=e,{error:n}=t;if("eth_estimateGas"===r&&n.message){let t=n.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,_.xz)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:n}});if(t.match(/nonce/i)&&t.match(/too low/i))return(0,_.xz)("nonce has already been used","NONCE_EXPIRED",{transaction:e.params[0],info:{payload:e,error:n}})}if("eth_call"===r||"eth_estimateGas"===r){let t=dD(n),i=t0.getBuiltinCallException("eth_call"===r?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:n,payload:e},i}let i=JSON.stringify(dH(n));if("string"==typeof n.message&&n.message.match(/user denied|ethers-user-denied/i)){let t={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,_.xz)("user rejected action","ACTION_REJECTED",{action:t[r]||"unknown",reason:"rejected",info:{payload:e,error:n}})}if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){let t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,_.xz)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:n}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,_.xz)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:n}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,_.xz)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:n}});if(i.match(/only replay-protected/i))return(0,_.xz)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:t,info:{error:n}}})}let o=!!i.match(/the method .* does not exist/i);return(!o&&n&&n.details&&n.details.startsWith("Unauthorized method:")&&(o=!0),o)?(0,_.xz)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:n,payload:e}}):(0,_.xz)("could not coalesce error","UNKNOWN_ERROR",{error:n,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,_.xz)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));let r=this.#e4++,n=new Promise((n,i)=>{this.#e8.push({resolve:n,reject:i,payload:{method:e,params:t,id:r,jsonrpc:"2.0"}})});return this.#tt(),n}async getSigner(e){null==e&&(e=0);let t=this.send("eth_accounts",[]);if("number"==typeof e){let r=await t;if(e>=r.length)throw Error("no such account");return new dC(this,r[e])}let{accounts:r}=await (0,R.k)({network:this.getNetwork(),accounts:t});for(let t of(e=eU(e),r))if(eU(t)===e)return new dC(this,e);throw Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(e=>new dC(this,e))}destroy(){for(let{payload:e,reject:t}of(this.#e9&&(clearTimeout(this.#e9),this.#e9=null),this.#e8))t((0,_.xz)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#e8=[],super.destroy()}}class dU extends dM{#tr;constructor(e,t){super(e,t);let r=this._getOption("pollingInterval");null==r&&(r=dN.pollingInterval),this.#tr=r}_getSubscriber(e){let t=super._getSubscriber(e);return dT(t)&&(t.pollingInterval=this.#tr),t}get pollingInterval(){return this.#tr}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw Error("invalid interval");
1this.#tr=e,this._forEachSubscriber(e=>{dT(e)&&(e.pollingInterval=this.#tr)})}}function dD(e){if(null==e)return null;if("string"==typeof e.message&&e.message.match(/revert/i)&&(0,k.Lo)(e.data))return{message:e.message,data:e.data};if("object"==typeof e){for(let t in e){let r=dD(e[t]);if(r)return r}return null}if("string"==typeof e)try{return dD(JSON.parse(e))}catch(e){}return null}function dJ(e,t){if(null!=e){if("string"==typeof e.message&&t.push(e.message),"object"==typeof e)for(let r in e)dJ(e[r],t);if("string"==typeof e)try{return dJ(JSON.parse(e),t)}catch(e){}}}function dH(e){let t=[];return dJ(e,t),t}class dV extends dU{#j;#tn;constructor(e,t,r){let n=Object.assign({},null!=r?r:{},{batchMaxCount:1});(0,_.MR)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,n),this.#tn=null,r&&r.providerInfo&&(this.#tn=r.providerInfo),this.#j=async(t,r)=>{let n={method:t,params:r};this.emit("debug",{action:"sendEip1193Request",payload:n});try{let t=await e.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(t){let e=Error(t.message);throw e.code=t.code,e.data=t.data,e.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}get providerInfo(){return this.#tn}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,_.MR)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{let t=await this.#j(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);let t=await this.send("eth_accounts",[]);return"number"==typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter(t=>t.toLowerCase()===e).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#j("eth_requestAccounts",[])}catch(t){let e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}static async discover(e){if(null==e&&(e={}),e.provider)return new dV(e.provider);let t=e.window?e.window:"undefined"!=typeof window?window:null;if(null==t)return null;let r=e.anyProvider;if(r&&t.ethereum)return new dV(t.ethereum);if(!("addEventListener"in t&&"dispatchEvent"in t&&"removeEventListener"in t))return null;let n=e.timeout?e.timeout:300;return 0===n?null:await new Promise((i,o)=>{let a=[],s=e=>{a.push(e.detail),r&&d()},d=()=>{if(clearTimeout(l),a.length)if(e&&e.filter){let t=e.filter(a.map(e=>Object.assign({},e.info)));if(null==t)i(null);else if(t instanceof dV)i(t);else{let e=null;if(t.uuid&&(e=a.filter(e=>t.uuid===e.info.uuid)[0]),e){let{provider:t,info:r}=e;i(new dV(t,void 0,{providerInfo:r}))}else o((0,_.xz)("filter returned unknown info","UNSUPPORTED_OPERATION",{value:t}))}}else{let{provider:e,info:t}=a[0];i(new dV(e,void 0,{providerInfo:t}))}else i(null);t.removeEventListener("eip6963:announceProvider",s)},l=setTimeout(()=>{d()},n);t.addEventListener("eip6963:announceProvider",s),t.dispatchEvent(new Event("eip6963:requestProvider"))})}}},90071:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketClient=void 0;
1let n=r(27511),i=r(86498),o=r(8579),a=r(29268),s=r(86091);function d(e){throw e}function l(e){if("message"!==e.type)throw Error(`Unexcepted message type on websocket: ${e.type}`);return(0,n.parseJsonRpcResponse)(JSON.parse(e.data))}class c{constructor(e,t){this.running=!1,this.subscriptions=[],this.request=e,this.socket=t}start(e){if(this.running)throw Error("Already started. Please stop first before restarting.");this.running=!0,this.connectToClient(e),this.socket.queueRequest(JSON.stringify(this.request))}stop(){this.running=!1;let e={...this.request,method:"unsubscribe"};try{this.socket.queueRequest(JSON.stringify(e))}catch(e){if(e instanceof Error&&e.message.match(/socket has disconnected/i));else throw e}}connectToClient(e){let t=this.socket.events.map(l),r=t.filter(e=>e.id===this.request.id).subscribe({next:t=>{(0,n.isJsonRpcErrorResponse)(t)&&(this.closeSubscriptions(),e.error(JSON.stringify(t.error))),r.unsubscribe()}}),i=t.filter(e=>e.id===this.request.id).subscribe({next:t=>{(0,n.isJsonRpcErrorResponse)(t)?(this.closeSubscriptions(),e.error(JSON.stringify(t.error))):e.next(t.result)}}),o=t.subscribe({error:t=>{this.closeSubscriptions(),e.error(t)},complete:()=>{this.closeSubscriptions(),e.complete()}});this.subscriptions.push(r,i,o)}closeSubscriptions(){for(let e of this.subscriptions)e.unsubscribe();this.subscriptions=[]}}class u{constructor(e,t=d){if(this.subscriptionStreams=new Map,!(0,s.hasProtocol)(e))throw Error("Base URL is missing a protocol. Expected 'ws://' or 'wss://'.");let r=e.endsWith("/")?"websocket":"/websocket";this.url=e+r,this.socket=new i.ReconnectingSocket(this.url);let n=this.socket.events.subscribe({error:e=>{t(e),n.unsubscribe()}});this.jsonRpcResponseStream=this.socket.events.map(l),this.socket.connect()}async execute(e){let t=this.responseForRequestId(e.id);this.socket.queueRequest(JSON.stringify(e));let r=await t;if((0,n.isJsonRpcErrorResponse)(r))throw Error(JSON.stringify(r.error));return r}listen(e){if("subscribe"!==e.method)throw Error('Request method must be "subscribe" to start event listening');let t=e.params.query;if("string"!=typeof t)throw Error("request.params.query must be a string");if(!this.subscriptionStreams.has(t)){let r=new c(e,this.socket),n=a.Stream.create(r);this.subscriptionStreams.set(t,n)}return this.subscriptionStreams.get(t).filter(e=>void 0!==e.query)}async connected(){await this.socket.connectionStatus.waitFor(i.ConnectionStatus.Connected)}disconnect(){this.socket.disconnect()}async responseForRequestId(e){return(0,o.firstEvent)(this.jsonRpcResponseStream.filter(t=>t.id===e))}}t.WebsocketClient=u},90226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryClientImpl=t.QueryUpgradedConsensusStateResponse=t.QueryUpgradedConsensusStateRequest=t.QueryUpgradedClientStateResponse=t.QueryUpgradedClientStateRequest=t.QueryClientParamsResponse=t.QueryClientParamsRequest=t.QueryClientStatusResponse=t.QueryClientStatusRequest=t.QueryConsensusStateHeightsResponse=t.QueryConsensusStateHeightsRequest=t.QueryConsensusStatesResponse=t.QueryConsensusStatesRequest=t.QueryConsensusStateResponse=t.QueryConsensusStateRequest=t.QueryClientStatesResponse=t.QueryClientStatesRequest=t.QueryClientStateResponse=t.QueryClientStateRequest=t.protobufPackage=void 0;let n=r(64094),i=r(54573),o=r(22421),a=r(4696),s=r(92242);function d(){return{clientId:""}}function l(){return{clientState:void 0,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function c(){return{pagination:void 0}}function u(){return{clientStates:[],pagination:void 0}}function p(){return{clientId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0),latestHeight:!1}}function f(){return{consensusState:void 0,proof:new Uint8Array,proofHeight:o.Height.fromPartial({})}}function h(){return{clientId:"",pagination:void 0}}function g(){return{consensusStates:[],pagination:void 0}}function m(){return{clientId:"",pagination:void 0}}function y(){return{consensusStateHeights:[],pagination:void 0}}function b(){return{clientId:""}}function v(){return{status:""}}function S(){return{}}function A(){return{params:void 0}}function w(){return{}}function _(){return{upgradedClientState:void 0}}function P(){return{}}function k(){return{upgradedConsensusState:void 0}}
1t.protobufPackage="ibc.core.client.v1",t.QueryClientStateRequest={typeUrl:"/ibc.core.client.v1.QueryClientStateRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=d();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.clientId=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=d();return(0,s.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),t},fromPartial(e){let t=d();return t.clientId=e.clientId??"",t}},t.QueryClientStateResponse={typeUrl:"/ibc.core.client.v1.QueryClientStateResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.clientState&&i.Any.encode(e.clientState,t.uint32(10).fork()).ldelim(),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=l();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.clientState=i.Any.decode(r,r.uint32());break;case 2:s.proof=r.bytes();break;case 3:s.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=l();return(0,s.isSet)(e.clientState)&&(t.clientState=i.Any.fromJSON(e.clientState)),(0,s.isSet)(e.proof)&&(t.proof=(0,s.bytesFromBase64)(e.proof)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.clientState&&(t.clientState=e.clientState?i.Any.toJSON(e.clientState):void 0),void 0!==e.proof&&(t.proof=(0,s.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=l();return void 0!==e.clientState&&null!==e.clientState&&(t.clientState=i.Any.fromPartial(e.clientState)),t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryClientStatesRequest={typeUrl:"/ibc.core.client.v1.QueryClientStatesRequest",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=c();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.pagination=n.PageRequest.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=c();return(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=c();return void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryClientStatesResponse={typeUrl:"/ibc.core.client.v1.QueryClientStatesResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.clientStates)o.IdentifiedClientState.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,s=u();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:s.clientStates.push(o.IdentifiedClientState.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=u();return Array.isArray(e?.clientStates)&&(t.clientStates=e.clientStates.map(e=>o.IdentifiedClientState.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.clientStates?t.clientStates=e.clientStates.map(e=>e?o.IdentifiedClientState.toJSON(e):void 0):t.clientStates=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=u();return t.clientStates=e.clientStates?.map(e=>o.IdentifiedClientState.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryConsensusStateRequest={typeUrl:"/ibc.core.client.v1.QueryConsensusStateRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),e.revisionNumber!==BigInt(0)&&t.uint32(16).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&t.uint32(24).uint64(e.revisionHeight),!0===e.latestHeight&&t.uint32(32).bool(e.latestHeight),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=p();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.clientId=r.string();break;case 2:i.revisionNumber=r.uint64();break;case 3:i.revisionHeight=r.uint64();break;case 4:i.latestHeight=r.bool();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=p();return(0,s.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,s.isSet)(e.revisionNumber)&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),(0,s.isSet)(e.revisionHeight)&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),(0,s.isSet)(e.latestHeight)&&(t.latestHeight=!!e.latestHeight),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.revisionNumber&&(t.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),void 0!==e.revisionHeight&&(t.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),void 0!==e.latestHeight&&(t.latestHeight=e.latestHeight),t},fromPartial(e){let t=p();return t.clientId=e.clientId??"",void 0!==e.revisionNumber&&null!==e.revisionNumber&&(t.revisionNumber=BigInt(e.revisionNumber.toString())),void 0!==e.revisionHeight&&null!==e.revisionHeight&&(t.revisionHeight=BigInt(e.revisionHeight.toString())),t.latestHeight=e.latestHeight??!1,t}},t.QueryConsensusStateResponse={typeUrl:"/ibc.core.client.v1.QueryConsensusStateResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.consensusState&&i.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),0!==e.proof.length&&t.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&o.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,s=f();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:s.consensusState=i.Any.decode(r,r.uint32());break;case 2:s.proof=r.bytes();break;case 3:s.proofHeight=o.Height.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=f();return(0,s.isSet)(e.consensusState)&&(t.consensusState=i.Any.fromJSON(e.consensusState)),(0,s.isSet)(e.proof)&&(t.proof=(0,s.bytesFromBase64)(e.proof)),(0,s.isSet)(e.proofHeight)&&(t.proofHeight=o.Height.fromJSON(e.proofHeight)),t},toJSON(e){let t={};return void 0!==e.consensusState&&(t.consensusState=e.consensusState?i.Any.toJSON(e.consensusState):void 0),void 0!==e.proof&&(t.proof=(0,s.base64FromBytes)(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?o.Height.toJSON(e.proofHeight):void 0),t},fromPartial(e){let t=f();return void 0!==e.consensusState&&null!==e.consensusState&&(t.consensusState=i.Any.fromPartial(e.consensusState)),t.proof=e.proof??new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight&&(t.proofHeight=o.Height.fromPartial(e.proofHeight)),t}},t.QueryConsensusStatesRequest={typeUrl:"/ibc.core.client.v1.QueryConsensusStatesRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=h();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.clientId=r.string();break;case 2:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=h();return(0,s.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=h();return t.clientId=e.clientId??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryConsensusStatesResponse={typeUrl:"/ibc.core.client.v1.QueryConsensusStatesResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.consensusStates)o.ConsensusStateWithHeight.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,s=g();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:s.consensusStates.push(o.ConsensusStateWithHeight.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=g();return Array.isArray(e?.consensusStates)&&(t.consensusStates=e.consensusStates.map(e=>o.ConsensusStateWithHeight.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.consensusStates?t.consensusStates=e.consensusStates.map(e=>e?o.ConsensusStateWithHeight.toJSON(e):void 0):t.consensusStates=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=g();return t.consensusStates=e.consensusStates?.map(e=>o.ConsensusStateWithHeight.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryConsensusStateHeightsRequest={typeUrl:"/ibc.core.client.v1.QueryConsensusStateHeightsRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.pagination&&n.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=m();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.clientId=r.string();break;case 2:o.pagination=n.PageRequest.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=m();return(0,s.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageRequest.fromJSON(e.pagination)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.pagination&&(t.pagination=e.pagination?n.PageRequest.toJSON(e.pagination):void 0),t},fromPartial(e){let t=m();return t.clientId=e.clientId??"",void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageRequest.fromPartial(e.pagination)),t}},t.QueryConsensusStateHeightsResponse={typeUrl:"/ibc.core.client.v1.QueryConsensusStateHeightsResponse",encode(e,t=a.BinaryWriter.create()){for(let r of e.consensusStateHeights)o.Height.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),i=void 0===t?r.len:r.pos+t,s=y();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:s.consensusStateHeights.push(o.Height.decode(r,r.uint32()));break;case 2:s.pagination=n.PageResponse.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=y();return Array.isArray(e?.consensusStateHeights)&&(t.consensusStateHeights=e.consensusStateHeights.map(e=>o.Height.fromJSON(e))),(0,s.isSet)(e.pagination)&&(t.pagination=n.PageResponse.fromJSON(e.pagination)),t},toJSON(e){let t={};return e.consensusStateHeights?t.consensusStateHeights=e.consensusStateHeights.map(e=>e?o.Height.toJSON(e):void 0):t.consensusStateHeights=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.PageResponse.toJSON(e.pagination):void 0),t},fromPartial(e){let t=y();return t.consensusStateHeights=e.consensusStateHeights?.map(e=>o.Height.fromPartial(e))||[],void 0!==e.pagination&&null!==e.pagination&&(t.pagination=n.PageResponse.fromPartial(e.pagination)),t}},t.QueryClientStatusRequest={typeUrl:"/ibc.core.client.v1.QueryClientStatusRequest",encode:(e,t=a.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.clientId=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=b();return(0,s.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),t},fromPartial(e){let t=b();return t.clientId=e.clientId??"",t}},t.QueryClientStatusResponse={typeUrl:"/ibc.core.client.v1.QueryClientStatusResponse",encode:(e,t=a.BinaryWriter.create())=>(""!==e.status&&t.uint32(10).string(e.status),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=v();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.status=r.string():r.skipType(7&e)}return i},fromJSON(e){let t=v();return(0,s.isSet)(e.status)&&(t.status=String(e.status)),t},toJSON(e){let t={};return void 0!==e.status&&(t.status=e.status),t},fromPartial(e){let t=v();return t.status=e.status??"",t}},t.QueryClientParamsRequest={typeUrl:"/ibc.core.client.v1.QueryClientParamsRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>S(),toJSON:e=>({}),fromPartial:e=>S()},t.QueryClientParamsResponse={typeUrl:"/ibc.core.client.v1.QueryClientParamsResponse",encode:(e,t=a.BinaryWriter.create())=>
1(void 0!==e.params&&o.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.params=o.Params.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=A();return(0,s.isSet)(e.params)&&(t.params=o.Params.fromJSON(e.params)),t},toJSON(e){let t={};return void 0!==e.params&&(t.params=e.params?o.Params.toJSON(e.params):void 0),t},fromPartial(e){let t=A();return void 0!==e.params&&null!==e.params&&(t.params=o.Params.fromPartial(e.params)),t}},t.QueryUpgradedClientStateRequest={typeUrl:"/ibc.core.client.v1.QueryUpgradedClientStateRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>w(),toJSON:e=>({}),fromPartial:e=>w()},t.QueryUpgradedClientStateResponse={typeUrl:"/ibc.core.client.v1.QueryUpgradedClientStateResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.upgradedClientState&&i.Any.encode(e.upgradedClientState,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=_();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.upgradedClientState=i.Any.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=_();return(0,s.isSet)(e.upgradedClientState)&&(t.upgradedClientState=i.Any.fromJSON(e.upgradedClientState)),t},toJSON(e){let t={};return void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?i.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){let t=_();return void 0!==e.upgradedClientState&&null!==e.upgradedClientState&&(t.upgradedClientState=i.Any.fromPartial(e.upgradedClientState)),t}},t.QueryUpgradedConsensusStateRequest={typeUrl:"/ibc.core.client.v1.QueryUpgradedConsensusStateRequest",encode:(e,t=a.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=P();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return i},fromJSON:e=>P(),toJSON:e=>({}),fromPartial:e=>P()},t.QueryUpgradedConsensusStateResponse={typeUrl:"/ibc.core.client.v1.QueryUpgradedConsensusStateResponse",encode:(e,t=a.BinaryWriter.create())=>(void 0!==e.upgradedConsensusState&&i.Any.encode(e.upgradedConsensusState,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof a.BinaryReader?e:new a.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=k();for(;r.pos<n;){let e=r.uint32();e>>>3==1?o.upgradedConsensusState=i.Any.decode(r,r.uint32()):r.skipType(7&e)}return o},fromJSON(e){let t=k();return(0,s.isSet)(e.upgradedConsensusState)&&(t.upgradedConsensusState=i.Any.fromJSON(e.upgradedConsensusState)),t},toJSON(e){let t={};return void 0!==e.upgradedConsensusState&&(t.upgradedConsensusState=e.upgradedConsensusState?i.Any.toJSON(e.upgradedConsensusState):void 0),t},fromPartial(e){let t=k();return void 0!==e.upgradedConsensusState&&null!==e.upgradedConsensusState&&(t.upgradedConsensusState=i.Any.fromPartial(e.upgradedConsensusState)),t}};class R{constructor(e){this.rpc=e,this.ClientState=this.ClientState.bind(this),this.ClientStates=this.ClientStates.bind(this),this.ConsensusState=this.ConsensusState.bind(this),this.ConsensusStates=this.ConsensusStates.bind(this),this.ConsensusStateHeights=this.ConsensusStateHeights.bind(this),this.ClientStatus=this.ClientStatus.bind(this),this.ClientParams=this.ClientParams.bind(this),this.UpgradedClientState=this.UpgradedClientState.bind(this),this.UpgradedConsensusState=this.UpgradedConsensusState.bind(this)}ClientState(e){let r=t.QueryClientStateRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientState",r).then(e=>t.QueryClientStateResponse.decode(new a.BinaryReader(e)))}ClientStates(e={pagination:n.PageRequest.fromPartial({})}){let r=t.QueryClientStatesRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientStates",r).then(e=>t.QueryClientStatesResponse.decode(new a.BinaryReader(e)))}ConsensusState(e){let r=t.QueryConsensusStateRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusState",r).then(e=>t.QueryConsensusStateResponse.decode(new a.BinaryReader(e)))}ConsensusStates(e){let r=t.QueryConsensusStatesRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusStates",r).then(e=>t.QueryConsensusStatesResponse.decode(new a.BinaryReader(e)))}ConsensusStateHeights(e){let r=t.QueryConsensusStateHeightsRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusStateHeights",r).then(e=>t.QueryConsensusStateHeightsResponse.decode(new a.BinaryReader(e)))}ClientStatus(e){let r=t.QueryClientStatusRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientStatus",r).then(e=>t.QueryClientStatusResponse.decode(new a.BinaryReader(e)))}
1ClientParams(e={}){let r=t.QueryClientParamsRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientParams",r).then(e=>t.QueryClientParamsResponse.decode(new a.BinaryReader(e)))}UpgradedClientState(e={}){let r=t.QueryUpgradedClientStateRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","UpgradedClientState",r).then(e=>t.QueryUpgradedClientStateResponse.decode(new a.BinaryReader(e)))}UpgradedConsensusState(e={}){let r=t.QueryUpgradedConsensusStateRequest.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Query","UpgradedConsensusState",r).then(e=>t.QueryUpgradedConsensusStateResponse.decode(new a.BinaryReader(e)))}}t.QueryClientImpl=R},90318:function(e,t,r){"use strict";var n=r(40459),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SocketWrapper=void 0;let o=i(r(73999));function a(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}class s{constructor(e,t,r,n,i,o=1e4){this.closed=!1,this.connected=new Promise((e,t)=>{this.connectedResolver=e,this.connectedRejecter=t}),this.url=e,this.messageHandler=t,this.errorHandler=r,this.openHandler=n,this.closeHandler=i,this.timeout=o}connect(){let e=new o.default(this.url);e.onerror=e=>{this.clearTimeout(),this.errorHandler&&this.errorHandler(e)},e.onmessage=e=>{this.messageHandler({type:e.type,data:e.data})},e.onopen=e=>{this.clearTimeout(),this.connectedResolver(),this.openHandler&&this.openHandler()},e.onclose=e=>{this.closed=!0,this.closeHandler&&this.closeHandler(e)};let t=Date.now();this.timeoutId=setTimeout(()=>{e.onmessage=()=>0,e.onerror=()=>0,e.onopen=()=>0,e.onclose=()=>0,e.close(),this.socket=void 0;let r=Math.floor(Date.now()-t);this.connectedRejecter(`Connection attempt timed out after ${r} ms`)},this.timeout),this.socket=e}disconnect(){if(!this.socket)throw Error("Socket undefined. This must be called after connecting.");switch(this.clearTimeout(),this.socket.readyState){case o.default.OPEN:this.socket.close(1e3);break;case o.default.CLOSED:break;case o.default.CONNECTING:this.socket.onopen=()=>0,this.socket.onclose=()=>0,this.socket.onerror=()=>0,this.socket.onmessage=()=>0,this.socket=void 0,this.closeHandler&&this.closeHandler({wasClean:!1,code:4001});break;case o.default.CLOSING:break;default:throw Error(`Unknown readyState: ${this.socket.readyState}`)}}async send(e){return new Promise((t,r)=>{if(!this.socket)throw Error("Socket undefined. This must be called after connecting.");if(this.closed)throw Error("Socket was closed, so no data can be sent anymore.");if(this.socket.readyState!==o.default.OPEN)throw Error("Websocket is not open");a()?this.socket.send(e,e=>e?r(e):t()):(this.socket.send(e),t())})}clearTimeout(){if(!this.timeoutId)throw Error("Timeout ID not set. This should not happen and usually means connect() was not called.");clearTimeout(this.timeoutId)}}t.SocketWrapper=s},90326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},91231:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.VoteType=t.broadcastTxCommitSuccess=t.broadcastTxSyncSuccess=void 0,t.broadcastTxSyncSuccess=function(e){return 0===e.code},t.broadcastTxCommitSuccess=function(e){return 0===e.checkTx.code&&!!e.deliverTx&&0===e.deliverTx.code},function(e){e[e.PreVote=1]="PreVote",e[e.PreCommit=2]="PreCommit"}(r=t.VoteType||(t.VoteType={}))},91336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Responses=t.Params=void 0;var n=r(19154);Object.defineProperty(t,"Params",{enumerable:!0,get:function(){return n.Params}});var i=r(54028);Object.defineProperty(t,"Responses",{enumerable:!0,get:function(){return i.Responses}})},91372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}
1),t.SimpleValidator=t.Validator=t.ValidatorSet=t.protobufPackage=void 0;let n=r(49378),i=r(4696),o=r(92242);function a(){return{validators:[],proposer:void 0,totalVotingPower:BigInt(0)}}function s(){return{address:new Uint8Array,pubKey:n.PublicKey.fromPartial({}),votingPower:BigInt(0),proposerPriority:BigInt(0)}}function d(){return{pubKey:void 0,votingPower:BigInt(0)}}t.protobufPackage="tendermint.types",t.ValidatorSet={typeUrl:"/tendermint.types.ValidatorSet",encode(e,r=i.BinaryWriter.create()){for(let n of e.validators)t.Validator.encode(n,r.uint32(10).fork()).ldelim();return void 0!==e.proposer&&t.Validator.encode(e.proposer,r.uint32(18).fork()).ldelim(),e.totalVotingPower!==BigInt(0)&&r.uint32(24).int64(e.totalVotingPower),r},decode(e,r){let n=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===r?n.len:n.pos+r,s=a();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:s.validators.push(t.Validator.decode(n,n.uint32()));break;case 2:s.proposer=t.Validator.decode(n,n.uint32());break;case 3:s.totalVotingPower=n.int64();break;default:n.skipType(7&e)}}return s},fromJSON(e){let r=a();return Array.isArray(e?.validators)&&(r.validators=e.validators.map(e=>t.Validator.fromJSON(e))),(0,o.isSet)(e.proposer)&&(r.proposer=t.Validator.fromJSON(e.proposer)),(0,o.isSet)(e.totalVotingPower)&&(r.totalVotingPower=BigInt(e.totalVotingPower.toString())),r},toJSON(e){let r={};return e.validators?r.validators=e.validators.map(e=>e?t.Validator.toJSON(e):void 0):r.validators=[],void 0!==e.proposer&&(r.proposer=e.proposer?t.Validator.toJSON(e.proposer):void 0),void 0!==e.totalVotingPower&&(r.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),r},fromPartial(e){let r=a();return r.validators=e.validators?.map(e=>t.Validator.fromPartial(e))||[],void 0!==e.proposer&&null!==e.proposer&&(r.proposer=t.Validator.fromPartial(e.proposer)),void 0!==e.totalVotingPower&&null!==e.totalVotingPower&&(r.totalVotingPower=BigInt(e.totalVotingPower.toString())),r}},t.Validator={typeUrl:"/tendermint.types.Validator",encode:(e,t=i.BinaryWriter.create())=>(0!==e.address.length&&t.uint32(10).bytes(e.address),void 0!==e.pubKey&&n.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.votingPower!==BigInt(0)&&t.uint32(24).int64(e.votingPower),e.proposerPriority!==BigInt(0)&&t.uint32(32).int64(e.proposerPriority),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=s();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.address=r.bytes();break;case 2:a.pubKey=n.PublicKey.decode(r,r.uint32());break;case 3:a.votingPower=r.int64();break;case 4:a.proposerPriority=r.int64();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=s();return(0,o.isSet)(e.address)&&(t.address=(0,o.bytesFromBase64)(e.address)),(0,o.isSet)(e.pubKey)&&(t.pubKey=n.PublicKey.fromJSON(e.pubKey)),(0,o.isSet)(e.votingPower)&&(t.votingPower=BigInt(e.votingPower.toString())),(0,o.isSet)(e.proposerPriority)&&(t.proposerPriority=BigInt(e.proposerPriority.toString())),t},toJSON(e){let t={};return void 0!==e.address&&(t.address=(0,o.base64FromBytes)(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.pubKey&&(t.pubKey=e.pubKey?n.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.votingPower&&(t.votingPower=(e.votingPower||BigInt(0)).toString()),void 0!==e.proposerPriority&&(t.proposerPriority=(e.proposerPriority||BigInt(0)).toString()),t},fromPartial(e){let t=s();return t.address=e.address??new Uint8Array,void 0!==e.pubKey&&null!==e.pubKey&&(t.pubKey=n.PublicKey.fromPartial(e.pubKey)),void 0!==e.votingPower&&null!==e.votingPower&&(t.votingPower=BigInt(e.votingPower.toString())),void 0!==e.proposerPriority&&null!==e.proposerPriority&&(t.proposerPriority=BigInt(e.proposerPriority.toString())),t}},t.SimpleValidator={typeUrl:"/tendermint.types.SimpleValidator",encode:(e,t=i.BinaryWriter.create())=>(void 0!==e.pubKey&&n.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.votingPower!==BigInt(0)&&t.uint32(16).int64(e.votingPower),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.pubKey=n.PublicKey.decode(r,r.uint32());break;case 2:a.votingPower=r.int64();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=d();return(0,o.isSet)(e.pubKey)&&(t.pubKey=n.PublicKey.fromJSON(e.pubKey)),(0,o.isSet)(e.votingPower)&&(t.votingPower=BigInt(e.votingPower.toString())),t},toJSON(e){let t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?n.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.votingPower&&(t.votingPower=(e.votingPower||BigInt(0)).toString()),t},fromPartial(e){let t=d();return void 0!==e.pubKey&&null!==e.pubKey&&(t.pubKey=n.PublicKey.fromPartial(e.pubKey)),void 0!==e.votingPower&&null!==e.votingPower&&(t.votingPower=BigInt(e.votingPower.toString())),t}}},91419:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Tendermint34Client=t.VoteType=t.broadcastTxSyncSuccess=t.broadcastTxCommitSuccess=t.SubscriptionEventType=t.Method=void 0;var n=r(65863);Object.defineProperty(t,"Method",{enumerable:!0,get:function(){return n.Method}}),Object.defineProperty(t,"SubscriptionEventType",{enumerable:!0,get:function(){return n.SubscriptionEventType}});var i=r(80587);Object.defineProperty(t,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return i.broadcastTxCommitSuccess}}),Object.defineProperty(t,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return i.broadcastTxSyncSuccess}}),Object.defineProperty(t,"VoteType",{enumerable:!0,get:function(){return i.VoteType}});var o=r(47359);Object.defineProperty(t,"Tendermint34Client",{enumerable:!0,get:function(){return o.Tendermint34Client}})},91469:(e,t,r)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.TallyParams=t.VotingParams=t.DepositParams=t.Vote=t.TallyResult=t.Proposal=t.Deposit=t.WeightedVoteOption=t.proposalStatusToJSON=t.proposalStatusFromJSON=t.ProposalStatus=t.voteOptionToJSON=t.voteOptionFromJSON=t.VoteOption=t.protobufPackage=void 0;let o=r(91794),a=r(54573),s=r(37375),d=r(19393),l=r(4696),c=r(92242);function u(e){switch(e){case 0:case"VOTE_OPTION_UNSPECIFIED":return n.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return n.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return n.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return n.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return n.VOTE_OPTION_NO_WITH_VETO;default:return n.UNRECOGNIZED}}function p(e){switch(e){case n.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case n.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case n.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case n.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case n.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return i.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return i.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return i.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return i.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return i.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return i.PROPOSAL_STATUS_FAILED;default:return i.UNRECOGNIZED}}function h(e){switch(e){case i.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case i.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case i.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case i.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case i.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case i.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(){return{option:0,weight:""}}function m(){return{proposalId:BigInt(0),depositor:"",amount:[]}}function y(){return{id:BigInt(0),messages:[],status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0,metadata:"",title:"",summary:"",proposer:""}}function b(){return{yesCount:"",abstainCount:"",noCount:"",noWithVetoCount:""}}function v(){return{proposalId:BigInt(0),voter:"",options:[],metadata:""}}function S(){return{minDeposit:[],maxDepositPeriod:void 0}}function A(){return{votingPeriod:void 0}}function w(){return{quorum:"",threshold:"",vetoThreshold:""}}function _(){return{minDeposit:[],maxDepositPeriod:void 0,votingPeriod:void 0,quorum:"",threshold:"",vetoThreshold:"",minInitialDepositRatio:"",burnVoteQuorum:!1,burnProposalDepositPrevote:!1,burnVoteVeto:!1}}t.protobufPackage="cosmos.gov.v1",function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",e[e.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",e[e.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",e[e.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",e[e.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.VoteOption=n={})),t.voteOptionFromJSON=u,t.voteOptionToJSON=p,function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",e[e.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",e[e.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",e[e.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",e[e.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",e[e.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(t.ProposalStatus=i={})),t.proposalStatusFromJSON=f,t.proposalStatusToJSON=h,t.WeightedVoteOption={typeUrl:"/cosmos.gov.v1.WeightedVoteOption",encode:(e,t=l.BinaryWriter.create())=>(0!==e.option&&t.uint32(8).int32(e.option),""!==e.weight&&t.uint32(18).string(e.weight),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.option=r.int32();break;case 2:i.weight=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,c.isSet)(e.option)&&(t.option=u(e.option)),(0,c.isSet)(e.weight)&&(t.weight=String(e.weight)),t},toJSON(e){let t={};return void 0!==e.option&&(t.option=p(e.option)),void 0!==e.weight&&(t.weight=e.weight),t},fromPartial(e){let t=g();return t.option=e.option??0,t.weight=e.weight??"",t}},t.Deposit={typeUrl:"/cosmos.gov.v1.Deposit",encode(e,t=l.BinaryWriter.create()){for(let r of(e.proposalId!==BigInt(0)&&t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor),e.amount))o.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=m();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.proposalId=r.uint64();break;case 2:i.depositor=r.string();break;case 3:i.amount.push(o.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=m();return(0,c.isSet)(e.proposalId)&&(t.proposalId=BigInt(e.proposalId.toString())),(0,c.isSet)(e.depositor)&&(t.depositor=String(e.depositor)),Array.isArray(e?.amount)&&(t.amount=e.amount.map(e=>o.Coin.fromJSON(e))),t},toJSON(e){let t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map(e=>e?o.Coin.toJSON(e):void 0):t.amount=[],t},fromPartial(e){let t=m();return void 0!==e.proposalId&&null!==e.proposalId&&(t.proposalId=BigInt(e.proposalId.toString())),t.depositor=e.depositor??"",t.amount=e.amount?.map(e=>o.Coin.fromPartial(e))||[],t}},t.Proposal={typeUrl:"/cosmos.gov.v1.Proposal",encode(e,r=l.BinaryWriter.create()){for(let t of(e.id!==BigInt(0)&&r.uint32(8).uint64(e.id),e.messages))a.Any.encode(t,r.uint32(18).fork()).ldelim();for(let n of(0!==e.status&&r.uint32(24).int32(e.status),void 0!==e.finalTallyResult&&t.TallyResult.encode(e.finalTallyResult,r.uint32(34).fork()).ldelim(),void 0!==e.submitTime&&s.Timestamp.encode(e.submitTime,r.uint32(42).fork()).ldelim(),void 0!==e.depositEndTime&&s.Timestamp.encode(e.depositEndTime,r.uint32(50).fork()).ldelim(),e.totalDeposit))o.Coin.encode(n,r.uint32(58).fork()).ldelim();return void 0!==e.votingStartTime&&s.Timestamp.encode(e.votingStartTime,r.uint32(66).fork()).ldelim(),void 0!==e.votingEndTime&&s.Timestamp.encode(e.votingEndTime,r.uint32(74).fork()).ldelim(),""!==e.metadata&&r.uint32(82).string(e.metadata),""!==e.title&&r.uint32(90).string(e.title),""!==e.summary&&r.uint32(98).string(e.summary),""!==e.proposer&&r.uint32(106).string(e.proposer),r},decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,d=y();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:d.id=n.uint64();break;case 2:d.messages.push(a.Any.decode(n,n.uint32()));break;case 3:d.status=n.int32();break;case 4:d.finalTallyResult=t.TallyResult.decode(n,n.uint32());break;case 5:d.submitTime=s.Timestamp.decode(n,n.uint32());break;case 6:d.depositEndTime=s.Timestamp.decode(n,n.uint32());break;case 7:d.totalDeposit.push(o.Coin.decode(n,n.uint32()));break;case 8:d.votingStartTime=s.Timestamp.decode(n,n.uint32());break;case 9:d.votingEndTime=s.Timestamp.decode(n,n.uint32());break;case 10:d.metadata=n.string();break;case 11:d.title=n.string();break;case 12:d.summary=n.string();break;case 13:d.proposer=n.string();break;default:n.skipType(7&e)}}return d},fromJSON(e){let r=y();return(0,c.isSet)(e.id)&&(r.id=BigInt(e.id.toString())),Array.isArray(e?.messages)&&(r.messages=e.messages.map(e=>a.Any.fromJSON(e))),(0,c.isSet)(e.status)&&(r.status=f(e.status)),(0,c.isSet)(e.finalTallyResult)&&(r.finalTallyResult=t.TallyResult.fromJSON(e.finalTallyResult)),(0,c.isSet)(e.submitTime)&&(r.submitTime=(0,
1c.fromJsonTimestamp)(e.submitTime)),(0,c.isSet)(e.depositEndTime)&&(r.depositEndTime=(0,c.fromJsonTimestamp)(e.depositEndTime)),Array.isArray(e?.totalDeposit)&&(r.totalDeposit=e.totalDeposit.map(e=>o.Coin.fromJSON(e))),(0,c.isSet)(e.votingStartTime)&&(r.votingStartTime=(0,c.fromJsonTimestamp)(e.votingStartTime)),(0,c.isSet)(e.votingEndTime)&&(r.votingEndTime=(0,c.fromJsonTimestamp)(e.votingEndTime)),(0,c.isSet)(e.metadata)&&(r.metadata=String(e.metadata)),(0,c.isSet)(e.title)&&(r.title=String(e.title)),(0,c.isSet)(e.summary)&&(r.summary=String(e.summary)),(0,c.isSet)(e.proposer)&&(r.proposer=String(e.proposer)),r},toJSON(e){let r={};return void 0!==e.id&&(r.id=(e.id||BigInt(0)).toString()),e.messages?r.messages=e.messages.map(e=>e?a.Any.toJSON(e):void 0):r.messages=[],void 0!==e.status&&(r.status=h(e.status)),void 0!==e.finalTallyResult&&(r.finalTallyResult=e.finalTallyResult?t.TallyResult.toJSON(e.finalTallyResult):void 0),void 0!==e.submitTime&&(r.submitTime=(0,c.fromTimestamp)(e.submitTime).toISOString()),void 0!==e.depositEndTime&&(r.depositEndTime=(0,c.fromTimestamp)(e.depositEndTime).toISOString()),e.totalDeposit?r.totalDeposit=e.totalDeposit.map(e=>e?o.Coin.toJSON(e):void 0):r.totalDeposit=[],void 0!==e.votingStartTime&&(r.votingStartTime=(0,c.fromTimestamp)(e.votingStartTime).toISOString()),void 0!==e.votingEndTime&&(r.votingEndTime=(0,c.fromTimestamp)(e.votingEndTime).toISOString()),void 0!==e.metadata&&(r.metadata=e.metadata),void 0!==e.title&&(r.title=e.title),void 0!==e.summary&&(r.summary=e.summary),void 0!==e.proposer&&(r.proposer=e.proposer),r},fromPartial(e){let r=y();return void 0!==e.id&&null!==e.id&&(r.id=BigInt(e.id.toString())),r.messages=e.messages?.map(e=>a.Any.fromPartial(e))||[],r.status=e.status??0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult&&(r.finalTallyResult=t.TallyResult.fromPartial(e.finalTallyResult)),void 0!==e.submitTime&&null!==e.submitTime&&(r.submitTime=s.Timestamp.fromPartial(e.submitTime)),void 0!==e.depositEndTime&&null!==e.depositEndTime&&(r.depositEndTime=s.Timestamp.fromPartial(e.depositEndTime)),r.totalDeposit=e.totalDeposit?.map(e=>o.Coin.fromPartial(e))||[],void 0!==e.votingStartTime&&null!==e.votingStartTime&&(r.votingStartTime=s.Timestamp.fromPartial(e.votingStartTime)),void 0!==e.votingEndTime&&null!==e.votingEndTime&&(r.votingEndTime=s.Timestamp.fromPartial(e.votingEndTime)),r.metadata=e.metadata??"",r.title=e.title??"",r.summary=e.summary??"",r.proposer=e.proposer??"",r}},t.TallyResult={typeUrl:"/cosmos.gov.v1.TallyResult",encode:(e,t=l.BinaryWriter.create())=>(""!==e.yesCount&&t.uint32(10).string(e.yesCount),""!==e.abstainCount&&t.uint32(18).string(e.abstainCount),""!==e.noCount&&t.uint32(26).string(e.noCount),""!==e.noWithVetoCount&&t.uint32(34).string(e.noWithVetoCount),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=b();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.yesCount=r.string();break;case 2:i.abstainCount=r.string();break;case 3:i.noCount=r.string();break;case 4:i.noWithVetoCount=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=b();return(0,c.isSet)(e.yesCount)&&(t.yesCount=String(e.yesCount)),(0,c.isSet)(e.abstainCount)&&(t.abstainCount=String(e.abstainCount)),(0,c.isSet)(e.noCount)&&(t.noCount=String(e.noCount)),(0,c.isSet)(e.noWithVetoCount)&&(t.noWithVetoCount=String(e.noWithVetoCount)),t},toJSON(e){let t={};return void 0!==e.yesCount&&(t.yesCount=e.yesCount),void 0!==e.abstainCount&&(t.abstainCount=e.abstainCount),void 0!==e.noCount&&(t.noCount=e.noCount),void 0!==e.noWithVetoCount&&(t.noWithVetoCount=e.noWithVetoCount),t},fromPartial(e){let t=b();return t.yesCount=e.yesCount??"",t.abstainCount=e.abstainCount??"",t.noCount=e.noCount??"",t.noWithVetoCount=e.noWithVetoCount??"",t}},t.Vote={typeUrl:"/cosmos.gov.v1.Vote",encode(e,r=l.BinaryWriter.create()){for(let n of(e.proposalId!==BigInt(0)&&r.uint32(8).uint64(e.proposalId),""!==e.voter&&r.uint32(18).string(e.voter),e.options))t.WeightedVoteOption.encode(n,r.uint32(34).fork()).ldelim();return""!==e.metadata&&r.uint32(42).string(e.metadata),r},decode(e,r){let n=e instanceof l.BinaryReader?e:new l.BinaryReader(e),i=void 0===r?n.len:n.pos+r,o=v();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.proposalId=n.uint64();break;case 2:o.voter=n.string();break;case 4:o.options.push(t.WeightedVoteOption.decode(n,n.uint32()));break;case 5:o.metadata=n.string();break;default:n.skipType(7&e)}}return o},fromJSON(e){let r=v();return(0,c.isSet)(e.proposalId)&&(r.proposalId=BigInt(e.proposalId.toString())),(0,c.isSet)(e.voter)&&(r.voter=String(e.voter)),Array.isArray(e?.options)&&(r.options=e.options.map(e=>t.WeightedVoteOption.fromJSON(e))),(0,c.isSet)(e.metadata)&&(r.metadata=String(e.metadata)),r},toJSON(e){let r={};return void 0!==e.proposalId&&(r.proposalId=(e.proposalId||BigInt(0)).toString()),void 0!==e.voter&&(r.voter=e.voter),e.options?r.options=e.options.map(e=>e?t.WeightedVoteOption.toJSON(e):void 0):r.options=[],void 0!==e.metadata&&(r.metadata=e.metadata),r},fromPartial(e){let r=v();return void 0!==e.proposalId&&null!==e.proposalId&&(r.proposalId=BigInt(e.proposalId.toString())),r.voter=e.voter??"",r.options=e.options?.map(e=>t.WeightedVoteOption.fromPartial(e))||[],r.metadata=e.metadata??"",r}},t.DepositParams={typeUrl:"/cosmos.gov.v1.DepositParams",encode(e,t=l.BinaryWriter.create()){for(let r of e.minDeposit)o.Coin.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.maxDepositPeriod&&d.Duration.encode(e.maxDepositPeriod,t.uint32(18).fork()).ldelim(),t},decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=S();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.minDeposit.push(o.Coin.decode(r,r.uint32()));break;case 2:i.maxDepositPeriod=d.Duration.decode(r,r.uint32());break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=S();return Array.isArray(e?.minDeposit)&&(t.minDeposit=e.minDeposit.map(e=>
1o.Coin.fromJSON(e))),(0,c.isSet)(e.maxDepositPeriod)&&(t.maxDepositPeriod=d.Duration.fromJSON(e.maxDepositPeriod)),t},toJSON(e){let t={};return e.minDeposit?t.minDeposit=e.minDeposit.map(e=>e?o.Coin.toJSON(e):void 0):t.minDeposit=[],void 0!==e.maxDepositPeriod&&(t.maxDepositPeriod=e.maxDepositPeriod?d.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial(e){let t=S();return t.minDeposit=e.minDeposit?.map(e=>o.Coin.fromPartial(e))||[],void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod&&(t.maxDepositPeriod=d.Duration.fromPartial(e.maxDepositPeriod)),t}},t.VotingParams={typeUrl:"/cosmos.gov.v1.VotingParams",encode:(e,t=l.BinaryWriter.create())=>(void 0!==e.votingPeriod&&d.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=A();for(;r.pos<n;){let e=r.uint32();e>>>3==1?i.votingPeriod=d.Duration.decode(r,r.uint32()):r.skipType(7&e)}return i},fromJSON(e){let t=A();return(0,c.isSet)(e.votingPeriod)&&(t.votingPeriod=d.Duration.fromJSON(e.votingPeriod)),t},toJSON(e){let t={};return void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?d.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial(e){let t=A();return void 0!==e.votingPeriod&&null!==e.votingPeriod&&(t.votingPeriod=d.Duration.fromPartial(e.votingPeriod)),t}},t.TallyParams={typeUrl:"/cosmos.gov.v1.TallyParams",encode:(e,t=l.BinaryWriter.create())=>(""!==e.quorum&&t.uint32(10).string(e.quorum),""!==e.threshold&&t.uint32(18).string(e.threshold),""!==e.vetoThreshold&&t.uint32(26).string(e.vetoThreshold),t),decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=w();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.quorum=r.string();break;case 2:i.threshold=r.string();break;case 3:i.vetoThreshold=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=w();return(0,c.isSet)(e.quorum)&&(t.quorum=String(e.quorum)),(0,c.isSet)(e.threshold)&&(t.threshold=String(e.threshold)),(0,c.isSet)(e.vetoThreshold)&&(t.vetoThreshold=String(e.vetoThreshold)),t},toJSON(e){let t={};return void 0!==e.quorum&&(t.quorum=e.quorum),void 0!==e.threshold&&(t.threshold=e.threshold),void 0!==e.vetoThreshold&&(t.vetoThreshold=e.vetoThreshold),t},fromPartial(e){let t=w();return t.quorum=e.quorum??"",t.threshold=e.threshold??"",t.vetoThreshold=e.vetoThreshold??"",t}},t.Params={typeUrl:"/cosmos.gov.v1.Params",encode(e,t=l.BinaryWriter.create()){for(let r of e.minDeposit)o.Coin.encode(r,t.uint32(10).fork()).ldelim();return void 0!==e.maxDepositPeriod&&d.Duration.encode(e.maxDepositPeriod,t.uint32(18).fork()).ldelim(),void 0!==e.votingPeriod&&d.Duration.encode(e.votingPeriod,t.uint32(26).fork()).ldelim(),""!==e.quorum&&t.uint32(34).string(e.quorum),""!==e.threshold&&t.uint32(42).string(e.threshold),""!==e.vetoThreshold&&t.uint32(50).string(e.vetoThreshold),""!==e.minInitialDepositRatio&&t.uint32(58).string(e.minInitialDepositRatio),!0===e.burnVoteQuorum&&t.uint32(104).bool(e.burnVoteQuorum),!0===e.burnProposalDepositPrevote&&t.uint32(112).bool(e.burnProposalDepositPrevote),!0===e.burnVoteVeto&&t.uint32(120).bool(e.burnVoteVeto),t},decode(e,t){let r=e instanceof l.BinaryReader?e:new l.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=_();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.minDeposit.push(o.Coin.decode(r,r.uint32()));break;case 2:i.maxDepositPeriod=d.Duration.decode(r,r.uint32());break;case 3:i.votingPeriod=d.Duration.decode(r,r.uint32());break;case 4:i.quorum=r.string();break;case 5:i.threshold=r.string();break;case 6:i.vetoThreshold=r.string();break;case 7:i.minInitialDepositRatio=r.string();break;case 13:i.burnVoteQuorum=r.bool();break;case 14:i.burnProposalDepositPrevote=r.bool();break;case 15:i.burnVoteVeto=r.bool();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=_();return Array.isArray(e?.minDeposit)&&(t.minDeposit=e.minDeposit.map(e=>o.Coin.fromJSON(e))),(0,c.isSet)(e.maxDepositPeriod)&&(t.maxDepositPeriod=d.Duration.fromJSON(e.maxDepositPeriod)),(0,c.isSet)(e.votingPeriod)&&(t.votingPeriod=d.Duration.fromJSON(e.votingPeriod)),(0,c.isSet)(e.quorum)&&(t.quorum=String(e.quorum)),(0,c.isSet)(e.threshold)&&(t.threshold=String(e.threshold)),(0,c.isSet)(e.vetoThreshold)&&(t.vetoThreshold=String(e.vetoThreshold)),(0,c.isSet)(e.minInitialDepositRatio)&&(t.minInitialDepositRatio=String(e.minInitialDepositRatio)),(0,c.isSet)(e.burnVoteQuorum)&&(t.burnVoteQuorum=!!e.burnVoteQuorum),(0,c.isSet)(e.burnProposalDepositPrevote)&&(t.burnProposalDepositPrevote=!!e.burnProposalDepositPrevote),(0,c.isSet)(e.burnVoteVeto)&&(t.burnVoteVeto=!!e.burnVoteVeto),t},toJSON(e){let t={};return e.minDeposit?t.minDeposit=e.minDeposit.map(e=>e?o.Coin.toJSON(e):void 0):t.minDeposit=[],void 0!==e.maxDepositPeriod&&(t.maxDepositPeriod=e.maxDepositPeriod?d.Duration.toJSON(e.maxDepositPeriod):void 0),void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?d.Duration.toJSON(e.votingPeriod):void 0),void 0!==e.quorum&&(t.quorum=e.quorum),void 0!==e.threshold&&(t.threshold=e.threshold),void 0!==e.vetoThreshold&&(t.vetoThreshold=e.vetoThreshold),void 0!==e.minInitialDepositRatio&&(t.minInitialDepositRatio=e.minInitialDepositRatio),void 0!==e.burnVoteQuorum&&(t.burnVoteQuorum=e.burnVoteQuorum),void 0!==e.burnProposalDepositPrevote&&(t.burnProposalDepositPrevote=e.burnProposalDepositPrevote),void 0!==e.burnVoteVeto&&(t.burnVoteVeto=e.burnVoteVeto),t},fromPartial(e){let t=_();return t.minDeposit=e.minDeposit?.map(e=>o.Coin.fromPartial(e))||[],void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod&&(t.maxDepositPeriod=d.Duration.fromPartial(e.maxDepositPeriod)),void 0!==e.votingPeriod&&null!==e.votingPeriod&&(t.votingPeriod=d.Duration.fromPartial(e.votingPeriod)),t.quorum=e.quorum??"",t.threshold=e.threshold??"",t.vetoThreshold=e.vetoThreshold??"",t.minInitialDepositRatio=e.minInitialDepositRatio??"",t.burnVoteQuorum=e.burnVoteQuorum??!1,t.burnProposalDepositPrevote=e.burnProposalDepositPrevote??!1,t.burnVoteVeto=e.burnVoteVeto??!1,t}}},91534:(e,t,r)=>{"use strict";
vendor: 4,817 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.setupSlashingExtension=void 0;let n=r(86587),i=r(51324);t.setupSlashingExtension=function(e){let t=(0,i.createProtobufRpcClient)(e),r=new n.QueryClientImpl(t);return{slashing:{signingInfo:async e=>await r.SigningInfo({consAddress:e}),signingInfos:async e=>await r.SigningInfos({pagination:(0,i.createPagination)(e)}),params:async()=>await r.Params({})}}}},91697:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(52661).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function d(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,a=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,c=r;c<s;c+=n)l=d(e,c,c+n,t),this.imuln(i),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l);if(0!==a){var u=1;for(l=d(e,c,e.length,t),c=0;c<a;c++)u*=t;this.imuln(u),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,c=["","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],p=[0,0,0x2000000,0x290d741,0x1000000,
vendor: 4,560 bytes, line 1
10x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function f(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,d=a/0x4000000|0;r.words[0]=s;for(var l=1;l<n;l++){for(var c=d>>>26,u=0x3ffffff&d,p=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=p;f++){var h=l-f|0;c+=(a=(i=0|e.words[h])*(o=0|t.words[f])+u)/0x4000000|0,u=0x3ffffff&a}r.words[l]=0|u,d=0|c}return 0!==d?r.words[l]=0|d:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],d=((s<<i|o)&0xffffff).toString(16);o=s>>>24-i&0xffffff,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?c[6-d.length]+d+r:d+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=u[e],f=p[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(f).toString(e);r=(h=h.idivn(f)).isZero()?g+r:c[l-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==l),this.toArrayLike(l,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var d="le"===t,l=new e(s),c=this.clone();if(d){for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),l[o]=i;for(;o<s;o++)l[o]=0}else{for(o=0;o<s-a;o++)l[o]=0;for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),l[s-o-1]=i}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 30,337 bytes, line 1
1n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,i,o,a=e.words,s=t.words,d=r.words,l=0,c=0|a[0],u=8191&c,p=c>>>13,f=0|a[1],h=8191&f,g=f>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],S=8191&v,A=v>>>13,w=0|a[4],_=8191&w,P=w>>>13,k=0|a[5],R=8191&k,O=k>>>13,I=0|a[6],B=8191&I,x=I>>>13,E=0|a[7],T=8191&E,N=E>>>13,C=0|a[8],M=8191&C,U=C>>>13,D=0|a[9],J=8191&D,H=D>>>13,V=0|s[0],q=8191&V,L=V>>>13,j=0|s[1],F=8191&j,W=j>>>13,Q=0|s[2],G=8191&Q,z=Q>>>13,K=0|s[3],Y=8191&K,Z=K>>>13,X=0|s[4],$=8191&X,ee=X>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ed=8191&es,el=es>>>13,ec=0|s[8],eu=8191&ec,ep=ec>>>13,ef=0|s[9],eh=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(u,q);var em=(l+n|0)+((8191&(i=(i=Math.imul(u,L))+Math.imul(p,q)|0))<<13)|0;l=((o=Math.imul(p,L))+(i>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(h,q),i=(i=Math.imul(h,L))+Math.imul(g,q)|0,o=Math.imul(g,L),n=n+Math.imul(u,F)|0;var ey=(l+n|0)+((8191&(i=(i=i+Math.imul(u,W)|0)+Math.imul(p,F)|0))<<13)|0;l=((o=o+Math.imul(p,W)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(y,q),i=(i=Math.imul(y,L))+Math.imul(b,q)|0,o=Math.imul(b,L),n=n+Math.imul(h,F)|0,i=(i=i+Math.imul(h,W)|0)+Math.imul(g,F)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(u,G)|0;var eb=(l+n|0)+((8191&(i=(i=i+Math.imul(u,z)|0)+Math.imul(p,G)|0))<<13)|0;l=((o=o+Math.imul(p,z)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(S,q),i=(i=Math.imul(S,L))+Math.imul(A,q)|0,o=Math.imul(A,L),n=n+Math.imul(y,F)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,F)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(h,G)|0,i=(i=i+Math.imul(h,z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,z)|0,n=n+Math.imul(u,Y)|0;var ev=(l+n|0)+((8191&(i=(i=i+Math.imul(u,Z)|0)+Math.imul(p,Y)|0))<<13)|0;l=((o=o+Math.imul(p,Z)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(_,q),i=(i=Math.imul(_,L))+Math.imul(P,q)|0,o=Math.imul(P,L),n=n+Math.imul(S,F)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(A,F)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,z)|0,n=n+Math.imul(h,Y)|0,i=(i=i+Math.imul(h,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0,n=n+Math.imul(u,$)|0;var eS=(l+n|0)+((8191&(i=(i=i+Math.imul(u,ee)|0)+Math.imul(p,$)|0))<<13)|0;l=((o=o+Math.imul(p,ee)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(R,q),i=(i=Math.imul(R,L))+Math.imul(O,q)|0,o=Math.imul(O,L),n=n+Math.imul(_,F)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,z)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,z)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(h,$)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(u,er)|0;var eA=(l+n|0)+((8191&(i=(i=i+Math.imul(u,en)|0)+Math.imul(p,er)|0))<<13)|0;l=((o=o+Math.imul(p,en)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(B,q),i=(i=Math.imul(B,L))+Math.imul(x,q)|0,o=Math.imul(x,L),n=n+Math.imul(R,F)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(O,F)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,z)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,z)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(h,er)|0,i=(i=i+Math.imul(h,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(u,eo)|0;var ew=(l+n|0)+((8191&(i=(i=i+Math.imul(u,ea)|0)+Math.imul(p,eo)|0))<<13)|0;l=((o=o+Math.imul(p,ea)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(T,q),i=(i=Math.imul(T,L))+Math.imul(N,q)|0,o=Math.imul(N,L),n=n+Math.imul(B,F)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(x,F)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,z)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,z)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(h,eo)|0,i=(i=i+Math.imul(h,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(u,ed)|0;var e_=(l+n|0)+((8191&(i=(i=i+Math.imul(u,el)|0)+Math.imul(p,ed)|0))<<13)|0;l=((o=o+Math.imul(p,el)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(M,q),i=(i=Math.imul(M,L))+Math.imul(U,q)|0,o=Math.imul(U,L),n=n+Math.imul(T,F)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,z)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,z)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(h,ed)|0,i=(i=i+Math.imul(h,el)|0)+Math.imul(g,ed)|0,o=o+Math.imul(g,el)|0,n=n+Math.imul(u,eu)|0;var eP=(l+n|0)+((8191&(i=(i=i+Math.imul(u,ep)|0)+Math.imul(p,eu)|0))<<13)|0;l=((o=o+Math.imul(p,ep)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(J,q),i=(i=Math.imul(J,L))+Math.imul(H,q)|0,o=Math.imul(H,L),n=n+Math.imul(M,F)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(U,F)|0,o=o+Math.imul(U,W)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,z)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,z)|0,n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(S,eo)|0,i=(i=i+Math.imul(S,ea)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,ea)|0,n=n+Math.imul(y,ed)|0,i=(i=i+Math.imul(y,el)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,el)|0,n=n+Math.imul(h,eu)|0,i=(i=i+Math.imul(h,ep)|0)+Math.imul(g,eu)|0,o=o+Math.imul(g,ep)|0,n=n+Math.imul(u,eh)|0;var ek=(l+n|0)+((8191&(i=(i=i+Math.imul(u,eg)|0)+Math.imul(p,eh)|0))<<13)|0;l=((o=o+Math.imul(p,eg)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(J,F),i=(i=Math.imul(J,W))+Math.imul(H,F)|0,o=Math.imul(H,W),n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,z)|0)+Math.imul(U,G)|0,o=o+Math.imul(U,z)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(O,er)|0,o=o+Math.imul(O,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(S,ed)|0,i=(i=i+Math.imul(S,el)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,el)|0,n=n+Math.imul(y,eu)|0,i=(i=i+Math.imul(y,ep)|0)+Math.imul(b,eu)|0,o=o+Math.imul(b,ep)|0,n=n+Math.imul(h,eh)|0;var eR=(l+n|0)+((8191&(i=(i=i+Math.imul(h,eg)|0)+Math.imul(g,eh)|0))<<13)|0;l=((o=o+Math.imul(g,eg)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(J,G),i=(i=Math.imul(J,z))+Math.imul(H,G)|0,o=Math.imul(H,z),n=n+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(U,Y)|0,o=o+Math.imul(U,Z)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(B,er)|0,i=(i=i+Math.imul(B,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(O,eo)|0,o=o+Math.imul(O,ea)|0,n=n+Math.imul(_,ed)|0,i=(i=i+Math.imul(_,el)|0)+Math.imul(P,ed)|0,o=o+Math.imul(P,el)|0,n=n+Math.imul(S,eu)|0,i=(i=i+Math.imul(S,ep)|0)+Math.imul(A,eu)|0,o=o+Math.imul(A,ep)|0,n=n+Math.imul(y,eh)|0;var eO=(l+n|0)+((8191&(i=(i=i+Math.imul(y,eg)|0)+Math.imul(b,eh)|0))<<13)|0;l=((o=o+Math.imul(b,eg)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(J,Y),i=(i=Math.imul(J,Z))+Math.imul(H,Y)|0,o=Math.imul(H,Z),n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(U,$)|0,o=o+Math.imul(U,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(N,er)|0,o=o+Math.imul(N,en)|0,n=n+Math.imul(B,eo)|0,i=(i=i+Math.imul(B,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(O,ed)|0,o=o+Math.imul(O,el)|0,n=n+Math.imul(_,eu)|0,i=(i=i+Math.imul(_,ep)|0)+Math.imul(P,eu)|0,o=o+Math.imul(P,ep)|0,n=n+Math.imul(S,eh)|0;var eI=(l+n|0)+((8191&(i=(i=i+Math.imul(S,eg)|0)+Math.imul(A,eh)|0))<<13)|0;l=((o=o+Math.imul(A,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(J,$),i=(i=Math.imul(J,ee))+Math.imul(H,$)|0,o=Math.imul(H,ee),n=n+Math.imul(M,er)|0,i=(i=i+Math.imul(M,en)|0)+Math.imul(U,er)|0,o=o+Math.imul(U,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(N,eo)|0,o=o+Math.imul(N,ea)|0,n=n+Math.imul(B,ed)|0,i=(i=i+Math.imul(B,el)|0)+Math.imul(x,ed)|0,o=o+Math.imul(x,el)|0,n=n+Math.imul(R,eu)|0,i=(i=i+Math.imul(R,ep)|0)+Math.imul(O,eu)|0,o=o+Math.imul(O,ep)|0,n=n+Math.imul(_,eh)|0;var eB=(l+n|0)+((8191&(i=(i=i+Math.imul(_,eg)|0)+Math.imul(P,eh)|0))<<13)|0;l=((o=o+Math.imul(P,eg)|0)+(i>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,n=Math.imul(J,er),i=(i=Math.imul(J,en))+Math.imul(H,er)|0,o=Math.imul(H,en),n=n+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(U,eo)|0,o=o+Math.imul(U,ea)|0,n=n+Math.imul(T,ed)|0,i=(i=i+Math.imul(T,el)|0)+Math.imul(N,ed)|0,o=o+Math.imul(N,el)|0,n=n+Math.imul(B,eu)|0,i=(i=i+Math.imul(B,ep)|0)+Math.imul(x,eu)|0,o=o+Math.imul(x,ep)|0,n=n+Math.imul(R,eh)|0;var ex=(l+n|0)+((8191&(i=(i=i+Math.imul(R,eg)|0)+Math.imul(O,eh)|0))<<13)|0;l=((o=o+Math.imul(O,eg)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(J,eo),i=(i=Math.imul(J,ea))+Math.imul(H,eo)|0,o=Math.imul(H,ea),n=n+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,el)|0)+Math.imul(U,ed)|0,o=o+Math.imul(U,el)|0,n=n+Math.imul(T,eu)|0,i=(i=i+Math.imul(T,ep)|0)+Math.imul(N,eu)|0,o=o+Math.imul(N,ep)|0,n=n+Math.imul(B,eh)|0;var eE=(l+n|0)+((8191&(i=(i=i+Math.imul(B,eg)|0)+Math.imul(x,eh)|0))<<13)|0;l=((o=o+Math.imul(x,eg)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(J,ed),i=(i=Math.imul(J,el))+Math.imul(H,ed)|0,o=Math.imul(H,el),n=n+Math.imul(M,eu)|0,i=(i=i+Math.imul(M,ep)|0)+Math.imul(U,eu)|0,o=o+Math.imul(U,ep)|0,n=n+Math.imul(T,eh)|0;var eT=(l+n|0)+((8191&(i=(i=i+Math.imul(T,eg)|0)+Math.imul(N,eh)|0))<<13)|0;l=((o=o+Math.imul(N,eg)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(J,eu),i=(i=Math.imul(J,ep))+Math.imul(H,eu)|0,o=Math.imul(H,ep),n=n+Math.imul(M,eh)|0;var eN=(l+n|0)+((8191&(i=(i=i+Math.imul(M,eg)|0)+Math.imul(U,eh)|0))<<13)|0;l=((o=o+Math.imul(U,eg)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,n=Math.imul(J,eh);var eC=(l+n|0)+((8191&(i=(i=Math.imul(J,eg))+Math.imul(H,eh)|0))<<13)|0;return l=((o=Math.imul(H,eg))+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,d[0]=em,d[1]=ey,d[2]=eb,d[3]=ev,d[4]=eS,d[5]=eA,d[6]=ew,d[7]=e_,d[8]=eP,d[9]=ek,d[10]=eR,d[11]=eO,d[12]=eI,d[13]=eB,d[14]=ex,d[15]=eE,d[16]=eT,d[17]=eN,d[18]=eC,0!==l&&(d[19]=l,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=0x3ffffff&n,d=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=d;l++){var c=o-l,u=(0|e.words[c])*(0|t.words[l]),p=0x3ffffff&u;a=a+(u/0x4000000|0)|0,s=0x3ffffff&(p=p+s|0),i+=(a=a+(p>>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function y(e,t,r){return new b().mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?h(this,e,t):r<1024?m(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},b.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,d=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var u=d,p=l,f=0;f<a;f++){var h=r[c+f],g=n[c+f],m=r[c+f+a],y=n[c+f+a],b=u*m-p*y;y=u*y+p*m,m=b,r[c+f]=h+m,n[c+f]=g+y,r[c+f+a]=h-m,n[c+f+a]=g-y,f!==s&&(b=d*u-l*p,p=d*p+l*u,u=b)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},b.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),d=Array(n),l=Array(n),c=Array(n),u=Array(n),p=r.words;p.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,l,n),this.transform(a,o,s,d,n,i),this.transform(l,o,c,u,n,i);for(var f=0;f<n;f++){var h=s[f]*c[f]-d[f]*u[f];d[f]=s[f]*u[f]+d[f]*c[f],s[f]=h}return this.conjugate(s,d,n),this.transform(s,d,p,o,n,i),this.conjugate(p,o,n),this.normalize13b(p,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<0x4000000);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(0x3ffffff&i)+(0x3ffffff&t);t>>=26,t+=(i/0x4000000|0)+(o>>>26),this.words[r]=0x3ffffff&o}return 0!==t&&(this.words[r]=t,this.length++),this.length=0===e?1:this.length,this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=f(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,d=(0|this.words[t])-s<<r;this.words[t]=d|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,d=r;if(i-=a,i=Math.max(0,i),d){for(var l=0;l<a;l++)d.words[l]=this.words[l];d.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var u=0|this.words[l];this.words[l]=c<<26-o|u>>>o,c=u&s}return d&&0!==c&&(d.words[d.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),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<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var d=(0|e.words[i])*t;o-=0x3ffffff&d,s=(o>>26)-(d/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var d=i.length-a.length;if("mod"!==t){(r=new o(null)).length=d+1,r.words=Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var c=i.clone()._ishlnsubmul(a,1,d);0===c.negative&&(i=c,r&&(r.words[d]=1));for(var u=d-1;u>=0;u--){var p=(0|i.words[a.length+u])*0x4000000+(0|i.words[a.length+u-1]);for(p=Math.min(p/s|0,0x3ffffff),i._ishlnsubmul(a,p,u);0!==i.negative;)p--,i.negative=0,i._ishlnsubmul(a,1,u),i.isZero()||(i.negative^=1);r&&(r.words[u]=p)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=0x3ffffff);for(var t=0x4000000%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+0x4000000*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),d=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var p=0,f=1;(t.words[0]&f)==0&&p<26;++p,f<<=1);if(p>0)for(t.iushrn(p);p-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(u)),i.iushrn(1),a.iushrn(1);for(var h=0,g=1;(r.words[0]&g)==0&&h<26;++h,g<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||d.isOdd())&&(s.iadd(c),d.isub(u)),s.iushrn(1),d.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(d)):(r.isub(t),s.isub(i),d.isub(a))}return{a:s,b:d,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),d=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,c=1;(r.words[0]&c)==0&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(d),a.iushrn(1);for(var u=0,p=1;(i.words[0]&p)==0&&u<26;++u,p<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(d),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function S(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function R(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}S.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},S.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},S.prototype.split=function(e,t){e.iushrn(this.n,0,t)},S.prototype.imulK=function(e){return e.imul(this.k)},i(A,S),A.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&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,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,S),i(_,S),i(P,S),P.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
1r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new A;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new P;else throw Error("Unknown prime "+e);return v[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),d=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(d);)c.redIAdd(d);for(var u=this.pow(c,i),p=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),h=a;0!==f.cmp(s);){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m<h);var y=this.pow(u,new o(1).iushln(h-m-1));p=p.redMul(y),u=y.redSqr(),f=f.redMul(u),h=m}return p},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,d=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],u=l-1;u>=0;u--){var p=c>>u&1;if(a!==n[0]&&(a=this.sqr(a)),0===p&&0===s){d=0;continue}s<<=1,s|=p,(++d===r||0===i&&0===u)&&(a=this.mul(a,n[s]),d=0,s=0)}l=26}return a},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},o.mont=function(e){return new R(e)},i(R,k),R.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},R.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},R.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},R.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},R.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},91794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecProto=t.IntProto=t.DecCoin=t.Coin=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{denom:"",amount:""}}function a(){return{denom:"",amount:""}}function s(){return{int:""}}function d(){return{dec:""}}t.protobufPackage="cosmos.base.v1beta1",t.Coin={typeUrl:"/cosmos.base.v1beta1.Coin",encode:(e,t=n.BinaryWriter.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.denom=r.string();break;case 2:a.amount=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,i.isSet)(e.amount)&&(t.amount=String(e.amount)),t},toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial(e){let t=o();return t.denom=e.denom??"",t.amount=e.amount??"",t}},t.DecCoin={typeUrl:"/cosmos.base.v1beta1.DecCoin",encode:(e,t=n.BinaryWriter.create())=>(""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=a();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.denom=r.string();break;case 2:o.amount=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=a();return(0,i.isSet)(e.denom)&&(t.denom=String(e.denom)),(0,i.isSet)(e.amount)&&(t.amount=String(e.amount)),t},toJSON(e){let t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial(e){let t=a();return t.denom=e.denom??"",t.amount=e.amount??"",t}},t.IntProto={typeUrl:"/cosmos.base.v1beta1.IntProto",encode:(e,t=n.BinaryWriter.create())=>(""!==e.int&&t.uint32(10).string(e.int),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=s();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.int=r.string():r.skipType(7&e)}return o},fromJSON(e){let t=s();return(0,i.isSet)(e.int)&&(t.int=String(e.int)),t},toJSON(e){let t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial(e){let t=s();return t.int=e.int??"",t}},t.DecProto={typeUrl:"/cosmos.base.v1beta1.DecProto",encode:(e,t=n.BinaryWriter.create())=>(""!==e.dec&&t.uint32(10).string(e.dec),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=d();for(;r.pos<i;){let e=r.uint32();e>>>3==1?o.dec=r.string():r.skipType(7&e)}return o},fromJSON(e){let t=d();return(0,i.isSet)(e.dec)&&(t.dec=String(e.dec)),t},toJSON(e){let t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial(e){let t=d();return t.dec=e.dec??"",t}}},91819:e=>{"use strict";e.exports=Math.max},91936:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=t.md5=t.MD5=t.sha1=t.SHA1=void 0;let n=r(93005),i=r(14112),o=Uint32Array.from([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]),a=new Uint32Array(80);class s extends n.HashMD{constructor(){super(64,20,8,!1),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4]}get(){let{A:e,B:t,C:r,D:n,E:i}=this;return[e,t,r,n,i]}set(e,t,r,n,i){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i}process(e,t){for(let r=0;r<16;r++,t+=4)a[r]=e.getUint32(t,!1);for(let e=16;e<80;e++)a[e]=(0,i.rotl)(a[e-3]^a[e-8]^a[e-14]^a[e-16],1);let{A:r,B:o,C:s,D:d,E:l}=this;for(let e=0;e<80;e++){let t,c;e<20?(t=(0,n.Chi)(o,s,d),c=0x5a827999):e<40?(t=o^s^d,c=0x6ed9eba1):e<60?(t=(0,n.Maj)(o,s,d),c=0x8f1bbcdc):(t=o^s^d,c=0xca62c1d6);let u=(0,i.rotl)(r,5)+t+l+c+a[e]|0;l=d,d=s,s=(0,i.rotl)(o,30),o=r,r=u}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,d=d+this.D|0,l=l+this.E|0,this.set(r,o,s,d,l)}roundClean(){(0,i.clean)(a)}destroy(){this.set(0,0,0,0,0),(0,i.clean)(this.buffer)}}t.SHA1=s,t.sha1=(0,i.createHasher)(()=>new s);let d=0x100000000,l=Array.from({length:64},(e,t)=>Math.floor(d*Math.abs(Math.sin(t+1)))),c=o.slice(0,4),u=new Uint32Array(16);class p extends n.HashMD{constructor(){super(64,16,8,!0),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3]}get(){let{A:e,B:t,C:r,D:n}=this;return[e,t,r,n]}set(e,t,r,n){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t,!0);let{A:r,B:o,C:a,D:s}=this;for(let e=0;e<64;e++){let t,d,c;e<16?(t=(0,n.Chi)(o,a,s),d=e,c=[7,12,17,22]):e<32?(t=(0,n.Chi)(s,o,a),d=(5*e+1)%16,c=[5,9,14,20]):e<48?(t=o^a^s,d=(3*e+5)%16,c=[4,11,16,23]):(t=a^(o|~s),d=7*e%16,c=[6,10,15,21]),t=t+r+l[e]+u[d],r=s,s=a,a=o,o+=(0,i.rotl)(t,c[e%4])}r=r+this.A|0,o=o+this.B|0,a=a+this.C|0,s=s+this.D|0,this.set(r,o,a,s)}roundClean(){(0,i.clean)(u)}destroy(){this.set(0,0,0,0),(0,i.clean)(this.buffer)}}t.MD5=p,t.md5=(0,i.createHasher)(()=>new p);let f=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),h=Uint8Array.from(Array(16).fill(0).map((e,t)=>t)),g=h.map(e=>(9*e+5)%16),m=(()=>{let e=[[h],[g]];for(let t=0;t<4;t++)for(let r of e)r.push(r[t].map(e=>f[e]));return e})(),y=m[0],b=m[1],v=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),S=y.map((e,t)=>e.map(e=>v[t][e])),A=b.map((e,t)=>e.map(e=>v[t][e])),w=Uint32Array.from([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),_=Uint32Array.from([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]);function P(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let k=new Uint32Array(16);class R extends n.HashMD{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:r,h3:n,h4:i}=this;return[e,t,r,n,i]}set(e,t,r,n,i){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|i}process(e,t){for(let r=0;r<16;r++,t+=4)k[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,o=0|this.h1,a=o,s=0|this.h2,d=s,l=0|this.h3,c=l,u=0|this.h4,p=u;for(let e=0;e<5;e++){let t=4-e,f=w[e],h=_[e],g=y[e],m=b[e],v=S[e],R=A[e];for(let t=0;t<16;t++){let n=(0,i.rotl)(r+P(e,o,s,l)+k[g[t]]+f,v[t])+u|0;r=u,u=l,l=0|(0,i.rotl)(s,10),s=o,o=n}for(let e=0;e<16;e++){let r=(0,i.rotl)(n+P(t,a,d,c)+k[m[e]]+h,R[e])+p|0;n=p,p=c,c=0|(0,i.rotl)(d,10),d=a,a=r}}this.set(this.h1+s+c|0,this.h2+l+p|0,this.h3+u+n|0,this.h4+r+a|0,this.h0+o+d|0)}roundClean(){(0,i.clean)(k)}destroy(){this.destroyed=!0,(0,i.clean)(this.buffer),this.set(0,0,0,0,0)}}t.RIPEMD160=R,t.ripemd160=(0,i.createHasher)(()=>new R)},92071:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIbcAminoConverters=t.isAminoMsgTransfer=void 0;let n=r(32715),i=r(16750);t.isAminoMsgTransfer=function(e){return"cosmos-sdk/MsgTransfer"===e.type},t.createIbcAminoConverters=function(){return{"/ibc.applications.transfer.v1.MsgTransfer":{aminoType:"cosmos-sdk/MsgTransfer",toAmino:({sourcePort:e,sourceChannel:t,token:r,sender:i,receiver:o,timeoutHeight:a,timeoutTimestamp:s,memo:d})=>
1({source_port:e,source_channel:t,token:r,sender:i,receiver:o,timeout_height:a?{revision_height:(0,n.omitDefault)(a.revisionHeight)?.toString(),revision_number:(0,n.omitDefault)(a.revisionNumber)?.toString()}:{},timeout_timestamp:(0,n.omitDefault)(s)?.toString(),memo:(0,n.omitDefault)(d)}),fromAmino:({source_port:e,source_channel:t,token:r,sender:n,receiver:o,timeout_height:a,timeout_timestamp:s,memo:d})=>i.MsgTransfer.fromPartial({sourcePort:e,sourceChannel:t,token:r,sender:n,receiver:o,timeoutHeight:a?{revisionHeight:BigInt(a.revision_height||"0"),revisionNumber:BigInt(a.revision_number||"0")}:void 0,timeoutTimestamp:BigInt(s||"0"),memo:d??""})}}}},92242:(e,t,r)=>{"use strict";var n=r(60996).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.fromJsonTimestamp=t.fromTimestamp=t.toTimestamp=t.setPaginationParams=t.isObject=t.isSet=t.fromDuration=t.toDuration=t.omitDefault=t.base64FromBytes=t.bytesFromBase64=void 0;var i=(()=>{if(void 0!==i)return i;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw"Unable to locate global object"})();let o=i.atob||(e=>i.Buffer.from(e,"base64").toString("binary"));t.bytesFromBase64=function(e){let t=o(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r};let a=i.btoa||(e=>i.Buffer.from(e,"binary").toString("base64"));function s(e){return null!=e}function d(e){return{seconds:c(e.getTime()/1e3),nanos:e.getTime()%1e3*1e6}}t.base64FromBytes=function(e){let t=[];return e.forEach(e=>{t.push(String.fromCharCode(e))}),a(t.join(""))},t.omitDefault=function(e){if("string"==typeof e)return""===e?void 0:e;if("number"==typeof e)return 0===e?void 0:e;if("bigint"==typeof e)return e===BigInt(0)?void 0:e;throw Error(`Got unsupported type ${typeof e}`)},t.toDuration=function(e){return{seconds:BigInt(Math.floor(parseInt(e)/1e9)),nanos:parseInt(e)%1e9}},t.fromDuration=function(e){return(1e9*parseInt(e.seconds.toString())+e.nanos).toString()},t.isSet=s,t.isObject=function(e){return"object"==typeof e&&null!==e},t.setPaginationParams=(e,t)=>(t&&(void 0!==t?.countTotal&&(e.params["pagination.count_total"]=t.countTotal),void 0!==t?.key&&(e.params["pagination.key"]=n.from(t.key).toString("base64")),void 0!==t?.limit&&(e.params["pagination.limit"]=t.limit.toString()),void 0!==t?.offset&&(e.params["pagination.offset"]=t.offset.toString()),void 0!==t?.reverse&&(e.params["pagination.reverse"]=t.reverse)),e),t.toTimestamp=d,t.fromTimestamp=function(e){let t=1e3*Number(e.seconds);return new Date(t+=e.nanos/1e6)};let l=e=>({seconds:s(e.seconds)?BigInt(e.seconds.toString()):BigInt(0),nanos:s(e.nanos)?Number(e.nanos):0});function c(e){return BigInt(Math.trunc(e))}t.fromJsonTimestamp=function(e){return e instanceof Date?d(e):"string"==typeof e?d(new Date(e)):l(e)}},92566:(e,t,r)=>{"use strict";var n=r(7735),i=r(71923),o=r(43152),a=r(26926),s=o(),d=function(){return s};n(d,{getPolyfill:o,implementation:i,shim:a}),e.exports=d},92982:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashBlock=t.hashTx=void 0;let n=r(97470),i=r(20865);function o(e){if(e<1)throw Error("Cannot split an empty tree");let t=2**Math.floor(Math.log2(e));return t<e?t:t/2}function a(e){let t=new n.Sha256(Uint8Array.from([0]));return t.update(e),t.digest()}function s(e,t){let r=new n.Sha256(Uint8Array.from([1]));return r.update(e),r.update(t),r.digest()}function d(e){switch(e.length){case 0:throw Error("Cannot hash empty tree");case 1:return a(e[0]);
1default:{let t=o(e.length);return s(d(e.slice(0,t)),d(e.slice(t)))}}}t.hashTx=function(e){return(0,n.sha256)(e)},t.hashBlock=function(e){if(!e.lastBlockId)throw Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");return d([(0,i.encodeVersion)(e.version),(0,i.encodeString)(e.chainId),(0,i.encodeUvarint)(e.height),(0,i.encodeTime)(e.time),(0,i.encodeBlockId)(e.lastBlockId),(0,i.encodeBytes)(e.lastCommitHash),(0,i.encodeBytes)(e.dataHash),(0,i.encodeBytes)(e.validatorsHash),(0,i.encodeBytes)(e.nextValidatorsHash),(0,i.encodeBytes)(e.consensusHash),(0,i.encodeBytes)(e.appHash),(0,i.encodeBytes)(e.lastResultsHash),(0,i.encodeBytes)(e.evidenceHash),(0,i.encodeBytes)(e.proposerAddress)])}},93005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=i,t.Chi=o,t.Maj=a;let n=r(14112);function i(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(0xffffffff),a=Number(r>>i&o),s=Number(r&o),d=4*!!n,l=4*!n;e.setUint32(t+d,a,n),e.setUint32(t+l,s,n)}function o(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}
1class s extends n.Hash{constructor(e,t,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,n.createView)(this.buffer)}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{view:t,buffer:r,blockLen:i}=this,o=e.length;for(let a=0;a<o;){let s=Math.min(i-this.pos,o-a);if(s===i){let t=(0,n.createView)(e);for(;i<=o-a;a+=i)this.process(t,a);continue}r.set(e.subarray(a,a+s),this.pos),this.pos+=s,a+=s,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:o,isLE:a}=this,{pos:s}=this;t[s++]=128,(0,n.clean)(this.buffer.subarray(s)),this.padOffset>o-s&&(this.process(r,0),s=0);for(let e=s;e<o;e++)t[e]=0;i(r,o-8,BigInt(8*this.length),a),this.process(r,0);let d=(0,n.createView)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=l/4,u=this.get();if(c>u.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)d.setUint32(4*e,u[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.destroyed=o,e.finished=i,e.length=n,e.pos=a,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}t.HashMD=s,t.SHA256_IV=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),t.SHA224_IV=Uint32Array.from([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]),t.SHA384_IV=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),t.SHA512_IV=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179])},93178:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},93562:(e,t,r)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.CompressedNonExistenceProof=t.CompressedExistenceProof=t.CompressedBatchEntry=t.CompressedBatchProof=t.BatchEntry=t.BatchProof=t.InnerSpec=t.ProofSpec=t.InnerOp=t.LeafOp=t.CommitmentProof=t.NonExistenceProof=t.ExistenceProof=t.lengthOpToJSON=t.lengthOpFromJSON=t.LengthOp=t.hashOpToJSON=t.hashOpFromJSON=t.HashOp=t.protobufPackage=void 0;let o=r(4696),a=r(92242);function s(e){switch(e){case 0:case"NO_HASH":return n.NO_HASH;case 1:case"SHA256":return n.SHA256;case 2:case"SHA512":return n.SHA512;case 3:case"KECCAK":return n.KECCAK;case 4:case"RIPEMD160":return n.RIPEMD160;case 5:case"BITCOIN":return n.BITCOIN;case 6:case"SHA512_256":return n.SHA512_256;default:return n.UNRECOGNIZED}}function d(e){switch(e){case n.NO_HASH:return"NO_HASH";case n.SHA256:return"SHA256";case n.SHA512:return"SHA512";case n.KECCAK:return"KECCAK";case n.RIPEMD160:return"RIPEMD160";case n.BITCOIN:return"BITCOIN";case n.SHA512_256:return"SHA512_256";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){switch(e){case 0:case"NO_PREFIX":return i.NO_PREFIX;case 1:case"VAR_PROTO":return i.VAR_PROTO;case 2:case"VAR_RLP":return i.VAR_RLP;case 3:case"FIXED32_BIG":return i.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return i.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return i.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return i.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return i.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return i.REQUIRE_64_BYTES;default:return i.UNRECOGNIZED}}function c(e){switch(e){case i.NO_PREFIX:return"NO_PREFIX";case i.VAR_PROTO:return"VAR_PROTO";case i.VAR_RLP:return"VAR_RLP";case i.FIXED32_BIG:return"FIXED32_BIG";case i.FIXED32_LITTLE:return"FIXED32_LITTLE";case i.FIXED64_BIG:return"FIXED64_BIG";case i.FIXED64_LITTLE:return"FIXED64_LITTLE";case i.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case i.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function p(){return{key:new Uint8Array,left:void 0,right:void 0}}function f(){return{exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0}}function h(){return{hash:0,prehashKey:0,prehashValue:0,length:0,prefix:new Uint8Array}}function g(){return{hash:0,prefix:new Uint8Array,suffix:new Uint8Array}}function m(){return{leafSpec:void 0,innerSpec:void 0,maxDepth:0,minDepth:0}}function y(){return{childOrder:[],childSize:0,minPrefixLength:0,maxPrefixLength:0,emptyChild:new Uint8Array,hash:0}}function b(){return{entries:[]}}function v(){return{exist:void 0,nonexist:void 0}}function S(){return{entries:[],lookupInners:[]}}function A(){return{exist:void 0,nonexist:void 0}}function w(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function _(){return{key:new Uint8Array,left:void 0,right:void 0}}t.protobufPackage="cosmos.ics23.v1",function(e){e[e.NO_HASH=0]="NO_HASH",e[e.SHA256=1]="SHA256",e[e.SHA512=2]="SHA512",e[e.KECCAK=3]="KECCAK",e[e.RIPEMD160=4]="RIPEMD160",e[e.BITCOIN=5]="BITCOIN",e[e.SHA512_256=6]="SHA512_256",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n||(t.HashOp=n={})),t.hashOpFromJSON=s,t.hashOpToJSON=d,function(e){e[e.NO_PREFIX=0]="NO_PREFIX",e[e.VAR_PROTO=1]="VAR_PROTO",e[e.VAR_RLP=2]="VAR_RLP",e[e.FIXED32_BIG=3]="FIXED32_BIG",e[e.FIXED32_LITTLE=4]="FIXED32_LITTLE",e[e.FIXED64_BIG=5]="FIXED64_BIG",e[e.FIXED64_LITTLE=6]="FIXED64_LITTLE",e[e.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",e[e.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(t.LengthOp=i={})),t.lengthOpFromJSON=l,t.lengthOpToJSON=c,t.ExistenceProof={typeUrl:"/cosmos.ics23.v1.ExistenceProof",encode(e,r=o.BinaryWriter.create()){for(let n of(0!==e.key.length&&r.uint32(10).bytes(e.key),0!==e.value.length&&r.uint32(18).bytes(e.value),void 0!==e.leaf&&t.LeafOp.encode(e.leaf,r.uint32(26).fork()).ldelim(),e.path))t.InnerOp.encode(n,r.uint32(34).fork()).ldelim();return r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;case 3:a.leaf=t.LeafOp.decode(n,n.uint32());break;case 4:a.path.push(t.InnerOp.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=u();
1return(0,a.isSet)(e.key)&&(r.key=(0,a.bytesFromBase64)(e.key)),(0,a.isSet)(e.value)&&(r.value=(0,a.bytesFromBase64)(e.value)),(0,a.isSet)(e.leaf)&&(r.leaf=t.LeafOp.fromJSON(e.leaf)),Array.isArray(e?.path)&&(r.path=e.path.map(e=>t.InnerOp.fromJSON(e))),r},toJSON(e){let r={};return void 0!==e.key&&(r.key=(0,a.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(r.value=(0,a.base64FromBytes)(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.leaf&&(r.leaf=e.leaf?t.LeafOp.toJSON(e.leaf):void 0),e.path?r.path=e.path.map(e=>e?t.InnerOp.toJSON(e):void 0):r.path=[],r},fromPartial(e){let r=u();return r.key=e.key??new Uint8Array,r.value=e.value??new Uint8Array,void 0!==e.leaf&&null!==e.leaf&&(r.leaf=t.LeafOp.fromPartial(e.leaf)),r.path=e.path?.map(e=>t.InnerOp.fromPartial(e))||[],r}},t.NonExistenceProof={typeUrl:"/cosmos.ics23.v1.NonExistenceProof",encode:(e,r=o.BinaryWriter.create())=>(0!==e.key.length&&r.uint32(10).bytes(e.key),void 0!==e.left&&t.ExistenceProof.encode(e.left,r.uint32(18).fork()).ldelim(),void 0!==e.right&&t.ExistenceProof.encode(e.right,r.uint32(26).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=p();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.key=n.bytes();break;case 2:a.left=t.ExistenceProof.decode(n,n.uint32());break;case 3:a.right=t.ExistenceProof.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=p();return(0,a.isSet)(e.key)&&(r.key=(0,a.bytesFromBase64)(e.key)),(0,a.isSet)(e.left)&&(r.left=t.ExistenceProof.fromJSON(e.left)),(0,a.isSet)(e.right)&&(r.right=t.ExistenceProof.fromJSON(e.right)),r},toJSON(e){let r={};
1return void 0!==e.key&&(r.key=(0,a.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.left&&(r.left=e.left?t.ExistenceProof.toJSON(e.left):void 0),void 0!==e.right&&(r.right=e.right?t.ExistenceProof.toJSON(e.right):void 0),r},fromPartial(e){let r=p();return r.key=e.key??new Uint8Array,void 0!==e.left&&null!==e.left&&(r.left=t.ExistenceProof.fromPartial(e.left)),void 0!==e.right&&null!==e.right&&(r.right=t.ExistenceProof.fromPartial(e.right)),r}},t.CommitmentProof={typeUrl:"/cosmos.ics23.v1.CommitmentProof",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.exist&&t.ExistenceProof.encode(e.exist,r.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.NonExistenceProof.encode(e.nonexist,r.uint32(18).fork()).ldelim(),void 0!==e.batch&&t.BatchProof.encode(e.batch,r.uint32(26).fork()).ldelim(),void 0!==e.compressed&&t.CompressedBatchProof.encode(e.compressed,r.uint32(34).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.exist=t.ExistenceProof.decode(n,n.uint32());break;case 2:a.nonexist=t.NonExistenceProof.decode(n,n.uint32());break;case 3:a.batch=t.BatchProof.decode(n,n.uint32());break;case 4:a.compressed=t.CompressedBatchProof.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=f();return(0,a.isSet)(e.exist)&&(r.exist=t.ExistenceProof.fromJSON(e.exist)),(0,a.isSet)(e.nonexist)&&(r.nonexist=t.NonExistenceProof.fromJSON(e.nonexist)),(0,a.isSet)(e.batch)&&(r.batch=t.BatchProof.fromJSON(e.batch)),(0,a.isSet)(e.compressed)&&(r.compressed=t.CompressedBatchProof.fromJSON(e.compressed)),r},toJSON(e){let r={};return void 0!==e.exist&&(r.exist=e.exist?t.ExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(r.nonexist=e.nonexist?t.NonExistenceProof.toJSON(e.nonexist):void 0),void 0!==e.batch&&(r.batch=e.batch?t.BatchProof.toJSON(e.batch):void 0),void 0!==e.compressed&&(r.compressed=e.compressed?t.CompressedBatchProof.toJSON(e.compressed):void 0),r},fromPartial(e){let r=f();return void 0!==e.exist&&null!==e.exist&&(r.exist=t.ExistenceProof.fromPartial(e.exist)),void 0!==e.nonexist&&null!==e.nonexist&&(r.nonexist=t.NonExistenceProof.fromPartial(e.nonexist)),void 0!==e.batch&&null!==e.batch&&(r.batch=t.BatchProof.fromPartial(e.batch)),void 0!==e.compressed&&null!==e.compressed&&(r.compressed=t.CompressedBatchProof.fromPartial(e.compressed)),r}},t.LeafOp={typeUrl:"/cosmos.ics23.v1.LeafOp",encode:(e,t=o.BinaryWriter.create())=>(0!==e.hash&&t.uint32(8).int32(e.hash),0!==e.prehashKey&&t.uint32(16).int32(e.prehashKey),0!==e.prehashValue&&t.uint32(24).int32(e.prehashValue),0!==e.length&&t.uint32(32).int32(e.length),0!==e.prefix.length&&t.uint32(42).bytes(e.prefix),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=h();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.hash=r.int32();break;case 2:i.prehashKey=r.int32();break;case 3:i.prehashValue=r.int32();break;case 4:i.length=r.int32();break;case 5:i.prefix=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=h();return(0,a.isSet)(e.hash)&&(t.hash=s(e.hash)),(0,a.isSet)(e.prehashKey)&&(t.prehashKey=s(e.prehashKey)),(0,a.isSet)(e.prehashValue)&&(t.prehashValue=s(e.prehashValue)),(0,a.isSet)(e.length)&&(t.length=l(e.length)),(0,a.isSet)(e.prefix)&&(t.prefix=(0,a.bytesFromBase64)(e.prefix)),t},toJSON(e){let t={};return void 0!==e.hash&&(t.hash=d(e.hash)),void 0!==e.prehashKey&&(t.prehashKey=d(e.prehashKey)),void 0!==e.prehashValue&&(t.prehashValue=d(e.prehashValue)),void 0!==e.length&&(t.length=c(e.length)),void 0!==e.prefix&&(t.prefix=(0,a.base64FromBytes)(void 0!==e.prefix?e.prefix:new Uint8Array)),t},fromPartial(e){let t=h();return t.hash=e.hash??0,t.prehashKey=e.prehashKey??0,t.prehashValue=e.prehashValue??0,t.length=e.length??0,t.prefix=e.prefix??new Uint8Array,t}},t.InnerOp={typeUrl:"/cosmos.ics23.v1.InnerOp",encode:(e,t=o.BinaryWriter.create())=>(0!==e.hash&&t.uint32(8).int32(e.hash),0!==e.prefix.length&&t.uint32(18).bytes(e.prefix),0!==e.suffix.length&&t.uint32(26).bytes(e.suffix),t),decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=g();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:i.hash=r.int32();break;case 2:i.prefix=r.bytes();break;case 3:i.suffix=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=g();return(0,a.isSet)(e.hash)&&(t.hash=s(e.hash)),(0,a.isSet)(e.prefix)&&(t.prefix=(0,a.bytesFromBase64)(e.prefix)),(0,a.isSet)(e.suffix)&&(t.suffix=(0,a.bytesFromBase64)(e.suffix)),t},toJSON(e){let t={};return void 0!==e.hash&&(t.hash=d(e.hash)),void 0!==e.prefix&&(t.prefix=(0,a.base64FromBytes)(void 0!==e.prefix?e.prefix:new Uint8Array)),void 0!==e.suffix&&(t.suffix=(0,a.base64FromBytes)(void 0!==e.suffix?e.suffix:new Uint8Array)),t},fromPartial(e){let t=g();return t.hash=e.hash??0,t.prefix=e.prefix??new Uint8Array,t.suffix=e.suffix??new Uint8Array,t}},t.ProofSpec={typeUrl:"/cosmos.ics23.v1.ProofSpec",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.leafSpec&&t.LeafOp.encode(e.leafSpec,r.uint32(10).fork()).ldelim(),void 0!==e.innerSpec&&t.InnerSpec.encode(e.innerSpec,r.uint32(18).fork()).ldelim(),0!==e.maxDepth&&r.uint32(24).int32(e.maxDepth),0!==e.minDepth&&r.uint32(32).int32(e.minDepth),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=m();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.leafSpec=t.LeafOp.decode(n,n.uint32());break;case 2:a.innerSpec=t.InnerSpec.decode(n,n.uint32());break;case 3:a.maxDepth=n.int32();break;case 4:a.minDepth=n.int32();break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=m();return(0,a.isSet)(e.leafSpec)&&(r.leafSpec=t.LeafOp.fromJSON(e.leafSpec)),(0,a.isSet)(e.innerSpec)&&(r.innerSpec=t.InnerSpec.fromJSON(e.innerSpec)),(0,a.isSet)(e.maxDepth)&&(r.maxDepth=Number(e.maxDepth)),(0,a.isSet)(e.minDepth)&&(r.minDepth=Number(e.minDepth)),r},toJSON(e){let r={};return void 0!==e.leafSpec&&(r.leafSpec=e.leafSpec?t.LeafOp.toJSON(e.leafSpec):void 0),void 0!==e.innerSpec&&(r.innerSpec=e.innerSpec?t.InnerSpec.toJSON(e.innerSpec):void 0),void 0!==e.maxDepth&&(r.maxDepth=Math.round(e.maxDepth)),void 0!==e.minDepth&&(r.minDepth=Math.round(e.minDepth)),r},fromPartial(e){let r=m();return void 0!==e.leafSpec&&null!==e.leafSpec&&(r.leafSpec=t.LeafOp.fromPartial(e.leafSpec)),void 0!==e.innerSpec&&null!==e.innerSpec&&(r.innerSpec=t.InnerSpec.fromPartial(e.innerSpec)),r.maxDepth=e.maxDepth??0,r.minDepth=e.minDepth??0,r}},t.InnerSpec={typeUrl:"/cosmos.ics23.v1.InnerSpec",encode(e,t=o.BinaryWriter.create()){for(let r of(t.uint32(10).fork(),e.childOrder))t.int32(r);return t.ldelim(),0!==e.childSize&&t.uint32(16).int32(e.childSize),0!==e.minPrefixLength&&t.uint32(24).int32(e.minPrefixLength),0!==e.maxPrefixLength&&t.uint32(32).int32(e.maxPrefixLength),0!==e.emptyChild.length&&t.uint32(42).bytes(e.emptyChild),0!==e.hash&&t.uint32(48).int32(e.hash),t},decode(e,t){let r=e instanceof o.BinaryReader?e:new o.BinaryReader(e),n=void 0===t?r.len:r.pos+t,i=y();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if((7&e)==2){let e=r.uint32()+r.pos;for(;r.pos<e;)i.childOrder.push(r.int32())}else i.childOrder.push(r.int32());break;case 2:i.childSize=r.int32();break;case 3:i.minPrefixLength=r.int32();break;case 4:i.maxPrefixLength=r.int32();break;case 5:i.emptyChild=r.bytes();break;case 6:i.hash=r.int32();break;default:r.skipType(7&e)}}return i},fromJSON(e){let t=y();return Array.isArray(e?.childOrder)&&(t.childOrder=e.childOrder.map(e=>Number(e))),(0,a.isSet)(e.childSize)&&(t.childSize=Number(e.childSize)),(0,a.isSet)(e.minPrefixLength)&&(t.minPrefixLength=Number(e.minPrefixLength)),(0,a.isSet)(e.maxPrefixLength)&&(t.maxPrefixLength=Number(e.maxPrefixLength)),(0,a.isSet)(e.emptyChild)&&(t.emptyChild=(0,a.bytesFromBase64)(e.emptyChild)),(0,a.isSet)(e.hash)&&(t.hash=s(e.hash)),t},toJSON(e){let t={};return e.childOrder?t.childOrder=e.childOrder.map(e=>Math.round(e)):t.childOrder=[],void 0!==e.childSize&&(t.childSize=Math.round(e.childSize)),void 0!==e.minPrefixLength&&(t.minPrefixLength=Math.round(e.minPrefixLength)),void 0!==e.maxPrefixLength&&(t.maxPrefixLength=Math.round(e.maxPrefixLength)),void 0!==e.emptyChild&&(t.emptyChild=(0,a.base64FromBytes)(void 0!==e.emptyChild?e.emptyChild:new Uint8Array)),void 0!==e.hash&&(t.hash=d(e.hash)),t},fromPartial(e){let t=y();return t.childOrder=e.childOrder?.map(e=>e)||[],t.childSize=e.childSize??0,t.minPrefixLength=e.minPrefixLength??0,t.maxPrefixLength=e.maxPrefixLength??0,t.emptyChild=e.emptyChild??new Uint8Array,t.hash=e.hash??0,t}},t.BatchProof={typeUrl:"/cosmos.ics23.v1.BatchProof",encode(e,r=o.BinaryWriter.create()){for(let n of e.entries)t.BatchEntry.encode(n,r.uint32(10).fork()).ldelim();return r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=b();for(;n.pos<i;){let e=n.uint32();e>>>3==1?a.entries.push(t.BatchEntry.decode(n,n.uint32())):n.skipType(7&e)}return a}
1,fromJSON(e){let r=b();return Array.isArray(e?.entries)&&(r.entries=e.entries.map(e=>t.BatchEntry.fromJSON(e))),r},toJSON(e){let r={};return e.entries?r.entries=e.entries.map(e=>e?t.BatchEntry.toJSON(e):void 0):r.entries=[],r},fromPartial(e){let r=b();return r.entries=e.entries?.map(e=>t.BatchEntry.fromPartial(e))||[],r}},t.BatchEntry={typeUrl:"/cosmos.ics23.v1.BatchEntry",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.exist&&t.ExistenceProof.encode(e.exist,r.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.NonExistenceProof.encode(e.nonexist,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=v();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.exist=t.ExistenceProof.decode(n,n.uint32());break;case 2:a.nonexist=t.NonExistenceProof.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=v();return(0,a.isSet)(e.exist)&&(r.exist=t.ExistenceProof.fromJSON(e.exist)),(0,a.isSet)(e.nonexist)&&(r.nonexist=t.NonExistenceProof.fromJSON(e.nonexist)),r},toJSON(e){let r={};return void 0!==e.exist&&(r.exist=e.exist?t.ExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(r.nonexist=e.nonexist?t.NonExistenceProof.toJSON(e.nonexist):void 0),r},fromPartial(e){let r=v();return void 0!==e.exist&&null!==e.exist&&(r.exist=t.ExistenceProof.fromPartial(e.exist)),void 0!==e.nonexist&&null!==e.nonexist&&(r.nonexist=t.NonExistenceProof.fromPartial(e.nonexist)),r}},t.CompressedBatchProof={typeUrl:"/cosmos.ics23.v1.CompressedBatchProof",encode(e,r=o.BinaryWriter.create()){for(let n of e.entries)t.CompressedBatchEntry.encode(n,r.uint32(10).fork()).ldelim();for(let n of e.lookupInners)t.InnerOp.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=S();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.entries.push(t.CompressedBatchEntry.decode(n,n.uint32()));break;case 2:a.lookupInners.push(t.InnerOp.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=S();return Array.isArray(e?.entries)&&(r.entries=e.entries.map(e=>t.CompressedBatchEntry.fromJSON(e))),Array.isArray(e?.lookupInners)&&(r.lookupInners=e.lookupInners.map(e=>t.InnerOp.fromJSON(e))),r},toJSON(e){let r={};return e.entries?r.entries=e.entries.map(e=>e?t.CompressedBatchEntry.toJSON(e):void 0):r.entries=[],e.lookupInners?r.lookupInners=e.lookupInners.map(e=>e?t.InnerOp.toJSON(e):void 0):r.lookupInners=[],r},fromPartial(e){let r=S();return r.entries=e.entries?.map(e=>t.CompressedBatchEntry.fromPartial(e))||[],r.lookupInners=e.lookupInners?.map(e=>t.InnerOp.fromPartial(e))||[],r}},t.CompressedBatchEntry={typeUrl:"/cosmos.ics23.v1.CompressedBatchEntry",encode:(e,r=o.BinaryWriter.create())=>(void 0!==e.exist&&t.CompressedExistenceProof.encode(e.exist,r.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.CompressedNonExistenceProof.encode(e.nonexist,r.uint32(18).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=A();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.exist=t.CompressedExistenceProof.decode(n,n.uint32());break;case 2:a.nonexist=t.CompressedNonExistenceProof.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=A();return(0,a.isSet)(e.exist)&&(r.exist=t.CompressedExistenceProof.fromJSON(e.exist)),(0,a.isSet)(e.nonexist)&&(r.nonexist=t.CompressedNonExistenceProof.fromJSON(e.nonexist)),r},toJSON(e){let r={};return void 0!==e.exist&&(r.exist=e.exist?t.CompressedExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(r.nonexist=e.nonexist?t.CompressedNonExistenceProof.toJSON(e.nonexist):void 0),r},fromPartial(e){let r=A();return void 0!==e.exist&&null!==e.exist&&(r.exist=t.CompressedExistenceProof.fromPartial(e.exist)),void 0!==e.nonexist&&null!==e.nonexist&&(r.nonexist=t.CompressedNonExistenceProof.fromPartial(e.nonexist)),r}},t.CompressedExistenceProof={typeUrl:"/cosmos.ics23.v1.CompressedExistenceProof",encode(e,r=o.BinaryWriter.create()){for(let n of(0!==e.key.length&&r.uint32(10).bytes(e.key),0!==e.value.length&&r.uint32(18).bytes(e.value),void 0!==e.leaf&&t.LeafOp.encode(e.leaf,r.uint32(26).fork()).ldelim(),r.uint32(34).fork(),e.path))r.int32(n);return r.ldelim(),r},decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=w();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;case 3:a.leaf=t.LeafOp.decode(n,n.uint32());break;case 4:if((7&e)==2){let e=n.uint32()+n.pos;for(;n.pos<e;)a.path.push(n.int32())}else a.path.push(n.int32());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=w();
1return(0,a.isSet)(e.key)&&(r.key=(0,a.bytesFromBase64)(e.key)),(0,a.isSet)(e.value)&&(r.value=(0,a.bytesFromBase64)(e.value)),(0,a.isSet)(e.leaf)&&(r.leaf=t.LeafOp.fromJSON(e.leaf)),Array.isArray(e?.path)&&(r.path=e.path.map(e=>Number(e))),r},toJSON(e){let r={};return void 0!==e.key&&(r.key=(0,a.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(r.value=(0,a.base64FromBytes)(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.leaf&&(r.leaf=e.leaf?t.LeafOp.toJSON(e.leaf):void 0),e.path?r.path=e.path.map(e=>Math.round(e)):r.path=[],r},fromPartial(e){let r=w();return r.key=e.key??new Uint8Array,r.value=e.value??new Uint8Array,void 0!==e.leaf&&null!==e.leaf&&(r.leaf=t.LeafOp.fromPartial(e.leaf)),r.path=e.path?.map(e=>e)||[],r}},t.CompressedNonExistenceProof={typeUrl:"/cosmos.ics23.v1.CompressedNonExistenceProof",encode:(e,r=o.BinaryWriter.create())=>(0!==e.key.length&&r.uint32(10).bytes(e.key),void 0!==e.left&&t.CompressedExistenceProof.encode(e.left,r.uint32(18).fork()).ldelim(),void 0!==e.right&&t.CompressedExistenceProof.encode(e.right,r.uint32(26).fork()).ldelim(),r),decode(e,r){let n=e instanceof o.BinaryReader?e:new o.BinaryReader(e),i=void 0===r?n.len:n.pos+r,a=_();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.key=n.bytes();break;case 2:a.left=t.CompressedExistenceProof.decode(n,n.uint32());break;case 3:a.right=t.CompressedExistenceProof.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON(e){let r=_();return(0,a.isSet)(e.key)&&(r.key=(0,a.bytesFromBase64)(e.key)),(0,a.isSet)(e.left)&&(r.left=t.CompressedExistenceProof.fromJSON(e.left)),(0,a.isSet)(e.right)&&(r.right=t.CompressedExistenceProof.fromJSON(e.right)),r},toJSON(e){let r={};
1return void 0!==e.key&&(r.key=(0,a.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.left&&(r.left=e.left?t.CompressedExistenceProof.toJSON(e.left):void 0),void 0!==e.right&&(r.right=e.right?t.CompressedExistenceProof.toJSON(e.right):void 0),r},fromPartial(e){let r=_();return r.key=e.key??new Uint8Array,void 0!==e.left&&null!==e.left&&(r.left=t.CompressedExistenceProof.fromPartial(e.left)),void 0!==e.right&&null!==e.right&&(r.right=t.CompressedExistenceProof.fromPartial(e.right)),r}}},94016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProofOps=t.ProofOp=t.DominoOp=t.ValueOp=t.Proof=t.protobufPackage=void 0;let n=r(4696),i=r(92242);function o(){return{total:BigInt(0),index:BigInt(0),leafHash:new Uint8Array,aunts:[]}}function a(){return{key:new Uint8Array,proof:void 0}}function s(){return{key:"",input:"",output:""}}function d(){return{type:"",key:new Uint8Array,data:new Uint8Array}}function l(){return{ops:[]}}t.protobufPackage="tendermint.crypto",t.Proof={typeUrl:"/tendermint.crypto.Proof",encode(e,t=n.BinaryWriter.create()){for(let r of(e.total!==BigInt(0)&&t.uint32(8).int64(e.total),e.index!==BigInt(0)&&t.uint32(16).int64(e.index),0!==e.leafHash.length&&t.uint32(26).bytes(e.leafHash),e.aunts))t.uint32(34).bytes(r);return t},decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,a=o();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:a.total=r.int64();break;case 2:a.index=r.int64();break;case 3:a.leafHash=r.bytes();break;case 4:a.aunts.push(r.bytes());break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=o();return(0,i.isSet)(e.total)&&(t.total=BigInt(e.total.toString())),(0,i.isSet)(e.index)&&(t.index=BigInt(e.index.toString())),(0,i.isSet)(e.leafHash)&&(t.leafHash=(0,i.bytesFromBase64)(e.leafHash)),Array.isArray(e?.aunts)&&(t.aunts=e.aunts.map(e=>(0,i.bytesFromBase64)(e))),t},toJSON(e){let t={};return void 0!==e.total&&(t.total=(e.total||BigInt(0)).toString()),void 0!==e.index&&(t.index=(e.index||BigInt(0)).toString()),void 0!==e.leafHash&&(t.leafHash=(0,i.base64FromBytes)(void 0!==e.leafHash?e.leafHash:new Uint8Array)),e.aunts?t.aunts=e.aunts.map(e=>(0,i.base64FromBytes)(void 0!==e?e:new Uint8Array)):t.aunts=[],t},fromPartial(e){let t=o();return void 0!==e.total&&null!==e.total&&(t.total=BigInt(e.total.toString())),void 0!==e.index&&null!==e.index&&(t.index=BigInt(e.index.toString())),t.leafHash=e.leafHash??new Uint8Array,t.aunts=e.aunts?.map(e=>e)||[],t}},t.ValueOp={typeUrl:"/tendermint.crypto.ValueOp",encode:(e,r=n.BinaryWriter.create())=>(0!==e.key.length&&r.uint32(10).bytes(e.key),void 0!==e.proof&&t.Proof.encode(e.proof,r.uint32(18).fork()).ldelim(),r),decode(e,r){let i=e instanceof n.BinaryReader?e:new n.BinaryReader(e),o=void 0===r?i.len:i.pos+r,s=a();for(;i.pos<o;){let e=i.uint32();switch(e>>>3){case 1:s.key=i.bytes();break;case 2:s.proof=t.Proof.decode(i,i.uint32());break;default:i.skipType(7&e)}}return s},fromJSON(e){let r=a();return(0,i.isSet)(e.key)&&(r.key=(0,i.bytesFromBase64)(e.key)),(0,i.isSet)(e.proof)&&(r.proof=t.Proof.fromJSON(e.proof)),r},toJSON(e){let r={};
1return void 0!==e.key&&(r.key=(0,i.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.proof&&(r.proof=e.proof?t.Proof.toJSON(e.proof):void 0),r},fromPartial(e){let r=a();return r.key=e.key??new Uint8Array,void 0!==e.proof&&null!==e.proof&&(r.proof=t.Proof.fromPartial(e.proof)),r}},t.DominoOp={typeUrl:"/tendermint.crypto.DominoOp",encode:(e,t=n.BinaryWriter.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.input&&t.uint32(18).string(e.input),""!==e.output&&t.uint32(26).string(e.output),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=s();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.key=r.string();break;case 2:o.input=r.string();break;case 3:o.output=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=s();return(0,i.isSet)(e.key)&&(t.key=String(e.key)),(0,i.isSet)(e.input)&&(t.input=String(e.input)),(0,i.isSet)(e.output)&&(t.output=String(e.output)),t},toJSON(e){let t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.input&&(t.input=e.input),void 0!==e.output&&(t.output=e.output),t},fromPartial(e){let t=s();return t.key=e.key??"",t.input=e.input??"",t.output=e.output??"",t}},t.ProofOp={typeUrl:"/tendermint.crypto.ProofOp",encode:(e,t=n.BinaryWriter.create())=>(""!==e.type&&t.uint32(10).string(e.type),0!==e.key.length&&t.uint32(18).bytes(e.key),0!==e.data.length&&t.uint32(26).bytes(e.data),t),decode(e,t){let r=e instanceof n.BinaryReader?e:new n.BinaryReader(e),i=void 0===t?r.len:r.pos+t,o=d();for(;r.pos<i;){let e=r.uint32();switch(e>>>3){case 1:o.type=r.string();break;case 2:o.key=r.bytes();break;case 3:o.data=r.bytes();break;default:r.skipType(7&e)}}return o},fromJSON(e){let t=d();return(0,i.isSet)(e.type)&&(t.type=String(e.type)),(0,i.isSet)(e.key)&&(t.key=(0,i.bytesFromBase64)(e.key)),(0,i.isSet)(e.data)&&(t.data=(0,i.bytesFromBase64)(e.data)),t},toJSON(e){let t={};
1return void 0!==e.type&&(t.type=e.type),void 0!==e.key&&(t.key=(0,i.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.data&&(t.data=(0,i.base64FromBytes)(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){let t=d();return t.type=e.type??"",t.key=e.key??new Uint8Array,t.data=e.data??new Uint8Array,t}},t.ProofOps={typeUrl:"/tendermint.crypto.ProofOps",encode(e,r=n.BinaryWriter.create()){for(let n of e.ops)t.ProofOp.encode(n,r.uint32(10).fork()).ldelim();return r},decode(e,r){let i=e instanceof n.BinaryReader?e:new n.BinaryReader(e),o=void 0===r?i.len:i.pos+r,a=l();for(;i.pos<o;){let e=i.uint32();e>>>3==1?a.ops.push(t.ProofOp.decode(i,i.uint32())):i.skipType(7&e)}return a},fromJSON(e){let r=l();return Array.isArray(e?.ops)&&(r.ops=e.ops.map(e=>t.ProofOp.fromJSON(e))),r},toJSON(e){let r={};return e.ops?r.ops=e.ops.map(e=>e?t.ProofOp.toJSON(e):void 0):r.ops=[],r},fromPartial(e){let r=l();return r.ops=e.ops?.map(e=>t.ProofOp.fromPartial(e))||[],r}}},94595:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockIdFlag=t.isTendermint37Client=t.isTendermint34Client=t.isComet38Client=t.connectComet=t.Tendermint37Client=t.tendermint37=t.Tendermint34Client=t.tendermint34=t.VoteType=t.SubscriptionEventType=t.Method=t.broadcastTxSyncSuccess=t.broadcastTxCommitSuccess=t.WebsocketClient=t.HttpClient=t.HttpBatchClient=t.Comet38Client=t.comet38=t.toSeconds=t.toRfc3339WithNanoseconds=t.fromSeconds=t.fromRfc3339WithNanoseconds=t.DateTime=t.rawSecp256k1PubkeyToRawAddress=t.rawEd25519PubkeyToRawAddress=t.pubkeyToRawAddress=t.pubkeyToAddress=void 0;var a=r(84335);Object.defineProperty(t,"pubkeyToAddress",{enumerable:!0,get:function(){return a.pubkeyToAddress}}),Object.defineProperty(t,"pubkeyToRawAddress",{enumerable:!0,get:function(){return a.pubkeyToRawAddress}}),Object.defineProperty(t,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return a.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(t,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return a.rawSecp256k1PubkeyToRawAddress}});var s=r(74194);Object.defineProperty(t,"DateTime",{enumerable:!0,get:function(){return s.DateTime}}),Object.defineProperty(t,"fromRfc3339WithNanoseconds",{enumerable:!0,get:function(){return s.fromRfc3339WithNanoseconds}}),Object.defineProperty(t,"fromSeconds",{enumerable:!0,get:function(){return s.fromSeconds}}),Object.defineProperty(t,"toRfc3339WithNanoseconds",{enumerable:!0,get:function(){return s.toRfc3339WithNanoseconds}}),Object.defineProperty(t,"toSeconds",{enumerable:!0,get:function(){return s.toSeconds}}),t.comet38=o(r(79863));var d=r(79863);Object.defineProperty(t,"Comet38Client",{enumerable:!0,get:function(){return d.Comet38Client}});var l=r(151);Object.defineProperty(t,"HttpBatchClient",{enumerable:!0,get:function(){return l.HttpBatchClient}}),Object.defineProperty(t,"HttpClient",{enumerable:!0,get:function(){return l.HttpClient}}),Object.defineProperty(t,"WebsocketClient",{enumerable:!0,get:function(){return l.WebsocketClient}});var c=r(91419);Object.defineProperty(t,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return c.broadcastTxCommitSuccess}}),Object.defineProperty(t,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return c.broadcastTxSyncSuccess}}),Object.defineProperty(t,"Method",{enumerable:!0,get:function(){return c.Method}}),Object.defineProperty(t,"SubscriptionEventType",{enumerable:!0,get:function(){return c.SubscriptionEventType}}),Object.defineProperty(t,"VoteType",{enumerable:!0,get:function(){return c.VoteType}}),t.tendermint34=o(r(91419));var u=r(91419);Object.defineProperty(t,"Tendermint34Client",{enumerable:!0,get:function(){return u.Tendermint34Client}}),t.tendermint37=o(r(52254));var p=r(52254);Object.defineProperty(t,"Tendermint37Client",{enumerable:!0,get:function(){return p.Tendermint37Client}});var f=r(44044);Object.defineProperty(t,"connectComet",{enumerable:!0,get:function(){return f.connectComet}}),Object.defineProperty(t,"isComet38Client",{enumerable:!0,get:function(){return f.isComet38Client}}),Object.defineProperty(t,"isTendermint34Client",{enumerable:!0,get:function(){return f.isTendermint34Client}}),Object.defineProperty(t,"isTendermint37Client",{enumerable:!0,get:function(){return f.isTendermint37Client}});var h=r(62710);Object.defineProperty(t,"BlockIdFlag",{enumerable:!0,get:function(){return h.BlockIdFlag}})},94719:(e,t,r)=>{"use strict";var n=r(7574);e.exports=function(){return n()&&!!Symbol.toStringTag}},95163:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 39,907 bytes, line 1
1"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{u="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(8379).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function d(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),d=t;d<s;d++){var l=e.charCodeAt(d)-48;o*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,a=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,c=r;c<s;c+=n)l=d(e,c,c+n,t),this.imuln(i),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l);if(0!==a){var u=1;for(l=d(e,c,e.length,t),c=0;c<a;c++)u*=t;this.imuln(u),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var u,p=["","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],h=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],d=((s<<i|o)&0xffffff).toString(16);o=s>>>24-i&0xffffff,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?p[6-d.length]+d+r:d+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],c=h[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var g=u.modrn(c).toString(e);r=(u=u.idivn(c)).isZero()?g+r:p[l-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},u&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(u,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var g=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}function y(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,d=a/0x4000000|0;r.words[0]=s;for(var l=1;l<n;l++){for(var c=d>>>26,u=0x3ffffff&d,p=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=p;f++){var h=l-f|0;c+=(a=(i=0|e.words[h])*(o=0|t.words[f])+u)/0x4000000|0,u=0x3ffffff&a}r.words[l]=0|u,d=0|c}return 0!==d?r.words[l]=0|d:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=g(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,r){var n,i,o,a=e.words,s=t.words,d=r.words,l=0,c=0|a[0],u=8191&c,p=c>>>13,f=0|a[1],h=8191&f,g=f>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],S=8191&v,A=v>>>13,w=0|a[4],_=8191&w,P=w>>>13,k=0|a[5],R=8191&k,O=k>>>13,I=0|a[6],B=8191&I,x=I>>>13,E=0|a[7],T=8191&E,N=E>>>13,C=0|a[8],M=8191&C,U=C>>>13,D=0|a[9],J=8191&D,H=D>>>13,V=0|s[0],q=8191&V,L=V>>>13,j=0|s[1],F=8191&j,W=j>>>13,Q=0|s[2],G=8191&Q,z=Q>>>13,K=0|s[3],Y=8191&K,Z=K>>>13,X=0|s[4],$=8191&X,ee=X>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ed=8191&es,el=es>>>13,ec=0|s[8],eu=8191&ec,ep=ec>>>13,ef=0|s[9],eh=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(u,q);var em=(l+n|0)+((8191&(i=(i=Math.imul(u,L))+Math.imul(p,q)|0))<<13)|0;l=((o=Math.imul(p,L))+(i>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(h,q),i=(i=Math.imul(h,L))+Math.imul(g,q)|0,o=Math.imul(g,L),n=n+Math.imul(u,F)|0;var ey=(l+n|0)+((8191&(i=(i=i+Math.imul(u,W)|0)+Math.imul(p,F)|0))<<13)|0;l=((o=o+Math.imul(p,W)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(y,q),i=(i=Math.imul(y,L))+Math.imul(b,q)|0,o=Math.imul(b,L),n=n+Math.imul(h,F)|0,i=(i=i+Math.imul(h,W)|0)+Math.imul(g,F)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(u,G)|0;var eb=(l+n|0)+((8191&(i=(i=i+Math.imul(u,z)|0)+Math.imul(p,G)|0))<<13)|0;l=((o=o+Math.imul(p,z)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(S,q),i=(i=Math.imul(S,L))+Math.imul(A,q)|0,o=Math.imul(A,L),n=n+Math.imul(y,F)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,F)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(h,G)|0,i=(i=i+Math.imul(h,z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,z)|0,n=n+Math.imul(u,Y)|0;var ev=(l+n|0)+((8191&(i=(i=i+Math.imul(u,Z)|0)+Math.imul(p,Y)|0))<<13)|0;l=((o=o+Math.imul(p,Z)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(_,q),i=(i=Math.imul(_,L))+Math.imul(P,q)|0,o=Math.imul(P,L),n=n+Math.imul(S,F)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(A,F)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,z)|0,n=n+Math.imul(h,Y)|0,i=(i=i+Math.imul(h,Z)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0,n=n+Math.imul(u,$)|0;var eS=(l+n|0)+((8191&(i=(i=i+Math.imul(u,ee)|0)+Math.imul(p,$)|0))<<13)|0;l=((o=o+Math.imul(p,ee)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(R,q),i=(i=Math.imul(R,L))+Math.imul(O,q)|0,o=Math.imul(O,L),n=n+Math.imul(_,F)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,z)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,z)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(h,$)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(u,er)|0;var eA=(l+n|0)+((8191&(i=(i=i+Math.imul(u,en)|0)+Math.imul(p,er)|0))<<13)|0;l=((o=o+Math.imul(p,en)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(B,q),i=(i=Math.imul(B,L))+Math.imul(x,q)|0,o=Math.imul(x,L),n=n+Math.imul(R,F)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(O,F)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,z)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,z)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(h,er)|0,i=(i=i+Math.imul(h,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(u,eo)|0;var ew=(l+n|0)+((8191&(i=(i=i+Math.imul(u,ea)|0)+Math.imul(p,eo)|0))<<13)|0;l=((o=o+Math.imul(p,ea)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(T,q),i=(i=Math.imul(T,L))+Math.imul(N,q)|0,o=Math.imul(N,L),n=n+Math.imul(B,F)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(x,F)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,z)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,z)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(h,eo)|0,i=(i=i+Math.imul(h,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(u,ed)|0;var e_=(l+n|0)+((8191&(i=(i=i+Math.imul(u,el)|0)+Math.imul(p,ed)|0))<<13)|0;l=((o=o+Math.imul(p,el)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(M,q),i=(i=Math.imul(M,L))+Math.imul(U,q)|0,o=Math.imul(U,L),n=n+Math.imul(T,F)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,z)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,z)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(h,ed)|0,i=(i=i+Math.imul(h,el)|0)+Math.imul(g,ed)|0,o=o+Math.imul(g,el)|0,n=n+Math.imul(u,eu)|0;var eP=(l+n|0)+((8191&(i=(i=i+Math.imul(u,ep)|0)+Math.imul(p,eu)|0))<<13)|0;l=((o=o+Math.imul(p,ep)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(J,q),i=(i=Math.imul(J,L))+Math.imul(H,q)|0,o=Math.imul(H,L),n=n+Math.imul(M,F)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(U,F)|0,o=o+Math.imul(U,W)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,z)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,z)|0,n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(S,eo)|0,i=(i=i+Math.imul(S,ea)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,ea)|0,n=n+Math.imul(y,ed)|0,i=(i=i+Math.imul(y,el)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,el)|0,n=n+Math.imul(h,eu)|0,i=(i=i+Math.imul(h,ep)|0)+Math.imul(g,eu)|0,o=o+Math.imul(g,ep)|0,n=n+Math.imul(u,eh)|0;var ek=(l+n|0)+((8191&(i=(i=i+Math.imul(u,eg)|0)+Math.imul(p,eh)|0))<<13)|0;l=((o=o+Math.imul(p,eg)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(J,F),i=(i=Math.imul(J,W))+Math.imul(H,F)|0,o=Math.imul(H,W),n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,z)|0)+Math.imul(U,G)|0,o=o+Math.imul(U,z)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(O,er)|0,o=o+Math.imul(O,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(S,ed)|0,i=(i=i+Math.imul(S,el)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,el)|0,n=n+Math.imul(y,eu)|0,i=(i=i+Math.imul(y,ep)|0)+Math.imul(b,eu)|0,o=o+Math.imul(b,ep)|0,n=n+Math.imul(h,eh)|0;var eR=(l+n|0)+((8191&(i=(i=i+Math.imul(h,eg)|0)+Math.imul(g,eh)|0))<<13)|0;l=((o=o+Math.imul(g,eg)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(J,G),i=(i=Math.imul(J,z))+Math.imul(H,G)|0,o=Math.imul(H,z),n=n+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(U,Y)|0,o=o+Math.imul(U,Z)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(B,er)|0,i=(i=i+Math.imul(B,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(O,eo)|0,o=o+Math.imul(O,ea)|0,n=n+Math.imul(_,ed)|0,i=(i=i+Math.imul(_,el)|0)+Math.imul(P,ed)|0,o=o+Math.imul(P,el)|0,n=n+Math.imul(S,eu)|0,i=(i=i+Math.imul(S,ep)|0)+Math.imul(A,eu)|0,o=o+Math.imul(A,ep)|0,n=n+Math.imul(y,eh)|0;var eO=(l+n|0)+((8191&(i=(i=i+Math.imul(y,eg)|0)+Math.imul(b,eh)|0))<<13)|0;l=((o=o+Math.imul(b,eg)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(J,Y),i=(i=Math.imul(J,Z))+Math.imul(H,Y)|0,o=Math.imul(H,Z),n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(U,$)|0,o=o+Math.imul(U,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(N,er)|0,o=o+Math.imul(N,en)|0,n=n+Math.imul(B,eo)|0,i=(i=i+Math.imul(B,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(O,ed)|0,o=o+Math.imul(O,el)|0,n=n+Math.imul(_,eu)|0,i=(i=i+Math.imul(_,ep)|0)+Math.imul(P,eu)|0,o=o+Math.imul(P,ep)|0,n=n+Math.imul(S,eh)|0;var eI=(l+n|0)+((8191&(i=(i=i+Math.imul(S,eg)|0)+Math.imul(A,eh)|0))<<13)|0;l=((o=o+Math.imul(A,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(J,$),i=(i=Math.imul(J,ee))+Math.imul(H,$)|0,o=Math.imul(H,ee),n=n+Math.imul(M,er)|0,i=(i=i+Math.imul(M,en)|0)+Math.imul(U,er)|0,o=o+Math.imul(U,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(N,eo)|0,o=o+Math.imul(N,ea)|0,n=n+Math.imul(B,ed)|0,i=(i=i+Math.imul(B,el)|0)+Math.imul(x,ed)|0,o=o+Math.imul(x,el)|0,n=n+Math.imul(R,eu)|0,i=(i=i+Math.imul(R,ep)|0)+Math.imul(O,eu)|0,o=o+Math.imul(O,ep)|0,n=n+Math.imul(_,eh)|0;var eB=(l+n|0)+((8191&(i=(i=i+Math.imul(_,eg)|0)+Math.imul(P,eh)|0))<<13)|0;l=((o=o+Math.imul(P,eg)|0)+(i>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,n=Math.imul(J,er),i=(i=Math.imul(J,en))+Math.imul(H,er)|0,o=Math.imul(H,en),n=n+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(U,eo)|0,o=o+Math.imul(U,ea)|0,n=n+Math.imul(T,ed)|0,i=(i=i+Math.imul(T,el)|0)+Math.imul(N,ed)|0,o=o+Math.imul(N,el)|0,n=n+Math.imul(B,eu)|0,i=(i=i+Math.imul(B,ep)|0)+Math.imul(x,eu)|0,o=o+Math.imul(x,ep)|0,n=n+Math.imul(R,eh)|0;var ex=(l+n|0)+((8191&(i=(i=i+Math.imul(R,eg)|0)+Math.imul(O,eh)|0))<<13)|0;l=((o=o+Math.imul(O,eg)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(J,eo),i=(i=Math.imul(J,ea))+Math.imul(H,eo)|0,o=Math.imul(H,ea),n=n+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,el)|0)+Math.imul(U,ed)|0,o=o+Math.imul(U,el)|0,n=n+Math.imul(T,eu)|0,i=(i=i+Math.imul(T,ep)|0)+Math.imul(N,eu)|0,o=o+Math.imul(N,ep)|0,n=n+Math.imul(B,eh)|0;var eE=(l+n|0)+((8191&(i=(i=i+Math.imul(B,eg)|0)+Math.imul(x,eh)|0))<<13)|0;l=((o=o+Math.imul(x,eg)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(J,ed),i=(i=Math.imul(J,el))+Math.imul(H,ed)|0,o=Math.imul(H,el),n=n+Math.imul(M,eu)|0,i=(i=i+Math.imul(M,ep)|0)+Math.imul(U,eu)|0,o=o+Math.imul(U,ep)|0,n=n+Math.imul(T,eh)|0;var eT=(l+n|0)+((8191&(i=(i=i+Math.imul(T,eg)|0)+Math.imul(N,eh)|0))<<13)|0;l=((o=o+Math.imul(N,eg)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(J,eu),i=(i=Math.imul(J,ep))+Math.imul(H,eu)|0,o=Math.imul(H,ep),n=n+Math.imul(M,eh)|0;var eN=(l+n|0)+((8191&(i=(i=i+Math.imul(M,eg)|0)+Math.imul(U,eh)|0))<<13)|0;l=((o=o+Math.imul(U,eg)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,n=Math.imul(J,eh);var eC=(l+n|0)+((8191&(i=(i=Math.imul(J,eg))+Math.imul(H,eh)|0))<<13)|0;return l=((o=Math.imul(H,eg))+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,d[0]=em,d[1]=ey,d[2]=eb,d[3]=ev,d[4]=eS,d[5]=eA,d[6]=ew,d[7]=e_,d[8]=eP,d[9]=ek,d[10]=eR,d[11]=eO,d[12]=eI,d[13]=eB,d[14]=ex,d[15]=eE,d[16]=eT,d[17]=eN,d[18]=eC,0!==l&&(d[19]=l,r.length++),r};function v(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=0x3ffffff&n,d=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=d;l++){var c=o-l,u=(0|e.words[c])*(0|t.words[l]),p=0x3ffffff&u;a=a+(u/0x4000000|0)|0,s=0x3ffffff&(p=p+s|0),i+=(a=a+(p>>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function S(e,t,r){return v(e,t,r)}function A(e,t){this.x=e,this.y=t}Math.imul||(b=y),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):r<63?y(this,e,t):r<1024?v(this,e,t):S(this,e,t)},A.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},A.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},A.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},A.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,d=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var u=d,p=l,f=0;f<a;f++){var h=r[c+f],g=n[c+f],m=r[c+f+a],y=n[c+f+a],b=u*m-p*y;y=u*y+p*m,m=b,r[c+f]=h+m,n[c+f]=g+y,r[c+f+a]=h-m,n[c+f+a]=g-y,f!==s&&(b=d*u-l*p,p=d*p+l*u,u=b)}},A.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},A.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},A.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},A.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},A.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},A.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),d=Array(n),l=Array(n),c=Array(n),u=Array(n),p=r.words;p.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,l,n),this.transform(a,o,s,d,n,i),this.transform(l,o,c,u,n,i);for(var f=0;f<n;f++){var h=s[f]*c[f]-d[f]*u[f];d[f]=s[f]*u[f]+d[f]*c[f],s[f]=h}return this.conjugate(s,d,n),this.transform(s,d,p,o,n,i),this.conjugate(p,o,n),this.normalize13b(p,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),S(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<0x4000000);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(0x3ffffff&o)+(0x3ffffff&r);r>>=26,r+=(o/0x4000000|0)+(a>>>26),this.words[i]=0x3ffffff&a}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=m(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,d=(0|this.words[t])-s<<r;this.words[t]=d|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,d=r;if(i-=a,i=Math.max(0,i),d){for(var l=0;l<a;l++)d.words[l]=this.words[l];d.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var u=0|this.words[l];this.words[l]=c<<26-o|u>>>o,c=u&s}return d&&0!==c&&(d.words[d.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),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<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var d=(0|e.words[i])*t;o-=0x3ffffff&d,s=(o>>26)-(d/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var d=i.length-a.length;if("mod"!==t){(r=new o(null)).length=d+1,r.words=Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var c=i.clone()._ishlnsubmul(a,1,d);0===c.negative&&(i=c,r&&(r.words[d]=1));for(var u=d-1;u>=0;u--){var p=(0|i.words[a.length+u])*0x4000000+(0|i.words[a.length+u-1]);for(p=Math.min(p/s|0,0x3ffffff),i._ishlnsubmul(a,p,u);0!==i.negative;)p--,i.negative=0,i._ishlnsubmul(a,1,u),i.isZero()||(i.negative^=1);r&&(r.words[u]=p)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+0x4000000*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),d=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var p=0,f=1;(t.words[0]&f)==0&&p<26;++p,f<<=1);if(p>0)for(t.iushrn(p);p-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(u)),i.iushrn(1),a.iushrn(1);for(var h=0,g=1;(r.words[0]&g)==0&&h<26;++h,g<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||d.isOdd())&&(s.iadd(c),d.isub(u)),s.iushrn(1),d.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(d)):(r.isub(t),s.isub(i),d.isub(a))}return{a:s,b:d,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),d=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,c=1;(r.words[0]&c)==0&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(d),a.iushrn(1);for(var u=0,p=1;(i.words[0]&p)==0&&u<26;++u,p<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(d),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new I(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function R(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(P,_),P.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},P.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(k,_),i(R,_),i(O,_),O.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
vendor: 6,946 bytes, line 1
1r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(w[e])return w[e];if("k256"===e)t=new P;else if("p224"===e)t=new k;else if("p192"===e)t=new R;else if("p25519"===e)t=new O;else throw Error("Unknown prime "+e);return w[e]=t,t},I.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(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):(l(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 r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},I.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},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(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),d=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(d);)c.redIAdd(d);for(var u=this.pow(c,i),p=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),h=a;0!==f.cmp(s);){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m<h);var y=this.pow(u,new o(1).iushln(h-m-1));p=p.redMul(y),u=y.redSqr(),f=f.redMul(u),h=m}return p},I.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},I.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,d=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],u=l-1;u>=0;u--){var p=c>>u&1;if(a!==n[0]&&(a=this.sqr(a)),0===p&&0===s){d=0;continue}s<<=1,s|=p,(++d===r||0===i&&0===u)&&(a=this.mul(a,n[s]),d=0,s=0)}l=26}return a},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new B(e)},i(B,I),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},B.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},B.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},95488:(e,t,r)=>{"use strict";var n=t,i=r(91697),o=r(98270),a=r(56772);function s(e){return"string"==typeof e?n.toArray(e,"hex"):e}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(a=0;a<n.length;a+=1)n[a]=0;var i=1<<t+1,o=e.clone();for(a=0;a<n.length;a++){var a,s,d=o.andln(i-1);o.isOdd()?(s=d>(i>>1)-1?(i>>1)-d:d,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s,d=e.andln(3)+n&3,l=t.andln(3)+i&3;3===d&&(d=-1),3===l&&(l=-1),a=(1&d)==0?0:(3==(o=e.andln(7)+n&7)||5===o)&&2===l?-d:d,r[0].push(a),s=(1&l)==0?0:(3==(o=t.andln(7)+i&7)||5===o)&&2===d?-l:l,r[1].push(s),2*n===a+1&&(n=1-n),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=s,n.intFromLE=function(e){return new i(e,"hex","le")}},95575:(e,t,r)=>{"use strict";var n=r(6257),i=r(98270);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},95963:(e,t,r)=>{"use strict";var n=r(95488),i=r(91697),o=r(45381),a=r(16010),s=n.assert;function d(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(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=[,,,,],this._endoWnafT2=[,,,,]}function l(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(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 c(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(d,a),e.exports=d,d.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){
vendor: 5,345 bytes, line 1
1if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},d.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},d.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,d,l,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=e,f=this.n.clone(),h=new i(1),g=new i(0),m=new i(0),y=new i(1),b=0;0!==p.cmpn(0);){var v=f.div(p);l=f.sub(v.mul(p)),c=m.sub(v.mul(h));var S=y.sub(v.mul(g));if(!n&&0>l.cmp(u))t=d.neg(),r=h,n=l.neg(),o=c;else if(n&&2==++b)break;d=l,f=p,p=l,m=h,h=c,y=g,g=S}a=l.neg(),s=c;var A=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(A)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},d.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),d=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:d.add(l).neg()}},d.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},d.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},d.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],d=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),d=d.neg(!0)),n[2*o]=s,n[2*o+1]=d,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return l},o(l,a.BasePoint),d.prototype.point=function(e,t,r){return new l(this,e,t,r)},d.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.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)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return(e=new i(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)},l.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},l.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},l.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))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());
vendor: 4,417 bytes, line 1
1if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),d.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),d=o.redSub(a);if(0===s.cmpn(0))if(0!==d.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var l=s.redSqr(),c=l.redMul(s),u=n.redMul(l),p=d.redSqr().redIAdd(c).redISub(u).redISub(u),f=d.redMul(u.redISub(p)).redISub(o.redMul(c)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(p,f,h)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var d=a.redSqr(),l=d.redMul(a),c=r.redMul(d),u=s.redSqr().redIAdd(l).redISub(c).redISub(c),p=s.redMul(c.redISub(u)).redISub(i.redMul(l)),f=this.z.redMul(a);return this.curve.jpoint(u,p,f)},c.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,d=s.redSqr().redSqr(),l=a.redAdd(a);for(t=0;t<e;t++){var c=o.redSqr(),u=l.redSqr(),p=u.redSqr(),f=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(d)),h=o.redMul(u),g=f.redSqr().redISub(h.redAdd(h)),m=h.redISub(g),y=f.redMul(m);y=y.redIAdd(y).redISub(p);var b=l.redMul(s);t+1<e&&(d=d.redMul(p)),o=g,s=b,l=y}return this.curve.jpoint(o,l.redMul(i),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),d=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=d,t=s.redMul(a.redISub(d)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),u=this.y.redSqr(),p=u.redSqr(),f=this.x.redAdd(u).redSqr().redISub(c).redISub(p);f=f.redIAdd(f);var h=c.redAdd(c).redIAdd(c),g=h.redSqr(),m=p.redIAdd(p);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(f).redISub(f),t=h.redMul(f.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},c.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),d=s.redSqr().redISub(a).redISub(a);e=d;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(a.redISub(d)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),u=this.y.redSqr(),p=this.x.redMul(u),f=this.x.redSub(c).redMul(this.x.redAdd(c));f=f.redAdd(f).redIAdd(f);var h=p.redIAdd(p),g=(h=h.redIAdd(h)).redAdd(h);e=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(u).redISub(c);var m=u.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=f.redMul(h.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),d=t.redAdd(t),l=(d=d.redIAdd(d)).redMul(a),c=s.redSqr().redISub(l.redAdd(l)),u=l.redISub(c),p=a.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=s.redMul(u).redISub(p),h=r.redAdd(r).redMul(n);return this.curve.jpoint(c,f,h)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
1var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),d=n.redIAdd(n);d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(d),c=t.redMul(l);c=(c=c.redIAdd(c)).redIAdd(c);var u=this.x.redMul(s).redISub(c);u=(u=u.redIAdd(u)).redIAdd(u);var p=this.y.redMul(l.redMul(d.redISub(l)).redISub(a.redMul(s)));p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(u,p,f)},c.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},96412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSlashingAminoConverters=t.isAminoMsgUnjail=void 0,t.isAminoMsgUnjail=function(e){return"cosmos-sdk/MsgUnjail"===e.type},t.createSlashingAminoConverters=function(){throw Error("Not implemented")}},96599:(e,t)=>{"use strict";function r(e){return!!("string"==typeof e||"number"==typeof e||"boolean"==typeof e||null===e||n(e)||i(e))}function n(e){if(!Array.isArray(e))return!1;for(let t of e)if(!r(t))return!1;return!0}function i(e){return"object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)&&Object.values(e).every(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonCompatibleDictionary=t.isJsonCompatibleArray=t.isJsonCompatibleValue=void 0,t.isJsonCompatibleValue=r,t.isJsonCompatibleArray=n,t.isJsonCompatibleDictionary=i},96649:e=>{"use strict";e.exports=Function.prototype.apply},96661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBankAminoConverters=t.isAminoMsgMultiSend=t.isAminoMsgSend=void 0,t.isAminoMsgSend=function(e){return"cosmos-sdk/MsgSend"===e.type},t.isAminoMsgMultiSend=function(e){return"cosmos-sdk/MsgMultiSend"===e.type},t.createBankAminoConverters=function(){return{"/cosmos.bank.v1beta1.MsgSend":{aminoType:"cosmos-sdk/MsgSend",toAmino:({fromAddress:e,toAddress:t,amount:r})=>({from_address:e,to_address:t,amount:[...r]}),fromAmino:({from_address:e,to_address:t,amount:r})=>({fromAddress:e,toAddress:t,amount:[...r]})},"/cosmos.bank.v1beta1.MsgMultiSend":{aminoType:"cosmos-sdk/MsgMultiSend",toAmino:({inputs:e,outputs:t})=>({inputs:e.map(e=>({address:e.address,coins:[...e.coins]})),outputs:t.map(e=>({address:e.address,coins:[...e.coins]}))}),fromAmino:({inputs:e,outputs:t})=>({inputs:e.map(e=>({address:e.address,coins:[...e.coins]})),outputs:t.map(e=>({address:e.address,coins:[...e.coins]}))})}}}},97149:(e,t,r)=>{"use strict";var n=r(5585),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},97321:e=>{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<t.length;n++){var i=t.charAt(n);if(void 0!==r[i])throw TypeError(i+" is ambiguous");r[i]=n}function o(e){var t=e>>25;return(0x1ffffff&e)<<5^0x3b6a57b2&-((0|t)&1)^0x26508e6d&-(t>>1&1)^0x1ea119fa&-(t>>2&1)^0x3d4233dd&-(t>>3&1)^0x2a1462b3&-(t>>4&1)}function a(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=o(t)^n>>5}for(r=0,t=o(t);r<e.length;++r){var i=e.charCodeAt(r);t=o(t)^31&i}return t}function s(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var d=e.slice(0,s),l=e.slice(s+1);if(l.length<6)return"Data too short";var c=a(d);if("string"==typeof c)return c;for(var u=[],p=0;p<l.length;++p){var f=l.charAt(p),h=r[f];if(void 0===h)return"Unknown character "+f;c=o(c)^h,p+6>=l.length||u.push(h)}return 1!==c?"Invalid checksum for "+e:{prefix:d,words:u}}function d(e,t,r,n){for(var i=0,o=0,a=(1<<r)-1,s=[],d=0;d<e.length;++d)for(i=i<<t|e[d],o+=t;o>=r;)s.push(i>>(o-=r)&a);if(n)o>0&&s.push(i<<r-o&a);else{if(o>=t)return"Excess padding";if(i<<r-o&a)return"Non-zero padding"}return s}
1e.exports={decodeUnsafe:function(){var e=s.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=s.apply(null,arguments);if("object"==typeof t)return t;throw Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw TypeError("Exceeds length limit");var i=a(e=e.toLowerCase());if("string"==typeof i)throw Error(i);for(var s=e+"1",d=0;d<r.length;++d){var l=r[d];if(l>>5!=0)throw Error("Non 5-bit word");i=o(i)^l,s+=t.charAt(l)}for(d=0;d<6;++d)i=o(i);for(i^=1,d=0;d<6;++d){var c=i>>(5-d)*5&31;s+=t.charAt(c)}return s},toWordsUnsafe:function(e){var t=d(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=d(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=d(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=d(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},97470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToPath=t.Slip10RawIndex=t.slip10CurveFromString=t.Slip10Curve=t.Slip10=t.pathToString=t.sha512=t.Sha512=t.sha256=t.Sha256=t.Secp256k1Signature=t.ExtendedSecp256k1Signature=t.Secp256k1=t.ripemd160=t.Ripemd160=t.Random=t.Xchacha20poly1305Ietf=t.xchacha20NonceLength=t.isArgon2idOptions=t.Ed25519Keypair=t.Ed25519=t.Argon2id=t.keccak256=t.Keccak256=t.Hmac=t.EnglishMnemonic=t.Bip39=void 0;var n=r(60305);Object.defineProperty(t,"Bip39",{enumerable:!0,get:function(){return n.Bip39}}),Object.defineProperty(t,"EnglishMnemonic",{enumerable:!0,get:function(){return n.EnglishMnemonic}});var i=r(6805);Object.defineProperty(t,"Hmac",{enumerable:!0,get:function(){return i.Hmac}});var o=r(19692);Object.defineProperty(t,"Keccak256",{enumerable:!0,get:function(){return o.Keccak256}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return o.keccak256}});var a=r(44770);Object.defineProperty(t,"Argon2id",{enumerable:!0,get:function(){return a.Argon2id}}),Object.defineProperty(t,"Ed25519",{enumerable:!0,get:function(){return a.Ed25519}}),Object.defineProperty(t,"Ed25519Keypair",{enumerable:!0,get:function(){return a.Ed25519Keypair}}),Object.defineProperty(t,"isArgon2idOptions",{enumerable:!0,get:function(){return a.isArgon2idOptions}}),Object.defineProperty(t,"xchacha20NonceLength",{enumerable:!0,get:function(){return a.xchacha20NonceLength}}),Object.defineProperty(t,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return a.Xchacha20poly1305Ietf}});var s=r(30353);Object.defineProperty(t,"Random",{enumerable:!0,get:function(){return s.Random}});var d=r(10081);Object.defineProperty(t,"Ripemd160",{enumerable:!0,get:function(){return d.Ripemd160}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return d.ripemd160}});var l=r(99306);Object.defineProperty(t,"Secp256k1",{enumerable:!0,get:function(){return l.Secp256k1}
1});var c=r(61176);Object.defineProperty(t,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return c.ExtendedSecp256k1Signature}}),Object.defineProperty(t,"Secp256k1Signature",{enumerable:!0,get:function(){return c.Secp256k1Signature}});var u=r(53604);Object.defineProperty(t,"Sha256",{enumerable:!0,get:function(){return u.Sha256}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return u.sha256}}),Object.defineProperty(t,"Sha512",{enumerable:!0,get:function(){return u.Sha512}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return u.sha512}});var p=r(67409);Object.defineProperty(t,"pathToString",{enumerable:!0,get:function(){return p.pathToString}}),Object.defineProperty(t,"Slip10",{enumerable:!0,get:function(){return p.Slip10}}),Object.defineProperty(t,"Slip10Curve",{enumerable:!0,get:function(){return p.Slip10Curve}}),Object.defineProperty(t,"slip10CurveFromString",{enumerable:!0,get:function(){return p.slip10CurveFromString}}),Object.defineProperty(t,"Slip10RawIndex",{enumerable:!0,get:function(){return p.Slip10RawIndex}}),Object.defineProperty(t,"stringToPath",{enumerable:!0,get:function(){return p.stringToPath}})},98020:(e,t,r)=>{"use strict";var n=r(60996).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=t.isTxBodyEncodeObject=t.isPbjsGeneratedType=t.isTsProtoGeneratedType=t.isTelescopeGeneratedType=void 0;let i=r(13942),o=r(91794),a=r(13788),s=r(54573);function d(e){let t=e;return"function"==typeof t.fromPartial&&"string"==typeof t.typeUrl}function l(e){return"function"==typeof e.fromPartial}t.isTelescopeGeneratedType=d,t.isTsProtoGeneratedType=l,t.isPbjsGeneratedType=function(e){return!l(e)};let c={cosmosCoin:"/cosmos.base.v1beta1.Coin",cosmosMsgSend:"/cosmos.bank.v1beta1.MsgSend",cosmosTxBody:"/cosmos.tx.v1beta1.TxBody",googleAny:"/google.protobuf.Any"};function u(e){return"/cosmos.tx.v1beta1.TxBody"===e.typeUrl}t.isTxBodyEncodeObject=u;
1class p{constructor(e){let{cosmosCoin:t,cosmosMsgSend:r}=c;this.types=new Map(e?[...e]:[[t,o.Coin],[r,i.MsgSend]])}register(e,t){this.types.set(e,t)}lookupType(e){return this.types.get(e)}lookupTypeWithError(e){let t=this.lookupType(e);if(!t)throw Error(`Unregistered type url: ${e}`);return t}encode(e){let{value:t,typeUrl:r}=e;if(u(e))return this.encodeTxBody(t);let n=this.lookupTypeWithError(r),i=d(n)||l(n)?n.fromPartial(t):n.create(t);return n.encode(i).finish()}encodeAsAny(e){let t=this.encode(e);return s.Any.fromPartial({typeUrl:e.typeUrl,value:t})}encodeTxBody(e){let t=e.messages.map(e=>this.encodeAsAny(e)),r=a.TxBody.fromPartial({...e,timeoutHeight:BigInt(e.timeoutHeight?.toString()??"0"),messages:t});return a.TxBody.encode(r).finish()}decode({typeUrl:e,value:t}){if(e===c.cosmosTxBody)return this.decodeTxBody(t);let r=this.lookupTypeWithError(e).decode(t);return Object.entries(r).forEach(([e,t])=>{void 0!==n&&void 0!==n.isBuffer&&n.isBuffer(t)&&(r[e]=Uint8Array.from(t))}),r}decodeTxBody(e){let t=a.TxBody.decode(e);return{...t,messages:t.messages.map(({typeUrl:e,value:t})=>{if(!e)throw Error("Missing type_url in Any");if(!t)throw Error("Missing value in Any");return this.decode({typeUrl:e,value:t})})}}}t.Registry=p},98085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromAscii=t.toAscii=void 0,t.toAscii=function(e){let t=e=>e.split("").map(e=>{let t=e.charCodeAt(0);if(t<32||t>126)throw Error("Cannot encode character that is out of printable ASCII range: "+t);return t});return Uint8Array.from(t(e))},t.fromAscii=function(e){return Array.from(e).map(e=>{if(e<32||e>126)throw Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)}).join("")}},98270:e=>{function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},98476:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},98558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;let n=r(27511),i=r(27549),o=r(86091);class a{constructor(e){if("string"==typeof e){if(!(0,o.hasProtocol)(e))throw Error("Endpoint URL is missing a protocol. Expected 'https://' or 'http://'.");this.url=e}else this.url=e.url,this.headers=e.headers}disconnect(){}async execute(e){let t=(0,n.parseJsonRpcResponse)(await (0,i.http)("POST",this.url,this.headers,e));if((0,n.isJsonRpcErrorResponse)(t))throw Error(JSON.stringify(t.error));return t}}t.HttpClient=a},98717:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgSubmitMisbehaviourResponse=t.MsgSubmitMisbehaviour=t.MsgUpgradeClientResponse=t.MsgUpgradeClient=t.MsgUpdateClientResponse=t.MsgUpdateClient=t.MsgCreateClientResponse=t.MsgCreateClient=t.protobufPackage=void 0;let n=r(54573),i=r(4696),o=r(92242);function a(){return{clientState:void 0,consensusState:void 0,signer:""}}function s(){return{}}function d(){return{clientId:"",clientMessage:void 0,signer:""}}function l(){return{}}function c(){return{clientId:"",clientState:void 0,consensusState:void 0,proofUpgradeClient:new Uint8Array,proofUpgradeConsensusState:new Uint8Array,signer:""}}function u(){return{}}function p(){return{clientId:"",misbehaviour:void 0,signer:""}}function f(){return{}}t.protobufPackage="ibc.core.client.v1",t.MsgCreateClient={typeUrl:"/ibc.core.client.v1.MsgCreateClient",encode:(e,t=i.BinaryWriter.create())=>(void 0!==e.clientState&&n.Any.encode(e.clientState,t.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&n.Any.encode(e.consensusState,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,s=a();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:s.clientState=n.Any.decode(r,r.uint32());break;case 2:s.consensusState=n.Any.decode(r,r.uint32());break;case 3:s.signer=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){let t=a();return(0,o.isSet)(e.clientState)&&(t.clientState=n.Any.fromJSON(e.clientState)),(0,o.isSet)(e.consensusState)&&(t.consensusState=n.Any.fromJSON(e.consensusState)),(0,o.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.clientState&&(t.clientState=e.clientState?n.Any.toJSON(e.clientState):void 0),void 0!==e.consensusState&&(t.consensusState=e.consensusState?n.Any.toJSON(e.consensusState):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=a();return void 0!==e.clientState&&null!==e.clientState&&(t.clientState=n.Any.fromPartial(e.clientState)),void 0!==e.consensusState&&null!==e.consensusState&&(t.consensusState=n.Any.fromPartial(e.consensusState)),t.signer=e.signer??"",t}},t.MsgCreateClientResponse={typeUrl:"/ibc.core.client.v1.MsgCreateClientResponse",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=s();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>s(),toJSON:e=>({}),fromPartial:e=>s()},t.MsgUpdateClient={typeUrl:"/ibc.core.client.v1.MsgUpdateClient",encode:(e,t=i.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientMessage&&n.Any.encode(e.clientMessage,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=d();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.clientId=r.string();break;case 2:a.clientMessage=n.Any.decode(r,r.uint32());break;case 3:a.signer=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=d();return(0,o.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,o.isSet)(e.clientMessage)&&(t.clientMessage=n.Any.fromJSON(e.clientMessage)),(0,o.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientMessage&&(t.clientMessage=e.clientMessage?n.Any.toJSON(e.clientMessage):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=d();return t.clientId=e.clientId??"",void 0!==e.clientMessage&&null!==e.clientMessage&&(t.clientMessage=n.Any.fromPartial(e.clientMessage)),t.signer=e.signer??"",t}},t.MsgUpdateClientResponse={typeUrl:"/ibc.core.client.v1.MsgUpdateClientResponse",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=l();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>l(),toJSON:e=>({}),fromPartial:e=>l()},t.MsgUpgradeClient={typeUrl:"/ibc.core.client.v1.MsgUpgradeClient",encode:(e,t=i.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&n.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),void 0!==e.consensusState&&n.Any.encode(e.consensusState,t.uint32(26).fork()).ldelim(),0!==e.proofUpgradeClient.length&&t.uint32(34).bytes(e.proofUpgradeClient),0!==e.proofUpgradeConsensusState.length&&t.uint32(42).bytes(e.proofUpgradeConsensusState),""!==e.signer&&t.uint32(50).string(e.signer),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=c();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.clientId=r.string();break;case 2:a.clientState=n.Any.decode(r,r.uint32());break;case 3:a.consensusState=n.Any.decode(r,r.uint32());break;case 4:a.proofUpgradeClient=r.bytes();break;case 5:a.proofUpgradeConsensusState=r.bytes();break;case 6:a.signer=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=c();return(0,o.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,o.isSet)(e.clientState)&&(t.clientState=n.Any.fromJSON(e.clientState)),(0,o.isSet)(e.consensusState)&&(t.consensusState=n.Any.fromJSON(e.consensusState)),(0,o.isSet)(e.proofUpgradeClient)&&(t.proofUpgradeClient=(0,o.bytesFromBase64)(e.proofUpgradeClient)),(0,o.isSet)(e.proofUpgradeConsensusState)&&(t.proofUpgradeConsensusState=(0,o.bytesFromBase64)(e.proofUpgradeConsensusState)),(0,o.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?n.Any.toJSON(e.clientState):void 0),void 0!==e.consensusState&&(t.consensusState=e.consensusState?n.Any.toJSON(e.consensusState):void 0),void 0!==e.proofUpgradeClient&&(t.proofUpgradeClient=(0,o.base64FromBytes)(void 0!==e.proofUpgradeClient?e.proofUpgradeClient:new Uint8Array)),void 0!==e.proofUpgradeConsensusState&&(t.proofUpgradeConsensusState=(0,o.base64FromBytes)(void 0!==e.proofUpgradeConsensusState?e.proofUpgradeConsensusState:new Uint8Array)),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=c();return t.clientId=e.clientId??"",void 0!==e.clientState&&null!==e.clientState&&(t.clientState=n.Any.fromPartial(e.clientState)),void 0!==e.consensusState&&null!==e.consensusState&&(t.consensusState=n.Any.fromPartial(e.consensusState)),t.proofUpgradeClient=e.proofUpgradeClient??new Uint8Array,t.proofUpgradeConsensusState=e.proofUpgradeConsensusState??new Uint8Array,t.signer=e.signer??"",t}},t.MsgUpgradeClientResponse={typeUrl:"/ibc.core.client.v1.MsgUpgradeClientResponse",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=u();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>u(),toJSON:e=>({}),fromPartial:e=>u()},t.MsgSubmitMisbehaviour={typeUrl:"/ibc.core.client.v1.MsgSubmitMisbehaviour",encode:(e,t=i.BinaryWriter.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.misbehaviour&&n.Any.encode(e.misbehaviour,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t),decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),o=void 0===t?r.len:r.pos+t,a=p();for(;r.pos<o;){let e=r.uint32();switch(e>>>3){case 1:a.clientId=r.string();break;case 2:a.misbehaviour=n.Any.decode(r,r.uint32());break;case 3:a.signer=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){let t=p();return(0,o.isSet)(e.clientId)&&(t.clientId=String(e.clientId)),(0,o.isSet)(e.misbehaviour)&&(t.misbehaviour=n.Any.fromJSON(e.misbehaviour)),(0,o.isSet)(e.signer)&&(t.signer=String(e.signer)),t},toJSON(e){let t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.misbehaviour&&(t.misbehaviour=e.misbehaviour?n.Any.toJSON(e.misbehaviour):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){let t=p();return t.clientId=e.clientId??"",void 0!==e.misbehaviour&&null!==e.misbehaviour&&(t.misbehaviour=n.Any.fromPartial(e.misbehaviour)),t.signer=e.signer??"",t}},t.MsgSubmitMisbehaviourResponse={typeUrl:"/ibc.core.client.v1.MsgSubmitMisbehaviourResponse",encode:(e,t=i.BinaryWriter.create())=>t,decode(e,t){let r=e instanceof i.BinaryReader?e:new i.BinaryReader(e),n=void 0===t?r.len:r.pos+t,o=f();for(;r.pos<n;){let e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>f(),toJSON:e=>({}),fromPartial:e=>f()};class h{constructor(e){this.rpc=e,this.CreateClient=this.CreateClient.bind(this),this.Update
1Client=this.UpdateClient.bind(this),this.UpgradeClient=this.UpgradeClient.bind(this),this.SubmitMisbehaviour=this.SubmitMisbehaviour.bind(this)}CreateClient(e){let r=t.MsgCreateClient.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Msg","CreateClient",r).then(e=>t.MsgCreateClientResponse.decode(new i.BinaryReader(e)))}UpdateClient(e){let r=t.MsgUpdateClient.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpdateClient",r).then(e=>t.MsgUpdateClientResponse.decode(new i.BinaryReader(e)))}UpgradeClient(e){let r=t.MsgUpgradeClient.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpgradeClient",r).then(e=>t.MsgUpgradeClientResponse.decode(new i.BinaryReader(e)))}SubmitMisbehaviour(e){let r=t.MsgSubmitMisbehaviour.encode(e).finish();return this.rpc.request("ibc.core.client.v1.Msg","SubmitMisbehaviour",r).then(e=>t.MsgSubmitMisbehaviourResponse.decode(new i.BinaryReader(e)))}}t.MsgClientImpl=h},98770:e=>{"use strict";e.exports=URIError},99292:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.buildQuery=t.SubscriptionEventType=t.Method=void 0,function(e){e.AbciInfo="abci_info",e.AbciQuery="abci_query",e.Block="block",e.Blockchain="blockchain",e.BlockResults="block_results",e.BlockSearch="block_search",e.BroadcastTxAsync="broadcast_tx_async",e.BroadcastTxSync="broadcast_tx_sync",e.BroadcastTxCommit="broadcast_tx_commit",e.Commit="commit",e.Genesis="genesis",e.Health="health",e.NumUnconfirmedTxs="num_unconfirmed_txs",e.Status="status",e.Subscribe="subscribe",e.Tx="tx",e.TxSearch="tx_search",e.Validators="validators",e.Unsubscribe="unsubscribe"}(r=t.Method||(t.Method={})),function(e){e.NewBlock="NewBlock",e.NewBlockHeader="NewBlockHeader",e.Tx="Tx"}(n=t.SubscriptionEventType||(t.SubscriptionEventType={})),t.buildQuery=function(e){return[...(e.tags?e.tags:[]).map(e=>`${e.key}='${e.value}'`),...e.raw?[e.raw]:[]].join(" AND ")}},99306:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1=void 0;let i=r(25918),o=n(r(95163)),a=n(r(58958)),s=r(61176),d=new a.default.ec("secp256k1"),l=new o.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");class c{static async makeKeypair(e){if(32!==e.length)throw Error("input data is not a valid secp256k1 private key");let t=d.keyFromPrivate(e);if(!0!==t.validate().result||new o.default(e).gte(l))throw Error("input data is not a valid secp256k1 private key");return{privkey:(0,i.fromHex)(t.getPrivate("hex")),pubkey:Uint8Array.from(t.getPublic("array"))}}static async createSignature(e,t){if(0===e.length)throw Error("Message hash must not be empty");if(e.length>32)throw Error("Message hash length must not exceed 32 bytes");let{r,s:n,recoveryParam:i}=d.keyFromPrivate(t).sign(e,{canonical:!0});if("number"!=typeof i)throw Error("Recovery param missing");return new s.ExtendedSecp256k1Signature(Uint8Array.from(r.toArray()),Uint8Array.from(n.toArray()),i)}static async verifySignature(e,t,r){if(0===t.length)throw Error("Message hash must not be empty");if(t.length>32)throw Error("Message hash length must not exceed 32 bytes");let n=d.keyFromPublic(r);try{return n.verify(t,e.toDer())}catch(e){return!1}}static recoverPubkey(e,t){let r={r:(0,i.toHex)(e.r()),s:(0,i.toHex)(e.s())},n=d.recoverPubKey(t,r,e.recovery),o=d.keyFromPublic(n);return(0,i.fromHex)(o.getPublic(!1,"hex"))}static compressPubkey(e){switch(e.length){case 33:return e;case 65:return Uint8Array.from(d.keyFromPublic(e).getPublic(!0,"array"));default:throw Error("Invalid pubkey length")}}static uncompressPubkey(e){switch(e.length){case 33:return Uint8Array.from(d.keyFromPublic(e).getPublic(!1,"array"));case 65:return e;default:throw Error("Invalid pubkey length")}}static trimRecoveryByte(e){switch(e.length){case 64:return e;case 65:return e.slice(0,64);default:throw Error("Invalid signature length")}}}t.Secp256k1=c},99612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFee=t.GasPrice=void 0;let n=r(73297),i=r(11717);function o(e){if(e.length<3||e.length>128)throw Error("Denom must be between 3 and 128 characters")}class a{constructor(e,t){this.amount=e,this.denom=t}static fromString(e){let t=e.match(/^([0-9.]+)([a-zA-Z][a-zA-Z0-9/:._-]*)$/);if(!t)throw Error("Invalid gas price string");let[r,i,s]=t;o(s);let d=18;return new a(n.Decimal.fromUserInput(i,d),s)}toString(){return this.amount.toString()+this.denom}}t.GasPrice=a,t.calculateFee=function(e,t){let{denom:r,amount:o}="string"==typeof t?a.fromString(t):t,s=o.multiply(new n.Uint53(e)).ceil().toString();return{amount:(0,i.coins)(s,r),gas:e.toString()}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.