"use strict";exports.id=4762,exports.ids=[4762],exports.modules={7233:(e,t,r)=>{r.d(t,{lc:()=>n});let n=1},41677:(e,t,r)=>{r.d(t,{Zn:()=>i,ez:()=>n});let n={gwei:9,wei:18},i={ether:-9,wei:9}},61094:(e,t,r)=>{r.d(t,{CI:()=>B,FM:()=>p,Gy:()=>E,KY:()=>v,M4:()=>h,MX:()=>m,S4:()=>w,SM:()=>x,cO:()=>a,dh:()=>I,fM:()=>s,fs:()=>f,gr:()=>c,hn:()=>P,lC:()=>b,mv:()=>g,wM:()=>$,wb:()=>u,xB:()=>l,xL:()=>y,yP:()=>d});var n=r(40486),i=r(33774),o=r(71645);class s extends o.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class a extends o.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class l extends o.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class u extends o.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class c extends o.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
Expected length: ${e}
Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class h extends o.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class f extends o.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
Expected length (params): ${e}
Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class d extends o.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
Make sure you are using the correct ABI and that the error exists on it.
You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends o.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class b extends o.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
Make sure you are using the correct ABI and that the event exists on it.
You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends o.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class y extends o.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class m extends o.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
Cannot decode function result without knowing what the parameter types are.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class w extends o.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}class v extends o.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class x extends o.G{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data:   ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}class E extends o.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.t)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class I extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class B extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class P extends o.G{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class $ extends o.G{constructor(e){super(`"${e}" is not a valid definition type.
Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},32586:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(71645);class i extends n.G{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},92754:(e,t,r)=>{r.d(t,{RX:()=>s,cJ:()=>l,m7:()=>o,xd:()=>a});var n=r(7233),i=r(71645);class o extends i.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlobSizeTooLargeError"})}}class s extends i.G{constructor(){super("Blob data must not be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EmptyBlobError"})}}class a extends i.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashSizeError"})}}class l extends i.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${n.lc}`,`Received: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashVersionError"})}}},88167:(e,t,r)=>{r.d(t,{Bk:()=>s,Yl:()=>o,hJ:()=>l,mm:()=>i,pZ:()=>a});var n=r(71645);class i extends n.G{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class o extends n.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class s extends n.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class a extends n.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class l extends n.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},99736:(e,t,r)=>{r.d(t,{KD:()=>s,T_:()=>i,lQ:()=>o});var n=r(71645);class i extends n.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class o extends n.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}class s extends n.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RecursiveReadLimitExceededError"})}}},58192:(e,t,r)=>{r.d(t,{C_:()=>h,G$:()=>a,Hh:()=>s,M_:()=>o,WF:()=>f,ZI:()=>l,cj:()=>g,cs:()=>b,dR:()=>d,pZ:()=>p,se:()=>c,vU:()=>u});var n=r(31277),i=r(71645);class o extends i.G{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class h extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class d extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.o)(r)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},42266:(e,t,r)=>{r.d(t,{Bh:()=>f,JC:()=>c,Yb:()=>d,j3:()=>u,mc:()=>p,mk:()=>h,vl:()=>l,xY:()=>a,xr:()=>s});var n=r(36733),i=r(31277),o=r(71645);function s(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}class a extends o.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class l extends o.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class u extends o.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",s(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class c extends o.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class h extends o.G{constructor(e,{account:t,docsPath:r,chain:o,data:a,gas:l,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:h,nonce:f,to:d,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",s({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:d,value:void 0!==p&&`${(0,n.d)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:l,gasPrice:void 0!==u&&`${(0,i.o)(u)} gwei`,maxFeePerGas:void 0!==c&&`${(0,i.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==h&&`${(0,i.o)(h)} gwei`,nonce:f})].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class f extends o.G{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class d extends o.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class p extends o.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},56659:(e,t,r)=>{r.d(t,{E:()=>f,S:()=>p});var n=r(61094),i=r(32586),o=r(71645),s=r(8345),a=r(70395),l=r(92415),u=r(33774),c=r(39804),h=r(70451);function f(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=d(function({params:e,values:t}){let r=[];for(let f=0;f<e.length;f++)r.push(function e({param:t,value:r}){let f=p(t.type);if(f){let[i,o]=f;return function(t,{length:r,param:i}){let o=null===r;if(!Array.isArray(t))throw new n.hn(t);if(!o&&t.length!==r)throw new n.gr({expectedLength:r,givenLength:t.length,type:`${i.type}[${r}]`});let s=!1,l=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(s=!0),l.push(n)}if(o||s){let e=d(l);if(o){let t=(0,h.eC)(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?(0,a.zo)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.zo)(l.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let o=0;o<r.components.length;o++){let s=r.components[o],a=Array.isArray(t)?o:s.name,l=e({param:s,value:t[a]});i.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?d(i):(0,a.zo)(i.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,s.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,l.gc)(e.toLowerCase())}}(r);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new o.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,l.gc)((0,h.C4)(e))}}(r);if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,{signed:t}){return{dynamic:!1,encoded:(0,h.eC)(e,{size:32,signed:t})}}(r,{signed:t.type.startsWith("int")});if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,u.d)(e);if(!r){let t=e;return i%32!=0&&(t=(0,l.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.zo)([(0,l.gc)((0,h.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(r))throw new n.M4({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:(0,l.gc)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,h.$G)(e),r=Math.ceil((0,u.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,l.gc)((0,c.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,a.zo)([(0,l.gc)((0,h.eC)((0,u.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[f],value:t[f]}));return r}({params:e,values:t}));return 0===r.length?"0x":r}function d(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,u.d)(i)}let r=[],n=[],i=0;for(let o=0;o<e.length;o++){let{dynamic:s,encoded:a}=e[o];s?(r.push((0,h.eC)(t+i,{size:32})),n.push(a),i+=(0,u.d)(a)):r.push(a)}return(0,a.zo)([...r,...n])}function p(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},40486:(e,t,r)=>{r.d(t,{h:()=>o,t:()=>i});var n=r(61094);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.wM(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`}function o(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${o(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},92795:(e,t,r)=>{r.d(t,{Kn:()=>c,xs:()=>u});var n=r(32586),i=r(26532),o=r(85924),s=r(46872),a=r(8345);let l=new s.k(8192);function u(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.w)((0,i.qX)(r),"bytes"),s=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&n[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());let a=`0x${s.join("")}`;return l.set(`${e}.${t}`,a),a}function c(e,t){if(!(0,a.U)(e,{strict:!1}))throw new n.b({address:e});return u(e,t)}},8345:(e,t,r)=>{r.d(t,{U:()=>a});var n=r(46872),i=r(92795);let o=/^0x[a-fA-F0-9]{40}$/,s=new n.k(8192);function a(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(s.has(n))return s.get(n);let a=!!o.test(e)&&(e.toLowerCase()===e||!r||(0,i.xs)(e)===e);return s.set(n,a),a}},14360:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(26532),i=r(70451);function o(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.nr)(e)):e.blobs,s=[];for(let e of o)s.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?s:s.map(e=>(0,i.ci)(e))}},90711:(e,t,r)=>{r.d(t,{y:()=>o});var n=r(26532),i=r(70451);function o(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.nr)(e)):e.blobs,s="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,n.nr)(e)):e.commitments,a=[];for(let e=0;e<o.length;e++){let r=o[e],n=s[e];a.push(Uint8Array.from(t.computeBlobKzgProof(r,n)))}return"bytes"===r?a:a.map(e=>(0,i.ci)(e))}},44514:(e,t,r)=>{r.d(t,{C:()=>o});var n=r(70451),i=r(65816);function o(e){let{commitments:t,version:r}=e,o=e.to??("string"==typeof t[0]?"hex":"bytes"),s=[];for(let e of t)s.push(function(e){let{commitment:t,version:r=1}=e,o=e.to??("string"==typeof t?"hex":"bytes"),s=(0,i.J)(t,"bytes");return s.set([r],0),"bytes"===o?s:(0,n.ci)(s)}({commitment:e,to:o,version:r}));return s}},85351:(e,t,r)=>{r.d(t,{j:()=>c});var n=r(14360),i=r(90711),o=r(92754),s=r(55577),a=r(33774),l=r(26532),u=r(70451);function c(e){let{data:t,kzg:r,to:c}=e,h=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,l.nr)(e.data):e.data,n=(0,a.d)(r);if(!n)throw new o.RX;if(n>761855)throw new o.m7({maxSize:761855,size:n});let i=[],c=!0,h=0;for(;c;){let e=(0,s.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=r.slice(h,h+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),c=!1;break}t++,h+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,u.ci)(e.bytes))}({data:t,to:c}),f=e.commitments??(0,n.P)({blobs:h,kzg:r,to:c}),d=e.proofs??(0,i.y)({blobs:h,commitments:f,kzg:r,to:c}),p=[];for(let e=0;e<h.length;e++)p.push({blob:h[e],commitment:f[e],proof:d[e]});return p}},55577:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(99736);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function o(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},70395:(e,t,r)=>{function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}r.d(t,{SM:()=>i,zo:()=>n})},39804:(e,t,r)=>{r.d(t,{T4:()=>u,tP:()=>s});var n=r(46913),i=r(99815),o=r(33774);function s(e,t,r,{strict:n}={}){return(0,i.v)(e,{strict:!1})?function(e,t,r,{strict:n}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&l(i,t,r),i}(e,t,r,{strict:n}):u(e,t,r,{strict:n})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,o.d)(e)-1)throw new n.mV({offset:t,position:"start",size:(0,o.d)(e)})}function l(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.d)(e)!==r-t)throw new n.mV({offset:r,position:"end",size:(0,o.d)(e)})}function u(e,t,r,{strict:n}={}){a(e,t);let i=e.slice(t,r);return n&&l(i,t,r),i}},44463:(e,t,r)=>{r.d(t,{f:()=>n});function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}},33339:(e,t,r)=>{r.d(t,{LV:()=>a});var n=r(71645),i=r(55577),o=r(26532),s=r(70451);function a(e,t="hex"){let r=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=l(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,o.nr)(e):e,r=l(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,i.q)(new Uint8Array(r.length));return(r.encode(n),"hex"===t)?(0,s.ci)(n.bytes):n.bytes}function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new n.G("Length is too large.")}},85924:(e,t,r)=>{r.d(t,{w:()=>N});var n=r(62316);let i=BigInt(4294967296-1),o=BigInt(32),s=(e,t,r)=>e<<r|t>>>32-r,a=(e,t,r)=>t<<r|e>>>32-r,l=(e,t,r)=>t<<r-32|e>>>64-r,u=(e,t,r)=>e<<r-32|t>>>64-r;var c=r(92167);let[h,f,d]=[[],[],[]],p=BigInt(0),b=BigInt(1),g=BigInt(2),y=BigInt(7),m=BigInt(256),w=BigInt(113);for(let e=0,t=b,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],h.push(2*(5*n+r)),f.push((e+1)*(e+2)/2%64);let i=p;for(let e=0;e<7;e++)(t=(t<<b^(t>>y)*w)%m)&g&&(i^=b<<(b<<BigInt(e))-b);d.push(i)}let[v,x]=function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let s=0;s<e.length;s++){let{h:a,l}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>o&i)}:{h:0|Number(e>>o&i),l:0|Number(e&i)}}(e[s],t);[r[s],n[s]]=[a,l]}return[r,n]}(d,!0),E=(e,t,r)=>r>32?l(e,t,r):s(e,t,r),I=(e,t,r)=>r>32?u(e,t,r):a(e,t,r);class B extends c.kb{constructor(e,t,r,i=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,c.Jq)(this.state)}keccak(){(function(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],s=r[i+1],a=E(o,s,1)^r[n],l=I(o,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=f[r],o=E(t,i,n),s=I(t,i,n),a=h[r];t=e[a],i=e[a+1],e[a]=o,e[a+1]=s}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]^=v[n],e[1]^=x[n]}r.fill(0)})(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.Gg)(this);let{blockLen:t,state:r}=this,i=(e=(0,c.O0)(e)).length;for(let n=0;n<i;){let o=Math.min(t-this.pos,i-n);for(let t=0;t<o;t++)r[this.pos++]^=e[n++];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,n.Gg)(this,!1),(0,n.aI)(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,n.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.J8)(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 B(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 P=(0,c.hE)(()=>new B(136,1,32));var $=r(99815),O=r(26532),A=r(70451);function N(e,t){let r=P((0,$.v)(e,{strict:!1})?(0,O.O0)(e):e);return"bytes"===(t||"hex")?r:(0,A.NC)(r)}},65816:(e,t,r)=>{r.d(t,{J:()=>a});var n=r(14061),i=r(99815),o=r(26532),s=r(70451);function a(e,t){let r=(0,n.J)((0,i.v)(e,{strict:!1})?(0,o.O0)(e):e);return"bytes"===(t||"hex")?r:(0,s.NC)(r)}},46872:(e,t,r)=>{r.d(t,{k:()=>n});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,t){return super.set(e,t),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}},38186:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(70395),i=r(26532),o=r(85924);function s(e,t){let r="string"==typeof e?(0,i.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,i.O0)(e.raw),s=(0,i.qX)(`Ethereum Signed Message:
${r.length}`);return(0,o.w)((0,n.zo)([s,r]),t)}},54835:(e,t,r)=>{r.d(t,{J:()=>l});var n=r(56659),i=r(70395),o=r(70451),s=r(85924),a=r(80933);function l(e){let{domain:t={},message:r,primaryType:n}=e,o={EIP712Domain:(0,a.cj)({domain:t}),...e.types};(0,a.iC)({domain:t,message:r,primaryType:n,types:o});let l=["0x1901"];return t&&l.push(function({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:o})),"EIP712Domain"!==n&&l.push(u({data:r,primaryType:n,types:o})),(0,s.w)((0,i.zo)(l))}function u({data:e,primaryType:t,types:r}){let i=function e({data:t,primaryType:r,types:i}){let a=[{type:"bytes32"}],l=[function({primaryType:e,types:t}){let r=(0,o.NC)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\w*/u),o=i?.[0];if(n.has(o)||void 0===r[o])return n;for(let t of(n.add(o),r[o]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});for(let i of(n.delete(e),[e,...Array.from(n).sort()]))r+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,s.w)(r)}({primaryType:r,types:i})];for(let u of i[r]){let[r,c]=function t({types:r,name:i,type:a,value:l}){if(void 0!==r[a])return[{type:"bytes32"},(0,s.w)(e({data:l,primaryType:a,types:r}))];if("bytes"===a){let e=l.length%2?"0":"";return l=`0x${e+l.slice(2)}`,[{type:"bytes32"},(0,s.w)(l)]}if("string"===a)return[{type:"bytes32"},(0,s.w)((0,o.NC)(l))];if(a.lastIndexOf("]")===a.length-1){let e=a.slice(0,a.lastIndexOf("[")),o=l.map(n=>t({name:i,type:e,types:r,value:n}));return[{type:"bytes32"},(0,s.w)((0,n.E)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:a},l]}({types:i,name:u.name,type:u.type,value:t[u.name]});a.push(r),l.push(c)}return(0,n.E)(a,l)}({data:e,primaryType:t,types:r});return(0,s.w)(i)}},46641:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(23938),i=r(49689);function o({r:e,s:t,v:r,yParity:o}){let s=(()=>{if(0===o||1===o)return o;if(r&&(27n===r||28n===r||r>=35n))return r%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})();return`0x${new n.kA.Signature((0,i.y_)(e),(0,i.y_)(t)).toCompactHex()}${0===s?"1b":"1c"}`}},8566:(e,t,r)=>{r.d(t,{P:()=>n});let n=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},61059:(e,t,r)=>{r.d(t,{l:()=>i});var n=r(42266);function i(e){if(e.type)return e.type;if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.j3({transaction:e})}},54767:(e,t,r)=>{r.d(t,{g:()=>s});var n=r(32586),i=r(42266),o=r(8345);function s(e){if(!e||0===e.length)return[];let t=[];for(let r=0;r<e.length;r++){let{address:s,storageKeys:a}=e[r];for(let e=0;e<a.length;e++)if(a[e].length-2!=64)throw new i.JC({storageKey:a[e]});if(!(0,o.U)(s,{strict:!1}))throw new n.b({address:s});t.push([s,a])}return t}},5614:(e,t,r)=>{r.d(t,{D:()=>P,d:()=>$});var n=r(42266),i=r(14360),o=r(90711),s=r(44514),a=r(85351),l=r(70395),u=r(44463),c=r(70451),h=r(33339),f=r(7233),d=r(32586),p=r(71645),b=r(92754),g=r(88167),y=r(58192),m=r(8345),w=r(33774),v=r(39804),x=r(49689);function E(e){let{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:i}=e;if(t<=0)throw new g.hJ({chainId:t});if(i&&!(0,m.U)(i))throw new d.b({address:i});if(n&&n>2n**256n-1n)throw new y.Hh({maxFeePerGas:n});if(r&&n&&r>n)throw new y.cs({maxFeePerGas:n,maxPriorityFeePerGas:r})}var I=r(61059),B=r(54767);function P(e,t){let r=(0,I.l)(e);return"eip1559"===r?function(e,t){let{chainId:r,gas:n,nonce:i,to:o,value:s,maxFeePerGas:a,maxPriorityFeePerGas:u,accessList:f,data:d}=e;E(e);let p=(0,B.g)(f),b=[(0,c.NC)(r),i?(0,c.NC)(i):"0x",u?(0,c.NC)(u):"0x",a?(0,c.NC)(a):"0x",n?(0,c.NC)(n):"0x",o??"0x",s?(0,c.NC)(s):"0x",d??"0x",p,...$(e,t)];return(0,l.SM)(["0x02",(0,h.LV)(b)])}(e,t):"eip2930"===r?function(e,t){let{chainId:r,gas:n,data:i,nonce:o,to:s,value:a,accessList:u,gasPrice:f}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:o}=e;if(t<=0)throw new g.hJ({chainId:t});if(o&&!(0,m.U)(o))throw new d.b({address:o});if(r||i)throw new p.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>2n**256n-1n)throw new y.Hh({maxFeePerGas:n})}(e);let b=(0,B.g)(u),w=[(0,c.NC)(r),o?(0,c.NC)(o):"0x",f?(0,c.NC)(f):"0x",n?(0,c.NC)(n):"0x",s??"0x",a?(0,c.NC)(a):"0x",i??"0x",b,...$(e,t)];return(0,l.SM)(["0x01",(0,h.LV)(w)])}(e,t):"eip4844"===r?function(e,t){let{chainId:r,gas:n,nonce:u,to:d,value:p,maxFeePerBlobGas:g,maxFeePerGas:y,maxPriorityFeePerGas:m,accessList:I,data:P}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new b.RX;for(let e of t){let t=(0,w.d)(e),r=(0,x.ly)((0,v.tP)(e,0,1));if(32!==t)throw new b.xd({hash:e,size:t});if(r!==f.lc)throw new b.cJ({hash:e,version:r})}}E(e)}(e);let O=e.blobVersionedHashes,A=e.sidecars;if(e.blobs&&(void 0===O||void 0===A)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,c.ci)(e)),r=e.kzg,n=(0,i.P)({blobs:t,kzg:r});if(void 0===O&&(O=(0,s.C)({commitments:n})),void 0===A){let e=(0,o.y)({blobs:t,commitments:n,kzg:r});A=(0,a.j)({blobs:t,commitments:n,proofs:e})}}let N=(0,B.g)(I),C=[(0,c.NC)(r),u?(0,c.NC)(u):"0x",m?(0,c.NC)(m):"0x",y?(0,c.NC)(y):"0x",n?(0,c.NC)(n):"0x",d??"0x",p?(0,c.NC)(p):"0x",P??"0x",N,g?(0,c.NC)(g):"0x",O??[],...$(e,t)],S=[],U=[],G=[];if(A)for(let e=0;e<A.length;e++){let{blob:t,commitment:r,proof:n}=A[e];S.push(t),U.push(r),G.push(n)}return(0,l.SM)(["0x03",A?(0,h.LV)([C,S,U,G]):(0,h.LV)(C)])}(e,t):function(e,t){let{chainId:r=0,gas:i,data:o,nonce:s,to:a,value:l,gasPrice:u}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:o,accessList:s}=e;if(o&&!(0,m.U)(o))throw new d.b({address:o});if(void 0!==t&&t<=0)throw new g.hJ({chainId:t});if(r||i)throw new p.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>2n**256n-1n)throw new y.Hh({maxFeePerGas:n});if(s)throw new p.G("`accessList` is not a valid Legacy Transaction attribute.")}(e);let f=[s?(0,c.NC)(s):"0x",u?(0,c.NC)(u):"0x",i?(0,c.NC)(i):"0x",a??"0x",l?(0,c.NC)(l):"0x",o??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new n.vl({v:t.v});return e})();f=[...f,(0,c.NC)(e),t.r,t.s]}else r>0&&(f=[...f,(0,c.NC)(r),"0x","0x"]);return(0,h.LV)(f)}(e,t)}function $(e,t){let{r,s:n,v:i,yParity:o}=t??e;return void 0===r||void 0===n||void 0===i&&void 0===o?[]:["number"==typeof o?o?(0,c.NC)(1):"0x":0n===i?"0x":1n===i?(0,c.NC)(1):27n===i?"0x":(0,c.NC)(1),(0,u.f)(r),(0,u.f)(n)]}},80933:(e,t,r)=>{r.d(t,{cj:()=>d,H6:()=>h,iC:()=>f});var n=r(61094),i=r(32586),o=r(8345),s=r(33774),a=r(70451);let l=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,u=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;var c=r(8566);function h(e){let{domain:t,message:r,primaryType:n,types:i}=e,o=(e,t)=>{let r={...t};for(let t of e){let{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},s=i.EIP712Domain&&t?o(i.EIP712Domain,t):{},a=(()=>{if("EIP712Domain"!==n)return o(i[n],r)})();return(0,c.P)({domain:s,message:a,primaryType:n,types:i})}function f(e){let{domain:t,message:r,primaryType:c,types:h}=e,f=(e,t)=>{for(let r of e){let{name:e,type:c}=r,d=t[e],p=c.match(u);if(p&&("number"==typeof d||"bigint"==typeof d)){let[e,t,r]=p;(0,a.eC)(d,{signed:"int"===t,size:Number.parseInt(r)/8})}if("address"===c&&"string"==typeof d&&!(0,o.U)(d))throw new i.b({address:d});let b=c.match(l);if(b){let[e,t]=b;if(t&&(0,s.d)(d)!==Number.parseInt(t))throw new n.KY({expectedSize:Number.parseInt(t),givenSize:(0,s.d)(d)})}let g=h[c];g&&f(g,d)}};h.EIP712Domain&&t&&f(h.EIP712Domain,t),"EIP712Domain"!==c&&f(h[c],r)}function d({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},"number"==typeof e?.chainId&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},36733:(e,t,r)=>{r.d(t,{d:()=>o});var n=r(41677),i=r(72346);function o(e,t="wei"){return(0,i.b)(e,n.ez[t])}},31277:(e,t,r)=>{r.d(t,{o:()=>o});var n=r(41677),i=r(72346);function o(e,t="wei"){return(0,i.b)(e,n.Zn[t])}},72346:(e,t,r)=>{r.d(t,{b:()=>n});function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,o]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}},11444:(e,t,r)=>{r.d(t,{FF:()=>E,S5:()=>d,Wd:()=>g,bytesToNumberBE:()=>c,ci:()=>a,dQ:()=>y,eV:()=>b,hexToBytes:()=>u,n$:()=>v,ql:()=>p,tL:()=>f,ty:()=>h}),BigInt(0);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=BigInt(1),i=BigInt(2),o=e=>e instanceof Uint8Array,s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e){if(!o(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=s[e[r]];return t}function l(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function u(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 c(e){return l(a(e))}function h(e){if(!o(e))throw Error("Uint8Array expected");return l(a(Uint8Array.from(e).reverse()))}function f(e,t){return u(e.toString(16).padStart(2*t,"0"))}function d(e,t){return f(e,t).reverse()}function p(e,t,r){let n;if("string"==typeof t)try{n=u(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(o(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 b(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!o(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}function g(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}let y=e=>(i<<BigInt(e-1))-n,m=e=>new Uint8Array(e),w=e=>Uint8Array.from(e);function v(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=m(e),i=m(e),o=0,s=()=>{n.fill(1),i.fill(0),o=0},a=(...e)=>r(i,n,...e),l=(e=m())=>{i=a(w([0]),e),n=a(),0!==e.length&&(i=a(w([1]),e),n=a())},u=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=a()).slice();r.push(t),e+=n.length}return b(...r)};return(e,t)=>{let r;for(s(),l(e);!(r=t(u()));)l();return s(),r}}let x={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 E(e,t,r={}){let n=(t,r,n)=>{let i=x[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}},23938:(e,t,r)=>{r.d(t,{kA:()=>F});var n=r(14061),i=r(11444);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let o=BigInt(0),s=BigInt(1),a=BigInt(2),l=BigInt(3),u=BigInt(4),c=BigInt(5),h=BigInt(8);function f(e,t){let r=e%t;return r>=o?r:t+r}function d(e,t,r){let n=e;for(;t-- >o;)n*=n,n%=r;return n}function p(e,t){if(e===o||t<=o)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=f(e,t),n=t,i=o,a=s,l=s,u=o;for(;r!==o;){let e=n/r,t=n%r,o=i-l*e,s=a-u*e;n=r,r=t,i=l,a=u,l=o,u=s}if(n!==s)throw Error("invert: does not exist");return f(i,t)}BigInt(9),BigInt(16);let b=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function g(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function y(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function m(e){let t=y(e);return t+Math.ceil(t/2)}var w=r(62316),v=r(92167);class x extends v.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,w.vp)(e);let r=(0,v.O0)(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(0,w.Gg)(this),this.iHash.update(e),this}digestInto(e){(0,w.Gg)(this),(0,w.aI)(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:s}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let E=(e,t,r)=>new x(e,t).update(r).digest();E.create=(e,t)=>new x(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let I=BigInt(0),B=BigInt(1);function P(e){return function(e){let t=b.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});(0,i.FF)(e,t)}(e.Fp),(0,i.FF)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...g(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}let{bytesToNumberBE:$,hexToBytes:O}=i,A={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=A;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:$(n),l:e.subarray(r+2)}},toSig(e){let{Err:t}=A,r="string"==typeof e?O(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}=A._parseInt(r.subarray(2)),{d:s,l:a}=A._parseInt(o);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s}},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,s=i.length/2,a=r(o),l=r(s);return`30${r(s+o+4)}02${l}${i}02${a}${n}`}},N=BigInt(0),C=BigInt(1),S=(BigInt(2),BigInt(3)),U=(BigInt(4),BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f")),G=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),j=BigInt(1),L=BigInt(2),T=(e,t)=>(e+t/L)/t,R=function(e,t,r=!1,n={}){if(e<=o)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:d,nByteLength:b}=g(e,t);if(b>2048)throw Error("Field lengths over 2048 bytes are not supported");let y=function(e){if(e%u===l){let t=(e+s)/u;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%h===c){let t=(e-c)/h;return function(e,r){let n=e.mul(r,a),i=e.pow(n,t),o=e.mul(r,i),s=e.mul(e.mul(o,a),i),l=e.mul(o,e.sub(s,e.ONE));if(!e.eql(e.sqr(l),r))throw Error("Cannot find square root");return l}}return function(e){let t,r,n;let i=(e-s)/a;for(t=e-s,r=0;t%a===o;t/=a,r++);for(n=a;n<e&&function(e,t,r){if(r<=o||t<o)throw Error("Expected power/modulo > 0");if(r===s)return o;let n=s;for(;t>o;)t&s&&(n=n*e%r),e=e*e%r,t>>=s;return n}(n,i,e)!==e-s;n++);if(1===r){let t=(e+s)/u;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 l=(t+s)/a;return function(e,o){if(e.pow(o,i)===e.neg(e.ONE))throw Error("Cannot find square root");let a=r,u=e.pow(e.mul(e.ONE,n),t),c=e.pow(o,l),h=e.pow(o,t);for(;!e.eql(h,e.ONE);){if(e.eql(h,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(h);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(u,s<<BigInt(a-t-1));u=e.sqr(r),c=e.mul(c,r),h=e.mul(h,u),a=t}return c}}(e)}(e),m=Object.freeze({ORDER:e,BITS:d,BYTES:b,MASK:(0,i.dQ)(d),ZERO:o,ONE:s,create:t=>f(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return o<=t&&t<e},is0:e=>e===o,isOdd:e=>(e&s)===s,neg:t=>f(-t,e),eql:(e,t)=>e===t,sqr:t=>f(t*t,e),add:(t,r)=>f(t+r,e),sub:(t,r)=>f(t-r,e),mul:(t,r)=>f(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<o)throw Error("Expected power > 0");if(r===o)return e.ONE;if(r===s)return t;let n=e.ONE,i=t;for(;r>o;)r&s&&(n=e.mul(n,i)),i=e.sqr(i),r>>=s;return n})(m,e,t),div:(t,r)=>f(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:n.sqrt||(e=>y(m,e)),invertBatch:e=>(function(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})(m,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,i.S5)(e,b):(0,i.tL)(e,b),fromBytes:e=>{if(e.length!==b)throw Error(`Fp.fromBytes: expected ${b}, got ${e.length}`);return r?(0,i.ty)(e):(0,i.bytesToNumberBE)(e)}});return Object.freeze(m)}(U,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),s=BigInt(44),a=BigInt(88),l=e*e*e%U,u=l*l*e%U,c=d(u,t,U)*u%U,h=d(c,t,U)*u%U,f=d(h,L,U)*l%U,p=d(f,n,U)*f%U,b=d(p,i,U)*p%U,g=d(b,s,U)*b%U,y=d(g,a,U)*g%U,m=d(y,s,U)*b%U,w=d(m,t,U)*u%U,v=d(w,o,U)*p%U,x=d(v,r,U)*l%U,E=d(x,L,U);if(!R.eql(R.sqr(E),e))throw Error("Cannot find square root");return E}}),F=function(e,t){let r=t=>(function(e){let t=function(e){let t=P(e);return i.FF(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n}=t,o=r.BYTES+1,a=2*r.BYTES+1;function l(e){return f(e,n)}let{ProjectivePoint:u,normPrivateKeyToScalar:c,weierstrassEquation:h,isWithinCurveOrder:d}=function(e){let t=/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function(e){let t=P(e);i.FF(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:o}=t;if(r){if(!n.eql(o,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})}(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{let o=t.toAffine();return i.eV(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),o=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 s(e){let{a:n,b:i}=t,o=r.sqr(e),s=r.mul(o,e);return r.add(r.add(s,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),s(t.Gx)))throw Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&N<e&&e<t.n}function l(e){if(!a(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function u(e){let r;let{allowedPrivateKeyLengths:n,nByteLength:o,wrapPrivateKey:s,n:a}=t;if(n&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=i.ci(e)),"string"!=typeof e||!n.includes(e.length))throw Error("Invalid key");e=e.padStart(2*o,"0")}try{r="bigint"==typeof e?e:i.bytesToNumberBE((0,i.ql)("private key",e,o))}catch(t){throw Error(`private key must be ${o} bytes, hex or bigint, not ${typeof e}`)}return s&&(r=f(r,a)),l(r),r}let c=new Map;function h(e){if(!(e instanceof d))throw Error("ProjectivePoint expected")}class d{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 d)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?d.ZERO:new d(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(d.fromAffine)}static fromHex(e){let t=d.fromAffine(o((0,i.ql)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return d.BASE.multiply(u(e))}_setWindowSize(e){this._WINDOW_SIZE=e,c.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),o=s(e);if(!r.eql(i,o))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){h(e);let{px:t,py:n,pz:i}=this,{px:o,py:s,pz:a}=e,l=r.eql(r.mul(t,a),r.mul(o,i)),u=r.eql(r.mul(n,a),r.mul(s,i));return l&&u}negate(){return new d(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,S),{px:o,py:s,pz:a}=this,l=r.ZERO,u=r.ZERO,c=r.ZERO,h=r.mul(o,o),f=r.mul(s,s),p=r.mul(a,a),b=r.mul(o,s);return b=r.add(b,b),c=r.mul(o,a),c=r.add(c,c),l=r.mul(e,c),u=r.mul(i,p),u=r.add(l,u),l=r.sub(f,u),u=r.add(f,u),u=r.mul(l,u),l=r.mul(b,l),c=r.mul(i,c),p=r.mul(e,p),b=r.sub(h,p),b=r.mul(e,b),b=r.add(b,c),c=r.add(h,h),h=r.add(c,h),h=r.add(h,p),h=r.mul(h,b),u=r.add(u,h),p=r.mul(s,a),p=r.add(p,p),h=r.mul(p,b),l=r.sub(l,h),c=r.mul(p,f),c=r.add(c,c),new d(l,u,c=r.add(c,c))}add(e){h(e);let{px:n,py:i,pz:o}=this,{px:s,py:a,pz:l}=e,u=r.ZERO,c=r.ZERO,f=r.ZERO,p=t.a,b=r.mul(t.b,S),g=r.mul(n,s),y=r.mul(i,a),m=r.mul(o,l),w=r.add(n,i),v=r.add(s,a);w=r.mul(w,v),v=r.add(g,y),w=r.sub(w,v),v=r.add(n,o);let x=r.add(s,l);return v=r.mul(v,x),x=r.add(g,m),v=r.sub(v,x),x=r.add(i,o),u=r.add(a,l),x=r.mul(x,u),u=r.add(y,m),x=r.sub(x,u),f=r.mul(p,v),u=r.mul(b,m),f=r.add(u,f),u=r.sub(y,f),f=r.add(y,f),c=r.mul(u,f),y=r.add(g,g),y=r.add(y,g),m=r.mul(p,m),v=r.mul(b,v),y=r.add(y,m),m=r.sub(g,m),m=r.mul(p,m),v=r.add(v,m),g=r.mul(y,v),c=r.add(c,g),g=r.mul(x,v),u=r.mul(w,u),u=r.sub(u,g),g=r.mul(w,y),f=r.mul(x,f),new d(u,c,f=r.add(f,g))}subtract(e){return this.add(e.negate())}is0(){return this.equals(d.ZERO)}wNAF(e){return b.wNAFCached(this,c,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(d.fromAffine)})}multiplyUnsafe(e){let n=d.ZERO;if(e===N)return n;if(l(e),e===C)return this;let{endo:i}=t;if(!i)return b.unsafeLadder(this,e);let{k1neg:o,k1:s,k2neg:a,k2:u}=i.splitScalar(e),c=n,h=n,f=this;for(;s>N||u>N;)s&C&&(c=c.add(f)),u&C&&(h=h.add(f)),f=f.double(),s>>=C,u>>=C;return o&&(c=c.negate()),a&&(h=h.negate()),h=new d(r.mul(h.px,i.beta),h.py,h.pz),c.add(h)}multiply(e){let n,i;l(e);let{endo:o}=t;if(o){let{k1neg:t,k1:s,k2neg:a,k2:l}=o.splitScalar(e),{p:u,f:c}=this.wNAF(s),{p:h,f:f}=this.wNAF(l);u=b.constTimeNegate(t,u),h=b.constTimeNegate(a,h),h=new d(r.mul(h.px,o.beta),h.py,h.pz),n=u.add(h),i=c.add(f)}else{let{p:t,f:r}=this.wNAF(e);n=t,i=r}return d.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=d.BASE,i=(e,t)=>t!==N&&t!==C&&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 s=r.mul(t,e),a=r.mul(n,e),l=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw Error("invZ was invalid");return{x:s,y:a}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===C)return!0;if(r)return r(d,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===C?this:r?r(d,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(d,this,e)}toHex(e=!0){return i.ci(this.toRawBytes(e))}}d.BASE=new d(t.Gx,t.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);let p=t.nBitLength,b=function(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>I;)r&B&&(n=n.add(i)),i=i.double(),r>>=B;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],s=e,a=s;for(let e=0;e<r;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(t,i,o){let{windows:s,windowSize:a}=n(t),l=e.ZERO,u=e.BASE,c=BigInt(2**t-1),h=2**t,f=BigInt(t);for(let e=0;e<s;e++){let t=e*a,n=Number(o&c);o>>=f,n>a&&(n-=h,o+=B);let s=t+Math.abs(n)-1,d=e%2!=0,p=n<0;0===n?u=u.add(r(d,i[t])):l=l.add(r(p,i[s]))}return{p:l,f:u}},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)}}}(d,t.endo?Math.ceil(p/2):p);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:u,weierstrassEquation:s,isWithinCurveOrder:a}}({...t,toBytes(e,t,n){let o=t.toAffine(),s=r.toBytes(o.x),a=i.eV;return n?a(Uint8Array.from([t.hasEvenY()?2:3]),s):a(Uint8Array.from([4]),s,r.toBytes(o.y))},fromBytes(e){let t=e.length,n=e[0],s=e.subarray(1);if(t===o&&(2===n||3===n)){let e=i.bytesToNumberBE(s);if(!(N<e&&e<r.ORDER))throw Error("Point is not on curve");let t=h(e),o=r.sqrt(t);return(1&n)==1!=((o&C)===C)&&(o=r.neg(o)),{x:e,y:o}}if(t===a&&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 ${o} compressed bytes or ${a} uncompressed bytes`)}}),b=e=>i.ci(i.tL(e,t.nByteLength)),g=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class w{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new w(g(e=(0,i.ql)("compactSignature",e,2*r),0,r),g(e,r,2*r))}static fromDER(e){let{r:t,s:r}=A.toSig((0,i.ql)("DER",e));return new w(t,r)}assertValidity(){if(!d(this.r))throw Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new w(this.r,this.s,e)}recoverPublicKey(e){let{r:o,s,recovery:a}=this,c=E((0,i.ql)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw Error("recovery id invalid");let h=2===a||3===a?o+t.n:o;if(h>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&a)==0?"02":"03",d=u.fromHex(f+b(h)),g=p(h,n),y=l(-c*g),m=l(s*g),w=u.BASE.multiplyAndAddUnsafe(d,y,m);if(!w)throw Error("point at infinify");return w.assertValidity(),w}hasHighS(){return this.s>n>>C}normalizeS(){return this.hasHighS()?new w(this.r,l(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return A.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return b(this.r)+b(this.s)}}function v(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===o||n===a:r?n===2*o||n===2*a:e instanceof u}let x=t.bits2int||function(e){let r=i.bytesToNumberBE(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},E=t.bits2int_modN||function(e){return l(x(e))},$=i.dQ(t.nBitLength);function O(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(N<=e&&e<$))throw Error(`bigint expected < 2^${t.nBitLength}`);return i.tL(e,t.nByteLength)}let U={lowS:t.lowS,prehash:!1},G={lowS:t.lowS,prehash:!1};return u.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return u.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(v(e))throw Error("first arg must be private key");if(!v(t))throw Error("second arg must be public key");return u.fromHex(t).multiply(c(e)).toRawBytes(r)},sign:function(e,o,s=U){let{seed:a,k2sig:h}=function(e,o,s=U){if(["recovered","canonical"].some(e=>e in s))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:h}=t,{lowS:f,prehash:b,extraEntropy:g}=s;null==f&&(f=!0),e=(0,i.ql)("msgHash",e),b&&(e=(0,i.ql)("prehashed msgHash",a(e)));let y=E(e),m=c(o),v=[O(m),O(y)];if(null!=g){let e=!0===g?h(r.BYTES):g;v.push((0,i.ql)("extraEntropy",e))}return{seed:i.eV(...v),k2sig:function(e){let t=x(e);if(!d(t))return;let r=p(t,n),i=u.BASE.multiply(t).toAffine(),o=l(i.x);if(o===N)return;let s=l(r*l(y+o*m));if(s===N)return;let a=(i.x===o?0:2)|Number(i.y&C),c=s;if(f&&s>n>>C)c=s>n>>C?l(-s):s,a^=1;return new w(o,c,a)}}}(e,o,s);return i.n$(t.hash.outputLen,t.nByteLength,t.hmac)(a,h)},verify:function(e,r,o,s=G){let a,c;if(r=(0,i.ql)("msgHash",r),o=(0,i.ql)("publicKey",o),"strict"in s)throw Error("options.strict was renamed to lowS");let{lowS:h,prehash:f}=s;try{if("string"==typeof e||e instanceof Uint8Array)try{c=w.fromDER(e)}catch(t){if(!(t instanceof A.Err))throw t;c=w.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;c=new w(t,r)}else throw Error("PARSE");a=u.fromHex(o)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(h&&c.hasHighS())return!1;f&&(r=t.hash(r));let{r:d,s:b}=c,g=E(r),y=p(b,n),m=l(g*y),v=l(d*y),x=u.BASE.multiplyAndAddUnsafe(a,m,v)?.toAffine();return!!x&&l(x.x)===d},ProjectivePoint:u,Signature:w,utils:{isValidPrivateKey(e){try{return c(e),!0}catch(e){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{let e=m(t.n);return function(e,t,r=!1){let n=e.length,o=y(t),a=m(t);if(n<16||n<a||n>1024)throw Error(`expected ${a}-1024 bytes of input, got ${n}`);let l=f(r?(0,i.bytesToNumberBE)(e):(0,i.ty)(e),t-s)+s;return r?(0,i.S5)(l,o):(0,i.tL)(l,o)}(t.randomBytes(e),t.n)},precompute:(e=8,t=u.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...r)=>E(t,e,(0,v.eV)(...r)),randomBytes:v.O6});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:R,n:G,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-j*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),o=T(t*e,G),s=T(-r*e,G),a=f(e-o*t-s*n,G),l=f(-o*r-s*t,G),u=a>i,c=l>i;if(u&&(a=G-a),c&&(l=G-l),a>i||l>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:a,k2neg:c,k2:l}}}},n.J);BigInt(0),F.ProjectivePoint},62316:(e,t,r)=>{function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function i(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 o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function s(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 a(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(t,{Gg:()=>s,J8:()=>a,Rx:()=>n,aI:()=>i,vp:()=>o})},14061:(e,t,r)=>{r.d(t,{J:()=>f});var n=r(62316),i=r(92167);class o extends i.kb{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=(0,i.GL)(this.buffer)}update(e){(0,n.Gg)(this);let{view:t,buffer:r,blockLen:o}=this,s=(e=(0,i.O0)(e)).length;for(let n=0;n<s;){let a=Math.min(o-this.pos,s-n);if(a===o){let t=(0,i.GL)(e);for(;o<=s-n;n+=o)this.process(t,n);continue}r.set(e.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.Gg)(this),(0,n.J8)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:o,isLE:s}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>o-a&&(this.process(r,0),a=0);for(let e=a;e<o;e++)t[e]=0;(function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),l=n?4:0,u=n?0:4;e.setUint32(t+l,s,n),e.setUint32(t+u,a,n)})(r,o-8,BigInt(8*this.length),s),this.process(r,0);let l=(0,i.GL)(e),u=this.outputLen;if(u%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=u/4,h=this.get();if(c>h.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)l.setUint32(4*e,h[e],s)}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:s}=this;return e.length=n,e.pos=s,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}let s=(e,t,r)=>e&t^~e&r,a=(e,t,r)=>e&t^e&r^t&r,l=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class h extends o{constructor(){super(64,32,8,!1),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3],this.E=0|u[4],this.F=0|u[5],this.G=0|u[6],this.H=0|u[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:s,H:a}=this;return[e,t,r,n,i,o,s,a]}set(e,t,r,n,i,o,s,a){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|s,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],n=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,o=(0,i.np)(r,17)^(0,i.np)(r,19)^r>>>10;c[e]=o+c[e-7]+n+c[e-16]|0}let{A:r,B:n,C:o,D:u,E:h,F:f,G:d,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(h,6)^(0,i.np)(h,11)^(0,i.np)(h,25))+s(h,f,d)+l[e]+c[e]|0,b=((0,i.np)(r,2)^(0,i.np)(r,13)^(0,i.np)(r,22))+a(r,n,o)|0;p=d,d=f,f=h,h=u+t|0,u=o,o=n,n=r,r=t+b|0}r=r+this.A|0,n=n+this.B|0,o=o+this.C|0,u=u+this.D|0,h=h+this.E|0,f=f+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,n,o,u,h,f,d,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let f=(0,i.hE)(()=>new h)},92167:(e,t,r)=>{r.d(t,{kb:()=>f,eV:()=>h,GL:()=>l,O6:()=>p,np:()=>u,O0:()=>c,Jq:()=>a,hE:()=>d});var n=r(6005),i=r.t(n,2);let o=i&&"object"==typeof i&&"webcrypto"in i?n.webcrypto:void 0,s=e=>e instanceof Uint8Array,a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),l=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),u=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw Error("Non little-endian hardware is not supported");function c(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),!s(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}function h(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!s(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}class f{clone(){return this._cloneInto()}}function d(e){let t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function p(e=32){if(o&&"function"==typeof o.getRandomValues)return o.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}}};