playlist-data-engine 1.5.8 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var oi=1,hn=2,si=3,ai=4,ci=5,_i=6,ui=7,di=8,Ri=9,li=10,Ai=11,fi=12,Oi=-32700,Ei=-32603,Si=-32602,Ni=-32601,Ti=-32600,Zc=-32021,gi=-32020,Qc=-32019,e_=-32018,n_=-32017,t_=-32016,Ii=-32015,mi=-32014,r_=-32013,Ci=-32012,i_=-32011,hi=-32010,pi=-32009,o_=-32008,Li=-32007,Di=-32006,s_=-32005,bi=-32004,a_=-32003,je=-32002,Pi=-32001,Mn=28e5,Fn=2800001,c_=2800002,wi=2800003,yi=2800004,vi=2800005,Ui=2800006,It=2800007,mt=2800008,xi=2800009,Mi=2800010,Fi=2800011,Bi=323e4,ki=32300001,zi=3230002,Vi=3230003,Gi=3230004,Hi=361e4,$i=3610001,ji=3610002,Ki=3610003,Xi=3610004,Yi=3610005,Wi=3610006,qi=3610007,Ji=3611e3,Zi=3704e3,Qi=3704001,eo=3704002,no=3704003,to=3704004,ro=3704005,io=3704006,__=3712e3,oo=4128e3,so=4128001,ao=4128002,pn=4615e3,u_=4615001,d_=4615002,R_=4615003,l_=4615004,A_=4615005,f_=4615006,O_=4615007,E_=4615008,S_=4615009,N_=4615010,T_=4615011,g_=4615012,I_=4615013,m_=4615014,C_=4615015,h_=4615016,p_=4615017,L_=4615018,D_=4615019,b_=4615020,P_=4615021,w_=4615022,y_=4615023,v_=4615024,U_=4615025,Ct=4615026,x_=4615027,M_=4615028,F_=4615029,B_=4615030,k_=4615031,z_=4615032,V_=4615033,G_=4615034,H_=4615035,$_=4615036,j_=4615037,K_=4615038,X_=4615039,Y_=4615040,W_=4615041,q_=4615042,J_=4615043,Z_=4615044,Q_=4615045,eu=4615046,nu=4615047,tu=4615048,ru=4615049,iu=4615050,ou=4615051,su=4615052,au=4615053,cu=4615054,co=5508e3,_o=5508001,uo=5508002,Ro=5508003,lo=5508004,Ao=5508005,fo=5508006,Oo=5508007,Eo=5508008,So=5508009,ht=5508010,_u=5508011,uu=5508012,Qe=5607e3,No=5607001,To=5607002,go=5607003,Io=5607004,me=5607005,Ke=5607006,Bn=5607007,mo=5607008,we=5607009,kn=5607010,Co=5607011,ho=5607012,po=5607013,Lo=5607014,Do=5607015,pt=5607016,bo=5607017,Lt=5663e3,Xe=5663001,Dt=5663002,bt=5663003,Po=5663004,wo=5663005,yo=5663006,Pt=5663007,vo=5663008,Uo=5663009,du=5663010,Ru=5663011,xo=5663012,lu=5663013,Au=5663014,Mo=5663015,Fo=5663016,wt=5663017,Ye=5663018,We=5663019,yt=5663020,Oe=5663021,Bo=5663022,ko=5663023,zo=5663024,Vo=5663025,Go=5663026,Ho=5663027,$o=5663028,jo=5663029,Ko=5663030,Xo=5663031,en=5663032,nn=5663033,tn=5663034,rn=5663035,dt=5663036,Ln=5663037,Yo=705e4,fu=7050001,Ou=7050002,Eu=7050003,Su=7050004,Nu=7050005,Tu=7050006,gu=7050007,Iu=7050008,mu=7050009,Cu=7050010,hu=7050011,pu=7050012,Lu=7050013,Du=7050014,bu=7050015,Pu=7050016,wu=7050017,yu=7050018,vu=7050019,Uu=7050020,xu=7050021,Mu=7050022,Fu=7050023,Bu=7050024,ku=7050025,zu=7050026,Vu=7050027,Gu=7050028,Hu=7050029,Wo=7050030,qo=7050031,$u=7050032,ju=7050033,Ku=7050034,Jo=7050035,Xu=7050036,ye=7618e3,vt=7618001,Zo=7618002,Ut=7618003,xt=7618004,Qo=7618005,ve=7618006,on=7618007,Ee=7618008,es=7618009,ns=8078e3,ts=8078001,rs=8078002,is=8078003,os=8078004,ss=8078005,as=8078006,cs=8078007,_s=8078008,us=8078009,ds=8078010,Rs=8078011,Te=8078012,Dn=8078013,ls=8078014,As=8078015,fs=8078016,Os=8078017,Es=8078018,Yu=8078019,Ss=8078020,Ns=8078021,Mt=8078022,Ts=8078023,gs=8078024,Is=8078025,ms=809e4,Cs=8090001,hs=8090002,ps=8090003,Ls=8090004,Ds=8090005,Ft=8090006,bs=8090007,Ps=8090008,ws=8090009,ys=8090010,vs=8090011,Us=8090012,Bt=81e5,xs=8100001,Ms=8100002,Fs=8100003,Bs=819e4,ks=8190001,zs=8190002,bn=8190003,Vs=8190004,Gs=8195e3,Wu=85e5,qu=8500001,Ju=8500002,Zu=8500003,Qu=8500004,ed=8500005,nd=8500006,td=89e5,rd=8900001,id=8900002,od=8900003,Hs=99e5,$s=9900001,sd=9900002,sn=9900003,js=9900004,zn=9900005,kt=9900006;function ad(e){return Array.isArray(e)?"%5B"+e.map(ad).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function sO([e,n]){return`${e}=${ad(n)}`}function aO(e){const n=Object.entries(e).map(sO).join("&");return btoa(n)}var cO={[Bi]:"Account not found at address: $address",[Gi]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Vi]:"Expected decoded account at address: $address",[zi]:"Failed to decode account data at address: $address",[ki]:"Accounts not found at addresses: $addresses",[xi]:"Unable to find a viable program address bump seed.",[c_]:"$putativeAddress is not a base58-encoded address.",[Mn]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[wi]:"The `CryptoKey` must be an `Ed25519` public key.",[Fi]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[mt]:"Invalid seeds; point must fall off the Ed25519 curve.",[yi]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Ui]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[It]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[vi]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Mi]:"Program address cannot end with PDA marker.",[Fn]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[ai]:"Expected base58-encoded blockhash string of length in the range [32, 44]. Actual length: $actualLength.",[oi]:"The network has progressed past the last block for which this transaction could have been committed.",[ns]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Mt]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Ss]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[ss]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[as]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[os]:"Encoder and decoder must either both be fixed-size or variable-size.",[_s]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[rs]:"Expected a fixed-size codec, got a variable-size one.",[Dn]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[is]:"Expected a variable-size codec, got a fixed-size one.",[Yu]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[ts]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Es]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[us]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[ds]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[As]:"Invalid literal union variant. Expected one of [$variants], got $value.",[cs]:"Expected [$codecDescription] to have $expected items, got $actual.",[Te]:"Invalid value $value for base $base with alphabet $alphabet.",[fs]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Rs]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[ls]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Ns]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Os]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Ts]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[gs]:"Invalid pattern match value. The provided value does not match any of the specified patterns.",[Is]:"Invalid pattern match bytes. The provided byte array does not match any of the specified patterns.",[Ji]:"No random values implementation could be found.",[Ai]:"Failed to send transaction$causeMessage",[fi]:"Failed to send transactions$causeMessages",[bs]:"Fixed-point operation `$operation` of kind `$kind` overflowed. Expected a raw bigint in [$min, $max], got $result.",[ws]:"Fixed-point division by zero for value of kind `$kind` ($signedness, $totalBits bits).",[ps]:"`fractionalBits` ($fractionalBits) must not exceed `totalBits` ($totalBits).",[hs]:"Invalid `decimals`. Expected a non-negative integer, got $decimals.",[Cs]:"Invalid `fractionalBits`. Expected a non-negative integer, got $fractionalBits.",[Ds]:"Invalid string `$input` for fixed-point value of kind `$kind`.",[ms]:"Invalid `totalBits`. Expected a positive integer, got $totalBits.",[Ft]:"Invalid ratio $numerator/$denominator for fixed-point value of kind `$kind`. Denominator must be non-zero.",[vs]:"Fixed-point value of kind `$kind` has a malformed `raw` field. Expected a bigint, got `$raw`.",[Ps]:"Fixed-point `$operation` operation expected $expectedKind ($expectedSignedness, $expectedTotalBits bits, $expectedScale $expectedScaleLabel); got $actualKind ($actualSignedness, $actualTotalBits bits, $actualScale $actualScaleLabel).",[ys]:"Fixed-point operation `$operation` of kind `$kind` cannot be performed exactly; pass a rounding mode other than `strict` to allow a rounded result.",[Us]:"Fixed-point codec of kind `$kind` requires `totalBits` to be a multiple of 8; got $totalBits.",[Ls]:"Fixed-point value of kind `$kind` is out of range for $signedness $totalBits-bit storage. Expected a raw bigint in [$min, $max], got $raw.",[__]:"Filesystem operation `$operation` is not supported in this environment.",[S_]:"Instruction requires an uninitialized account",[y_]:"Instruction tries to borrow reference for an account which is already borrowed",[v_]:"Instruction left account with an outstanding borrowed reference",[P_]:"Program other than the account's owner changed the size of the account data",[A_]:"Account data too small for instruction",[w_]:"Instruction expected an executable account",[eu]:"An account does not have enough lamports to be rent-exempt",[tu]:"Program arithmetic overflowed",[Q_]:"Failed to serialize or deserialize account data",[cu]:"Builtin programs must consume compute units",[z_]:"Cross-program invocation call depth too deep",[K_]:"Computational budget exceeded",[Ct]:"Custom program error: #$code",[p_]:"Instruction contains duplicate accounts",[U_]:"Instruction modifications of multiply-passed account differ",[B_]:"Executable accounts must be rent exempt",[M_]:"Instruction changed executable accounts data",[F_]:"Instruction changed the balance of an executable account",[L_]:"Instruction changed executable bit of an account",[m_]:"Instruction modified data of an account it does not own",[I_]:"Instruction spent from the balance of an account it does not own",[u_]:"Generic instruction error",[iu]:"Provided owner is not allowed",[J_]:"Account is immutable",[Z_]:"Incorrect authority provided",[O_]:"Incorrect program id for instruction",[f_]:"Insufficient funds for instruction",[l_]:"Invalid account data for instruction",[nu]:"Invalid account owner",[d_]:"Invalid program argument",[x_]:"Program returned invalid error code",[R_]:"Invalid instruction data",[j_]:"Failed to reallocate account data",[$_]:"Provided seeds do not result in a valid address",[ou]:"Accounts data allocations exceeded the maximum allowed per transaction",[su]:"Max accounts exceeded",[au]:"Max instruction trace length exceeded",[H_]:"Length of the seed is too long for address generation",[V_]:"An account required by the instruction is missing",[E_]:"Missing required signature for instruction",[g_]:"Instruction illegally modified the program id of an account",[b_]:"Insufficient account keys for instruction",[X_]:"Cross-program invocation with unauthorized signer or writable account",[Y_]:"Failed to create program execution environment",[q_]:"Program failed to compile",[W_]:"Program failed to complete",[h_]:"Instruction modified data of a read-only account",[C_]:"Instruction changed the balance of a read-only account",[G_]:"Cross-program invocation reentrancy not allowed for this instruction",[D_]:"Instruction modified rent epoch of an account",[T_]:"Sum of account balances before and after instruction do not match",[N_]:"Instruction requires an initialized account",[pn]:"The instruction failed with the error: $errorName",[k_]:"Unsupported program id",[ru]:"Unsupported sysvar",[zn]:"Invalid instruction plan kind: $kind.",[Zo]:"The provided instruction plan is empty.",[Qo]:"No failed transaction plan result was found in the provided transaction plan result.",[xt]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[Ut]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[ye]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[kt]:"Invalid transaction plan kind: $kind.",[vt]:"No more instructions to pack; the message packer has completed the instruction plan.",[ve]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[on]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[Ee]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[es]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[oo]:"The instruction does not have any accounts.",[so]:"The instruction does not have any data.",[ao]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[ci]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[hn]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[sd]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[js]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[$s]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Hs]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[sn]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ei]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Si]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Ti]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Ni]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Oi]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Ci]:"$__serverMessage",[Pi]:"$__serverMessage",[bi]:"$__serverMessage",[mi]:"$__serverMessage",[n_]:"Epoch rewards period still active at slot $slot",[gi]:"$__serverMessage",[hi]:"$__serverMessage",[pi]:"$__serverMessage",[Qc]:"Failed to query long-term storage; please try again",[t_]:"Minimum context slot has not been reached",[s_]:"Node is unhealthy; behind by $numSlotsBehind slots",[Zc]:"No slot history",[o_]:"No snapshot",[je]:"Transaction simulation failed",[e_]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Li]:"$__serverMessage",[i_]:"Transaction history is not available from this node",[Di]:"$__serverMessage",[r_]:"Transaction signature length mismatch",[a_]:"Transaction signature verification failure",[Ii]:"$__serverMessage",[ro]:"The grind regex `/$source/` contains the character `$character`, which is not in the base58 alphabet and can never match a Solana address.",[Zi]:"Key pair bytes must be of length 64, got $byteLength.",[Qi]:"Expected private key bytes with length 32. Actual length: $actualLength.",[eo]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[to]:"The provided private key does not match the provided public key.",[no]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[io]:"Writing a key pair to disk is not supported in this environment.",[_i]:"Lamports value must be in the range [0, 2e64-1]",[ui]:"`$value` cannot be parsed as a `BigInt`",[li]:"$message",[di]:"`$value` cannot be parsed as a `Number`",[si]:"No nonce account could be found at address `$nonceAccountAddress`",[go]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[po]:"Attempted to sign an offchain message with an address that is not a signer for it",[To]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[ho]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[Qe]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[Bn]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[mo]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[we]:"Offchain message content must be non-empty",[me]:"Offchain message must specify the address of at least one required signer",[kn]:"Offchain message envelope must reserve space for at least one signature",[Io]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[Do]:"The signatories of this offchain message must be listed in lexicographical order",[pt]:"An address must be listed no more than once among the signatories of an offchain message",[Co]:"Offchain message is missing signatures for addresses: $addresses.",[bo]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[No]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[Lo]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[Ke]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[nd]:"The provided account could not be identified as an account from the $programName program.",[Ju]:"The provided instruction could not be identified as an instruction from the $programName program.",[Wu]:"The provided instruction is missing some accounts. Expected at least $expectedAccountMetas account(s), got $actualAccountMetas.",[Qu]:"Expected resolved instruction input '$inputName' to be non-null.",[Zu]:"Expected resolved instruction input '$inputName' to be of type `$expectedType`.",[ed]:"Unrecognized account type '$accountType' for the $programName program.",[qu]:"Unrecognized instruction type '$instructionType' for the $programName program.",[Bs]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[zs]:"WebSocket was closed before payload could be added to the send buffer",[bn]:"WebSocket connection closed",[Vs]:"WebSocket failed to connect",[ks]:"Failed to obtain a subscription id from the server",[Fs]:"Could not find an API plan for RPC method: `$method`",[Bt]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Ms]:"HTTP error ($statusCode): $message",[xs]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[co]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[_o]:"The provided value does not implement the `KeyPairSigner` interface",[Ro]:"The provided value does not implement the `MessageModifyingSigner` interface",[lo]:"The provided value does not implement the `MessagePartialSigner` interface",[uo]:"The provided value does not implement any of the `MessageSigner` interfaces",[fo]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Oo]:"The provided value does not implement the `TransactionPartialSigner` interface",[Eo]:"The provided value does not implement the `TransactionSendingSigner` interface",[Ao]:"The provided value does not implement any of the `TransactionSigner` interfaces",[So]:"More than one `TransactionSendingSigner` was identified.",[ht]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[uu]:"The wallet account $address cannot be used to create a transaction signer because it does not implement either the `solana:signTransaction` or `solana:signAndSendTransaction` feature. At least one of these features is required. The account supports the following features: $supportedFeatures.",[_u]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Gs]:"This `ReactiveStreamStore` does not support retry. Use `createReactiveStoreFromDataPublisherFactory` to construct a retryable store.",[qi]:"Cannot export a non-extractable key.",[$i]:"No digest implementation could be found.",[Hi]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[ji]:`This runtime does not support the generation of Ed25519 key pairs.
2
+
3
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
4
+
5
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Ki]:"No key export implementation could be found.",[Xi]:"No key generation implementation could be found.",[Yi]:"No signing implementation could be found.",[Wi]:"No signature verification implementation could be found.",[Ri]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Pu]:"Transaction processing left an account with an outstanding borrowed reference",[fu]:"Account in use",[Ou]:"Account loaded twice",[Eu]:"Attempt to debit an account but found no record of a prior credit.",[Fu]:"Transaction loads an address table account that doesn't exist",[gu]:"This transaction has already been processed",[Iu]:"Blockhash not found",[mu]:"Loader call chain is too deep",[bu]:"Transactions are currently disabled due to cluster maintenance",[Wo]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Nu]:"Insufficient funds for fee",[qo]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Tu]:"This account may not be used to pay transaction fees",[hu]:"Transaction contains an invalid account reference",[ku]:"Transaction loads an address table account with invalid data",[zu]:"Transaction address table lookup uses an invalid index",[Bu]:"Transaction loads an address table account with an invalid owner",[ju]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Lu]:"This program may not be used for executing instructions",[Vu]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[vu]:"Transaction loads a writable account that cannot be written",[$u]:"Transaction exceeded max loaded accounts data size cap",[Cu]:"Transaction requires a fee but has no signature present",[Su]:"Attempt to load a program that does not exist",[Jo]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Ku]:"ResanitizationNeeded",[Du]:"Transaction failed to sanitize accounts offsets correctly",[pu]:"Transaction did not pass signature verification",[Mu]:"Transaction locked too many accounts",[Xu]:"Sum of account balances before and after transaction do not match",[Yo]:"The transaction failed with the error `$errorName`",[yu]:"Transaction version is unsupported",[xu]:"Transaction would exceed account data limit within the block",[Hu]:"Transaction would exceed total account data limit",[Uu]:"Transaction would exceed max account limit within the block",[wu]:"Transaction would exceed max Block Cost Limit",[Gu]:"Transaction would exceed max Vote Cost Limit",[Mo]:"Attempted to sign a transaction with an address that is not a signer for it",[du]:"Transaction is missing an address at index: $index.",[Fo]:"Transaction has no expected signers therefore it cannot be encoded",[yt]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Dt]:"Transaction does not have a blockhash lifetime",[bt]:"Transaction is not a durable nonce transaction",[wo]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[yo]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[vo]:"No fee payer set in CompiledTransaction",[Pt]:"Could not find program address at index $index",[Ye]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[dt]:"Failed to estimate the loaded accounts data size for this transaction message. The RPC did not return a `loadedAccountsDataSize` value from simulation. This value is required for version 1 transactions",[We]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Ln]:"Transaction failed when it was simulated in order to estimate its resource limits. The resource limit estimates provided are for a transaction that failed when simulated and may not be representative of the resources this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Ru]:"Transaction is missing a fee payer.",[xo]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Au]:"Transaction first instruction is not advance nonce account instruction.",[lu]:"Transaction with no instructions cannot be durable nonce transaction.",[Lt]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Xe]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[wt]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Uo]:"Transaction is missing signatures for addresses: $addresses.",[Po]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Oe]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 1.",[Bo]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction.",[$o]:"Invalid transaction config mask: $mask. Bits 0 and 1 must match (both set or both unset)",[ko]:"Transaction message bytes are malformed: $messageBytes",[zo]:"Transaction message bytes are empty, so the transaction cannot be encoded",[Vo]:"Transaction bytes are empty, so no transaction can be decoded",[Go]:"Transaction version 0 must be encoded with signatures first. This transaction was encoded with first byte $firstByte, which is expected to be a signature count for v0 transactions.",[Ho]:"The provided transaction bytes expect that there should be $numExpectedSignatures signatures, but the bytes are not long enough to contain a transaction message with this many signatures. The provided bytes are $transactionBytesLength bytes long.",[jo]:"The transaction has a durable nonce lifetime, but the nonce account index is invalid. Expected a nonce account index less than $numberOfStaticAccounts, got $nonceAccountIndex.",[Ko]:"The transaction config value for $configName has the incorrect kind. Expected $expectedKind, got $actualKind.",[Xo]:"The transaction does not have the same number of instruction headers and instruction payloads. Got $numInstructionHeaders instruction headers, and $numInstructionPayloads instruction payloads.",[en]:"Transaction has $actualCount unique signer addresses but the maximum allowed is $maxAllowed",[nn]:"Transaction has $actualCount unique account addresses but the maximum allowed is $maxAllowed",[tn]:"Transaction has $actualCount instructions but the maximum allowed is $maxAllowed",[rn]:"The instruction at index $instructionIndex has $actualCount account references but the maximum allowed is $maxAllowed",[td]:"Cannot $operation: no wallet connected",[rd]:"No signing wallet connected (status: $status)",[id]:"Connected wallet does not support signing",[od]:'Account $address is not available in wallet "$walletName"'},_O=1e3,le="i",ce="t";function uO(e,n={}){const t=cO[e];if(t.length===0)return"";let r;function i(a){if(r[ce]===2){const c=t.slice(r[le]+1,a);o.push(c in n?`${n[c]}`:`$${c}`)}else r[ce]===1&&o.push(t.slice(r[le],a))}const o=[];t.split("").forEach((a,c)=>{if(c===0){r={[le]:0,[ce]:t[0]==="\\"?0:t[0]==="$"?2:1};return}let u;switch(r[ce]){case 0:u={[le]:c,[ce]:1};break;case 1:a==="\\"?u={[le]:c,[ce]:0}:a==="$"&&(u={[le]:c,[ce]:2});break;case 2:a==="\\"?u={[le]:c,[ce]:0}:a==="$"?u={[le]:c,[ce]:2}:a.match(/\w/)||(u={[le]:c,[ce]:1});break}u&&(r!==u&&i(c),r=u)}),i();let s=o.join("");return e>=pn&&e<pn+_O&&"index"in n&&(s+=` (instruction #${n.index+1})`),s}function dO(e,n={}){if(process.env.NODE_ENV!=="production")return uO(e,n);{let t=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(n).length&&(t+=` '${aO(n)}'`),`${t}\``}}function y(e,n){return e instanceof Error&&e.name==="SolanaError"?n!==void 0?e.context.__code===n:!0:!1}var _=class extends Error{cause=this.cause;context;constructor(...[e,n]){let t,r;n&&Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,s])=>{o==="cause"?r={cause:s.value}:(t===void 0&&(t={__code:e}),Object.defineProperty(t,o,s))});const i=dO(e,t);super(i,r),this.context=Object.freeze(t===void 0?{__code:e}:t),this.name="SolanaError"}};function Vn(...e){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...e)}function cd({errorCodeBaseOffset:e,getErrorContext:n,orderedErrorNames:t,rpcEnumError:r},i){let o,s;typeof r=="string"?o=r:(o=Object.keys(r)[0],s=r[o]);const a=t.indexOf(o),c=e+a,u=n(c,o,s),d=new _(c,u);return Vn(d,i),d}var RO=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function Ks(e,n){const t=Number(e);return cd({errorCodeBaseOffset:4615001,getErrorContext(r,i,o){return r===pn?{errorName:i,index:t,...o!==void 0?{instructionErrorContext:o}:null}:r===Ct?{code:Number(o),index:t}:{index:t}},orderedErrorNames:RO,rpcEnumError:n},Ks)}var lO=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function ge(e){return typeof e=="object"&&"InstructionError"in e?Ks(...e.InstructionError):cd({errorCodeBaseOffset:7050001,getErrorContext(n,t,r){if(n===Yo)return{errorName:t,...r!==void 0?{transactionErrorContext:r}:null};if(n===Wo)return{index:Number(r)};if(n===qo||n===Jo)return{accountIndex:Number(r.account_index)}},orderedErrorNames:lO,rpcEnumError:e},ge)}function Pn(e){let n;if(AO(e)){const{code:t,data:r,message:i}=e,o=Number(t);if(o===je){const{err:s,...a}=r,c=s?{cause:ge(s)}:null;n=new _(je,{...a,...c})}else{let s;switch(o){case Ei:case Si:case Ti:case Ni:case Oi:case Ci:case Pi:case bi:case mi:case gi:case hi:case pi:case Li:case Di:case Ii:s={__serverMessage:i};break;default:typeof r=="object"&&!Array.isArray(r)&&(s=r)}n=new _(o,s)}}else{const t=typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string"?e.message:"Malformed JSON-RPC error with no message attribute";n=new _(li,{error:e,message:t})}return Vn(n,Pn),n}function AO(e){return typeof e=="object"&&e!==null&&"code"in e&&"message"in e&&(typeof e.code=="number"||typeof e.code=="bigint")&&typeof e.message=="string"}function fO(e){const n=[je,We,Ln];return y(e)&&e.cause&&n.includes(e.context.__code)?e.cause:e}var OO=e=>{const n=e.filter(o=>o.length);if(n.length===0)return e.length?e[0]:new Uint8Array;if(n.length===1)return n[0];const t=n.reduce((o,s)=>o+s.length,0),r=new Uint8Array(t);let i=0;return n.forEach(o=>{r.set(o,i),i+=o.length}),r};function _d(e,n){if(e.length>=n)return e;const t=new Uint8Array(n).fill(0);return t.set(e),t}var ud=(e,n)=>_d(e.length<=n?e:e.slice(0,n),n);function Gn(e,n,t){const r=(t===0||t<=-e.byteLength)&&e.length===n.length?e:e.slice(t,t+n.length);return Hn(r,n)}function Hn(e,n){return e.length===n.length&&e.every((t,r)=>t===n[r])}function ue(e,n){return"fixedSize"in n?n.fixedSize:n.getSizeFromValue(e)}function I(e){return Object.freeze({...e,encode:n=>{const t=new Uint8Array(ue(n,e));return e.write(n,t,0),t}})}function T(e){return Object.freeze({...e,decode:(n,t=0)=>e.read(n,t)[0]})}function dd(e){return Object.freeze({...e,decode:(n,t=0)=>e.read(n,t)[0],encode:n=>{const t=new Uint8Array(ue(n,e));return e.write(n,t,0),t}})}function h(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function Ue(e){if(!h(e))throw new _(rs)}function Xs(e){return!h(e)}function EO(e){if(!Xs(e))throw new _(is)}function f(e,n){if(h(e)!==h(n))throw new _(os);if(h(e)&&h(n)&&e.fixedSize!==n.fixedSize)throw new _(ss,{decoderFixedSize:n.fixedSize,encoderFixedSize:e.fixedSize});if(!h(e)&&!h(n)&&e.maxSize!==n.maxSize)throw new _(as,{decoderMaxSize:n.maxSize,encoderMaxSize:e.maxSize});return{...n,...e,decode:n.decode,encode:e.encode,read:n.read,write:e.write}}function Rd(e,n){const t=((r,i,o)=>{const s=e.encode(r);if(Ad(s,n)>=0)throw new _(Ss,{encodedBytes:s,hexEncodedBytes:Rt(s),hexSentinel:Rt(n),sentinel:n});return i.set(s,o),o+=s.length,i.set(n,o),o+=n.length,o});return h(e)?I({...e,fixedSize:e.fixedSize+n.length,write:t}):I({...e,...e.maxSize!=null?{maxSize:e.maxSize+n.length}:{},getSizeFromValue:r=>e.getSizeFromValue(r)+n.length,write:t})}function ld(e,n){const t=((r,i)=>{const o=i===0||i<=-r.byteLength?r:r.slice(i),s=Ad(o,n);if(s===-1)throw new _(Ns,{decodedBytes:o,hexDecodedBytes:Rt(o),hexSentinel:Rt(n),sentinel:n});const a=o.slice(0,s);return[e.decode(a),i+a.length+n.length]});return h(e)?T({...e,fixedSize:e.fixedSize+n.length,read:t}):T({...e,...e.maxSize!=null?{maxSize:e.maxSize+n.length}:{},read:t})}function SO(e,n){return f(Rd(e,n),ld(e,n))}function Ad(e,n){return e.findIndex((t,r,i)=>n.length===1?t===n[0]:Gn(i,n,r))}function Rt(e){return e.reduce((n,t)=>n+t.toString(16).padStart(2,"0"),"")}function zt(e,n,t=0){if(n.length-t<=0)throw new _(ns,{codecDescription:e})}function xe(e,n,t,r=0){const i=t.length-r;if(i<n)throw new _(ts,{bytesLength:i,codecDescription:e,expected:n})}function wn(e,n,t){if(n<0||n>t)throw new _(ls,{bytesLength:t,codecDescription:e,offset:n})}function Ys(e,n){const t=((s,a,c)=>{const u=e.encode(s);return c=n.write(u.length,a,c),a.set(u,c),c+u.length});if(h(n)&&h(e))return I({...e,fixedSize:n.fixedSize+e.fixedSize,write:t});const r=h(n)?n.fixedSize:n.maxSize??null,i=h(e)?e.fixedSize:e.maxSize??null,o=r!==null&&i!==null?r+i:null;return I({...e,...o!==null?{maxSize:o}:{},getSizeFromValue:s=>{const a=ue(s,e);return ue(a,n)+a},write:t})}function Ws(e,n){const t=((s,a)=>{const[c,u]=n.read(s,a),d=Number(c);return a=u,(a>0||s.length>d)&&(s=s.slice(a,a+d)),xe("addDecoderSizePrefix",d,s),[e.decode(s),a+d]});if(h(n)&&h(e))return T({...e,fixedSize:n.fixedSize+e.fixedSize,read:t});const r=h(n)?n.fixedSize:n.maxSize??null,i=h(e)?e.fixedSize:e.maxSize??null,o=r!==null&&i!==null?r+i:null;return T({...e,...o!==null?{maxSize:o}:{},read:t})}function NO(e,n){return f(Ys(e,n),Ws(e,n))}function qe(e,n,t){const r=e.byteOffset+(n??0),i=t??e.byteLength;let o;return typeof SharedArrayBuffer>"u"?o=e.buffer:e.buffer instanceof SharedArrayBuffer?(o=new ArrayBuffer(e.length),new Uint8Array(o).set(new Uint8Array(e))):o=e.buffer,(r===0||r===-e.byteLength)&&i===e.byteLength?o:o.slice(r,r+i)}function TO(e){return T({...e,read(n,t){const[r,i]=e.read(n,t);if(n.length>i)throw new _(Ts,{expectedLength:i,numExcessBytes:n.length-i});return[r,i]}})}function Se(e,n){return I({fixedSize:n,write:(t,r,i)=>{const o=e.encode(t),s=o.length>n?o.slice(0,n):o;return r.set(s,i),i+n}})}function se(e,n){return T({fixedSize:n,read:(t,r)=>{xe("fixCodecSize",n,t,r),(r>0||t.length>n)&&(t=t.slice(r,r+n)),h(e)&&(t=ud(t,e.fixedSize));const[i]=e.read(t,0);return[i,r+n]}})}function gO(e,n){return f(Se(e,n),se(e,n))}function Vt(e,n){return I({...e,write:(t,r,i)=>{const o=u=>fd(u,r.length),s=n.preOffset?n.preOffset({bytes:r,preOffset:i,wrapBytes:o}):i;wn("offsetEncoder",s,r.length);const a=e.write(t,r,s),c=n.postOffset?n.postOffset({bytes:r,newPreOffset:s,postOffset:a,preOffset:i,wrapBytes:o}):a;return wn("offsetEncoder",c,r.length),c}})}function $n(e,n){return T({...e,read:(t,r)=>{const i=u=>fd(u,t.length),o=n.preOffset?n.preOffset({bytes:t,preOffset:r,wrapBytes:i}):r;wn("offsetDecoder",o,t.length);const[s,a]=e.read(t,o),c=n.postOffset?n.postOffset({bytes:t,newPreOffset:o,postOffset:a,preOffset:r,wrapBytes:i}):a;return wn("offsetDecoder",c,t.length),[s,c]}})}function IO(e,n){return f(Vt(e,n),$n(e,n))}function fd(e,n){return n===0?0:(e%n+n)%n}function Gt(e,n){if(h(e)){const t=n(e.fixedSize);if(t<0)throw new _(Dn,{bytesLength:t,codecDescription:"resizeEncoder"});return I({...e,fixedSize:t})}return I({...e,getSizeFromValue:t=>{const r=n(e.getSizeFromValue(t));if(r<0)throw new _(Dn,{bytesLength:r,codecDescription:"resizeEncoder"});return r}})}function Ht(e,n){if(h(e)){const t=n(e.fixedSize);if(t<0)throw new _(Dn,{bytesLength:t,codecDescription:"resizeDecoder"});return T({...e,fixedSize:t})}return e}function mO(e,n){return f(Gt(e,n),Ht(e,n))}function Od(e,n){return Vt(Gt(e,t=>t+n),{preOffset:({preOffset:t})=>t+n})}function Ed(e,n){return Vt(Gt(e,t=>t+n),{postOffset:({postOffset:t})=>t+n})}function Sd(e,n){return $n(Ht(e,t=>t+n),{preOffset:({preOffset:t})=>t+n})}function qs(e,n){return $n(Ht(e,t=>t+n),{postOffset:({postOffset:t})=>t+n})}function CO(e,n){return f(Od(e,n),Sd(e,n))}function hO(e,n){return f(Ed(e,n),qs(e,n))}function Nd(e,n,t,r,i=0){for(;t<--r;){const o=e[t];n[t+i]=e[r],n[r+i]=o,t++}t===r&&(n[t+i]=e[t])}function Td(e){return Ue(e),I({...e,write:(n,t,r)=>{const i=e.write(n,t,r);return Nd(t,t,r,r+e.fixedSize),i}})}function gd(e){return Ue(e),T({...e,read:(n,t)=>{const r=n.slice();return Nd(n,r,t,t+e.fixedSize),e.read(r,t)}})}function pO(e){return f(Td(e),gd(e))}function N(e,n){return I({...Xs(e)?{...e,getSizeFromValue:t=>e.getSizeFromValue(n(t))}:e,write:(t,r,i)=>e.write(n(t),r,i)})}function g(e,n){return T({...e,read:(t,r)=>{const[i,o]=e.read(t,r);return[n(i,t,r),o]}})}function LO(e,n,t){return dd({...N(e,n),read:t?g(e,t).read:e.read})}function Js(e,n,t=n){if(!n.match(new RegExp(`^[${e}]*$`)))throw new _(Te,{alphabet:e,base:e.length,value:t})}var $t=e=>I({getSizeFromValue:n=>{const[t,r]=pc(n,e[0]);if(!r)return n.length;const i=Lc(r,e);return t.length+Math.ceil(i.toString(16).length/2)},write(n,t,r){if(Js(e,n),n==="")return r;const[i,o]=pc(n,e[0]);if(!o)return t.set(new Uint8Array(i.length).fill(0),r),r+i.length;let s=Lc(o,e);const a=[];for(;s>0n;)a.unshift(Number(s%256n)),s/=256n;const c=[...Array(i.length).fill(0),...a];return t.set(c,r),r+c.length}}),jt=e=>T({read(n,t){const r=t===0||t<=-n.byteLength?n:n.slice(t);if(r.length===0)return["",0];let i=r.findIndex(c=>c!==0);i=i===-1?r.length:i;const o=e[0].repeat(i);if(i===r.length)return[o,n.length];const s=r.slice(i).reduce((c,u)=>c*256n+BigInt(u),0n),a=DO(s,e);return[o+a,n.length]}}),Zs=e=>f($t(e),jt(e));function pc(e,n){const[t,r]=e.split(new RegExp(`((?!${n}).*)`));return[t,r]}function Lc(e,n){const t=BigInt(n.length);let r=0n;for(const i of e)r*=t,r+=BigInt(n.indexOf(i));return r}function DO(e,n){const t=BigInt(n.length),r=[];for(;e>0n;)r.unshift(n[Number(e%t)]),e/=t;return r.join("")}var Qs="0123456789",bO=()=>$t(Qs),PO=()=>jt(Qs),wO=()=>Zs(Qs),Dc={alphabet:"0123456789abcdef",base:16};function hr(e){if(e>=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87}var Id=()=>I({getSizeFromValue:e=>Math.ceil(e.length/2),write(e,n,t){const r=e.length,i=r/2;if(r===1){const s=e.charCodeAt(0),a=hr(s);if(a===void 0)throw new _(Te,{...Dc,value:e});return n.set([a],t),1+t}const o=new Uint8Array(i);for(let s=0,a=0;s<i;s++){const c=e.charCodeAt(a++),u=e.charCodeAt(a++),d=hr(c),R=hr(u);if(d===void 0||R===void 0&&!Number.isNaN(u))throw new _(Te,{...Dc,value:e});o[s]=Number.isNaN(u)?d:d<<4|(R??0)}return n.set(o,t),o.length+t}}),md=()=>T({read(e,n){return[e.slice(n).reduce((r,i)=>r+i.toString(16).padStart(2,"0"),""),e.length]}}),yO=()=>f(Id(),md()),ea="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",jn=()=>$t(ea),Kn=()=>jt(ea),vO=()=>Zs(ea),Cd=(e,n)=>I({getSizeFromValue:t=>Math.floor(t.length*n/8),write(t,r,i){if(Js(e,t),t==="")return i;const o=[...t].map(a=>e.indexOf(a)),s=pd(o,n,8,!1);return r.set(s,i),s.length+i}}),hd=(e,n)=>T({read(t,r=0){const i=r===0||r<=-t.byteLength?t:t.slice(r);return i.length===0?["",t.length]:[pd([...i],8,n,!0).map(s=>e[s]).join(""),t.length]}}),UO=(e,n)=>f(Cd(e,n),hd(e,n));function pd(e,n,t,r){const i=[];let o=0,s=0;const a=(1<<t)-1;for(const c of e)for(o=o<<n|c,s+=n;s>=t;)s-=t,i.push(o>>s&a);return r&&s>0&&i.push(o<<t-s&a),i}var bc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kt=()=>I({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new _(Te,{alphabet:bc,base:64,value:e})}},write(e,n,t){try{const r=atob(e).split("").map(i=>i.charCodeAt(0));return n.set(r,t),r.length+t}catch{throw new _(Te,{alphabet:bc,base:64,value:e})}}}),na=()=>T({read(e,n=0){const t=e.slice(n);return[btoa(String.fromCharCode(...t)),e.length]}}),xO=()=>f(Kt(),na()),Ld=e=>e.replace(/\u0000/g,""),MO=(e,n)=>e.padEnd(n,"\0"),FO=globalThis.TextDecoder,Pc=globalThis.TextEncoder,j=()=>{let e;return I({getSizeFromValue:n=>(e||=new Pc).encode(n).length,write:(n,t,r)=>{const i=(e||=new Pc).encode(n);return t.set(i,r),r+i.length}})},Xt=()=>{let e;return T({read(n,t){const r=(e||=new FO).decode(n.slice(t));return[Ld(r),n.length]}})},BO=()=>f(j(),Xt()),kO=128;function zO(e,n){try{return"exists"in e&&!e.exists?e:Object.freeze({...e,data:n.decode(e.data)})}catch{throw new _(zi,{address:e.address})}}function Dd(e){return!("exists"in e)||"exists"in e&&e.exists}function VO(e){if(Dd(e)&&e.data instanceof Uint8Array)throw new _(Vi,{address:e.address})}function bd(e){const n=e.filter(t=>Dd(t)&&t.data instanceof Uint8Array);if(n.length>0){const t=n.map(r=>r.address);throw new _(Gi,{addresses:t})}}function Xn(e,n){if(!n)return Object.freeze({address:e,exists:!1});const t=Kt().encode(n.data[0]);return Object.freeze({...ra(n),address:e,data:t,exists:!0})}function GO(e,n){if(!n)return Object.freeze({address:e,exists:!1});const t=jn().encode(typeof n.data=="string"?n.data:n.data[0]);return Object.freeze({...ra(n),address:e,data:t,exists:!0})}function ta(e,n){if(!n)return Object.freeze({address:e,exists:!1});const t=n.data.parsed.info||{};return(n.data.program||n.data.parsed.type)&&(t.parsedAccountMeta={program:n.data.program,type:n.data.parsed.type}),Object.freeze({...ra(n),address:e,data:t,exists:!0})}function ra(e){return Object.freeze({executable:e.executable,lamports:e.lamports,programAddress:e.owner,space:e.space})}async function HO(e,n,t={}){const{abortSignal:r,...i}=t,o=await e.getAccountInfo(n,{...i,encoding:"base64"}).send({abortSignal:r});return Xn(n,o.value)}async function $O(e,n,t={}){const{abortSignal:r,...i}=t,{value:o}=await e.getAccountInfo(n,{...i,encoding:"jsonParsed"}).send({abortSignal:r});return o&&typeof o=="object"&&"parsed"in o.data?ta(n,o):Xn(n,o)}async function jO(e,n,t={}){const{abortSignal:r,...i}=t;return(await e.getMultipleAccounts(n,{...i,encoding:"base64"}).send({abortSignal:r})).value.map((s,a)=>Xn(n[a],s))}async function Pd(e,n,t={}){const{abortSignal:r,...i}=t;return(await e.getMultipleAccounts(n,{...i,encoding:"jsonParsed"}).send({abortSignal:r})).value.map((s,a)=>s&&typeof s=="object"&&"parsed"in s.data?ta(n[a],s):Xn(n[a],s))}function KO(e){if(!e.exists)throw new _(Bi,{address:e.address})}function wd(e){const n=e.filter(t=>!t.exists);if(n.length>0){const t=n.map(r=>r.address);throw new _(ki,{addresses:t})}}function XO(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.getRandomValues!="function")throw new _(Ji)}function Yn(){if(!globalThis.isSecureContext)throw new _(Hi)}var De;async function YO(e){return De===void 0&&(De=new Promise(n=>{e.generateKey("Ed25519",!1,["sign","verify"]).then(()=>{n(De=!0)}).catch(()=>{n(De=!1)})})),typeof De=="boolean"?De:await De}function WO(){if(Yn(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.digest!="function")throw new _($i)}async function qO(){if(Yn(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.generateKey!="function")throw new _(Xi);if(!await YO(globalThis.crypto.subtle))throw new _(ji)}function yd(){if(Yn(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.exportKey!="function")throw new _(Ki)}function JO(){if(Yn(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.sign!="function")throw new _(Yi)}function ZO(){if(Yn(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.verify!="function")throw new _(Wi)}var pr,Lr;function ia(){return pr||(pr=jn()),pr}function QO(){return Lr||(Lr=Kn()),Lr}function an(e){if(e.length<32||e.length>44)return!1;const n=ia();try{return n.encode(e).byteLength===32}catch{return!1}}function Pe(e){if(e.length<32||e.length>44)throw new _(Fn,{actualLength:e.length});const r=ia().encode(e).byteLength;if(r!==32)throw new _(Mn,{actualLength:r})}function oa(e){return Pe(e),e}function ae(){return N(Se(ia(),32),e=>oa(e))}function G(){return se(QO(),32)}function Yt(){return f(ae(),G())}function Wn(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}var eE=37095705934669439343138083508754565189542113879843219016388785533085940283555n,B=57896044618658097711785492504343953926634992332820282019728792003956564819949n,wc=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function W(e){const n=e%B;return n>=0n?n:B+n}function _e(e,n){let t=e;for(;n-- >0n;)t*=t,t%=B;return t}function nE(e){const t=e*e%B*e%B,r=_e(t,2n)*t%B,i=_e(r,1n)*e%B,o=_e(i,5n)*i%B,s=_e(o,10n)*o%B,a=_e(s,20n)*s%B,c=_e(a,40n)*a%B,u=_e(c,80n)*c%B,d=_e(u,80n)*c%B,R=_e(d,10n)*o%B;return _e(R,2n)*e%B}function tE(e,n){const t=W(n*n*n),r=W(t*t*n),i=nE(e*r);let o=W(e*t*i);const s=W(n*o*o),a=o,c=W(o*wc),u=s===e,d=s===W(-e),R=s===W(-e*wc);return u&&(o=a),(d||R)&&(o=c),(W(o)&1n)===1n&&(o=W(-o)),!u&&!d?null:o}function rE(e,n){const t=W(e*e),r=W(t-1n),i=W(eE*t+1n),o=tE(r,i);if(o===null)return!1;const s=(n&128)!==0;return!(o===0n&&s)}function iE(e){const n=e.toString(16);return n.length===1?`0${n}`:n}function oE(e){const t=`0x${e.reduce((r,i,o)=>`${iE(o===31?i&-129:i)}${r}`,"")}`;return BigInt(t)}function vd(e){if(e.byteLength!==32)return!1;const n=oE(e);return rE(n,e[31])}function Ud(e){const n=Yt().encode(e);return vd(n)===!1}function xd(e){if(!Ud(e))throw new _(Fi)}function sE(e){return xd(e),e}function aE(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="number"&&e[1]>=0&&e[1]<=255&&an(e[0])}function cE(e){if(!(Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="number"))throw new _(yi);if(e[1]<0||e[1]>255)throw new _(vi,{bump:e[1]});Pe(e[0])}var lt=32,yc=16,ct=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function _E({programAddress:e,seeds:n}){if(WO(),n.length>yc)throw new _(Ui,{actual:n.length,maxSeeds:yc});let t;const r=n.reduce((c,u,d)=>{const R=typeof u=="string"?(t||=new TextEncoder).encode(u):u;if(R.byteLength>lt)throw new _(It,{actual:R.byteLength,index:d,maxSeedLength:lt});return c.push(...R),c},[]),i=Yt(),o=i.encode(e),s=await crypto.subtle.digest("SHA-256",new Uint8Array([...r,...o,...ct])),a=new Uint8Array(s);if(vd(a))throw new _(mt);return i.decode(a)}async function uE({programAddress:e,seeds:n}){let t=255;for(;t>0;)try{return[await _E({programAddress:e,seeds:[...n,new Uint8Array([t])]}),t]}catch(r){if(y(r,mt))t--;else throw r}throw new _(xi)}async function dE({baseAddress:e,programAddress:n,seed:t}){const{encode:r,decode:i}=Yt(),o=typeof t=="string"?new TextEncoder().encode(t):t;if(o.byteLength>lt)throw new _(It,{actual:o.byteLength,index:0,maxSeedLength:lt});const s=r(n);if(s.length>=ct.length&&Hn(s.slice(-ct.length),new Uint8Array(ct)))throw new _(Mi);const a=await crypto.subtle.digest("SHA-256",new Uint8Array([...r(e),...o,...s])),c=new Uint8Array(a);return i(c)}async function Wt(e){if(yd(),e.type!=="public"||e.algorithm.name!=="Ed25519")throw new _(wi);const n=await crypto.subtle.exportKey("raw",e);return G().decode(new Uint8Array(n))}async function Md(e){const n=ae().encode(e);return await crypto.subtle.importKey("raw",n,{name:"Ed25519"},!0,["verify"])}function sa(e,n,t,r){if(r<n||r>t)throw new _(Rs,{codecDescription:e,max:t,min:n,value:r})}var Fd=(e=>(e[e.Little=0]="Little",e[e.Big=1]="Big",e))(Fd||{});function Bd(e){return e?.endian!==1}function ee(e){return I({fixedSize:e.size,write(n,t,r){e.range&&sa(e.name,e.range[0],e.range[1],n);const i=new ArrayBuffer(e.size);return e.set(new DataView(i),n,Bd(e.config)),t.set(new Uint8Array(i),r),r+e.size}})}function ne(e){return T({fixedSize:e.size,read(n,t=0){zt(e.name,n,t),xe(e.name,e.size,n,t);const r=new DataView(qe(n,t,e.size));return[e.get(r,Bd(e.config)),t+e.size]}})}var kd=(e={})=>ee({config:e,name:"f32",set:(n,t,r)=>n.setFloat32(0,Number(t),r),size:4}),zd=(e={})=>ne({config:e,get:(n,t)=>n.getFloat32(0,t),name:"f32",size:4}),RE=(e={})=>f(kd(e),zd(e)),Vd=(e={})=>ee({config:e,name:"f64",set:(n,t,r)=>n.setFloat64(0,Number(t),r),size:8}),Gd=(e={})=>ne({config:e,get:(n,t)=>n.getFloat64(0,t),name:"f64",size:8}),lE=(e={})=>f(Vd(e),Gd(e)),Hd=(e={})=>ee({config:e,name:"i128",range:[-BigInt("0x7fffffffffffffffffffffffffffffff")-1n,BigInt("0x7fffffffffffffffffffffffffffffff")],set:(n,t,r)=>{const i=r?8:0,o=r?0:8,s=0xffffffffffffffffn;n.setBigInt64(i,BigInt(t)>>64n,r),n.setBigUint64(o,BigInt(t)&s,r)},size:16}),$d=(e={})=>ne({config:e,get:(n,t)=>{const r=t?8:0,i=t?0:8,o=n.getBigInt64(r,t),s=n.getBigUint64(i,t);return(o<<64n)+s},name:"i128",size:16}),AE=(e={})=>f(Hd(e),$d(e)),jd=(e={})=>ee({config:e,name:"i16",range:[-+"0x7fff"-1,+"0x7fff"],set:(n,t,r)=>n.setInt16(0,Number(t),r),size:2}),Kd=(e={})=>ne({config:e,get:(n,t)=>n.getInt16(0,t),name:"i16",size:2}),fE=(e={})=>f(jd(e),Kd(e)),Xd=(e={})=>ee({config:e,name:"i32",range:[-+"0x7fffffff"-1,+"0x7fffffff"],set:(n,t,r)=>n.setInt32(0,Number(t),r),size:4}),Yd=(e={})=>ne({config:e,get:(n,t)=>n.getInt32(0,t),name:"i32",size:4}),OE=(e={})=>f(Xd(e),Yd(e)),Wd=(e={})=>ee({config:e,name:"i64",range:[-BigInt("0x7fffffffffffffff")-1n,BigInt("0x7fffffffffffffff")],set:(n,t,r)=>n.setBigInt64(0,BigInt(t),r),size:8}),qd=(e={})=>ne({config:e,get:(n,t)=>n.getBigInt64(0,t),name:"i64",size:8}),EE=(e={})=>f(Wd(e),qd(e)),Jd=()=>ee({name:"i8",range:[-+"0x7f"-1,+"0x7f"],set:(e,n)=>e.setInt8(0,Number(n)),size:1}),Zd=()=>ne({get:e=>e.getInt8(0),name:"i8",size:1}),SE=()=>f(Jd(),Zd()),ie=()=>I({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,n,t)=>{sa("shortU16",0,65535,e);const r=[0];for(let i=0;;i+=1){const o=Number(e)>>i*7;if(o===0)break;const s=127&o;r[i]=s,i>0&&(r[i-1]|=128)}return n.set(r,t),t+r.length}}),q=()=>T({maxSize:3,read:(e,n)=>{let t=0,r=0;for(;++r;){const i=r-1,o=e[n+i],s=127&o;if(t|=s<<i*7,(o&128)===0)break}return[t,n+r]}}),NE=()=>f(ie(),q()),Qd=(e={})=>ee({config:e,name:"u128",range:[0n,BigInt("0xffffffffffffffffffffffffffffffff")],set:(n,t,r)=>{const i=r?8:0,o=r?0:8,s=0xffffffffffffffffn;n.setBigUint64(i,BigInt(t)>>64n,r),n.setBigUint64(o,BigInt(t)&s,r)},size:16}),eR=(e={})=>ne({config:e,get:(n,t)=>{const r=t?8:0,i=t?0:8,o=n.getBigUint64(r,t),s=n.getBigUint64(i,t);return(o<<64n)+s},name:"u128",size:16}),TE=(e={})=>f(Qd(e),eR(e)),qt=(e={})=>ee({config:e,name:"u16",range:[0,+"0xffff"],set:(n,t,r)=>n.setUint16(0,Number(t),r),size:2}),Jt=(e={})=>ne({config:e,get:(n,t)=>n.getUint16(0,t),name:"u16",size:2}),gE=(e={})=>f(qt(e),Jt(e)),Ce=(e={})=>ee({config:e,name:"u32",range:[0,+"0xffffffff"],set:(n,t,r)=>n.setUint32(0,Number(t),r),size:4}),he=(e={})=>ne({config:e,get:(n,t)=>n.getUint32(0,t),name:"u32",size:4}),IE=(e={})=>f(Ce(e),he(e)),cn=(e={})=>ee({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(n,t,r)=>n.setBigUint64(0,BigInt(t),r),size:8}),_n=(e={})=>ne({config:e,get:(n,t)=>n.getBigUint64(0,t),name:"u64",size:8}),mE=(e={})=>f(cn(e),_n(e)),b=()=>ee({name:"u8",range:[0,+"0xff"],set:(e,n)=>e.setUint8(0,Number(n)),size:1}),p=()=>ne({get:e=>e.getUint8(0),name:"u8",size:1}),CE=()=>f(b(),p());function aa(e,n,t){if(n!==t)throw new _(cs,{actual:t,codecDescription:e,expected:n})}function hE(e){return e.reduce((n,t)=>n===null||t===null?null:Math.max(n,t),0)}function Ie(e){return e.reduce((n,t)=>n===null||t===null?null:n+t,0)}function un(e){return h(e)?e.fixedSize:null}function Me(e){return h(e)?e.fixedSize:e.maxSize??null}function P(e,n={}){const t=n.size??Ce(),r=At(t,un(e)),i=At(t,Me(e))??void 0;return I({...r!==null?{fixedSize:r}:{getSizeFromValue:o=>(typeof t=="object"?ue(o.length,t):0)+[...o].reduce((a,c)=>a+ue(c,e),0),maxSize:i},write:(o,s,a)=>(typeof t=="number"&&aa(n.description??"array",t,o.length),typeof t=="object"&&(a=t.write(o.length,s,a)),o.forEach(c=>{a=e.write(c,s,a)}),a)})}function D(e,n={}){const t=n.size??he(),r=un(e),i=At(t,r),o=At(t,Me(e))??void 0;return T({...i!==null?{fixedSize:i}:{maxSize:o},read:(s,a)=>{const c=[];if(typeof t=="object"&&s.slice(a).length===0)return[c,a];if(t==="remainder"){for(;a<s.length;){const[R,l]=e.read(s,a);a=l,c.push(R)}return[c,a]}const[u,d]=typeof t=="number"?[t,a]:t.read(s,a);a=d;for(let R=0;R<u;R+=1){const[l,O]=e.read(s,a);a=O,c.push(l)}return[c,a]}})}function pE(e,n={}){return f(P(e,n),D(e,n))}function At(e,n){return typeof e!="number"?null:e===0?0:n===null?null:n*e}function nR(e,n={}){const r=(typeof n=="boolean"?{backward:n}:n).backward??!1;return I({fixedSize:e,write(i,o,s){const a=[];for(let c=0;c<e;c+=1){let u=0;for(let d=0;d<8;d+=1){const R=Number(i[c*8+d]??0);u|=R<<(r?d:7-d)}r?a.unshift(u):a.push(u)}return o.set(a,s),e}})}function tR(e,n={}){const r=(typeof n=="boolean"?{backward:n}:n).backward??!1;return T({fixedSize:e,read(i,o){xe("bitArray",e,i,o);const s=[];let a=i.slice(o,o+e);return a=r?a.reverse():a,a.forEach(c=>{for(let u=0;u<8;u+=1)r?(s.push(!!(c&1)),c>>=1):(s.push(!!(c&128)),c<<=1)}),[s,o+e]}})}function LE(e,n={}){return f(nR(e,n),tR(e,n))}function Zt(e={}){return N(e.size??b(),n=>n?1:0)}function Qt(e={}){return g(e.size??p(),n=>Number(n)===1)}function DE(e={}){return f(Zt(e),Qt(e))}function te(){return I({getSizeFromValue:e=>e.length,write:(e,n,t)=>(n.set(e,t),t+e.length)})}function oe(){return T({read:(e,n)=>{const t=e.slice(n);return[t,n+t.length]}})}function bE(){return f(te(),oe())}var PE=()=>T({read(e,n){return[e.slice(n).reduce((r,i)=>r+i.toString(16).padStart(2,"0"),""),e.length]}});function qn(e){return I({fixedSize:e.length,write:(n,t,r)=>(t.set(e,r),r+e.length)})}function Jn(e){return T({fixedSize:e.length,read:(n,t)=>{const r=PE();if(!Gn(n,e,t))throw new _(Es,{constant:e,data:n,hexConstant:r.decode(e),hexData:r.decode(n),offset:t});return[void 0,t+e.length]}})}function wE(e){return f(qn(e),Jn(e))}function J(e,n){const t=Ie(e.map(un)),r=Ie(e.map(Me))??void 0;return I({...t===null?{getSizeFromValue:i=>e.map((o,s)=>ue(i[s],o)).reduce((o,s)=>o+s,0),maxSize:r}:{fixedSize:t},write:(i,o,s)=>(aa(n?.description??"tuple",e.length,i.length),e.forEach((a,c)=>{s=a.write(i[c],o,s)}),s)})}function z(e){const n=Ie(e.map(un)),t=Ie(e.map(Me))??void 0;return T({...n===null?{maxSize:t}:{fixedSize:n},read:(r,i)=>{const o=[];return e.forEach(s=>{const[a,c]=s.read(r,i);o.push(a),i=c}),[o,i]}})}function yE(e,n){return f(J(e,n),z(e))}function Fe(e,n){const t=iR(e),r=(o,s,a)=>{const c=n(o);return qr(e,c),e[c].write(o,s,a)};if(t!==null)return I({fixedSize:t,write:r});const i=oR(e);return I({...i!==null?{maxSize:i}:{},getSizeFromValue:o=>{const s=n(o);return qr(e,s),ue(o,e[s])},write:r})}function Be(e,n){const t=iR(e),r=(o,s)=>{const a=n(o,s);return qr(e,a),e[a].read(o,s)};if(t!==null)return T({fixedSize:t,read:r});const i=oR(e);return T({...i!==null?{maxSize:i}:{},read:r})}function rR(e,n,t){return f(Fe(e,n),Be(e,t))}function qr(e,n){if(typeof e[n]>"u")throw new _(Os,{maxRange:e.length-1,minRange:0,variant:n})}function iR(e){if(e.length===0)return 0;if(!h(e[0]))return null;const n=e[0].fixedSize;return e.every(r=>h(r)&&r.fixedSize===n)?n:null}function oR(e){return hE(e.map(n=>Me(n)))}function sR(e,n={}){const t=n.discriminator??"__kind",r=n.size??b();return Fe(e.map(([,i],o)=>N(J([r,i]),s=>[o,s])),i=>UE(e,i[t]))}function aR(e,n={}){const t=n.discriminator??"__kind",r=n.size??p();return Be(e.map(([i,o])=>g(z([r,o]),([,s])=>({[t]:i,...s}))),(i,o)=>Number(r.read(i,o)[0]))}function vE(e,n={}){return f(sR(e,n),aR(e,n))}function UE(e,n){const t=e.findIndex(([r])=>n===r);if(t<0)throw new _(us,{value:n,variants:e.map(([r])=>r)});return t}function cR(e){const n=[...new Set(Object.values(e).filter(s=>typeof s=="number"))].sort(),t=Object.fromEntries(Object.entries(e).slice(n.length)),r=Object.keys(t),i=Object.values(t),o=[...new Set([...r,...i.filter(s=>typeof s=="string")])];return{enumKeys:r,enumRecord:t,enumValues:i,numericalValues:n,stringValues:o}}function xE({enumKeys:e,enumValues:n,variant:t}){const r=_R(n,i=>i===t);return r>=0?r:e.findIndex(i=>i===t)}function ME({discriminator:e,enumKeys:n,enumValues:t,useValuesAsDiscriminators:r}){return r?_R(t,i=>i===e):e>=0&&e<n.length?e:-1}function _R(e,n){let t=e.length;for(;t--;)if(n(e[t],t,e))return t;return-1}function uR(e){if(e.length===0)return"";let n=[e[0],e[0]];const t=[];for(let r=1;r<e.length;r++){const i=e[r];n[1]+1===i?n[1]=i:(t.push(n[0]===n[1]?`${n[0]}`:`${n[0]}-${n[1]}`),n=[i,i])}return t.push(n[0]===n[1]?`${n[0]}`:`${n[0]}-${n[1]}`),t.join(", ")}function ca(e,n={}){const t=n.size??b(),r=n.useValuesAsDiscriminators??!1,{enumKeys:i,enumValues:o,numericalValues:s,stringValues:a}=cR(e);if(r&&o.some(c=>typeof c=="string"))throw new _(Mt,{stringValues:o.filter(c=>typeof c=="string")});return N(t,c=>{const u=xE({enumKeys:i,enumValues:o,variant:c});if(u<0)throw new _(ds,{formattedNumericalValues:uR(s),numericalValues:s,stringValues:a,variant:c});return r?o[u]:u})}function _a(e,n={}){const t=n.size??p(),r=n.useValuesAsDiscriminators??!1,{enumKeys:i,enumValues:o,numericalValues:s}=cR(e);if(r&&o.some(a=>typeof a=="string"))throw new _(Mt,{stringValues:o.filter(a=>typeof a=="string")});return g(t,a=>{const c=Number(a),u=ME({discriminator:c,enumKeys:i,enumValues:o,useValuesAsDiscriminators:r});if(u<0){const d=r?s:[...Array(i.length).keys()];throw new _(_s,{discriminator:c,formattedValidDiscriminators:uR(d),validDiscriminators:d})}return o[u]})}function FE(e,n={}){return f(ca(e,n),_a(e,n))}function ua(e,n){return N(J([...n,e]),t=>[...n.map(()=>{}),t])}function er(e,n){return g(z([...n,e]),t=>t[t.length-1])}function BE(e,n){return f(ua(e,n),er(e,n))}function dR(e,n){return N(J([e,...n]),t=>[t,...n.map(()=>{})])}function RR(e,n){return g(z([e,...n]),t=>t[0])}function kE(e,n){return f(dR(e,n),RR(e,n))}function lR(e,n={}){const t=n.size??b();return N(t,r=>{const i=e.indexOf(r);if(i<0)throw new _(As,{value:r,variants:e});return i})}function AR(e,n={}){const t=n.size??p();return g(t,r=>{if(r<0||r>=e.length)throw new _(fs,{discriminator:r,maxRange:e.length-1,minRange:0});return e[Number(r)]})}function zE(e,n={}){return f(lR(e,n),AR(e,n))}function fR(e,n,t={}){return N(P(J([e,n]),t),r=>[...r.entries()])}function OR(e,n,t={}){return g(D(z([e,n]),t),r=>new Map(r))}function VE(e,n,t={}){return f(fR(e,n,t),OR(e,n,t))}function Ne(){return I({fixedSize:0,write:(e,n,t)=>t})}function Ae(){return T({fixedSize:0,read:(e,n)=>[void 0,n]})}function GE(){return f(Ne(),Ae())}function da(e,n={}){const t=n.prefix===null?N(Ne(),i=>{}):Zt({size:n.prefix??b()}),r=n.noneValue==="zeroes"?(Ue(e),Se(Ne(),e.fixedSize)):n.noneValue?qn(n.noneValue):Ne();return Fe([N(J([t,r]),i=>[!1,void 0]),N(J([t,e]),i=>[!0,i])],i=>+(i!==null))}function ER(e,n={}){const t=n.prefix===null?g(Ae(),()=>!1):Qt({size:n.prefix??p()}),r=n.noneValue==="zeroes"?(Ue(e),se(Ae(),e.fixedSize)):n.noneValue?Jn(n.noneValue):Ae();return Be([g(z([t,r]),()=>null),g(z([t,e]),([,i])=>i)],(i,o)=>{if(n.prefix===null&&!n.noneValue)return+(o<i.length);if(n.prefix===null&&n.noneValue!=null){const s=n.noneValue==="zeroes"?new Uint8Array(r.fixedSize).fill(0):n.noneValue;return Gn(i,s,o)?0:1}return Number(t.read(i,o)[0])})}function HE(e,n={}){return f(da(e,n),ER(e,n))}function nr(e){return Fe(e.map(([,n])=>n),n=>{const t=e.findIndex(([r])=>r(n));if(t===-1)throw new _(gs);return t})}function Ra(e){return Be(e.map(([,n])=>n),n=>{const t=e.findIndex(([r])=>r(n));if(t===-1)throw new _(Is,{bytes:n});return t})}function $E(e){return f(nr(e.map(([n,,t])=>[n,t])),Ra(e.map(([,n,t])=>[n,t])))}function SR(e,n,t){return Fe([n,t],r=>e(r)?0:1)}function NR(e,n,t){return Be([n,t],r=>e(r)?0:1)}function jE(e,n,t,r){return rR([t,r],i=>e(i)?0:1,i=>n(i)?0:1)}function TR(e,n={}){return N(P(e,n),t=>[...t])}function gR(e,n={}){return g(D(e,n),t=>new Set(t))}function KE(e,n={}){return f(TR(e,n),gR(e,n))}function x(e){const n=e.map(([,i])=>i),t=Ie(n.map(un)),r=Ie(n.map(Me))??void 0;return I({...t===null?{getSizeFromValue:i=>e.map(([o,s])=>ue(i[o],s)).reduce((o,s)=>o+s,0),maxSize:r}:{fixedSize:t},write:(i,o,s)=>(e.forEach(([a,c])=>{s=c.write(i[a],o,s)}),s)})}function X(e){const n=e.map(([,i])=>i),t=Ie(n.map(un)),r=Ie(n.map(Me))??void 0;return T({...t===null?{maxSize:r}:{fixedSize:t},read:(i,o)=>{const s={};return e.forEach(([a,c])=>{const[u,d]=c.read(i,o);o=d,s[a]=u}),[s,o]}})}function XE(e){return f(x(e),X(e))}function IR(e,n){if(e==="signed"){const t=1n<<BigInt(n-1);return{max:t-1n,min:-t}}return{max:(1n<<BigInt(n))-1n,min:0n}}function re(e,n){if(typeof n!="number"||!Number.isInteger(n)||n<=0)throw new _(ms,{kind:e,totalBits:n})}function dn(e){if(typeof e!="number"||!Number.isInteger(e)||e<0)throw new _(Cs,{fractionalBits:e})}function Rn(e){if(typeof e!="number"||!Number.isInteger(e)||e<0)throw new _(hs,{decimals:e})}function ke(e,n){if(e>n)throw new _(ps,{fractionalBits:e,totalBits:n})}function tr(e,n){if(n%8!==0)throw new _(Us,{kind:e,totalBits:n})}function pe(e,n,t,r){const{max:i,min:o}=IR(n,t);if(r<o||r>i)throw new _(Ls,{kind:e,max:i,min:o,raw:r,signedness:n,totalBits:t})}function M(e){const n=e&&typeof e=="object"?e:{},t=typeof n.kind=="string"?n.kind:"unknown",r=typeof n.signedness=="string"?n.signedness:"unknown",i=typeof n.totalBits=="number"?n.totalBits:0;let o,s;return t==="decimalFixedPoint"?(o=typeof n.decimals=="number"?n.decimals:0,s="decimals"):t==="binaryFixedPoint"?(o=typeof n.fractionalBits=="number"?n.fractionalBits:0,s="fractional bits"):(o=0,s="unknown"),{kind:t,scale:o,scaleLabel:s,signedness:r,totalBits:i}}function F(e,n,t){if(!((n.signedness==="signed"||n.signedness==="unsigned")&&Number.isInteger(n.totalBits)&&n.totalBits>0&&Number.isInteger(n.scale)&&n.scale>=0)||n.kind!==t.kind||t.signedness!==void 0&&n.signedness!==t.signedness||t.totalBits!==void 0&&n.totalBits!==t.totalBits||t.scale!==void 0&&n.scale!==t.scale)throw new _(Ps,{actualKind:n.kind,actualScale:n.scale,actualScaleLabel:n.scaleLabel,actualSignedness:n.signedness,actualTotalBits:n.totalBits,expectedKind:t.kind,expectedScale:t.scale??n.scale,expectedScaleLabel:t.scaleLabel,expectedSignedness:t.signedness??n.signedness,expectedTotalBits:t.totalBits??n.totalBits,operation:e})}function mR(e,n){const t=n&&typeof n=="object"?n.raw:void 0;if(typeof t!="bigint")throw new _(vs,{kind:e,raw:t})}function H(e,n,t,r,i){const{max:o,min:s}=IR(t,r);if(i<s||i>o)throw new _(bs,{kind:e,max:o,min:s,operation:n,result:i,signedness:t,totalBits:r})}function ft(e,n,t,r){if(r===0n)throw new _(ws,{kind:e,signedness:n,totalBits:t})}function K(e,n,t,r,i){const o=t/r,s=t-o*r;if(s===0n)return o;if(i==="strict")throw new _(ys,{kind:e,operation:n});const a=t<0n==r<0n;if(i==="trunc")return o;if(i==="floor")return a?o:o-1n;if(i==="ceil")return a?o+1n:o;const c=(s<0n?-s:s)*2n,u=r<0n?-r:r;return c<u?o:a?o+1n:o-1n}function YE(e,n){F("addBinaryFixedPoint",M(n),{kind:e.kind,scale:e.fractionalBits,scaleLabel:"fractional bits",signedness:e.signedness,totalBits:e.totalBits});const t=e.raw+n.raw;return H(e.kind,"add",e.signedness,e.totalBits,t),Object.freeze({...e,raw:t})}function WE(e,n){F("subtractBinaryFixedPoint",M(n),{kind:e.kind,scale:e.fractionalBits,scaleLabel:"fractional bits",signedness:e.signedness,totalBits:e.totalBits});const t=e.raw-n.raw;return H(e.kind,"subtract",e.signedness,e.totalBits,t),Object.freeze({...e,raw:t})}function qE(e,n,t="strict"){let r;return typeof n=="bigint"?r=e.raw*n:(F("multiplyBinaryFixedPoint",M(n),{kind:e.kind,scaleLabel:"fractional bits",signedness:e.signedness}),r=K(e.kind,"multiply",e.raw*n.raw,1n<<BigInt(n.fractionalBits),t)),H(e.kind,"multiply",e.signedness,e.totalBits,r),Object.freeze({...e,raw:r})}function JE(e,n,t="strict"){let r;return typeof n=="bigint"?(ft(e.kind,e.signedness,e.totalBits,n),r=K(e.kind,"divide",e.raw,n,t)):(F("divideBinaryFixedPoint",M(n),{kind:e.kind,scaleLabel:"fractional bits",signedness:e.signedness}),ft(e.kind,e.signedness,e.totalBits,n.raw),r=K(e.kind,"divide",e.raw*(1n<<BigInt(n.fractionalBits)),n.raw,t)),H(e.kind,"divide",e.signedness,e.totalBits,r),Object.freeze({...e,raw:r})}function ZE(e){F("negateBinaryFixedPoint",M(e),{kind:e.kind,scaleLabel:"fractional bits",signedness:"signed"});const n=-e.raw;return H(e.kind,"negate",e.signedness,e.totalBits,n),Object.freeze({...e,raw:n})}function QE(e){const n=e.raw<0n?-e.raw:e.raw;return H(e.kind,"absolute",e.signedness,e.totalBits,n),Object.freeze({...e,raw:n})}var eS=0xffffffffffffffffn,nS=0xffffffffn,tS=0xffffn,rS=0xffn;function CR(e,n,t,r,i,o){const s=i==="signed"&&t<0n?t+(1n<<BigInt(r*8)):t,a=r>>3,c=r&7,u=new DataView(e.buffer,e.byteOffset,e.byteLength);for(let d=0;d<a;d++){const R=s>>BigInt(d*64)&eS,l=o?d*8:r-(d+1)*8;u.setBigUint64(n+l,R,o)}if(c>0){const d=s>>BigInt(a*64),R=o?a*8:0;let l=0;if(c-l>=4){const O=Number(d>>BigInt(l*8)&nS),E=o?R+l:R+c-l-4;u.setUint32(n+E,O,o),l+=4}if(c-l>=2){const O=Number(d>>BigInt(l*8)&tS),E=o?R+l:R+c-l-2;u.setUint16(n+E,O,o),l+=2}if(c-l>=1){const O=Number(d>>BigInt(l*8)&rS),E=o?R+l:R+c-l-1;e[n+E]=O}}}function hR(e,n,t,r,i){const o=t>>3,s=t&7,a=new DataView(qe(e,n,t));let c=0n;for(let u=0;u<o;u++){const d=i?u*8:t-(u+1)*8,R=a.getBigUint64(d,i);c|=R<<BigInt(u*64)}if(s>0){const u=i?o*8:0;let d=0n,R=0;if(s-R>=4){const l=i?u+R:u+s-R-4;d|=BigInt(a.getUint32(l,i))<<BigInt(R*8),R+=4}if(s-R>=2){const l=i?u+R:u+s-R-2;d|=BigInt(a.getUint16(l,i))<<BigInt(R*8),R+=2}if(s-R>=1){const l=i?u+R:u+s-R-1;d|=BigInt(e[n+l])<<BigInt(R*8)}c|=d<<BigInt(o*64)}if(r==="signed"){const u=1n<<BigInt(t*8-1);if((c&u)!==0n)return c-(1n<<BigInt(t*8))}return c}function pR(e,n,t,r={}){re("binaryFixedPoint",n),dn(t),ke(t,n),tr("binaryFixedPoint",n);const i=n/8,o=r.endian!=="be";return I({fixedSize:i,write(s,a,c){return F("getBinaryFixedPointEncoder",M(s),{kind:"binaryFixedPoint",scale:t,scaleLabel:"fractional bits",signedness:e,totalBits:n}),CR(a,c,s.raw,i,e,o),c+i}})}function LR(e,n,t,r={}){re("binaryFixedPoint",n),dn(t),ke(t,n),tr("binaryFixedPoint",n);const i=n/8,o=r.endian!=="be",s="getBinaryFixedPointDecoder";return T({fixedSize:i,read(a,c){zt(s,a,c),xe(s,i,a,c);const u=hR(a,c,i,e,o);return[Object.freeze({fractionalBits:t,kind:"binaryFixedPoint",raw:u,signedness:e,totalBits:n}),c+i]}})}function iS(e,n,t,r={}){return f(pR(e,n,t,r),LR(e,n,t,r))}function ln(e,n){return F("cmpBinaryFixedPoint",M(n),{kind:e.kind,scale:e.fractionalBits,scaleLabel:"fractional bits"}),e.raw<n.raw?-1:e.raw>n.raw?1:0}function oS(e,n){return ln(e,n)===0}function sS(e,n){return ln(e,n)<0}function aS(e,n){return ln(e,n)<=0}function cS(e,n){return ln(e,n)>0}function _S(e,n){return ln(e,n)>=0}function la(e){const n=e.fractionalBits,t=n===0?e.raw:e.raw*5n**BigInt(n);return{decimals:n,raw:t}}function uS(e){return e.signedness==="unsigned"?e:(pe("binaryFixedPoint","unsigned",e.totalBits,e.raw),Object.freeze({...e,signedness:"unsigned"}))}function dS(e){return e.signedness==="signed"?e:(pe("binaryFixedPoint","signed",e.totalBits,e.raw),Object.freeze({...e,signedness:"signed"}))}function RS(e,n,t,r="strict"){if(re("binaryFixedPoint",n),dn(t),ke(t,n),e.totalBits===n&&e.fractionalBits===t)return e;let i;return t===e.fractionalBits?i=e.raw:t>e.fractionalBits?i=e.raw<<BigInt(t-e.fractionalBits):i=K("binaryFixedPoint","rescale",e.raw,1n<<BigInt(e.fractionalBits-t),r),H("binaryFixedPoint","rescale",e.signedness,n,i),Object.freeze({...e,fractionalBits:t,raw:i,totalBits:n})}function DR(e,n){if(typeof n!="string"||!/^-?(?:\d+\.?\d*|\.\d+)$/.test(n))throw new _(Ds,{input:String(n),kind:e});const t=n.startsWith("-"),r=t?n.slice(1):n,i=r.indexOf(".");let o,s;i===-1?(o=r,s=""):(o=r.slice(0,i),s=r.slice(i+1));const a=(o||"0")+s,c=BigInt(a),u=t?-c:c;return{decimals:s.length,raw:u}}function Aa(e,n,t,r){return pe("binaryFixedPoint",e,n,r),Object.freeze({fractionalBits:t,kind:"binaryFixedPoint",raw:r,signedness:e,totalBits:n})}function lS(e,n,t){return re("binaryFixedPoint",n),dn(t),ke(t,n),(r,i="strict")=>{const o=DR("binaryFixedPoint",r),s=o.raw*(1n<<BigInt(t)),a=o.decimals===0?s:K("binaryFixedPoint","fromString",s,10n**BigInt(o.decimals),i);return Aa(e,n,t,a)}}function AS(e,n,t){return re("binaryFixedPoint",n),dn(t),ke(t,n),r=>Aa(e,n,t,r)}function fS(e,n,t){return re("binaryFixedPoint",n),dn(t),ke(t,n),(r,i,o="strict")=>{if(i===0n)throw new _(Ft,{denominator:i,kind:"binaryFixedPoint",numerator:r});const s=K("binaryFixedPoint","fromRatio",r*(1n<<BigInt(t)),i,o);return Aa(e,n,t,s)}}function bR(e,n,t,r){const i=r?.decimals;if(i===void 0||i===t)return{decimals:t,raw:n};if(i>t)return{decimals:i,raw:n*10n**BigInt(i-t)};const o=10n**BigInt(t-i),s=K(e,"toString",n,o,r?.rounding??"strict");return{decimals:i,raw:s}}function PR(e,n,t){if(n===0)return e.toString();const r=e<0n,o=(r?-e:e).toString().padStart(n+1,"0"),s=o.slice(0,-n);let a=o.slice(-n);t||(a=a.replace(/0+$/,""));const c=r?"-":"";return a.length===0?`${c}${s}`:`${c}${s}.${a}`}function OS(e,n){const t=la(e),{decimals:r,raw:i}=bR("binaryFixedPoint",t.raw,t.decimals,n);return PR(i,r,n?.padTrailingZeros??!1)}function ES(e,n){const{decimals:t,raw:r}=la(n);return e.format(`${r}E-${t}`)}function SS(e){const{fractionalBits:n,raw:t}=e;if(n===0)return Number(t);const r=1n<<BigInt(n),i=t/r,o=Number(t-i*r)/2**n;return Number(i)+o}function wR(e,n,t,r){const i=M(e);F("assertIsBinaryFixedPoint",i,{kind:"binaryFixedPoint",scale:r,scaleLabel:"fractional bits",signedness:n,totalBits:t}),ke(i.scale,i.totalBits),mR("binaryFixedPoint",e),pe("binaryFixedPoint",i.signedness,i.totalBits,e.raw)}function NS(e,n,t,r){try{return wR(e,n,t,r),!0}catch{return!1}}function TS(e,n){F("addDecimalFixedPoint",M(n),{kind:e.kind,scale:e.decimals,scaleLabel:"decimals",signedness:e.signedness,totalBits:e.totalBits});const t=e.raw+n.raw;return H(e.kind,"add",e.signedness,e.totalBits,t),Object.freeze({...e,raw:t})}function gS(e,n){F("subtractDecimalFixedPoint",M(n),{kind:e.kind,scale:e.decimals,scaleLabel:"decimals",signedness:e.signedness,totalBits:e.totalBits});const t=e.raw-n.raw;return H(e.kind,"subtract",e.signedness,e.totalBits,t),Object.freeze({...e,raw:t})}function IS(e,n,t="strict"){let r;return typeof n=="bigint"?r=e.raw*n:(F("multiplyDecimalFixedPoint",M(n),{kind:e.kind,scaleLabel:"decimals",signedness:e.signedness}),r=K(e.kind,"multiply",e.raw*n.raw,10n**BigInt(n.decimals),t)),H(e.kind,"multiply",e.signedness,e.totalBits,r),Object.freeze({...e,raw:r})}function mS(e,n,t="strict"){let r;return typeof n=="bigint"?(ft(e.kind,e.signedness,e.totalBits,n),r=K(e.kind,"divide",e.raw,n,t)):(F("divideDecimalFixedPoint",M(n),{kind:e.kind,scaleLabel:"decimals",signedness:e.signedness}),ft(e.kind,e.signedness,e.totalBits,n.raw),r=K(e.kind,"divide",e.raw*10n**BigInt(n.decimals),n.raw,t)),H(e.kind,"divide",e.signedness,e.totalBits,r),Object.freeze({...e,raw:r})}function CS(e){F("negateDecimalFixedPoint",M(e),{kind:e.kind,scaleLabel:"decimals",signedness:"signed"});const n=-e.raw;return H(e.kind,"negate",e.signedness,e.totalBits,n),Object.freeze({...e,raw:n})}function hS(e){const n=e.raw<0n?-e.raw:e.raw;return H(e.kind,"absolute",e.signedness,e.totalBits,n),Object.freeze({...e,raw:n})}function yR(e,n,t,r={}){re("decimalFixedPoint",n),Rn(t),tr("decimalFixedPoint",n);const i=n/8,o=r.endian!=="be";return I({fixedSize:i,write(s,a,c){return F("getDecimalFixedPointEncoder",M(s),{kind:"decimalFixedPoint",scale:t,scaleLabel:"decimals",signedness:e,totalBits:n}),CR(a,c,s.raw,i,e,o),c+i}})}function vR(e,n,t,r={}){re("decimalFixedPoint",n),Rn(t),tr("decimalFixedPoint",n);const i=n/8,o=r.endian!=="be",s="getDecimalFixedPointDecoder";return T({fixedSize:i,read(a,c){zt(s,a,c),xe(s,i,a,c);const u=hR(a,c,i,e,o);return[Object.freeze({decimals:t,kind:"decimalFixedPoint",raw:u,signedness:e,totalBits:n}),c+i]}})}function pS(e,n,t,r={}){return f(yR(e,n,t,r),vR(e,n,t,r))}function An(e,n){return F("cmpDecimalFixedPoint",M(n),{kind:e.kind,scale:e.decimals,scaleLabel:"decimals"}),e.raw<n.raw?-1:e.raw>n.raw?1:0}function LS(e,n){return An(e,n)===0}function DS(e,n){return An(e,n)<0}function bS(e,n){return An(e,n)<=0}function PS(e,n){return An(e,n)>0}function wS(e,n){return An(e,n)>=0}function yS(e){return e.signedness==="unsigned"?e:(pe("decimalFixedPoint","unsigned",e.totalBits,e.raw),Object.freeze({...e,signedness:"unsigned"}))}function vS(e){return e.signedness==="signed"?e:(pe("decimalFixedPoint","signed",e.totalBits,e.raw),Object.freeze({...e,signedness:"signed"}))}function US(e,n,t,r="strict"){if(re("decimalFixedPoint",n),Rn(t),e.totalBits===n&&e.decimals===t)return e;let i;return t===e.decimals?i=e.raw:t>e.decimals?i=e.raw*10n**BigInt(t-e.decimals):i=K("decimalFixedPoint","rescale",e.raw,10n**BigInt(e.decimals-t),r),H("decimalFixedPoint","rescale",e.signedness,n,i),Object.freeze({...e,decimals:t,raw:i,totalBits:n})}function fa(e,n,t,r){return pe("decimalFixedPoint",e,n,r),Object.freeze({decimals:t,kind:"decimalFixedPoint",raw:r,signedness:e,totalBits:n})}function UR(e,n,t){return re("decimalFixedPoint",n),Rn(t),(r,i="strict")=>{const o=DR("decimalFixedPoint",r),s=o.decimals<=t?o.raw*10n**BigInt(t-o.decimals):K("decimalFixedPoint","fromString",o.raw,10n**BigInt(o.decimals-t),i);return fa(e,n,t,s)}}function xR(e,n,t){return re("decimalFixedPoint",n),Rn(t),r=>fa(e,n,t,r)}function xS(e,n,t){return re("decimalFixedPoint",n),Rn(t),(r,i,o="strict")=>{if(i===0n)throw new _(Ft,{denominator:i,kind:"decimalFixedPoint",numerator:r});const s=K("decimalFixedPoint","fromRatio",r*10n**BigInt(t),i,o);return fa(e,n,t,s)}}function MS(e,n){const{decimals:t,raw:r}=bR("decimalFixedPoint",e.raw,e.decimals,n);return PR(r,t,n?.padTrailingZeros??!1)}function FS(e,n){return e.format(`${n.raw}E-${n.decimals}`)}function BS(e){return Number(e.raw)/10**e.decimals}function MR(e,n,t,r){const i=M(e);F("assertIsDecimalFixedPoint",i,{kind:"decimalFixedPoint",scale:r,scaleLabel:"decimals",signedness:n,totalBits:t}),mR("decimalFixedPoint",e),pe("decimalFixedPoint",i.signedness,i.totalBits,e.raw)}function kS(e,n,t,r){try{return MR(e,n,t,r),!0}catch{return!1}}var Oa=e=>({__option:"Some",value:e}),Ea=()=>({__option:"None"}),Ot=e=>!!(e&&typeof e=="object"&&"__option"in e&&(e.__option==="Some"&&"value"in e||e.__option==="None")),yn=e=>e.__option==="Some",zS=e=>e.__option==="None";function VS(e,n){return yn(e)?e.value:n?n():null}var FR=e=>e!==null?Oa(e):Ea();function BR(e,n={}){const t=n.prefix===null?N(Ne(),i=>{}):Zt({size:n.prefix??b()}),r=n.noneValue==="zeroes"?(Ue(e),Se(Ne(),e.fixedSize)):n.noneValue?qn(n.noneValue):Ne();return Fe([N(J([t,r]),i=>[!1,void 0]),N(J([t,e]),i=>[!0,Ot(i)&&yn(i)?i.value:i])],i=>{const o=Ot(i)?i:FR(i);return Number(yn(o))})}function kR(e,n={}){const t=n.prefix===null?g(Ae(),()=>!1):Qt({size:n.prefix??p()}),r=n.noneValue==="zeroes"?(Ue(e),se(Ae(),e.fixedSize)):n.noneValue?Jn(n.noneValue):Ae();return Be([g(z([t,r]),()=>Ea()),g(z([t,e]),([,i])=>Oa(i))],(i,o)=>{if(n.prefix===null&&!n.noneValue)return+(o<i.length);if(n.prefix===null&&n.noneValue!=null){const s=n.noneValue==="zeroes"?new Uint8Array(r.fixedSize).fill(0):n.noneValue;return Gn(i,s,o)?0:1}return Number(t.read(i,o)[0])})}function GS(e,n={}){return f(BR(e,n),kR(e,n))}function Jr(e,n){if(!e||ArrayBuffer.isView(e))return e;const t=r=>n?Jr(r,n):Jr(r);return Ot(e)?yn(e)?t(e.value):n?n():null:Array.isArray(e)?e.map(t):typeof e=="object"?Object.fromEntries(Object.entries(e).map(([r,i])=>[r,t(i)])):e}function Y(e,...n){return n.reduce((t,r)=>r(t),e)}function HS(e,n){return e.programAddress===n}function $S(e,n){if(e.programAddress!==n)throw new _(ao,{actualProgramAddress:e.programAddress,expectedProgramAddress:n})}function jS(e){return e.accounts!==void 0}function KS(e){if(e.accounts===void 0)throw new _(oo,{data:e.data,programAddress:e.programAddress})}function XS(e){return e.data!==void 0}function YS(e){if(e.data===void 0)throw new _(so,{accountAddresses:e.accounts?.map(n=>n.address),programAddress:e.programAddress})}var v=(e=>(e[e.WRITABLE_SIGNER=3]="WRITABLE_SIGNER",e[e.READONLY_SIGNER=2]="READONLY_SIGNER",e[e.WRITABLE=1]="WRITABLE",e[e.READONLY=0]="READONLY",e))(v||{}),zR=2,Sa=1;function WS(e){return e&~zR}function qS(e){return e&~Sa}function V(e){return e>=2}function de(e){return(e&Sa)!==0}function Et(e,n){return e|n}function JS(e){return e|zR}function ZS(e){return e|Sa}function Na(e){return an(e)}function Ta(e){try{Pe(e)}catch(n){throw y(n,Fn)?new _(ai,n.context):y(n,Mn)?new _(ci,n.context):n}}function QS(e){return Ta(e),e}function VR(){const e=ae();return I({fixedSize:32,write:(n,t,r)=>(Ta(n),e.write(n,t,r))})}function GR(){return G()}function eN(){return f(VR(),GR())}function nN(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}function tN(e){return e}function rN(e){return e}function iN(e){return e}function vc(e){switch(e){case"finalized":return 2;case"confirmed":return 1;case"processed":return 0;default:throw new _(sn,{unexpectedValue:e})}}function rr(e,n){return e===n?0:vc(e)<vc(n)?-1:1}var HR=18446744073709551615n,Dr,br;function oN(){return Dr||(Dr=cn()),Dr}function sN(){return br||(br=_n()),br}function aN(e){return e>=0&&e<=HR}function $R(e){if(e<0||e>HR)throw new _(_i)}function ga(e){return $R(e),e}function jR(){return Ia(oN())}function Ia(e){return N(e,n=>typeof n=="bigint"?n:n.raw)}function KR(){return ma(sN())}function ma(e){return g(e,n=>ga(typeof n=="bigint"?n:BigInt(n)))}function cN(){return f(jR(),KR())}function _N(e){return f(Ia(e),ma(e))}var Pr,wr;function uN(e,n){return Pr||(Pr=UR("unsigned",64,9)),Pr(e,n)}function XR(e){return wr||(wr=xR("unsigned",64,9)),wr(e)}var yr,vr;function dN(){return yr||(yr=cn()),yr}function RN(){return vr||(vr=_n()),vr}function lN(e,n){return uN(e,n)}function AN(e){return ga(e.raw)}function fN(e){return XR(e)}function YR(){return N(dN(),e=>typeof e=="bigint"?e:e.raw)}function WR(){return g(RN(),e=>XR(e))}function ON(){return f(YR(),WR())}function EN(e){try{return BigInt(e),!0}catch{return!1}}function qR(e){try{BigInt(e)}catch{throw new _(ui,{value:e})}}function SN(e){return qR(e),e}function NN(e){return!Number.isNaN(Number(e))}function JR(e){if(Number.isNaN(Number(e)))throw new _(di,{value:e})}function TN(e){return JR(e),e}var ZR=9223372036854775807n,QR=-9223372036854775808n;function gN(e){return e>=QR&&e<=ZR}function el(e){if(e<QR||e>ZR)throw new _(Ri,{value:e})}function IN(e){return el(e),e}function Ca(e){return"lifetimeConstraint"in e&&typeof e.lifetimeConstraint.blockhash=="string"&&typeof e.lifetimeConstraint.lastValidBlockHeight=="bigint"&&Na(e.lifetimeConstraint.blockhash)}function mN(e){if(!Ca(e))throw new _(Dt)}function ir(e,n){return"lifetimeConstraint"in n&&n.lifetimeConstraint&&"blockhash"in n.lifetimeConstraint&&n.lifetimeConstraint.blockhash===e.blockhash&&n.lifetimeConstraint.lastValidBlockHeight===e.lastValidBlockHeight?n:Object.freeze({...n,lifetimeConstraint:Object.freeze(e)})}var or=1,Ur;function xr(){return Ur||(Ur=b()),Ur}var Mr;function Fr(){return Mr||(Mr=p()),Mr}function ha(){return x([["numSignerAccounts",xr()],["numReadonlySignerAccounts",xr()],["numReadonlyNonSignerAccounts",xr()]])}function pa(){return X([["numSignerAccounts",Fr()],["numReadonlySignerAccounts",Fr()],["numReadonlyNonSignerAccounts",Fr()]])}var Br;function nl(){return Br||(Br=N(x([["programAddressIndex",b()],["accountIndices",P(b(),{size:ie()})],["data",Ys(te(),ie())]]),e=>e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:e.accountIndices??[],data:e.data??new Uint8Array(0)})),Br}var kr;function tl(){return kr||(kr=g(X([["programAddressIndex",p()],["accountIndices",D(p(),{size:q()})],["data",Ws(oe(),q())]]),e=>{if(e.accountIndices.length&&e.data.byteLength)return e;const{accountIndices:n,data:t,...r}=e;return{...r,...n.length?{accountIndices:n}:null,...t.byteLength?{data:t}:null}})),kr}function CN(e,n,t=n){if(!n.match(new RegExp(`^[${e}]*$`)))throw new _(Te,{alphabet:e,base:e.length,value:t})}var hN=e=>I({getSizeFromValue:n=>{const[t,r]=Uc(n,e[0]);if(!r)return n.length;const i=xc(r,e);return t.length+Math.ceil(i.toString(16).length/2)},write(n,t,r){if(CN(e,n),n==="")return r;const[i,o]=Uc(n,e[0]);if(!o)return t.set(new Uint8Array(i.length).fill(0),r),r+i.length;let s=xc(o,e);const a=[];for(;s>0n;)a.unshift(Number(s%256n)),s/=256n;const c=[...Array(i.length).fill(0),...a];return t.set(c,r),r+c.length}}),pN=e=>T({read(n,t){const r=t===0||t<=-n.byteLength?n:n.slice(t);if(r.length===0)return["",0];let i=r.findIndex(c=>c!==0);i=i===-1?r.length:i;const o=e[0].repeat(i);if(i===r.length)return[o,n.length];const s=r.slice(i).reduce((c,u)=>c*256n+BigInt(u),0n),a=LN(s,e);return[o+a,n.length]}});function Uc(e,n){const[t,r]=e.split(new RegExp(`((?!${n}).*)`));return[t,r]}function xc(e,n){const t=BigInt(n.length);let r=0n;for(const i of e)r*=t,r+=BigInt(n.indexOf(i));return r}function LN(e,n){const t=BigInt(n.length),r=[];for(;e>0n;)r.unshift(n[Number(e%t)]),e/=t;return r.join("")}var rl="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",DN=()=>hN(rl),bN=()=>pN(rl);function La(){return N(da(Se(DN(),32),{noneValue:"zeroes",prefix:null}),e=>e??null)}function Da(){return se(bN(),32)}function PN(){return N(x([["header",ha()],["staticAccounts",P(ae(),{size:ie()})],["lifetimeToken",La()],["instructions",P(nl(),{size:ie()})]]),e=>({...e,lifetimeToken:"lifetimeToken"in e?e.lifetimeToken:void 0}))}function wN(){return g(X([["header",pa()],["staticAccounts",D(G(),{size:q()})],["lifetimeToken",Da()],["instructions",D(tl(),{size:q()})]]),e=>({...e,version:"legacy"}))}var Zr=128;function sr(){return I({getSizeFromValue:e=>e==="legacy"?0:1,maxSize:1,write:(e,n,t)=>{if(e==="legacy")return t;if(e<0||e>127)throw new _(Po,{actualVersion:e});if(e>or)throw new _(Oe,{unsupportedVersion:e});return n.set([e|Zr],t),t+1}})}function ze(){return T({maxSize:1,read:(e,n)=>{const t=e[n];if((t&Zr)===0)return["legacy",n];{const r=t^Zr;if(r>or)throw new _(Oe,{unsupportedVersion:r});return[r,n+1]}}})}function yN(){return f(sr(),ze())}var zr;function vN(){if(!zr){const e=P(b(),{size:ie()});zr=x([["lookupTableAddress",ae()],["writableIndexes",e],["readonlyIndexes",e]])}return zr}var Vr;function UN(){if(!Vr){const e=D(p(),{size:q()});Vr=X([["lookupTableAddress",G()],["writableIndexes",e],["readonlyIndexes",e]])}return Vr}function xN(){return N(x([["version",sr()],["header",ha()],["staticAccounts",P(ae(),{size:ie()})],["lifetimeToken",La()],["instructions",P(nl(),{size:ie()})],["addressTableLookups",P(vN(),{size:ie()})]]),e=>({...e,addressTableLookups:e.addressTableLookups??[],lifetimeToken:"lifetimeToken"in e?e.lifetimeToken:void 0}))}function MN(){return g(X([["version",ze()],["header",pa()],["staticAccounts",D(G(),{size:q()})],["lifetimeToken",Da()],["instructions",D(tl(),{size:q()})],["addressTableLookups",D(UN(),{size:q()})]]),({addressTableLookups:e,...n})=>e?.length?{...n,addressTableLookups:e,version:0}:{...n,version:0})}function Zn(e){return e.computeUnitLimit===void 0&&e.heapSize===void 0&&e.loadedAccountsDataSizeLimit===void 0&&e.priorityFeeLamports===void 0}function Qn(e,n){return e.computeUnitLimit===n.computeUnitLimit&&e.heapSize===n.heapSize&&e.loadedAccountsDataSizeLimit===n.loadedAccountsDataSizeLimit&&e.priorityFeeLamports===n.priorityFeeLamports}function FN(e,n){const t={...n.config,...e};if(Zn(t)){if(!n.config)return n;const{config:r,...i}=n;return Object.freeze(i)}return n.config&&Qn(n.config,t)?n:Object.freeze({...n,config:Object.freeze(t)})}var Qr=3,il=4,ol=8,sl=16;function al(e){const n=e&Qr;if(n===1||n===2)throw new _($o,{mask:e});return n===Qr}function cl(e){return(e&il)!==0}function _l(e){return(e&ol)!==0}function ul(e){return(e&sl)!==0}function BN(){return nr([[e=>e.kind==="u32",x([["value",Ce()]])],[e=>e.kind==="u64",x([["value",cn()]])]])}function kN(){return P(BN(),{size:"remainder"})}function zN(e){const n=al(e),t=cl(e),r=_l(e),i=ul(e),o=g(he(),c=>({kind:"u32",value:c})),s=g(_n(),c=>({kind:"u64",value:c})),a=Ae();return g(z([n?s:a,t?o:a,r?o:a,i?o:a]),c=>c.filter(Boolean))}function VN(){return x([["programAccountIndex",b()],["numInstructionAccounts",b()],["numInstructionDataBytes",qt()]])}function GN(){return X([["programAccountIndex",p()],["numInstructionAccounts",p()],["numInstructionDataBytes",Jt()]])}function HN(){return x([["instructionAccountIndices",P(b(),{size:"remainder"})],["instructionData",te()]])}function $N(e){return X([["instructionAccountIndices",D(p(),{size:e.numInstructionAccounts})],["instructionData",se(oe(),e.numInstructionDataBytes)]])}function jN(){return N(x([["version",sr()],["header",ha()],["configMask",Ce()],["lifetimeToken",La()],["numInstructions",b()],["numStaticAccounts",b()],["staticAccounts",P(ae(),{size:"remainder"})],["configValues",kN()],["instructionHeaders",P(VN(),{size:"remainder"})],["instructionPayloads",P(HN(),{size:"remainder"})]]),e=>({...e,lifetimeToken:"lifetimeToken"in e?e.lifetimeToken:void 0}))}function KN(){return T({read(e,n){const[{header:t,configMask:r,lifetimeToken:i,numInstructions:o,numStaticAccounts:s},a]=X([["version",ze()],["header",pa()],["configMask",he()],["lifetimeToken",Da()],["numInstructions",p()],["numStaticAccounts",p()]]).read(e,n);let c=a;const[u,d]=D(G(),{size:s}).read(e,c);c=d;const[R,l]=zN(r).read(e,c);c=l;const[O,E]=D(GN(),{size:o}).read(e,c);c=E;const S=[];for(const m of O){const[U,L]=$N(m).read(e,c);S.push(U),c=L}return[{configMask:r,configValues:R,header:t,instructionHeaders:O,instructionPayloads:S,lifetimeToken:i,numInstructions:o,numStaticAccounts:s,staticAccounts:u,version:1},c]}})}function ba(){return N(nr([[e=>e.version==="legacy",PN()],[e=>e.version===0,xN()],[e=>e.version===1,jN()]]),e=>{if(e.version!=="legacy"&&e.version>or)throw new _(Oe,{unsupportedVersion:e.version});return e})}function dl(){return T({read(e,n){const[t]=ze().read(e,n);return Ra([[()=>t==="legacy",wN()],[()=>t===0,MN()],[()=>t===1,KN()]]).read(e,n)}})}function XN(){return f(ba(),dl())}function Mc(e,n,t){e[n]=t(e[n]??{role:v.READONLY})}var k=Symbol("AddressMapTypeProperty");function Rl(e,n){const t={[e]:{[k]:0,role:v.WRITABLE_SIGNER}},r=new Set;for(const i of n)if(Mc(t,i.programAddress,o=>{if(r.add(i.programAddress),k in o){if(de(o.role))throw o[k]===0?new _(Lt,{programAddress:i.programAddress}):new _(Xe,{programAddress:i.programAddress});if(o[k]===1)return o}return{[k]:1,role:v.READONLY}}),!!i.accounts)for(const o of i.accounts)Mc(t,o.address,s=>{const{address:a,...c}=o;if(k in s)switch(s[k]){case 0:return s;case 1:{const u=Et(s.role,c.role);if(r.has(o.address)){if(de(c.role))throw new _(Xe,{programAddress:o.address});return s.role!==u?{...s,role:u}:s}else return s.role!==u?{...s,role:u}:s}}return{...c,[k]:1}});return t}function ll(e){let n;return Object.entries(e).sort(([r,i],[o,s])=>{if(i[k]!==s[k]){if(i[k]===0)return-1;if(s[k]===0)return 1;if(i[k]===1)return-1;if(s[k]===1)return 1}const a=V(i.role);if(a!==V(s.role))return a?-1:1;const c=de(i.role);return c!==de(s.role)?c?-1:1:(n||=Wn(),n(r,o))}).map(([r,i])=>({address:r,...i}))}function Pa(e){let n=0,t=0,r=0;for(const i of e){if("lookupTableAddress"in i)break;const o=de(i.role);V(i.role)?(r++,o||t++):o||n++}return{numReadonlyNonSignerAccounts:n,numReadonlySignerAccounts:t,numSignerAccounts:r}}function Al(e){const n={};for(const[t,r]of e.entries())n[r.address]=t;return n}function YN(e,n){const t=Al(n);return e.map(({accounts:r,data:i,programAddress:o})=>({programAddressIndex:t[o],...r?{accountIndices:r.map(({address:s})=>t[s])}:null,...i?{data:i}:null}))}function wa(e){return"nonce"in e?e.nonce:e.blockhash}function WN(e){const n=Rl(e.feePayer.address,e.instructions),t=ll(n),r=t.length;if(r>64)throw new _(nn,{actualCount:r,maxAllowed:64});const i=t.filter(a=>V(a.role)).length;if(i>12)throw new _(en,{actualCount:i,maxAllowed:12});const o=e.instructions.length;if(o>64)throw new _(tn,{actualCount:o,maxAllowed:64});for(let a=0;a<e.instructions.length;a++){const c=e.instructions[a].accounts?.length??0;if(c>255)throw new _(rn,{actualCount:c,instructionIndex:a,maxAllowed:255})}const s=e.lifetimeConstraint;return{...s?{lifetimeToken:wa(s)}:null,header:Pa(t),instructions:YN(e.instructions,t),staticAccounts:t.map(a=>a.address),version:e.version}}function Fc(e,n,t){e[n]=t(e[n]??{role:v.READONLY})}var w=Symbol("AddressMapTypeProperty");function qN(e,n){const t={[e]:{[w]:0,role:v.WRITABLE_SIGNER}},r=new Set;for(const i of n){Fc(t,i.programAddress,s=>{if(r.add(i.programAddress),w in s){if(de(s.role))throw s[w]===0?new _(Lt,{programAddress:i.programAddress}):new _(Xe,{programAddress:i.programAddress});if(s[w]===2)return s}return{[w]:2,role:v.READONLY}});let o;if(i.accounts)for(const s of i.accounts)Fc(t,s.address,a=>{const{address:c,...u}=s;if(w in a)switch(a[w]){case 0:return a;case 1:{const d=Et(a.role,u.role);if("lookupTableAddress"in u){if(a.lookupTableAddress!==u.lookupTableAddress&&(o||=Wn())(u.lookupTableAddress,a.lookupTableAddress)<0)return{[w]:1,...u,role:d}}else if(V(u.role))return{[w]:2,role:d};return a.role!==d?{...a,role:d}:a}case 2:{const d=Et(a.role,u.role);if(r.has(s.address)){if(de(u.role))throw new _(Xe,{programAddress:s.address});return a.role!==d?{...a,role:d}:a}else return"lookupTableAddress"in u&&!V(a.role)?{...u,[w]:1,role:d}:a.role!==d?{...a,role:d}:a}}return"lookupTableAddress"in u?{...u,[w]:1}:{...u,[w]:2}})}return t}function JN(e){let n;return Object.entries(e).sort(([r,i],[o,s])=>{if(i[w]!==s[w]){if(i[w]===0)return-1;if(s[w]===0)return 1;if(i[w]===2)return-1;if(s[w]===2)return 1}const a=V(i.role);if(a!==V(s.role))return a?-1:1;const c=de(i.role);return c!==de(s.role)?c?-1:1:(n||=Wn(),i[w]===1&&s[w]===1&&i.lookupTableAddress!==s.lookupTableAddress?n(i.lookupTableAddress,s.lookupTableAddress):n(r,o))}).map(([r,i])=>({address:r,...i}))}function ZN(e){const n={};for(const t of e){if(!("lookupTableAddress"in t))continue;const r=n[t.lookupTableAddress]||={readonlyIndexes:[],writableIndexes:[]};t.role===v.WRITABLE?r.writableIndexes.push(t.addressIndex):r.readonlyIndexes.push(t.addressIndex)}return Object.keys(n).sort(Wn()).map(t=>({lookupTableAddress:t,...n[t]}))}function QN(e){const n={};for(const[t,r]of e.entries())n[r.address]=t;return n}function eT(e,n){const t=QN(n);return e.map(({accounts:r,data:i,programAddress:o})=>({programAddressIndex:t[o],...r?{accountIndices:r.map(({address:s})=>t[s])}:null,...i?{data:i}:null}))}function nT(e){const n=e.findIndex(r=>"lookupTableAddress"in r);return(n===-1?e:e.slice(0,n)).map(({address:r})=>r)}function tT(e){const n=qN(e.feePayer.address,e.instructions),t=JN(n),r=t.length;if(r>64)throw new _(nn,{actualCount:r,maxAllowed:64});const i=t.filter(a=>V(a.role)).length;if(i>12)throw new _(en,{actualCount:i,maxAllowed:12});const o=e.instructions.length;if(o>64)throw new _(tn,{actualCount:o,maxAllowed:64});for(let a=0;a<e.instructions.length;a++){const c=e.instructions[a].accounts?.length??0;if(c>255)throw new _(rn,{actualCount:c,instructionIndex:a,maxAllowed:255})}const s=e.lifetimeConstraint;return{addressTableLookups:ZN(t),...s?{lifetimeToken:wa(s)}:null,header:Pa(t),instructions:eT(e.instructions,t),staticAccounts:nT(t),version:e.version}}function rT(e){let n=0;return e.priorityFeeLamports!==void 0&&(n|=Qr),e.computeUnitLimit!==void 0&&(n|=il),e.loadedAccountsDataSizeLimit!==void 0&&(n|=ol),e.heapSize!==void 0&&(n|=sl),n}function iT(e){const n=[];return e.priorityFeeLamports!==void 0&&n.push({kind:"u64",value:e.priorityFeeLamports}),e.computeUnitLimit!==void 0&&n.push({kind:"u32",value:e.computeUnitLimit}),e.loadedAccountsDataSizeLimit!==void 0&&n.push({kind:"u32",value:e.loadedAccountsDataSizeLimit}),e.heapSize!==void 0&&n.push({kind:"u32",value:e.heapSize}),n}function oT(e,n){return{numInstructionAccounts:e.accounts?.length??0,numInstructionDataBytes:e.data?.byteLength??0,programAccountIndex:n[e.programAddress]}}function sT(e,n){return{instructionAccountIndices:e.accounts?.map(({address:t})=>n[t])??[],instructionData:e.data??new Uint8Array}}function aT(e){const n=Rl(e.feePayer.address,e.instructions),t=ll(n),r=t.length;if(r>64)throw new _(nn,{actualCount:r,maxAllowed:64});const i=t.filter(c=>V(c.role)).length;if(i>12)throw new _(en,{actualCount:i,maxAllowed:12});const o=e.instructions.length;if(o>64)throw new _(tn,{actualCount:o,maxAllowed:64});for(let c=0;c<e.instructions.length;c++){const u=e.instructions[c].accounts?.length??0;if(u>255)throw new _(rn,{actualCount:u,instructionIndex:c,maxAllowed:255})}const s=Al(t),a=e.lifetimeConstraint;return{version:1,...a?{lifetimeToken:wa(a)}:null,configMask:rT(e.config??{}),configValues:iT(e.config??{}),header:Pa(t),instructionHeaders:e.instructions.map(c=>oT(c,s)),instructionPayloads:e.instructions.map(c=>sT(c,s)),numInstructions:e.instructions.length,numStaticAccounts:t.length,staticAccounts:t.map(c=>c.address)}}function fl(e){const n=e.version;if(n==="legacy")return WN(e);if(n===0)return tT(e);if(n===1)return aT(e);throw new _(Oe,{version:n})}function cT(e,n,t){for(const[r,i]of Object.entries(t))for(let o=0;o<i.length;o++)if(e===i[o])return{address:e,addressIndex:o,lookupTableAddress:r,role:n}}function _T(e,n){const t=new Set(e.instructions.map(s=>s.programAddress)),r=new Set(Object.values(n).flatMap(s=>s).filter(s=>!t.has(s))),i=[];let o=!1;for(const s of e.instructions){if(!s.accounts){i.push(s);continue}const a=[];let c=!1;for(const u of s.accounts){if("lookupTableAddress"in u||!r.has(u.address)||V(u.role)){a.push(u);continue}const d=cT(u.address,u.role,n);a.push(Object.freeze(d)),c=!0,o=!0}i.push(Object.freeze(c?{...s,accounts:a}:s))}return Object.freeze(o?{...e,instructions:i}:e)}var Ol="ComputeBudget111111111111111111111111111111",El=1,Sl=2,Nl=3,Tl=4;function ar(e,n){const t=x([["discriminator",b()],["value",te()]]).encode({discriminator:e,value:n});return Object.freeze({data:t,programAddress:Ol})}function cr(e,n,t){return e.programAddress===Ol&&"data"in e&&e.data!=null&&e.data.byteLength===t&&e.data[0]===n}function uT(e){return ar(Sl,Ce().encode(e))}function gl(e){return cr(e,Sl,5)}function dT(e){return he().decode(e,1)}function RT(e){return ar(Nl,cn().encode(e))}function Il(e){return cr(e,Nl,9)}function lT(e){return _n().decode(e,1)}function AT(e){return ar(El,Ce().encode(e))}function ml(e){return cr(e,El,5)}function fT(e){return he().decode(e,1)}function OT(e){return ar(Tl,Ce().encode(e))}function Cl(e){return cr(e,Tl,5)}function ET(e){return he().decode(e,1)}function _r(e,n,t){const r=[...t.instructions];return r[e]=n,Object.freeze({...t,instructions:Object.freeze(r)})}function ur(e,n){return Object.freeze({...n,instructions:Object.freeze([...n.instructions.slice(0,e),...n.instructions.slice(e+1)])})}function fe(e,n){return Ve([e],n)}function Ve(e,n){return Object.freeze({...n,instructions:Object.freeze([...n.instructions,...e])})}function ST(e,n){return hl([e],n)}function hl(e,n){return Object.freeze({...n,instructions:Object.freeze([...e,...n.instructions])})}function fn(e){return e.version===1?e.config?.computeUnitLimit:NT(e)}function NT(e){const t=e.instructions.find(gl);return t?dT(t.data):void 0}function Ge(e,n){return n.version===1?TT(e,n):gT(e,n)}function TT(e,n){const t={...n.config??{},computeUnitLimit:e},r=Zn(t)?void 0:Object.freeze(t);if(r===void 0){const{config:i,...o}=n;return Object.freeze(o)}return n.config&&Qn(n.config,r)?n:Object.freeze({...n,config:r})}function gT(e,n){const t=n.instructions.findIndex(gl);if(e===void 0)return t===-1?n:ur(t,n);if(fn(n)===e)return n;const r=uT(e);return t===-1?fe(r,n):_r(t,r,n)}function pl(e){const t=e.instructions.find(Il);return t?lT(t.data):void 0}function IT(e,n){const t=n.instructions.findIndex(Il);if(e===void 0)return t===-1?n:ur(t,n);if(pl(n)===e)return n;const r=RT(e);return t===-1?fe(r,n):_r(t,r,n)}function dr(e){return Object.freeze({instructions:Object.freeze([]),version:e.version})}function Rr(e,n){if("feePayer"in n&&e===n.feePayer?.address&&mT(n.feePayer))return n;const t={...n,feePayer:Object.freeze({address:e})};return Object.freeze(t),t}function mT(e){return!!e&&"address"in e&&typeof e.address=="string"&&Object.keys(e).length===1}function ya(e){const{header:n}=e,t=n.numSignerAccounts-n.numReadonlySignerAccounts,r=e.staticAccounts.length-n.numSignerAccounts-n.numReadonlyNonSignerAccounts,i=[];let o=0;for(let s=0;s<t;s++)i.push({address:e.staticAccounts[o],role:v.WRITABLE_SIGNER}),o++;for(let s=0;s<n.numReadonlySignerAccounts;s++)i.push({address:e.staticAccounts[o],role:v.READONLY_SIGNER}),o++;for(let s=0;s<r;s++)i.push({address:e.staticAccounts[o],role:v.WRITABLE}),o++;for(let s=0;s<n.numReadonlyNonSignerAccounts;s++)i.push({address:e.staticAccounts[o],role:v.READONLY}),o++;return i}function CT(e,n){const t=n[e.programAddressIndex]?.address;if(!t)throw new _(Pt,{index:e.programAddressIndex});const r=e.accountIndices?.map(o=>n[o]),{data:i}=e;return Object.freeze({programAddress:t,...r&&r.length?{accounts:Object.freeze(r)}:{},...i&&i.length?{data:i}:{}})}function Ll(e,n){return e.map(t=>CT(t,n))}function va(e){const n=e[0];if(!n)throw new _(vo);return n}var Dl="SysvarRecentB1ockHashes11111111111111111111",bl="11111111111111111111111111111111";function Bc(e,n){return{accounts:[{address:e,role:v.WRITABLE},{address:Dl,role:v.READONLY},{address:n,role:v.READONLY_SIGNER}],data:new Uint8Array([4,0,0,0]),programAddress:bl}}function lr(e){return e.programAddress===bl&&e.data!=null&&hT(e.data)&&e.accounts?.length===3&&e.accounts[0].address!=null&&e.accounts[0].role===v.WRITABLE&&e.accounts[1].address===Dl&&e.accounts[1].role===v.READONLY&&e.accounts[2].address!=null&&V(e.accounts[2].role)}function hT(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}function Ua(e,n,t){const r=n[0];if(!r||!lr(r))return{blockhash:e,lastValidBlockHeight:t??2n**64n-1n};{const i=r.accounts[0].address;Pe(i);const o=r.accounts[2].address;return Pe(o),{nonce:e,nonceAccountAddress:i,nonceAuthorityAddress:o}}}function pT(e,n){const t=va(e.staticAccounts),r=ya(e),i=Ll(e.instructions,r),o=Ua(e.lifetimeToken,i,n?.lastValidBlockHeight);return Y(dr({version:"legacy"}),s=>Rr(t,s),s=>Ve(i,s),s=>"blockhash"in o?ir(o,s):Ar(o,s))}function On(e){return"lifetimeConstraint"in e&&typeof e.lifetimeConstraint.nonce=="string"&&e.instructions[0]!=null&&lr(e.instructions[0])}function LT(e){if(!On(e))throw new _(bt)}function DT(e,n,t){return e.accounts[0].address===n&&e.accounts[2].address===t}function Ar({nonce:e,nonceAccountAddress:n,nonceAuthorityAddress:t},r){let i;const o=r.instructions[0];if(o&&lr(o))if(DT(o,n,t)){if(On(r)&&r.lifetimeConstraint.nonce===e)return r;i=[o,...r.instructions.slice(1)]}else i=[Object.freeze(Bc(n,t)),...r.instructions.slice(1)];else i=[Object.freeze(Bc(n,t)),...r.instructions];return Object.freeze({...r,instructions:Object.freeze(i),lifetimeConstraint:Object.freeze({nonce:e})})}function bT(e,n){const r=e.map(s=>s.lookupTableAddress).filter(s=>n[s]===void 0);if(r.length>0)throw new _(wo,{lookupTableAddresses:r});const i=[],o=[];for(const s of e){const a=n[s.lookupTableAddress],c=s.readonlyIndexes,u=s.writableIndexes,d=Math.max(...c,...u);if(d>=a.length)throw new _(yo,{highestKnownIndex:a.length-1,highestRequestedIndex:d,lookupTableAddress:s.lookupTableAddress});const R=c.map(O=>({address:a[O],addressIndex:O,lookupTableAddress:s.lookupTableAddress,role:v.READONLY}));i.push(...R);const l=u.map(O=>({address:a[O],addressIndex:O,lookupTableAddress:s.lookupTableAddress,role:v.WRITABLE}));o.push(...l)}return[...o,...i]}function PT(e,n){const t=va(e.staticAccounts),r=ya(e),i="addressTableLookups"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?bT(e.addressTableLookups,n?.addressesByLookupTableAddress??{}):[],o=[...r,...i],s=Ll(e.instructions,o),a=Ua(e.lifetimeToken,s,n?.lastValidBlockHeight);return Y(dr({version:0}),c=>Rr(t,c),c=>Ve(s,c),c=>"blockhash"in a?ir(a,c):Ar(a,c))}function wT(e,n){const t=[["priorityFeeLamports","u64",al],["computeUnitLimit","u32",cl],["loadedAccountsDataSizeLimit","u32",_l],["heapSize","u32",ul]],[r]=t.reduce(([i,o],[s,a,c])=>{if(!c(e))return[i,o];const u=n[o];if(u.kind!==a)throw new _(Ko,{actualKind:u.kind,configName:s,expectedKind:a});return[{...i,[s]:u.value},o+1]},[{},0]);return r}function yT(e,n,t){const r=t[e.programAccountIndex]?.address;if(!r)throw new _(Pt,{index:e.programAccountIndex});const i=n.instructionAccountIndices.map(s=>t[s]),o=n.instructionData;return Object.freeze({programAddress:r,...i&&i.length?{accounts:Object.freeze(i)}:{},...o&&o.length?{data:o}:{}})}function vT(e,n,t){if(e.length!==n.length)throw new _(Xo,{numInstructionHeaders:e.length,numInstructionPayloads:n.length});return e.map((r,i)=>yT(r,n[i],t))}function UT(e,n){const t=va(e.staticAccounts),r=ya(e),i=wT(e.configMask,e.configValues),o=vT(e.instructionHeaders,e.instructionPayloads,r),s=Ua(e.lifetimeToken,o,n?.lastValidBlockHeight);return Y(dr({version:1}),a=>FN(i,a),a=>Rr(t,a),a=>Ve(o,a),a=>"blockhash"in s?ir(s,a):Ar(s,a))}function Pl(e,n){const t=e.version;if(t==="legacy")return pT(e,n);if(t===0)return PT(e,n);if(t===1)return UT(e,n);throw new _(Oe,{version:t})}function wl(e){return e.version===1?e.config?.heapSize:xT(e)}function xT(e){const t=e.instructions.find(ml);return t?fT(t.data):void 0}function MT(e,n){return n.version===1?FT(e,n):BT(e,n)}function FT(e,n){const t={...n.config??{},heapSize:e},r=Zn(t)?void 0:Object.freeze(t);if(r===void 0){const{config:i,...o}=n;return Object.freeze(o)}return n.config&&Qn(n.config,r)?n:Object.freeze({...n,config:r})}function BT(e,n){const t=n.instructions.findIndex(ml);if(e===void 0)return t===-1?n:ur(t,n);if(wl(n)===e)return n;const r=AT(e);return t===-1?fe(r,n):_r(t,r,n)}function fr(e){return e.version===1?e.config?.loadedAccountsDataSizeLimit:kT(e)}function kT(e){const t=e.instructions.find(Cl);return t?ET(t.data):void 0}function Or(e,n){return n.version===1?zT(e,n):VT(e,n)}function zT(e,n){const t={...n.config??{},loadedAccountsDataSizeLimit:e},r=Zn(t)?void 0:Object.freeze(t);if(r===void 0){const{config:i,...o}=n;return Object.freeze(o)}return n.config&&Qn(n.config,r)?n:Object.freeze({...n,config:r})}function VT(e,n){const t=n.instructions.findIndex(Cl);if(e===void 0)return t===-1?n:ur(t,n);if(fr(n)===e)return n;const r=OT(e);return t===-1?fe(r,n):_r(t,r,n)}function GT(e){return e.config?.priorityFeeLamports}function HT(e,n){const t={...n.config??{},priorityFeeLamports:e},r=Zn(t)?void 0:Object.freeze(t);if(r===void 0){const{config:i,...o}=n;return Object.freeze(o)}return n.config&&Qn(n.config,r)?n:Object.freeze({...n,config:r})}function kc(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function $T(e){const n=new Set,t={deferreds:n,settled:!1};return Promise.resolve(e).then(r=>{for(const{resolve:i}of n)i(r);n.clear(),t.settled=!0},r=>{for(const{reject:i}of n)i(r);n.clear(),t.settled=!0}),t}var Gr=new WeakMap;async function et(e){let n;return await new Promise((r,i)=>{n={reject:i,resolve:r};for(const o of e){if(!kc(o)){Promise.resolve(o).then(r,i);continue}let s=Gr.get(o);s===void 0?(s=$T(o),s.deferreds.add(n),Gr.set(o,s)):s.settled?Promise.resolve(o).then(r,i):s.deferreds.add(n)}}).finally(()=>{for(const r of e)kc(r)&&Gr.get(r).deferreds.delete(n)})}function Je(e,n){return n?et([new Promise((t,r)=>{n.aborted?r(n.reason):n.addEventListener("abort",function(){r(this.reason)})}),e]):e}var nt=Object.freeze({name:"Ed25519"});function jT(e){return new Uint8Array([48,46,2,1,0,48,5,6,3,43,101,112,4,34,4,32,...e])}async function St(e,n=!1){const t=e.byteLength;if(t!==32)throw new _(Qi,{actualLength:t});const r=jT(e);return await crypto.subtle.importKey("pkcs8",r,nt,n,["sign"])}async function yl(e,n=!1){if(yd(),e.extractable===!1)throw new _(qi,{key:e});const t=await crypto.subtle.exportKey("jwk",e);return await crypto.subtle.importKey("jwk",{crv:"Ed25519",ext:n,key_ops:["verify"],kty:"OKP",x:t.x},"Ed25519",n,["verify"])}var He;function vl(e){if(He||(He=jn()),e.length<64||e.length>88)throw new _(no,{actualLength:e.length});const n=He.encode(e);xa(n)}function xa(e){const n=e.byteLength;if(n!==64)throw new _(eo,{actualLength:n})}function KT(e){if(He||(He=jn()),e.length<64||e.length>88)return!1;const n=He.encode(e);return Ul(n)}function Ul(e){return e.byteLength===64}async function tt(e,n){JO();const t=await crypto.subtle.sign(nt,e,qe(n));return new Uint8Array(t)}function XT(e){return vl(e),e}function YT(e){return xa(e),e}async function Ma(e,n,t){return ZO(),await crypto.subtle.verify(nt,e,qe(n),qe(t))}async function Fa(e=!1){return await qO(),await crypto.subtle.generateKey(nt,e,["sign","verify"])}async function xl(e,n=!1){if(XO(),e.byteLength!==64)throw new _(Zi,{byteLength:e.byteLength});const[t,r]=await Promise.all([crypto.subtle.importKey("raw",e.slice(32),nt,!0,["verify"]),St(e.slice(0,32),n)]),i=new Uint8Array(32);crypto.getRandomValues(i);const o=await tt(r,i);if(!await Ma(t,o,i))throw new _(to);return{privateKey:r,publicKey:t}}async function Ml(e,n=!1){const t=St(e,n),[r,i]=await Promise.all([(n?t:St(e,!0)).then(async o=>await yl(o,!0)),t]);return{privateKey:i,publicKey:r}}var WT=/\\.|\[[^\]]*\]|\{[^}]*\}|\([^)]*\)/g,qT=/[$()*+./?[\]^{|}]/g,Hr=/^[1-9A-HJ-NP-Za-km-z]*$/;function JT(e){const n=e.source.replace(WT,"").replace(qT,""),t=r=>e.ignoreCase?Hr.test(r.toLowerCase())||Hr.test(r.toUpperCase()):Hr.test(r);for(const r of n)if(!t(r))throw new _(ro,{character:r,source:e.source})}async function Ba(e){const{abortSignal:n,amount:t=1,concurrency:r=32,extractable:i=!1,matches:o}=e;let s;if(typeof o=="function"?s=o:(JT(o),s=u=>o.test(u)),t<=0)return[];const a=Kn(),c=[];for(;c.length<t;){n?.throwIfAborted();const u=await Je(Promise.all(Array.from({length:r},async()=>{const d=await Fa(i),R=new Uint8Array(await crypto.subtle.exportKey("raw",d.publicKey));return{address:a.decode(R),keyPair:d}})),n);for(const{address:d,keyPair:R}of u){if(c.length>=t)break;s(d)&&c.push(R)}}return c}async function ZT(e){const[n]=await Ba({...e,amount:1});return n}async function Fl(e,n,t={}){throw new _(io)}function Bl(e){const n=Object.values(e);if(n.length===0)throw new _(Fo);return n.map(t=>t||new Uint8Array(64).fill(0))}function QT(){return N(P(Se(te(),64),{size:ie()}),Bl)}function eg(e){return N(P(Se(te(),64),{description:"signatures",size:e}),Bl)}var ng=128,tg=127;function rg(e){if(e.length===0)throw new _(zo);return ze().decode(e)===1?"messageFirst":"signaturesFirst"}function ig(e){if(e.length===0)throw new _(Vo);const n=e[0];if((n&ng)===0)return"signaturesFirst";const t=n&tg;if(t===0)throw new _(Go,{firstByte:n,transactionBytes:e});if(t===1)return"messageFirst";throw new _(Oe,{unsupportedVersion:t})}function Er(){return SR(e=>rg(e.messageBytes)==="signaturesFirst",og(),sg())}function og(){return x([["signatures",QT()],["messageBytes",te()]])}function ei(e,n){if(e.length<n+2)throw new _(ko,{messageBytes:e});return e[n+1]}function sg(){const e=te();return I({getSizeFromValue:n=>{const t=ei(n.messageBytes,0);return n.messageBytes.length+t*64},write:(n,t,r)=>{r=e.write(n.messageBytes,t,r);const i=ei(n.messageBytes,0);return r=eg(i).write(n.signatures,t,r),r}})}function kl(){return NR(e=>ig(e)==="signaturesFirst",ag(),cg())}function ag(){return g(X([["signatures",D(se(oe(),64),{size:q()})],["messageBytes",oe()]]),dg)}function cg(){return g(_g(),Rg)}function _g(){return T({read(e,n){const t=ei(e,n),r=t*64,i=e.length-n-r;if(i<0)throw new _(Ho,{numExpectedSignatures:t,transactionBytes:e.subarray(n),transactionBytesLength:e.length-n});const o=e.subarray(n,n+i),[s,a]=D(se(oe(),64),{size:t}).read(e,n+i);return[{messageBytes:o,signatures:s},a]}})}function ug(){return f(Er(),kl())}function dg(e){const{messageBytes:n,signatures:t}=e,r=z([ze(),qs(p(),2),D(G(),{size:q()})]),[i,o,s]=r.decode(n),a=s.slice(0,o);if(a.length!==t.length)throw new _(wt,{numRequiredSignatures:o,signaturesLength:t.length,signerAddresses:a});const c=zl(a,t);return{messageBytes:n,signatures:Object.freeze(c)}}function Rg(e){const{messageBytes:n,signatures:t}=e,r=n[1],o=D(G(),{size:r}).decode(n,42);if(o.length!==t.length)throw new _(wt,{numRequiredSignatures:r,signaturesLength:t.length,signerAddresses:o});const s=zl(o,t);return{messageBytes:n,signatures:s}}function zl(e,n){const t={};return e.forEach((r,i)=>{const o=n[i];o.every(s=>s===0)?t[r]=null:t[r]=o}),Object.freeze(t)}var Vl="11111111111111111111111111111111";function lg(e,n,t){return t[e.programAccountIndex]===Vl&&Gl(n.instructionData)&&e.numInstructionAccounts===3}function Ag(e,n){return n[e.programAddressIndex]===Vl&&e.data!=null&&Gl(e.data)&&e.accountIndices?.length===3}function Gl(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}async function fg(e){const{version:n}=e;if(n==="legacy"||n===0){const t=e.instructions[0],{staticAccounts:r}=e;if(t&&Ag(t,r)){const i=r[t.accountIndices[0]];if(!i)throw new _(Bo,{nonce:e.lifetimeToken});return{nonce:e.lifetimeToken,nonceAccountAddress:i}}else return{blockhash:e.lifetimeToken,lastValidBlockHeight:0xffffffffffffffffn}}if(n===1){const t=e.instructionHeaders[0],r=e.instructionPayloads[0],{staticAccounts:i}=e;if(t&&r&&lg(t,r,i)){const o=i[r.instructionAccountIndices[0]];if(!o)throw new _(jo,{nonce:e.lifetimeToken,nonceAccountIndex:r.instructionAccountIndices[0],numberOfStaticAccounts:i.length});return{nonce:e.lifetimeToken,nonceAccountAddress:o}}else return{blockhash:e.lifetimeToken,lastValidBlockHeight:0xffffffffffffffffn}}throw new _(Oe,{unsupportedVersion:n})}function Hl(e){return"lifetimeConstraint"in e&&"blockhash"in e.lifetimeConstraint&&typeof e.lifetimeConstraint.blockhash=="string"&&typeof e.lifetimeConstraint.lastValidBlockHeight=="bigint"&&Na(e.lifetimeConstraint.blockhash)}function Og(e){if(!Hl(e))throw new _(Dt)}function $l(e){return"lifetimeConstraint"in e&&"nonce"in e.lifetimeConstraint&&typeof e.lifetimeConstraint.nonce=="string"&&typeof e.lifetimeConstraint.nonceAccountAddress=="string"&&an(e.lifetimeConstraint.nonceAccountAddress)}function Eg(e){if(!$l(e))throw new _(bt)}function En(e){const n=fl(e),t=ba().encode(n),r=n.staticAccounts.slice(0,n.header.numSignerAccounts),i={};for(const s of r)i[s]=null;let o;return Ca(e)?o={blockhash:e.lifetimeConstraint.blockhash,lastValidBlockHeight:e.lifetimeConstraint.lastValidBlockHeight}:On(e)&&(o={nonce:e.lifetimeConstraint.nonce,nonceAccountAddress:e.instructions[0].accounts[0].address}),Object.freeze({...o?{lifetimeConstraint:o}:void 0,messageBytes:t,signatures:Object.freeze(i)})}var $r;function Sn(e){$r||($r=Kn());const n=Object.values(e.signatures)[0];if(!n)throw new _(xo);return $r.decode(n)}async function ka(e,n){let t,r;if(await Promise.all(e.map(async i=>{const o=await Wt(i.publicKey),s=n.signatures[o];if(s===void 0){r||=new Set,r.add(o);return}if(r)return;const a=await tt(i.privateKey,n.messageBytes);s!==null&&Hn(a,s)||(t||={},t[o]=a)})),r&&r.size>0){const i=Object.keys(n.signatures);throw new _(Mo,{expectedAddresses:i,unexpectedAddresses:[...r]})}return t?Object.freeze({...n,signatures:Object.freeze({...n.signatures,...t})}):n}async function Sg(e,n){const t=await ka(e,n);return rt(t),Object.freeze(t),t}function jl(e){return Object.entries(e.signatures).every(([n,t])=>!!t)}function rt(e){const n=[];if(Object.entries(e.signatures).forEach(([t,r])=>{r||n.push(t)}),n.length>0)throw new _(Uo,{addresses:n})}function Sr(e){const n=Er().encode(e);return na().decode(n)}var Kl=1232,Xl=4096,Yl=1280,Wl=48,Ng=Yl-Wl;function Nr(e){return Er().getSizeFromValue(e)}function za(e){return(e.messageBytes[0]&127)===1?Xl:Kl}function ql(e){if(e.messageBytes.length===0)return!0;const n=za(e);return Nr(e)<=n}function Jl(e){if(e.messageBytes.length===0)return;const n=za(e),t=Nr(e);if(t>n)throw new _(yt,{transactionSize:t,transactionSizeLimit:n})}function Tg(e){return jl(e)&&ql(e)}function gg(e){rt(e),Jl(e)}function Z(e){return Nr(En(e))}function Q(e){return e.version===1?Xl:Kl}function Ig(e){return Z(e)<=Q(e)}function mg(e){const n=Z(e),t=Q(e);if(n>t)throw new _(yt,{transactionSize:n,transactionSizeLimit:t})}function Cg(e){return Object.freeze({kind:"parallel",planType:"instructionPlan",plans:Ga(e)})}function Zl(e){return Object.freeze({divisible:!0,kind:"sequential",planType:"instructionPlan",plans:Ga(e)})}function hg(e){return Object.freeze({divisible:!1,kind:"sequential",planType:"instructionPlan",plans:Ga(e)})}function Va(e){return Object.freeze({instruction:e,kind:"single",planType:"instructionPlan"})}function Ga(e){return e.map(n=>"kind"in n?n:Va(n))}function Ql(e){return typeof e=="object"&&e!==null&&"planType"in e&&typeof e.planType=="string"&&e.planType==="instructionPlan"}function eA(e){return e.kind==="single"}function pg(e){if(!eA(e))throw new _(ve,{actualKind:e.kind,expectedKind:"single",instructionPlan:e})}function nA(e){return e.kind==="messagePacker"}function Lg(e){if(!nA(e))throw new _(ve,{actualKind:e.kind,expectedKind:"messagePacker",instructionPlan:e})}function tA(e){return e.kind==="sequential"}function Dg(e){if(!tA(e))throw new _(ve,{actualKind:e.kind,expectedKind:"sequential",instructionPlan:e})}function rA(e){return e.kind==="sequential"&&e.divisible===!1}function bg(e){if(!rA(e))throw new _(ve,{actualKind:e.kind==="sequential"?"divisible sequential":e.kind,expectedKind:"non-divisible sequential",instructionPlan:e})}function iA(e){return e.kind==="parallel"}function Pg(e){if(!iA(e))throw new _(ve,{actualKind:e.kind,expectedKind:"parallel",instructionPlan:e})}function oA(e,n){if(n(e))return e;if(!(e.kind==="single"||e.kind==="messagePacker"))for(const t of e.plans){const r=oA(t,n);if(r)return r}}function sA(e,n){return n(e)?e.kind==="single"||e.kind==="messagePacker"?!0:e.plans.every(t=>sA(t,n)):!1}function aA(e,n){return e.kind==="single"||e.kind==="messagePacker"?Object.freeze(n(e)):Object.freeze(n(Object.freeze({...e,plans:e.plans.map(t=>aA(t,n))})))}function Ha(e){return e.kind==="single"||e.kind==="messagePacker"?[e]:e.plans.flatMap(Ha)}function wg({getInstruction:e,totalLength:n}){return Object.freeze({getMessagePacker:()=>{let t=0;return Object.freeze({done:()=>t>=n,packMessageToCapacity:r=>{if(t>=n)throw new _(vt);const i=Z(fe(e(t,0),r)),o=Q(r)-i-1;if(o<=0){const c=Z(r);throw new _(ye,{numBytesRequired:i-c+1,numFreeBytes:Q(r)-c-1})}const s=Math.min(n-t,o),a=e(t,s);return t+=s,fe(a,r)}})},kind:"messagePacker",planType:"instructionPlan"})}function cA(e){return Object.freeze({getMessagePacker:()=>{let n=0;return Object.freeze({done:()=>n>=e.length,packMessageToCapacity:t=>{if(n>=e.length)throw new _(vt);const r=Z(t);for(let i=n;i<e.length;i++){t=fe(e[i],t);const o=Z(t);if(o>Q(t)){if(i===n)throw new _(ye,{numBytesRequired:o-r,numFreeBytes:Q(t)-r});return n=i,t}}return n=e.length,t}})},kind:"messagePacker",planType:"instructionPlan"})}var jr=10240;function yg({getInstruction:e,totalSize:n}){const t=Math.ceil(n/jr),r=n%jr,i=new Array(t).fill(0).map((o,s)=>e(s===t-1?r:jr));return cA(i)}function vg(e,n){return Ha(e).reduce((r,i)=>{const o=i.kind;if(o==="single")return fe(i.instruction,r);if(o==="messagePacker"){const s=i.getMessagePacker();let a=r;for(;!s.done();)a=s.packMessageToCapacity(a);return a}throw new _(zn,{kind:o})},n)}function _A(e){return Object.freeze({kind:"parallel",planType:"transactionPlan",plans:ja(e)})}function $a(e){return Object.freeze({divisible:!0,kind:"sequential",planType:"transactionPlan",plans:ja(e)})}function uA(e){return Object.freeze({divisible:!1,kind:"sequential",planType:"transactionPlan",plans:ja(e)})}function Tr(e){return Object.freeze({kind:"single",message:e,planType:"transactionPlan"})}function ja(e){return e.map(n=>"kind"in n?n:Tr(n))}function Ka(e){return typeof e=="object"&&e!==null&&"planType"in e&&typeof e.planType=="string"&&e.planType==="transactionPlan"}function dA(e){return e.kind==="single"}function Ug(e){if(!dA(e))throw new _(on,{actualKind:e.kind,expectedKind:"single",transactionPlan:e})}function RA(e){return e.kind==="sequential"}function xg(e){if(!RA(e))throw new _(on,{actualKind:e.kind,expectedKind:"sequential",transactionPlan:e})}function lA(e){return e.kind==="sequential"&&e.divisible===!1}function Mg(e){if(!lA(e))throw new _(on,{actualKind:e.kind==="sequential"?"divisible sequential":e.kind,expectedKind:"non-divisible sequential",transactionPlan:e})}function AA(e){return e.kind==="parallel"}function Fg(e){if(!AA(e))throw new _(on,{actualKind:e.kind,expectedKind:"parallel",transactionPlan:e})}function Xa(e){return e.kind==="single"?[e]:e.plans.flatMap(Xa)}function fA(e,n){if(n(e))return e;if(e.kind!=="single")for(const t of e.plans){const r=fA(t,n);if(r)return r}}function OA(e,n){return n(e)?e.kind==="single"?!0:e.plans.every(t=>OA(t,n)):!1}function EA(e,n){return e.kind==="single"?Object.freeze(n(e)):Object.freeze(n(Object.freeze({...e,plans:e.plans.map(t=>EA(t,n))})))}function Nt(e){return Array.isArray(e)&&e.length===1?Nt(e[0]):Array.isArray(e)?Zl(e.map(Nt)):Ql(e)?e:Va(e)}function $e(e){return Array.isArray(e)&&e.length===1?$e(e[0]):Array.isArray(e)?$a(e.map(n=>$e(n))):Ka(e)?e:Tr(e)}function Bg(e){return Array.isArray(e)&&e.length===0||Array.isArray(e)&&zc(e[0])||zc(e)?$e(e):Nt(e)}function zc(e){return Ka(e)||kg(e)}function kg(e){return typeof e=="object"&&e!==null&&"instructions"in e&&Array.isArray(e.instructions)&&"version"in e}function SA(e){return Object.freeze({divisible:!0,kind:"sequential",planType:"transactionPlanResult",plans:e})}function zg(e){return Object.freeze({divisible:!1,kind:"sequential",planType:"transactionPlanResult",plans:e})}function NA(e){return Object.freeze({kind:"parallel",planType:"transactionPlanResult",plans:e})}function TA(e,n,t){const r=Sn(n);return Object.freeze({context:Object.freeze({...t??{},signature:r,transaction:n}),kind:"single",planType:"transactionPlanResult",plannedMessage:e,status:"successful"})}function gA(e,n){return Object.freeze({context:Object.freeze({...n}),kind:"single",planType:"transactionPlanResult",plannedMessage:e,status:"successful"})}function IA(e,n,t){return Object.freeze({context:Object.freeze({...t??{}}),error:n,kind:"single",planType:"transactionPlanResult",plannedMessage:e,status:"failed"})}function mA(e,n){return Object.freeze({context:Object.freeze({...n??{}}),kind:"single",planType:"transactionPlanResult",plannedMessage:e,status:"canceled"})}function Vg(e){return typeof e=="object"&&e!==null&&"planType"in e&&typeof e.planType=="string"&&e.planType==="transactionPlanResult"}function Ya(e){return e.kind==="single"}function Gg(e){if(!Ya(e))throw new _(Ee,{actualKind:e.kind,expectedKind:"single",transactionPlanResult:e})}function Wa(e){return e.kind==="single"&&e.status==="successful"}function Hg(e){if(!Wa(e))throw new _(Ee,{actualKind:e.kind==="single"?`${e.status} single`:e.kind,expectedKind:"successful single",transactionPlanResult:e})}function CA(e){return e.kind==="single"&&e.status==="failed"}function $g(e){if(!CA(e))throw new _(Ee,{actualKind:e.kind==="single"?`${e.status} single`:e.kind,expectedKind:"failed single",transactionPlanResult:e})}function hA(e){return e.kind==="single"&&e.status==="canceled"}function jg(e){if(!hA(e))throw new _(Ee,{actualKind:e.kind==="single"?`${e.status} single`:e.kind,expectedKind:"canceled single",transactionPlanResult:e})}function pA(e){return e.kind==="sequential"}function Kg(e){if(!pA(e))throw new _(Ee,{actualKind:e.kind,expectedKind:"sequential",transactionPlanResult:e})}function LA(e){return e.kind==="sequential"&&e.divisible===!1}function Xg(e){if(!LA(e))throw new _(Ee,{actualKind:e.kind==="sequential"?"divisible sequential":e.kind,expectedKind:"non-divisible sequential",transactionPlanResult:e})}function DA(e){return e.kind==="parallel"}function Yg(e){if(!DA(e))throw new _(Ee,{actualKind:e.kind,expectedKind:"parallel",transactionPlanResult:e})}function bA(e){return Ja(e,n=>!Ya(n)||Wa(n))}function Wg(e){if(!bA(e))throw new _(es,{transactionPlanResult:e})}function qa(e,n){if(n(e))return e;if(e.kind!=="single")for(const t of e.plans){const r=qa(t,n);if(r)return r}}function qg(e){const n=qa(e,t=>t.kind==="single"&&t.status==="failed");if(!n){const t={};throw Object.defineProperty(t,"transactionPlanResult",{configurable:!1,enumerable:!1,value:e,writable:!1}),new _(Qo,t)}return n}function Ja(e,n){return n(e)?e.kind==="single"?!0:e.plans.every(t=>Ja(t,n)):!1}function PA(e,n){return e.kind==="single"?Object.freeze(n(e)):Object.freeze(n(Object.freeze({...e,plans:e.plans.map(t=>PA(t,n))})))}function gr(e){return e.kind==="single"?[e]:e.plans.flatMap(gr)}function Jg(e){const n=[],t=[],r=[],i=gr(e);for(const o of i)switch(o.status){case"successful":{n.push(o);break}case"failed":{t.push(o);break}case"canceled":{r.push(o);break}}return Object.freeze({canceledTransactions:r,failedTransactions:t,successful:t.length===0&&r.length===0,successfulTransactions:n})}function Zg(e,n){let t,r,i,o;if(e.status==="failed"){const a=yA(e.error);i=a.logs,o=a.preflightData,r=a.unwrappedError,t=`${xA(!!o,e.context.signature)}: ${r.message}${UA(i)}`}else r=n,t=n!=null?`. Canceled with abort reason: ${String(n)}`:": Canceled";const s={cause:r,causeMessage:t,logs:i,preflightData:o};return Object.defineProperty(s,"transactionPlanResult",{configurable:!1,enumerable:!1,value:e,writable:!1}),new _(Ai,s)}function Qg(e,n){const t=gr(e),r=t.flatMap((a,c)=>{if(a.status!=="failed")return[];const u=yA(a.error);return[{error:u.unwrappedError,index:c,logs:u.logs,preflightData:u.preflightData}]});let i,o;if(r.length>0){o=r.length===1?r[0].error:void 0;const a=r.map(({error:u,index:d,preflightData:R})=>{const l=xA(!!R,t[d].context.signature);return`
6
+ [Tx #${d+1}${l}] ${u.message}`}),c=r.length===1?UA(r[0].logs):"";i=`.${a.join("")}${c}${c?"":`
7
+ `}`}else o=n,i=n!=null?`. Canceled with abort reason: ${String(n)}`:": Canceled";const s={cause:o,causeMessages:i,failedTransactions:r};return Object.defineProperty(s,"transactionPlanResult",{configurable:!1,enumerable:!1,value:e,writable:!1}),new _(fi,s)}function wA(e,n){const t={abortReason:n,cause:vA(e)??n};return Object.defineProperty(t,"transactionPlanResult",{configurable:!1,enumerable:!1,value:e,writable:!1}),new _(Ut,t)}function yA(e){const n=[je,We];if(y(e)&&n.includes(e.context.__code)){const{__code:t,...r}=e.context;return{logs:r.logs??void 0,preflightData:r,unwrappedError:e.cause??e}}return{logs:void 0,preflightData:void 0,unwrappedError:e}}function vA(e){if(e.kind==="single")return e.status==="failed"?e.error:void 0;for(const n of e.plans){const t=vA(n);if(t)return t}}function UA(e){if(!e||e.length===0)return"";const n=8,t=e.slice(-n);return`${e.length>n?`
8
+
9
+ Logs (last ${n} of ${e.length}):`:`
10
+
11
+ Logs:`}
12
+ ${t.map(i=>` > ${i}
13
+ `).join("")}`}function xA(e,n){return e?" (preflight)":n?` (${n})`:""}function eI(e){return async(n,{abortSignal:t}={})=>{const r={...e,abortSignal:t,canceled:t?.aborted??!1};ni(n);const i=()=>{r.canceled=!0};t?.addEventListener("abort",i);const o=await Za(n,r);if(t?.removeEventListener("abort",i),r.canceled){const s=t?.aborted?t.reason:void 0;throw wA(o,s)}return o}}async function Za(e,n){const t=e.kind;switch(t){case"sequential":return await nI(e,n);case"parallel":return await tI(e,n);case"single":return await rI(e,n);default:throw new _(kt,{kind:t})}}async function nI(e,n){if(!e.divisible)throw new _(xt);const t=[];for(const r of e.plans){const i=await Za(r,n);t.push(i)}return SA(t)}async function tI(e,n){const t=await Promise.all(e.plans.map(r=>Za(r,n)));return NA(t)}async function rI(e,n){const t={};if(n.canceled)return mA(e.message,t);try{const r=await Je(n.executeTransactionMessage(t,e.message,{abortSignal:n.abortSignal}),n.abortSignal);return typeof r=="string"?gA(e.message,{...t,signature:r}):TA(e.message,r,t)}catch(r){n.canceled=!0;const i="transaction"in t&&typeof t.transaction=="object"&&t.signature==null?{...t,signature:Sn(t.transaction)}:t;return IA(e.message,r,i)}}function ni(e){switch(e.kind){case"sequential":if(!e.divisible)throw new _(xt);for(const t of e.plans)ni(t);return;case"parallel":for(const t of e.plans)ni(t);return;default:return}}async function iI(e){try{return await e}catch(n){if(y(n,Ut))return n.context.transactionPlanResult;throw n}}function oI(e){return async(n,{abortSignal:t}={})=>{const r=await Qa(n,{abortSignal:t,createTransactionMessage:e.createTransactionMessage,onTransactionMessageUpdated:e.onTransactionMessageUpdated??(i=>i),parent:null,parentCandidates:[]});if(!r)throw new _(Zo);return _t(r)}}async function Qa(e,n){n.abortSignal?.throwIfAborted();const t=e.kind;switch(t){case"sequential":return await sI(e,n);case"parallel":return await aI(e,n);case"single":return await cI(e,n);case"messagePacker":return await _I(e,n);default:throw new _(zn,{kind:t})}}async function sI(e,n){let t=null;if(n.parent&&(n.parent.kind==="parallel"||!e.divisible)){if(await ec(n,n.parentCandidates,s=>BA(e,s)))return null}else t=n.parentCandidates.length>0?n.parentCandidates[0]:null;const i=[];for(const o of e.plans){const s=await Qa(o,{...n,parent:e,parentCandidates:t?[t]:[]});if(s){t=MA(s);const a=s.kind==="sequential"&&(s.divisible||!e.divisible)?s.plans:[s];i.push(...a)}}return i.length===1?i[0]:i.length===0?null:{divisible:e.divisible,kind:"sequential",planType:"transactionPlan",plans:i}}async function aI(e,n){const t=[...n.parentCandidates],r=[],i=Array.from(e.plans).sort((o,s)=>+(o.kind==="messagePacker")-+(s.kind==="messagePacker"));for(const o of i){const s=await Qa(o,{...n,parent:e,parentCandidates:t});if(s){t.push(...uI(s));const a=s.kind==="parallel"?s.plans:[s];r.push(...a)}}return r.length===1?r[0]:r.length===0?null:{kind:"parallel",planType:"transactionPlan",plans:r}}async function cI(e,n){const t=o=>Ve([e.instruction],o);return await ec(n,n.parentCandidates,t)?null:{kind:"single",message:await FA(n,t),planType:"transactionPlan"}}async function _I(e,n){const t=e.getMessagePacker(),r=[],i=[...n.parentCandidates];for(;!t.done();)if(!await ec(n,i,t.packMessageToCapacity)){const a={kind:"single",message:await FA(n,t.packMessageToCapacity),planType:"transactionPlan"};r.push(a)}return r.length===1?r[0]:r.length===0?null:n.parent?.kind==="parallel"?{kind:"parallel",planType:"transactionPlan",plans:r}:{divisible:n.parent?.kind==="sequential"?n.parent.divisible:!0,kind:"sequential",planType:"transactionPlan",plans:r}}function MA(e){return e.kind==="single"?e:e.kind==="sequential"&&e.plans.length>0?MA(e.plans[e.plans.length-1]):null}function uI(e){return Xa(e)}async function ec(e,n,t){for(const r of n)try{const i=await Je(Promise.resolve(e.onTransactionMessageUpdated(t(r.message),{abortSignal:e.abortSignal})),e.abortSignal);if(Z(i)<=Q(i))return r.message=i,r}catch(i){if(!(y(i,ye)||y(i,nn)||y(i,rn)||y(i,tn)||y(i,en)))throw i}return null}async function FA(e,n){const t=await Je(Promise.resolve(e.createTransactionMessage({abortSignal:e.abortSignal})),e.abortSignal),r=await Je(Promise.resolve(e.onTransactionMessageUpdated(n(t),{abortSignal:e.abortSignal})),e.abortSignal),i=Z(r);if(i>Q(r)){const o=Z(t);throw new _(ye,{numBytesRequired:i-o,numFreeBytes:Q(t)-o})}return r}function _t(e){const n=e.kind;switch(n){case"single":return Tr(e.message);case"sequential":return e.divisible?$a(e.plans.map(_t)):uA(e.plans.map(_t));case"parallel":return _A(e.plans.map(_t));default:throw new _(kt,{kind:n})}}function BA(e,n){let t=n;const r=e.kind;switch(r){case"sequential":case"parallel":for(const s of e.plans)t=BA(s,t);return t;case"single":t=Ve([e.instruction],n);const i=Z(t);if(i>Q(t)){const s=Z(n);throw new _(ye,{numBytesRequired:i-s,numFreeBytes:Q(n)-s})}return t;case"messagePacker":const o=e.getMessagePacker();for(;!o.done();)t=o.packMessageToCapacity(t);return t;default:throw new _(zn,{kind:r})}}function dI(e){return an(e)}function kA(e){try{Pe(e)}catch(n){throw y(n,Fn)?new _(To,n.context):y(n,Mn)?new _(go,n.context):n}}function zA(e){return kA(e),e}function nc(){return N(ae(),e=>zA(e))}function tc(){return G()}function RI(){return f(nc(),tc())}var VA=new Uint8Array([255,115,111,108,97,110,97,32,111,102,102,99,104,97,105,110]);function GA(){return Jn(VA)}function lI(){return qn(VA)}function HA(...e){return er(X(e),[GA()])}function AI(...e){return ua(x(e),[lI()])}function rc(e){return n=>{if(n>1)throw new _(Ke,{unsupportedVersion:n});if(e!=null&&n!==e)throw new _(Lo,{actualVersion:n,expectedVersion:e});return n}}function $A(e,...n){return HA(["version",g(p(),rc(e))],...n)}function jA(e,...n){return AI(["version",N(b(),rc(e))],...n)}function ic(e){const{version:n,bytesAfterVersion:t}=HA(["version",g(p(),rc())],["bytesAfterVersion",oe()]).decode(e);return $n(g(D(G(),{size:p()}),r=>{if(r.length===0)throw new _(me);return r}),{preOffset:({preOffset:r})=>r+(n===0?33:0)}).decode(t)}function KA(){return(e,n)=>{if(e.length!==n.length)return e.length<n.length?-1:1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return e[t]<n[t]?-1:1;return 0}}function fI(e){const n=Object.values(e);if(n.length===0)throw new _(kn);return n.map(t=>t||new Uint8Array(64).fill(0))}function OI(){return N(P(Se(te(),64),{size:b()}),fI)}function XA(){return N(x([["signatures",OI()],["content",te()]]),e=>{const n=Object.keys(e.signatures).map(oa);if(n.length===0)throw new _(kn);const t=WA(e.content),r=[],i=[];for(const s of t)n.includes(s)||r.push(s);for(const s of n)t.includes(s)||i.push(s);if(r.length||i.length)throw new _(ho,{missingRequiredSigners:r,unexpectedSigners:i});const o={};for(const s of t)o[s]=e.signatures[s];return{...e,signatures:o}})}function YA(){return g(X([["signatures",D(se(oe(),64),{size:p()})],["content",oe()]]),SI)}function EI(){return f(XA(),YA())}function SI(e){const{content:n,signatures:t}=e;if(t.length===0)throw new _(kn);const r=WA(n);if(r.length!==t.length)throw new _(Io,{numRequiredSignatures:r.length,signatoryAddresses:r,signaturesLength:t.length});const i={};return r.forEach((o,s)=>{const a=t[s];a.every(c=>c===0)?i[o]=null:i[o]=a}),Object.freeze({content:n,signatures:Object.freeze(i)})}function WA(e){const n=ic(e);if(n.length===0)throw new _(me);return n}var ti=65535,Ze=1232,Ir=(e=>(e[e.RESTRICTED_ASCII_1232_BYTES_MAX=0]="RESTRICTED_ASCII_1232_BYTES_MAX",e[e.UTF8_1232_BYTES_MAX=1]="UTF8_1232_BYTES_MAX",e[e.UTF8_65535_BYTES_MAX=2]="UTF8_65535_BYTES_MAX",e))(Ir||{});function oc(e){if(e.format!==0)throw new _(Bn,{actualMessageFormat:e.format,expectedMessageFormat:0});if(e.text.length===0)throw new _(we);if(qA(e.text)===!1)throw new _(No);const n=j().getSizeFromValue(e.text);if(n>Ze)throw new _(Qe,{actualBytes:n,maxBytes:Ze})}function NI(e){return e.format!==0||e.text.length===0||qA(e.text)===!1?!1:j().getSizeFromValue(e.text)<=Ze}function TI(e){const n=Object.freeze({format:0,text:e});return oc(n),n}function sc(e){if(e.text.length===0)throw new _(we);if(e.format!==1)throw new _(Bn,{actualMessageFormat:e.format,expectedMessageFormat:1});const n=j().getSizeFromValue(e.text);if(n>Ze)throw new _(Qe,{actualBytes:n,maxBytes:Ze})}function gI(e){return e.format!==1||e.text.length===0?!1:j().getSizeFromValue(e.text)<=Ze}function II(e){const n=Object.freeze({format:1,text:e});return sc(n),n}function ac(e){if(e.format!==2)throw new _(Bn,{actualMessageFormat:e.format,expectedMessageFormat:2});if(e.text.length===0)throw new _(we);const n=j().getSizeFromValue(e.text);if(n>ti)throw new _(Qe,{actualBytes:n,maxBytes:ti})}function mI(e){return e.format!==2||e.text.length===0?!1:j().getSizeFromValue(e.text)<=ti}function CI(e){const n=Object.freeze({format:2,text:e});return ac(n),n}function qA(e){return/^[\x20-\x7e]+$/.test(e)}var hI=1232,pI=16,LI=1,DI=32,bI=1,PI=1,wI=32,yI=2;function vI(e){return pI+LI+DI+bI+PI+e.length*wI+yI}function JA(e){const n=j().getSizeFromValue(e.content.text),t=hI-vI(e.requiredSignatories);if(n>t)throw new _(Qe,{actualBytes:n,maxBytes:t})}function cc(e){oc(e.content),JA(e)}function _c(e){sc(e.content),JA(e)}function uc(e){ac(e.content)}function UI(){return _a(Ir,{useValuesAsDiscriminators:!0})}function xI(){return ca(Ir,{useValuesAsDiscriminators:!0})}function MI(){return $A(0,["applicationDomain",tc()],["messageFormat",UI()],["requiredSignatories",g(D(G(),{size:p()}),e=>{if(e.length===0)throw new _(me);return e.map(n=>Object.freeze({address:n}))})],["messageLength",Jt()])}function FI(){return jA(0,["applicationDomain",nc()],["messageFormat",xI()],["requiredSignatories",N(P(ae(),{size:b()}),e=>{if(e.length===0)throw new _(me);return e.map(({address:n})=>n)})],["messageLength",qt()])}function dc(){return g(z([MI(),Xt()]),([{messageLength:e,messageFormat:n,requiredSignatories:t,...r},i])=>{const o=j().getSizeFromValue(i);if(e!==o)throw new _(mo,{actualLength:o,specifiedLength:e});const s=Object.freeze({...r,content:Object.freeze({format:n,text:i}),requiredSignatories:Object.freeze(t)});switch(n){case 0:return cc(s),s;case 1:return _c(s),s;case 2:return uc(s),s;default:throw new _(sn,{unexpectedValue:n})}})}function vn(){return N(J([FI(),j()]),e=>{const{content:n,...t}=e;switch(e.content.format){case 0:{cc(e);break}case 1:{_c(e);break}case 2:{uc(e);break}default:throw new _(sn,{unexpectedValue:e.content})}const r=j().getSizeFromValue(n.text);return[{...t,messageFormat:n.format,messageLength:r},n.text]})}function BI(){return f(vn(),dc())}function kI(){return $A(1,["requiredSignatories",g(D(se(oe(),32),{size:p()}),e=>{if(e.length===0)throw new _(me);const n=KA();for(let r=0;r<e.length-1;r++)switch(n(e[r],e[r+1])){case 0:throw new _(pt);case 1:throw new _(Do)}const t=G();return e.map(r=>Object.freeze({address:t.decode(r)}))})])}function zI(){return jA(1,["requiredSignatories",N(N(P(te(),{size:b()}),e=>e.toSorted(KA())),e=>{if(e.length===0)throw new _(me);const n=new Set;for(const{address:r}of e){if(n.has(r))throw new _(pt);n.add(r)}const t=ae();return e.map(({address:r})=>t.encode(r))})])}function Rc(){return g(z([kI(),Xt()]),([{requiredSignatories:e,...n},t])=>{if(t.length===0)throw new _(we);return Object.freeze({...n,content:t,requiredSignatories:Object.freeze(e)})})}function Un(){return N(J([zI(),j()]),e=>{const{content:n,...t}=e;if(n.length===0)throw new _(we);return[t,n]})}function VI(){return f(Un(),Rc())}function ZA(){return T({read(e,n){const t=er(p(),[GA()]).decode(e,n);switch(t){case 0:return dc().read(e,n);case 1:return Rc().read(e,n);default:throw new _(Ke,{unsupportedVersion:t})}}})}function QA(){return I({getSizeFromValue:e=>{const{version:n}=e;switch(n){case 0:return vn().getSizeFromValue(e);case 1:return Un().getSizeFromValue(e);default:throw new _(Ke,{unsupportedVersion:n})}},write:(e,n,t)=>{const{version:r}=e;switch(r){case 0:return vn().write(e,n,t);case 1:return Un().write(e,n,t);default:throw new _(Ke,{unsupportedVersion:r})}}})}function GI(){return f(QA(),ZA())}function ef(e,n){const t=n.encode(e),r={};for(const{address:i}of e.requiredSignatories)r[i]=null;return Object.freeze({content:t,signatures:Object.freeze(r)})}function nf(e){return ef(e,vn())}function tf(e){return ef(e,Un())}function rf(e){const{version:n}=e;switch(n){case 0:return nf(e);case 1:return tf(e);default:throw new _(sn,{unexpectedValue:n})}}async function of(e,n){let t,r;const i=ic(n.content);if(await Promise.all(e.map(async o=>{const s=await Wt(o.publicKey);if(!i.includes(s)){r||=new Set,r.add(s);return}if(r)return;const a=n.signatures[s],c=await tt(o.privateKey,n.content);a!=null&&Hn(c,a)||(t||={},t[s]=c)})),r&&r.size>0)throw new _(po,{expectedAddresses:i,unexpectedAddresses:[...r]});return t?Object.freeze({...n,signatures:Object.freeze({...n.signatures,...t})}):n}async function HI(e,n){const t=await of(e,n);return lc(t),Object.freeze(t),t}function $I(e){return Object.entries(e.signatures).every(([n,t])=>!!t)}function lc(e){const n=[];if(Object.entries(e.signatures).forEach(([t,r])=>{r||n.push(t)}),n.length>0)throw new _(Co,{addresses:n})}async function jI(e){let n;const t=ic(e.content);if(await Promise.all(t.map(async r=>{const i=e.signatures[r];if(i==null)n||={},n.signatoriesWithMissingSignatures||=[],n.signatoriesWithMissingSignatures.push(r);else{const o=await Md(r);if(await Ma(o,i,e.content))return!0;n||={},n.signatoriesWithInvalidSignatures||=[],n.signatoriesWithInvalidSignatures.push(r)}})),n)throw new _(bo,n)}var KI=()=>sf();function sf(e){return Cn(e??{})}function Cn(e){return Object.freeze(Object.defineProperties({},{...Object.getOwnPropertyDescriptors(e),use:{configurable:!1,enumerable:!0,value:function(n){const t=n(e);return t instanceof Promise?af(t):Cn(t)},writable:!1}}))}function af(e){return Object.freeze({catch(n){return e.then(t=>Cn(t)).catch(n)},finally(n){return e.then(t=>Cn(t)).finally(n)},then(n,t){return e.then(r=>Cn(r)).then(n,t)},use(n){return af(e.then(n))}})}function cf(e,n){const t=Object.defineProperties({},XI(Object.getOwnPropertyDescriptors(e)));return Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)),Object.freeze(t)}function XI(e){const n={};for(const t of Reflect.ownKeys(e))n[t]={...e[t],configurable:!0};return n}function YI(e,n){return Ac in e?WI(e,n):qI(e,n)}var Ac="__PRIVATE__DISPOSABLE_STACK";function WI(e,n){return e[Ac].defer(n),e}function qI(e,n){const t=new DisposableStack;if(Symbol.dispose in e){const i=e[Symbol.dispose];t.defer(()=>i.call(e))}t.defer(n);const r={[Ac]:t,[Symbol.dispose](){t[Symbol.dispose]()}};return cf(e,r)}function JI(e,n,t,r){if(!y(e,Ct))return!1;const i=n.instructions[e.context.index]?.programAddress;return!i||i!==t?!1:typeof r>"u"||e.context.code===r}var xn=globalThis.AbortController,ZI=globalThis.EventTarget,Vc=Object.freeze({data:void 0,error:void 0,status:"idle"});function QI(e){let n=Vc,t;const r=new Set;function i(a){n.status===a.status&&n.data===a.data&&n.error===a.error||(n=a,r.forEach(c=>c()))}const o=async(...a)=>{t?.abort();const c=new xn;t=c;const{signal:u}=c,d=n.data;i({data:d,error:void 0,status:"running"});try{const R=await Je(e(u,...a),u);if(u.aborted)throw u.reason;return i({data:R,error:void 0,status:"success"}),R}catch(R){throw u.aborted?u.reason:(i({data:d,error:R,status:"error"}),R)}};return{dispatch:(...a)=>{o(...a).catch(()=>{})},dispatchAsync:o,getState:()=>n,reset:()=>{t?.abort(),t=void 0,i(Vc)},subscribe:a=>(r.add(a),()=>{r.delete(a)})}}var Gc;function Hc(){return Symbol(process.env.NODE_ENV!=="production"?"This symbol is thrown from a socket's iterator when the connection is explicitly aborted by the user":void 0)}var Kr=Symbol();function em({abortSignal:e,dataChannelName:n,dataPublisher:t,errorChannelName:r}){const i=new Map;function o(u){for(const[d,R]of i.entries())R.__hasPolled?(i.delete(d),R.onError(u)):R.publishQueue.push({__type:1,err:u})}const s=new xn;e.addEventListener("abort",()=>{s.abort(),o(Gc||=Hc())});const a={signal:s.signal};let c=Kr;return t.on(r,u=>{c===Kr&&(c=u,s.abort(),o(u))},a),t.on(n,u=>{i.forEach((d,R)=>{if(d.__hasPolled){const{onData:l}=d;i.set(R,{__hasPolled:!1,publishQueue:[]}),l(u)}else d.publishQueue.push({__type:0,data:u})})},a),{async*[Symbol.asyncIterator](){if(e.aborted)return;if(c!==Kr)throw c;const u=Symbol();i.set(u,{__hasPolled:!1,publishQueue:[]});try{for(;;){const d=i.get(u);if(!d)throw new _(Hs);if(d.__hasPolled)throw new _($s);const R=d.publishQueue;try{if(R.length){d.publishQueue=[];for(const l of R)if(l.__type===0)yield l.data;else throw l.err}else yield await new Promise((l,O)=>{i.set(u,{__hasPolled:!0,onData:l,onError:O})})}catch(l){if(l===(Gc||=Hc()))return;throw l}}}finally{i.delete(u)}}}}function _f(e){return{on(n,t,r){function i(o){if(o instanceof CustomEvent){const s=o.detail;t(s)}else t()}return e.addEventListener(n,i,r),()=>{e.removeEventListener(n,i)}}}}function nm(e,n,t){let r;const i=new ZI,o=_f(i);return{...o,on(s,a,c){r||(r={dispose:e.on(n,O=>{const E=t(O);if(!E)return;const[S,C]=E;i.dispatchEvent(new CustomEvent(S,{detail:C}))}),numSubscribers:0}),r.numSubscribers++;const u=o.on(s,a,c);let d=!0;function R(){d&&(d=!1,c?.signal.removeEventListener("abort",R),r.numSubscribers--,r.numSubscribers===0&&(r.dispose(),r=void 0),u())}return c?.signal.addEventListener("abort",R),R}}}var uf=Object.freeze({data:void 0,error:void 0,status:"loading"});function tm({abortSignal:e,dataChannelName:n,dataPublisher:t,errorChannelName:r}){let i=uf;const o=new Set,s=new xn;e.addEventListener("abort",()=>s.abort(e.reason));function a(){o.forEach(c=>c())}return t.on(n,c=>{i={data:c,error:void 0,status:"loaded"},a()},{signal:s.signal}),t.on(r,c=>{i.status!=="error"&&(i={data:i.data,error:c,status:"error"},s.abort(c),a())},{signal:s.signal}),{getError(){return i.error},getState(){return i.data},getUnifiedState(){return i},retry(){throw new _(Gs)},subscribe(c){return o.add(c),()=>{o.delete(c)}}}}function rm({abortSignal:e,createDataPublisher:n,dataChannelName:t,errorChannelName:r}){let i=uf;const o=new Set,s=new xn;e.addEventListener("abort",()=>s.abort(e.reason));function a(){o.forEach(u=>u())}function c(){if(s.signal.aborted)return;const u=new xn,d=()=>u.abort(s.signal.reason);s.signal.addEventListener("abort",d,{signal:u.signal}),n().then(R=>{u.signal.aborted||(R.on(t,l=>{i={data:l,error:void 0,status:"loaded"},a()},{signal:u.signal}),R.on(r,l=>{i.status!=="error"&&(i={data:i.data,error:l,status:"error"},u.abort(l),a())},{signal:u.signal}))},R=>{u.signal.aborted||(i={data:i.data,error:R,status:"error"},u.abort(R),a())})}return c(),{getError(){return i.error},getState(){return i.data},getUnifiedState(){return i},retry(){s.signal.aborted||i.status==="error"&&(i={data:i.data,error:void 0,status:"retrying"},a(),c())},subscribe(u){return o.add(u),()=>{o.delete(u)}}}}function df(e){return JSON.parse(im(e),(n,t)=>cm(t)?am(t):t)}function im(e){const n=[];let t=!1;for(let r=0;r<e.length;r++){let i=!1;if(e[r]==="\\"&&(n.push(e[r++]),i=!i),e[r]==='"'){n.push(e[r]),i||(t=!t);continue}if(!t){const o=om(e,r);if(o?.length){r+=o.length-1,o.match(/\.|[eE]-/)?n.push(o):n.push(sm(o));continue}}n.push(e[r])}return n.join("")}function om(e,n){const t=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/;if(!e[n]?.match(/[-\d]/))return null;const r=e.slice(n).match(t);return r?r[0]:null}function sm(e){return`{"$n":"${e}"}`}function am({$n:e}){if(e.match(/[eE]/)){const[n,t]=e.split(/[eE]/);return BigInt(n)*BigInt(10)**BigInt(t)}return BigInt(e)}function cm(e){return!!e&&typeof e=="object"&&"$n"in e&&typeof e.$n=="string"}var $c=0n;function _m(){const e=$c;return $c++,e.toString()}function Tt(e){return{id:_m(),jsonrpc:"2.0",method:e.methodName,params:e.params}}function Rf(e,n){return dm(JSON.stringify(e,(t,r)=>typeof r=="bigint"?um(r):r,n))}function um(e){return{$n:`${e}`}}function dm(e){return e.replace(/\{\s*"\$n"\s*:\s*"(-?\d+)"\s*\}/g,"$1")}function lf(e){return Rm(e)}function Rm(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(n,t,r){if(t!=="then")return function(...i){const o=t.toString(),s=Reflect.get(n,o,r);if(!s)throw new _(Fs,{method:o,params:i});const a=s(...i);return lm(e,a)}}})}function lm({transport:e},n){return{reactiveStore(){const t=QI(r=>n.execute({signal:r,transport:e}));return t.dispatch(),t},async send(t){return await n.execute({signal:t?.abortSignal,transport:e})}}}function Af(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...n){const[t,r]=n,i=r.toString();return function(...o){const s=Object.freeze({methodName:i,params:o}),a=e?.requestTransformer?e?.requestTransformer(s):s;return Object.freeze({execute:async({signal:c,transport:u})=>{const d=Tt(a),R=await u({payload:d,signal:c});return e?.responseTransformer?e.responseTransformer(R,a):R}})}}})}function fc(e){return e==null||typeof e!="object"||Array.isArray(e)?!1:"jsonrpc"in e&&e.jsonrpc==="2.0"&&"method"in e&&typeof e.method=="string"&&"params"in e}function Am(e){return typeof e=="bigint"?Number(e):e}var A={};function ff(e){return function n(t,r){if(Array.isArray(t))return t.map((i,o)=>{const s={...r,keyPath:[...r.keyPath,o]};return n(i,s)});if(typeof t=="object"&&t!==null){const i={};for(const o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;const s={...r,keyPath:[...r.keyPath,o]};i[o]=n(t[o],s)}return i}else return e.reduce((i,o)=>o(i,r),t)}}function Of(e,n){return t=>{const r=ff(e);return Object.freeze({...t,params:r(t.params,n)})}}function Ef(e,n){return t=>ff(e)(t,n)}function fm(){return Of([Am],{keyPath:[]})}function Om({commitmentPropertyName:e,params:n,optionsObjectPositionInParams:t,overrideCommitment:r}){const i=n[t];if(i===void 0||i&&typeof i=="object"&&!Array.isArray(i)){if(i&&e in i){if(!i[e]||i[e]==="finalized"){const o=[...n],{[e]:s,...a}=i;return Object.keys(a).length>0?o[t]=a:t===o.length-1?o.length--:o[t]=void 0,o}}else if(r!=="finalized"){const o=[...n];return o[t]={...i,[e]:r},o}}return n}function Em({defaultCommitment:e,optionsObjectPositionByMethod:n}){return t=>{const{params:r,methodName:i}=t;if(!Array.isArray(r))return t;const o=n[i];return o==null?t:Object.freeze({methodName:i,params:Om({commitmentPropertyName:i==="sendTransaction"?"preflightCommitment":"commitment",optionsObjectPositionInParams:o,overrideCommitment:e,params:r})})}}function Sm(e){return(n,{keyPath:t})=>(typeof n=="bigint"&&e&&(n>Number.MAX_SAFE_INTEGER||n<-Number.MAX_SAFE_INTEGER)&&e(t,n),n)}function Nm(e){return n=>Of([Sm((...r)=>e(n,...r))],{keyPath:[]})(n)}var Tm={accountNotifications:1,blockNotifications:1,getAccountInfo:1,getBalance:1,getBlock:1,getBlockHeight:0,getBlockProduction:0,getBlocks:2,getBlocksWithLimit:2,getEpochInfo:0,getFeeForMessage:1,getInflationGovernor:0,getInflationReward:1,getLargestAccounts:0,getLatestBlockhash:0,getLeaderSchedule:1,getMinimumBalanceForRentExemption:1,getMultipleAccounts:1,getProgramAccounts:1,getSignaturesForAddress:1,getSlot:0,getSlotLeader:0,getStakeMinimumDelegation:0,getSupply:0,getTokenAccountBalance:1,getTokenAccountsByDelegate:2,getTokenAccountsByOwner:2,getTokenLargestAccounts:1,getTokenSupply:1,getTransaction:1,getTransactionCount:0,getVoteAccounts:0,isBlockhashValid:1,logsNotifications:1,programNotifications:1,requestAirdrop:2,sendTransaction:1,signatureNotifications:1,simulateTransaction:1};function Sf(e){const n=e?.onIntegerOverflow;return t=>Y(t,n?Nm(n):r=>r,fm(),Em({defaultCommitment:e?.defaultCommitment,optionsObjectPositionByMethod:Tm}))}function Nf(e){return function(t,{keyPath:r}){return typeof t=="number"&&Number.isInteger(t)||typeof t=="bigint"?gm(r,e)?Number(t):BigInt(t):t}}function gm(e,n){return n.some(t=>{if(t.length!==e.length)return!1;for(let r=e.length-1;r>=0;r--){const i=e[r],o=t[r];if(o!==i&&(o!==A||typeof i!="number"))return!1}return!0})}function Tf(e){return Ef([Nf(e)],{keyPath:[]})}function Im(){return e=>e.result}var ri=[["data","parsed","info","tokenAmount","decimals"],["data","parsed","info","tokenAmount","uiAmount"],["data","parsed","info","rentExemptReserve","decimals"],["data","parsed","info","rentExemptReserve","uiAmount"],["data","parsed","info","delegatedAmount","decimals"],["data","parsed","info","delegatedAmount","uiAmount"],["data","parsed","info","extensions",A,"state","olderTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",A,"state","newerTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",A,"state","preUpdateAverageRate"],["data","parsed","info","extensions",A,"state","currentRate"]],be=[...ri,["data","parsed","info","lastExtendedSlotStartIndex"],["data","parsed","info","slashPenalty"],["data","parsed","info","warmupCooldownRate"],["data","parsed","info","decimals"],["data","parsed","info","numRequiredSigners"],["data","parsed","info","numValidSigners"],["data","parsed","info","stake","delegation","warmupCooldownRate"],["data","parsed","info","exemptionThreshold"],["data","parsed","info","burnPercent"],["data","parsed","info","commission"],["data","parsed","info","votes",A,"confirmationCount"]],ut=[["index"],["instructions",A,"accounts",A],["instructions",A,"programIdIndex"],["instructions",A,"stackHeight"]],jc=[["addressTableLookups",A,"writableIndexes",A],["addressTableLookups",A,"readonlyIndexes",A],["header","numReadonlySignedAccounts"],["header","numReadonlyUnsignedAccounts"],["header","numRequiredSignatures"],["instructions",A,"accounts",A],["instructions",A,"programIdIndex"],["instructions",A,"stackHeight"]];function mm(){return[["loadedAccountsDataSize"],...be.map(e=>["accounts",A,...e]),...ut.map(e=>["innerInstructions",A,...e])]}function Cm(){return(e,n)=>{const t=e;if("error"in t){const{error:r}=t;if(r&&typeof r=="object"&&"code"in r&&(r.code===-32002||r.code===-32002n)&&"data"in r&&r.data){const s=Ef([Nf(mm())],{keyPath:[]})(r.data,n),a={...r,data:s};throw Pn(a)}throw Pn(t.error)}return t}}function hm(e){return(n,t)=>{const r=t.methodName,i=e?.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return Y(n,o=>Cm()(o,t),o=>Im()(o,t),o=>Tf(i??[])(o,t))}}function pm(e){return(n,t)=>{const r=t.methodName,i=e?.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return Y(n,o=>Tf(i??[])(o,t))}}function gf(e){return Af({requestTransformer:Sf(e),responseTransformer:hm({allowedNumericKeyPaths:Lm()})})}var Xr;function Lm(){return Xr||(Xr={getAccountInfo:be.map(e=>["value",...e]),getBlock:[["transactions",A,"meta","preTokenBalances",A,"accountIndex"],["transactions",A,"meta","preTokenBalances",A,"uiTokenAmount","decimals"],["transactions",A,"meta","postTokenBalances",A,"accountIndex"],["transactions",A,"meta","postTokenBalances",A,"uiTokenAmount","decimals"],["transactions",A,"meta","rewards",A,"commission"],...ut.map(e=>["transactions",A,"meta","innerInstructions",A,...e]),...jc.map(e=>["transactions",A,"transaction","message",...e]),["rewards",A,"commission"]],getClusterNodes:[[A,"featureSet"],[A,"shredVersion"]],getInflationGovernor:[["initial"],["foundation"],["foundationTerm"],["taper"],["terminal"]],getInflationRate:[["foundation"],["total"],["validator"]],getInflationReward:[[A,"commission"]],getMultipleAccounts:be.map(e=>["value",A,...e]),getProgramAccounts:be.flatMap(e=>[["value",A,"account",...e],[A,"account",...e]]),getRecentPerformanceSamples:[[A,"samplePeriodSecs"]],getSignaturesForAddress:[[A,"transactionIndex"]],getTokenAccountBalance:[["value","decimals"],["value","uiAmount"]],getTokenAccountsByDelegate:ri.map(e=>["value",A,"account",...e]),getTokenAccountsByOwner:ri.map(e=>["value",A,"account",...e]),getTokenLargestAccounts:[["value",A,"decimals"],["value",A,"uiAmount"]],getTokenSupply:[["value","decimals"],["value","uiAmount"]],getTransaction:[["meta","preTokenBalances",A,"accountIndex"],["meta","preTokenBalances",A,"uiTokenAmount","decimals"],["meta","postTokenBalances",A,"accountIndex"],["meta","postTokenBalances",A,"uiTokenAmount","decimals"],["meta","rewards",A,"commission"],...ut.map(e=>["meta","innerInstructions",A,...e]),...jc.map(e=>["transaction","message",...e])],getVersion:[["feature-set"]],getVoteAccounts:[["current",A,"commission"],["delinquent",A,"commission"]],simulateTransaction:[["value","loadedAccountsDataSize"],...be.map(e=>["value","accounts",A,...e]),...ut.map(e=>["value","innerInstructions",A,...e])]}),Xr}var Dm={accept:!0,"content-length":!0,"content-type":!0},bm=Object.assign({"accept-charset":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,"permissions-policy":!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,via:!0},{"accept-encoding":!0},{origin:!0});function Pm(e){const n=Object.keys(e).filter(t=>{const r=t.toLowerCase();return Dm[t.toLowerCase()]===!0||bm[t.toLowerCase()]===!0||r.startsWith("proxy-")||r.startsWith("sec-")});if(n.length>0)throw new _(xs,{headers:n})}function wm(e){const n={};for(const t in e)n[t.toLowerCase()]=e[t];return n}var Kc=!1;function ym(){Kc||(Kc=!0,console.warn("You have supplied a `Dispatcher` to `createHttpTransport()`. It has been ignored because Undici dispatchers only work in Node environments. To eliminate this warning, omit the `dispatcher_NODE_ONLY` property from your config when running in a non-Node environment."))}function vm(e){process.env.NODE_ENV!=="production"&&"dispatcher_NODE_ONLY"in e&&ym();const{fromJson:n,headers:t,toJson:r,url:i}=e;process.env.NODE_ENV!=="production"&&t&&Pm(t);let o;const s=t&&wm(t);return async function({payload:c,signal:u}){const d=r?r(c):JSON.stringify(c),R={...o,body:d,headers:{...s,accept:"application/json","content-type":"application/json; charset=utf-8"},method:"POST",signal:u},l=await fetch(i,R);if(!l.ok)throw new _(Ms,{headers:l.headers,message:l.statusText,statusCode:l.status});return n?n(await l.text(),c):await l.json()}}var Um=["getAccountInfo","getBalance","getBlock","getBlockCommitment","getBlockHeight","getBlockProduction","getBlocks","getBlocksWithLimit","getBlockTime","getClusterNodes","getEpochInfo","getEpochSchedule","getFeeForMessage","getFirstAvailableBlock","getGenesisHash","getHealth","getHighestSnapshotSlot","getIdentity","getInflationGovernor","getInflationRate","getInflationReward","getLargestAccounts","getLatestBlockhash","getLeaderSchedule","getMaxRetransmitSlot","getMaxShredInsertSlot","getMinimumBalanceForRentExemption","getMultipleAccounts","getProgramAccounts","getRecentPerformanceSamples","getRecentPrioritizationFees","getSignaturesForAddress","getSignatureStatuses","getSlot","getSlotLeader","getSlotLeaders","getStakeMinimumDelegation","getSupply","getTokenAccountBalance","getTokenAccountsByDelegate","getTokenAccountsByOwner","getTokenLargestAccounts","getTokenSupply","getTransaction","getTransactionCount","getVersion","getVoteAccounts","index","isBlockhashValid","minimumLedgerSlot","requestAirdrop","sendTransaction","simulateTransaction"];function Xc(e){return fc(e)&&Um.includes(e.method)}function xm(e){return vm({...e,fromJson:(n,t)=>Xc(t)?df(n):JSON.parse(n),toJson:n=>Xc(n)?Rf(n):JSON.stringify(n)})}var Mm=Object.prototype.toString,Fm=Object.keys||function(e){const n=[];for(const t in e)n.push(t);return n};function mn(e,n){let t,r,i,o,s,a,c;if(e===!0)return"true";if(e===!1)return"false";switch(typeof e){case"object":if(e===null)return null;if("toJSON"in e&&typeof e.toJSON=="function")return mn(e.toJSON(),n);if(c=Mm.call(e),c==="[object Array]"){for(i="[",r=e.length-1,t=0;t<r;t++)i+=mn(e[t],!0)+",";return r>-1&&(i+=mn(e[t],!0)),i+"]"}else if(c==="[object Object]"){for(o=Fm(e).sort(),r=o.length,i="",t=0;t<r;)s=o[t],a=mn(e[s],!1),a!==void 0&&(i&&(i+=","),i+=JSON.stringify(s)+":"+a),t++;return"{"+i+"}"}else return JSON.stringify(e);case"function":case"undefined":return n?null:void 0;case"bigint":return`${e.toString()}n`;case"string":return JSON.stringify(e);default:return isFinite(e)?e:null}}function If(e){const n=mn(e,!1);if(n!==void 0)return""+n}function mf(e,n,t){let r="";if(typeof n[0]=="number"){const s=n[0]+1,a=s%10,c=s%100;a==1&&c!=11?r=s+"st":a==2&&c!=12?r=s+"nd":a==3&&c!=13?r=s+"rd":r=s+"th"}else r=`\`${n[0].toString()}\``;const i=n.length>1?n.slice(1).map(s=>typeof s=="number"?`[${s}]`:s).join("."):void 0,o=new _(Bt,{argumentLabel:r,keyPath:n,methodName:e,optionalPathLabel:i?` at path \`${i}\``:"",value:t,...i!==void 0?{path:i}:void 0});return Vn(o,mf),o}var Cf={defaultCommitment:"confirmed",onIntegerOverflow(e,n,t){throw mf(e.methodName,n,t)}},Bm=globalThis.AbortController,Yc;function Wc(){return process.env.NODE_ENV!=="production"?{EXPLICIT_ABORT_TOKEN:"This object is thrown from the request that underlies a series of coalesced requests when the last request in that series aborts"}:{}}function km(e,n){let t;return async function(i){const{payload:o,signal:s}=i,a=n(o);if(a===void 0)return await e(i);if(t||(queueMicrotask(()=>{t=void 0}),t={}),t[a]==null){const u=new Bm,d=(async()=>{try{return await e({...i,signal:u.signal})}catch(R){if(R===(Yc||=Wc()))return;throw R}})();t[a]={abortController:u,numConsumers:0,responsePromise:d}}const c=t[a];if(c.numConsumers++,s){const u=c.responsePromise;return await new Promise((d,R)=>{const l=O=>{s.removeEventListener("abort",l),c.numConsumers-=1,queueMicrotask(()=>{c.numConsumers===0&&c.abortController.abort(Yc||=Wc())}),R(O.target.reason)};s.addEventListener("abort",l),u.then(d).catch(R).finally(()=>{s.removeEventListener("abort",l)})})}else return await c.responsePromise}}function zm(e){return fc(e)?If([e.method,e.params]):void 0}function Vm(e){const n={};for(const t in e)n[t.toLowerCase()]=e[t];return n}function hf(e){return Y(xm({...e,headers:{...e.headers?Vm(e.headers):void 0,"solana-client":"js/6.10.0"}}),n=>km(n,zm))}function Gm(e,n){return pf(hf({url:e,...n}))}function pf(e){return lf({api:gf(Cf),transport:e})}function Lf(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(n,t,r){if(t!=="then")return function(...i){const o=t.toString(),s=Reflect.get(n,o,r);if(!s)throw new _(Bs,{notificationName:o});const a=s(...i);return Hm(e.transport,a)}}})}function Hm(e,n){return{async reactive({abortSignal:t}){const r=await e({signal:t,...n});return tm({abortSignal:t,dataChannelName:"notification",dataPublisher:r,errorChannelName:"error"})},reactiveStore({abortSignal:t}){return rm({abortSignal:t,createDataPublisher(){return e({signal:t,...n})},dataChannelName:"notification",errorChannelName:"error"})},async subscribe({abortSignal:t}){const r=await e({signal:t,...n});return em({abortSignal:t,dataChannelName:"notification",dataPublisher:r,errorChannelName:"error"})}}}function Df(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...n){const[t,r]=n,i=r.toString();return function(...o){const s={methodName:i,params:o},a=e.requestTransformer?e.requestTransformer(s):s;return{execute(c){return e.planExecutor({...c,request:a})},request:a}}}})}function Oc(e,n){return Object.freeze({...e,on(t,r,i){return t!=="message"?e.on(t,r,i):e.on("message",o=>r(n(o)),i)}})}function Ec(e,n){return Object.freeze({...e,send:t=>e.send(n(t))})}var $m=globalThis.AbortController,ii=new WeakMap;function jm(e,n){return bf(-1,e,n)}function Km(e,n){bf(1,e,n)}function Xm(e){let n=ii.get(e);return n||ii.set(e,n={}),n}function bf(e,n,t){if(t===void 0)return;const r=Xm(n);!r[t]&&e>0&&(r[t]=0);const i=e+r[t];return i<=0?delete r[t]:r[t]=i,i}var qc=new WeakMap;function Ym(e,n,t){let r=qc.get(e);r||qc.set(e,r=new WeakMap);const i=t??e;let o=r.get(i);return o||r.set(i,o=nm(e,"message",s=>{const a=s;if(!("method"in a))return;const c=t?t(a.params.result,n):a.params.result;return[`notification:${a.params.subscription}`,c]})),o}async function Pf({channel:e,responseTransformer:n,signal:t,subscribeRequest:r,unsubscribeMethodName:i}){let o;e.on("error",()=>{o=void 0,ii.delete(e)},{signal:t});const s=new Promise((R,l)=>{function O(){if(jm(e,o)===0){const E=Tt({methodName:i,params:[o]});o=void 0,e.send(E).catch(()=>{})}l(this.reason)}t.aborted?O.call(t):t.addEventListener("abort",O)}),a=Tt(r);await e.send(a);const c=new Promise((R,l)=>{const O=new $m;t.addEventListener("abort",O.abort.bind(O));const E={signal:O.signal};e.on("error",S=>{O.abort(),l(S)},E),e.on("message",S=>{S&&typeof S=="object"&&"id"in S&&S.id===a.id&&(O.abort(),"error"in S?l(Pn(S.error)):R(S.result))},E)});if(o=await et([s,c]),o==null)throw new _(ks);Km(e,o);const u=Ym(e,r,n),d=`notification:${o}`;return{on(R,l,O){switch(R){case"notification":return u.on(d,l,O);case"error":return e.on("error",l,O);default:throw new _(js,{channelName:R,supportedChannelNames:["notification","error"]})}}}}function wf(e){const n=Sf(e),t=pm({allowedNumericKeyPaths:qm()});return Df({planExecutor({request:r,...i}){return Pf({...i,responseTransformer:t,subscribeRequest:{...r,methodName:r.methodName.replace(/Notifications$/,"Subscribe")},unsubscribeMethodName:r.methodName.replace(/Notifications$/,"Unsubscribe")})},requestTransformer:n})}function yf(e){return wf(e)}function Wm(e){return wf(e)}var Yr;function qm(){return Yr||(Yr={accountNotifications:be.map(e=>["value",...e]),blockNotifications:[["value","block","transactions",A,"meta","preTokenBalances",A,"accountIndex"],["value","block","transactions",A,"meta","preTokenBalances",A,"uiTokenAmount","decimals"],["value","block","transactions",A,"meta","postTokenBalances",A,"accountIndex"],["value","block","transactions",A,"meta","postTokenBalances",A,"uiTokenAmount","decimals"],["value","block","transactions",A,"meta","rewards",A,"commission"],["value","block","transactions",A,"meta","innerInstructions",A,"index"],["value","block","transactions",A,"meta","innerInstructions",A,"instructions",A,"programIdIndex"],["value","block","transactions",A,"meta","innerInstructions",A,"instructions",A,"accounts",A],["value","block","transactions",A,"transaction","message","addressTableLookups",A,"writableIndexes",A],["value","block","transactions",A,"transaction","message","addressTableLookups",A,"readonlyIndexes",A],["value","block","transactions",A,"transaction","message","instructions",A,"programIdIndex"],["value","block","transactions",A,"transaction","message","instructions",A,"accounts",A],["value","block","transactions",A,"transaction","message","header","numReadonlySignedAccounts"],["value","block","transactions",A,"transaction","message","header","numReadonlyUnsignedAccounts"],["value","block","transactions",A,"transaction","message","header","numRequiredSignatures"],["value","block","rewards",A,"commission"]],programNotifications:be.flatMap(e=>[["value",A,"account",...e],[A,"account",...e]])}),Yr}var Jm=globalThis.EventTarget,In=globalThis.WebSocket,Jc=1e3;function Zm({sendBufferHighWatermark:e,signal:n,url:t}){if(n.aborted)return Promise.reject(n.reason);let r,i=!1;const o=new Set;function s(){o.forEach(m=>{m()}),o.clear()}function a(){s(),i||S(n.reason),E.readyState!==In.CLOSED&&E.readyState!==In.CLOSING&&E.close(Jc)}function c(m){s(),r?.onCancel(),n.removeEventListener("abort",a),E.removeEventListener("close",c),E.removeEventListener("error",u),E.removeEventListener("message",d),E.removeEventListener("open",O),!n.aborted&&!(m.wasClean&&m.code===Jc)&&R.dispatchEvent(new CustomEvent("error",{detail:new _(bn,{cause:m})}))}function u(m){if(!n.aborted&&!i){const U=new _(Vs,{errorEvent:m});S(U),R.dispatchEvent(new CustomEvent("error",{detail:U}))}}function d(m){n.aborted||R.dispatchEvent(new CustomEvent("message",{detail:m.data}))}const R=new Jm,l=_f(R);function O(){i=!0,C({...l,async send(m){if(E.readyState!==In.OPEN)throw new _(bn);if(!r&&E.bufferedAmount>e){let U;const L=new Promise(($,gn)=>{const hc=setInterval(()=>{(E.readyState!==In.OPEN||!(E.bufferedAmount>e))&&(clearInterval(hc),r=void 0,$())},16);U=()=>{r=void 0,clearInterval(hc),gn(new _(zs))}});r={onCancel:U,promise:L}}if(r){if(ArrayBuffer.isView(m)&&!(m instanceof DataView)){const U=m.constructor;m=new U(m)}await r.promise}E.send(m)}})}const E=new In(t);n.addEventListener("abort",a),E.addEventListener("close",c),E.addEventListener("error",u),E.addEventListener("message",d),E.addEventListener("open",O);let S,C;return new Promise((m,U)=>{S=U,C=m})}function vf(e,n,t){let r="";if(typeof n[0]=="number"){const s=n[0]+1,a=s%10,c=s%100;a==1&&c!=11?r=s+"st":a==2&&c!=12?r=s+"nd":a==3&&c!=13?r=s+"rd":r=s+"th"}else r=`\`${n[0].toString()}\``;const i=n.length>1?n.slice(1).map(s=>typeof s=="number"?`[${s}]`:s).join("."):void 0,o=new _(Bt,{argumentLabel:r,keyPath:n,methodName:e,optionalPathLabel:i?` at path \`${i}\``:"",value:t,...i!==void 0?{path:i}:void 0});return Vn(o,vf),o}var Uf={defaultCommitment:"confirmed",onIntegerOverflow(e,n,t){throw vf(e.methodName,n,t)}},Sc=globalThis.AbortController,Qm={jsonrpc:"2.0",method:"ping"};function xf({abortSignal:e,channel:n,intervalMs:t}){let r;function i(){n.send(Qm).catch(a=>{y(a,bn)&&s.abort()})}function o(){clearInterval(r),r=setInterval(i,t)}const s=new Sc;return s.signal.addEventListener("abort",()=>{clearInterval(r)}),e.addEventListener("abort",()=>{s.abort()}),n.on("error",()=>{s.abort()},{signal:s.signal}),n.on("message",o,{signal:s.signal}),globalThis.navigator.onLine&&o(),globalThis.addEventListener("offline",function(){clearInterval(r)},{signal:s.signal}),globalThis.addEventListener("online",function(){i(),o()},{signal:s.signal}),{...n,send(...a){return s.signal.aborted||o(),n.send(...a)}}}function eC(){return{entries:[],freeChannelIndex:-1}}function Mf(e,{maxSubscriptionsPerChannel:n,minChannels:t}){const r=eC();function i(){if(r.entries.length<t){r.freeChannelIndex=-1;return}let o;for(let s=0;s<r.entries.length;s++){const a=(r.freeChannelIndex+s+2)%r.entries.length,c=r.entries[a];c.subscriptionCount<n&&(!o||o.subscriptionCount>=c.subscriptionCount)&&(o={poolIndex:a,subscriptionCount:c.subscriptionCount})}r.freeChannelIndex=o?.poolIndex??-1}return function({abortSignal:s}){let a;function c(){const u=r.entries.findIndex(d=>d===a);r.entries.splice(u,1),a.dispose(),i()}if(r.freeChannelIndex===-1){const u=new Sc,d=e({abortSignal:u.signal});d.then(R=>{R.on("error",c,{signal:u.signal})}).catch(c),a={channel:d,dispose(){u.abort()},subscriptionCount:0},r.entries.push(a)}else a=r.entries[r.freeChannelIndex];return a.subscriptionCount++,s.addEventListener("abort",function(){a.subscriptionCount--,a.subscriptionCount===0?c():r.freeChannelIndex!==-1&&(r.freeChannelIndex--,i())}),i(),a.channel}}function Ff(e){return Y(e,n=>Oc(n,JSON.parse),n=>Ec(n,JSON.stringify))}function Bf(e){return Y(e,n=>Oc(n,df),n=>Ec(n,Rf))}function kf(e){return zf({...e,jsonSerializer:Bf})}function nC(e){return zf({...e,jsonSerializer:Ff})}function zf(e){if(/^wss?:/i.test(e.url)===!1){const i=e.url.match(/^([^:]+):/);throw new DOMException(i?`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${i[1]}:' is not allowed.`:`Failed to construct 'WebSocket': The URL '${e.url}' is invalid.`)}const{intervalMs:n,...t}=e;return Mf((({abortSignal:i})=>Zm({...t,sendBufferHighWatermark:e.sendBufferHighWatermark??131072,signal:i}).then(e.jsonSerializer).then(o=>xf({abortSignal:i,channel:o,intervalMs:n??5e3}))),{maxSubscriptionsPerChannel:e.maxSubscriptionsPerChannel??100,minChannels:e.minChannels??1})}function Vf(e){const n=new Map;return function(r){const{request:i,signal:o}=r,s=If([i.methodName,i.params]);let a=n.get(s);if(!a){const c=new Sc,u=e({...r,signal:c.signal});u.then(d=>{d.on("error",()=>{n.delete(s),c.abort()},{signal:c.signal})}).catch(()=>{}),n.set(s,a={abortController:c,dataPublisherPromise:u,numSubscribers:0})}return a.numSubscribers++,o.addEventListener("abort",()=>{a.numSubscribers--,a.numSubscribers===0&&queueMicrotask(()=>{a.numSubscribers===0&&(n.delete(s),a.abortController.abort())})},{signal:a.abortController.signal}),a.dataPublisherPromise}}function Gf({createChannel:e}){return Y(Hf(e),n=>Vf(n))}function Hf(e){return(async({execute:n,signal:t})=>{const r=await e({abortSignal:t});return await n({channel:r,signal:t})})}function $f(e,n){const t=Gf({createChannel:kf({...n,url:e})});return jf(t)}function tC(e,n){return $f(e,n)}function rC(e,n){return $f(e,n)}function jf(e){return Lf({api:yf(Uf),transport:e})}function Nn(e){const n={};return e.forEach(t=>{if(!n[t.address])n[t.address]=t;else if(!iC(n[t.address],t))throw new _(co,{address:t.address})}),Object.values(n)}function iC(e,n){if(e===n)return!0;const t=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(n);return t.length!==r.length?!1:t.every(i=>{if(!(i in n))return!1;const o=e[i],s=n[i];return typeof o=="function"&&typeof s=="function"?o.toString()===s.toString():o===s})}function Le(e){return"modifyAndSignTransactions"in e&&typeof e.modifyAndSignTransactions=="function"}function oC(e){if(!Le(e))throw new _(fo,{address:e.address})}function Re(e){return"signTransactions"in e&&typeof e.signTransactions=="function"}function sC(e){if(!Re(e))throw new _(Oo,{address:e.address})}function it(e){return"signAndSendTransactions"in e&&typeof e.signAndSendTransactions=="function"}function aC(e){if(!it(e))throw new _(Eo,{address:e.address})}function ot(e){return Re(e)||Le(e)||it(e)}function cC(e){if(!ot(e))throw new _(Ao,{address:e.address})}function Kf(e){return Nn((e.accounts??[]).flatMap(n=>"signer"in n?n.signer:[]))}function mr(e){return Nn([...e.feePayer&&ot(e.feePayer)?[e.feePayer]:[],...e.instructions.flatMap(Kf)])}function Xf(e,n){if(!n.accounts||n.accounts.length===0)return n;const t=new Map(Nn(e).map(r=>[r.address,r]));return Object.freeze({...n,accounts:n.accounts.map(r=>{const i=t.get(r.address);return!V(r.role)||"signer"in r||!i?r:Object.freeze({...r,signer:i})})})}function _C(e,n){const t=uC(n)?e.find(r=>r.address===n.feePayer.address):void 0;return!t&&n.instructions.length===0?n:Object.freeze({...n,...t?{feePayer:t}:null,instructions:n.instructions.map(r=>Xf(e,r))})}function uC(e){return!!e&&"feePayer"in e&&!!e.feePayer&&typeof e.feePayer.address=="string"&&!ot(e.feePayer)}function dC(e,n){Object.freeze(e);const t={...n,feePayer:e};return Object.freeze(t),t}function Tn(e){return"signMessages"in e&&typeof e.signMessages=="function"}function RC(e){if(!Tn(e))throw new _(lo,{address:e.address})}function Yf(e){return"keyPair"in e&&typeof e.keyPair=="object"&&Tn(e)&&Re(e)}function lC(e){if(!Yf(e))throw new _(_o,{address:e.address})}async function st(e){const n=await Wt(e.publicKey);return Object.freeze({address:n,keyPair:e,signMessages:r=>Promise.all(r.map(async i=>Object.freeze({[n]:await tt(e.privateKey,i.content)}))),signTransactions:r=>Promise.all(r.map(async i=>{const o=await ka([e],i);return Object.freeze({[n]:o.signatures[n]})}))})}async function AC(e=!1){return await st(await Fa(e))}async function fC(e,n){return await st(await xl(e,n))}async function OC(e,n){return await st(await Ml(e,n))}async function Wf(e){const n=await Ba(e);return await Promise.all(n.map(st))}async function EC(e){const[n]=await Wf({...e,amount:1});return n}function Cr(e){return an(e.address)&&"modifyAndSignMessages"in e&&typeof e.modifyAndSignMessages=="function"}function SC(e){if(!Cr(e))throw new _(Ro,{address:e.address})}function Nc(e){return Tn(e)||Cr(e)}function NC(e){if(!Nc(e))throw new _(uo,{address:e.address})}function TC(e){return Object.freeze({address:e,signMessages:t=>Promise.resolve(t.map(()=>Object.freeze({}))),signTransactions:t=>Promise.resolve(t.map(()=>Object.freeze({})))})}function qf({requiredSignatories:e}){const n=e.filter(Nc);return Nn(n)}async function Jf(e,n){const{partialSigners:t,modifyingSigners:r}=IC(qf(e));return await CC(e,r,t,n)}async function gC(e,n){const t=await Jf(e,n);return lc(t),t}function IC(e){const n=mC(e),t=e.filter(Tn).filter(r=>!n.includes(r));return Object.freeze({modifyingSigners:n,partialSigners:t})}function mC(e){const n=e.filter(Cr);if(n.length===0)return[];const t=n.filter(r=>!Tn(r));return t.length>0?t:[n[0]]}async function CC(e,n=[],t=[],r){const i=rf(e),o=await n.reduce(async(a,c)=>{r?.abortSignal?.throwIfAborted();const[u]=await c.modifyAndSignMessages([await a],r);return Object.freeze(u)},Promise.resolve(i));r?.abortSignal?.throwIfAborted();const s=await Promise.all(t.map(async a=>{const[c]=await a.signMessages([o],r);return c}));return Object.freeze({...o,signatures:Object.freeze(s.reduce((a,c)=>({...a,...c}),o.signatures??{}))})}function hC(e){try{return Zf(e),!0}catch{return!1}}function Zf(e){Tc(mr(e))}function Tc(e){const n=e.filter(it);if(n.length===0)throw new _(ht);if(n.filter(r=>!Re(r)&&!Le(r)).length>1)throw new _(So)}async function Qf(e,n){return await gc(mr(e).filter(t=>Le(t)||Re(t)),En(e),n)}async function pC(e,n){const t=await Qf(e,n);return rt(t),t}async function LC(e,n){return await eO(mr(e).filter(ot),En(e),n)}async function gc(e,n,t){const{partialSigners:r,modifyingSigners:i}=nO(Nn(e),{identifySendingSigner:!1});return await tO(n,i,r,t)}async function DC(e,n,t){const r=await gc(e,n,t);return rt(r),r}async function eO(e,n,t){Tc(e);const r=t?.abortSignal,{partialSigners:i,modifyingSigners:o,sendingSigner:s}=nO(Nn(e));r?.throwIfAborted();const a=await tO(n,o,i,t);if(!s)throw new _(ht);r?.throwIfAborted();const[c]=await s.signAndSendTransactions([a],t);return r?.throwIfAborted(),c}function nO(e,n={}){const r=n.identifySendingSigner??!0?bC(e):null,i=e.filter(a=>a!==r&&(Le(a)||Re(a))),o=PC(i),s=i.filter(Re).filter(a=>!o.includes(a));return Object.freeze({modifyingSigners:o,partialSigners:s,sendingSigner:r})}function bC(e){const n=e.filter(it);if(n.length===0)return null;const t=n.filter(r=>!Le(r)&&!Re(r));return t.length>0?t[0]:n[0]}function PC(e){const n=e.filter(Le);if(n.length===0)return[];const t=n.filter(r=>!Re(r));return t.length>0?t:[n[0]]}async function tO(e,n=[],t=[],r){const i=await n.reduce(async(s,a)=>{r?.abortSignal?.throwIfAborted();const[c]=await a.modifyAndSignTransactions([await s],r);return Object.freeze(c)},Promise.resolve(e));r?.abortSignal?.throwIfAborted();const o=await Promise.all(t.map(async s=>{const[a]=await s.signTransactions([i],r);return a}));return Object.freeze({...i,signatures:Object.freeze(o.reduce((s,a)=>({...s,...a}),i.signatures??{}))})}var wC=globalThis.TextEncoder;function yC(e,n={}){return Object.freeze({content:typeof e=="string"?new wC().encode(e):e,signatures:Object.freeze({...n})})}async function vC(e,n,t){return await Fl(e.keyPair,n,t)}var at=globalThis.AbortController;function UC({rpc:e,rpcSubscriptions:n}){return async function({abortSignal:r,commitment:i,lastValidBlockHeight:o}){r.throwIfAborted();const s=new at,a=()=>{s.abort()};r.addEventListener("abort",a,{signal:s.signal});async function c(){const{absoluteSlot:u,blockHeight:d}=await e.getEpochInfo({commitment:i}).send({abortSignal:s.signal});return{blockHeight:d,differenceBetweenSlotHeightAndBlockHeight:u-d}}try{const[u,{blockHeight:d,differenceBetweenSlotHeightAndBlockHeight:R}]=await Promise.all([n.slotNotifications().subscribe({abortSignal:s.signal}),c()]);r.throwIfAborted();let l=d;if(l<=o){let O=R;for await(const E of u){const{slot:S}=E;if(S-O>o){const{blockHeight:C,differenceBetweenSlotHeightAndBlockHeight:m}=await c();if(l=C,l>o)break;O=m}}}throw r.throwIfAborted(),new _(oi,{currentBlockHeight:l,lastValidBlockHeight:o})}finally{s.abort()}}}var Wr=40;function xC({rpc:e,rpcSubscriptions:n}){return async function({abortSignal:r,commitment:i,currentNonceValue:o,nonceAccountAddress:s}){const a=new at;function c(){a.abort()}r.addEventListener("abort",c,{signal:a.signal});const u=await n.accountNotifications(s,{commitment:i,encoding:"base64"}).subscribe({abortSignal:a.signal}),d=Kn(),R=Kt();function l([S]){const m=R.encode(S).slice(Wr,Wr+32);return d.decode(m)}const O=(async()=>{for await(const S of u){const C=l(S.value.data);if(C!==o)throw new _(hn,{actualNonceValue:C,expectedNonceValue:o})}})(),E=(async()=>{const{value:S}=await e.getAccountInfo(s,{commitment:i,dataSlice:{length:32,offset:Wr},encoding:"base58"}).send({abortSignal:a.signal});if(!S)throw new _(si,{nonceAccountAddress:s});const C=S.data[0];if(C!==o)throw new _(hn,{actualNonceValue:C,expectedNonceValue:o});await new Promise(()=>{})})();try{return await et([O,E])}finally{a.abort()}}}function Ic({rpc:e,rpcSubscriptions:n}){return async function({abortSignal:r,commitment:i,signature:o}){const s=new at;function a(){s.abort()}r.addEventListener("abort",a,{signal:s.signal});const c=await n.signatureNotifications(o,{commitment:i}).subscribe({abortSignal:s.signal}),u=(async()=>{for await(const R of c){if(R.value.err)throw ge(R.value.err);return}})(),d=(async()=>{const{value:R}=await e.getSignatureStatuses([o]).send({abortSignal:s.signal}),l=R[0];if(l?.err)throw ge(l.err);if(l?.confirmationStatus&&rr(l.confirmationStatus,i)>=0)return;await new Promise(()=>{})})();try{return await et([u,d])}finally{s.abort()}}}async function MC({abortSignal:e,commitment:n}){const t=new at;let r;try{return await new Promise((i,o)=>{const s=u=>{clearTimeout(r);const d=new DOMException(u.target.reason,"AbortError");o(d)};e.addEventListener("abort",s,{signal:t.signal});const a=n==="processed"?3e4:6e4,c=performance.now();r=setTimeout(()=>{const u=performance.now()-c;o(new DOMException(`Timeout elapsed after ${u} ms`,"TimeoutError"))},a)})}finally{clearTimeout(r),t.abort()}}async function mc(e,n,t){const{abortSignal:r,commitment:i,getRecentSignatureConfirmationPromise:o}=n;r?.throwIfAborted();const s=new at;if(r){const a=()=>{s.abort()};r.addEventListener("abort",a,{signal:s.signal})}try{const a=t({...n,abortSignal:s.signal});return await et([o({abortSignal:s.signal,commitment:i,signature:e}),...a])}finally{s.abort()}}async function FC(e){await mc(Sn(e.transaction),e,function({abortSignal:t,commitment:r,getNonceInvalidationPromise:i,transaction:o}){return[i({abortSignal:t,commitment:r,currentNonceValue:o.lifetimeConstraint.nonce,nonceAccountAddress:o.lifetimeConstraint.nonceAccountAddress})]})}async function BC(e){await mc(Sn(e.transaction),e,function({abortSignal:t,commitment:r,getBlockHeightExceedencePromise:i,transaction:o}){return[i({abortSignal:t,commitment:r,lastValidBlockHeight:o.lifetimeConstraint.lastValidBlockHeight})]})}async function kC(e){await mc(e.signature,e,function({abortSignal:t,commitment:r,getTimeoutPromise:i}){return[i({abortSignal:t,commitment:r})]})}async function*zC({abortSignal:e,rpcRequest:n,rpcValueMapper:t,rpcSubscriptionRequest:r,rpcSubscriptionValueMapper:i}){if(e.aborted)return;let o=-1n;const s=[];let a=null,c=null,u=!1,d=!1,R=!1,l;function O(){if(R=!0,a){const L=a;a=null,c=null,L({done:!0,value:void 0})}}const E=new AbortController,S=E.signal;function C(){if(R=!0,E.abort(e.reason),a){const L=a;a=null,c=null,L({done:!0,value:void 0})}}e.addEventListener("abort",C);function m(L){if(!(R||S.aborted))if(a){const $=a;a=null,c=null,$({done:!1,value:L})}else s.push(L)}function U(L){if(!S.aborted&&(R=!0,l=L,E.abort(L),c)){const $=c;a=null,c=null,$(L)}}n.send({abortSignal:S}).then(({context:{slot:L},value:$})=>{S.aborted||L<o||(o=L,m({context:{slot:L},value:t($)}))}).then(()=>{u=!0,d&&O()}).catch(U),r.subscribe({abortSignal:S}).then(async L=>{for await(const{context:{slot:$},value:gn}of L){if(S.aborted)return;$<o||(o=$,m({context:{slot:$},value:i(gn)}))}d=!0,u&&O()}).catch(U);try{for(;;){if(l)throw l;if(s.length>0)yield s.shift();else{if(R)return;{const L=await new Promise(($,gn)=>{a=$,c=gn});if(L.done)return;yield L.value}}}}finally{e.removeEventListener("abort",C),S.aborted||E.abort()}}var VC=Object.freeze({data:void 0,error:void 0,status:"loading"});function GC({abortSignal:e,rpcRequest:n,rpcValueMapper:t,rpcSubscriptionRequest:r,rpcSubscriptionValueMapper:i}){let o=VC,s=-1n;const a=new Set,c=new AbortController;e.addEventListener("abort",()=>c.abort(e.reason));function u(){a.forEach(R=>R())}function d(){if(c.signal.aborted)return;const R=new AbortController,l=()=>R.abort(c.signal.reason);c.signal.addEventListener("abort",l,{signal:R.signal});const O=R.signal;function E(C){O.aborted||o.status!=="error"&&(o={data:o.data,error:C,status:"error"},R.abort(C),u())}function S(C){o={data:C,error:void 0,status:"loaded"},u()}n.send({abortSignal:O}).then(({context:{slot:C},value:m})=>{O.aborted||C<s||(s=C,S({context:{slot:C},value:t(m)}))}).catch(E),r.subscribe({abortSignal:O}).then(async C=>{for await(const{context:{slot:m},value:U}of C){if(O.aborted)return;m<s||(s=m,S({context:{slot:m},value:i(U)}))}}).catch(E)}return d(),{getError(){return o.error},getState(){return o.data},getUnifiedState(){return o},retry(){c.signal.aborted||o.status==="error"&&(o={data:o.data,error:void 0,status:"retrying"},u(),d())},subscribe(R){return a.add(R),()=>{a.delete(R)}}}}async function HC({abortSignal:e,commitment:n,confirmSignatureOnlyTransaction:t,lamports:r,recipientAddress:i,rpc:o}){const s=await o.requestAirdrop(i,r,{commitment:n}).send({abortSignal:e});return await t({abortSignal:e,commitment:n,signature:s}),s}function $C({rpc:e,rpcSubscriptions:n}){const t=Ic({rpc:e,rpcSubscriptions:n});async function r(i){await kC({...i,getRecentSignatureConfirmationPromise:t,getTimeoutPromise:MC})}return async function(o){return await HC({...o,confirmSignatureOnlyTransaction:r,rpc:e})}}var jC=0,rO=14e5;function KC({rpc:e}){return async function(t,r){const{abortSignal:i,...o}=r??{},s=!On(t),a=Y(t,u=>Ge(rO,u),En),c=Sr(a);try{const u=await e.simulateTransaction(c,{...o,encoding:"base64",replaceRecentBlockhash:s,sigVerify:!1}).send({abortSignal:i}),{err:d,...R}=u.value;if(R.unitsConsumed==null)throw new _(Ye);if(d)throw new _(We,{...R,cause:ge(d)});return R.unitsConsumed>4294967295n?4294967295:Number(R.unitsConsumed)}catch(u){throw y(u,We)?u:new _(Ye,{cause:u})}}}function XC(e){return async function(t,r){const i=fn(t);if(i&&i!==rO)return t;const o=await e(t,r);return Ge(o,t)}}function YC(e){return fn(e)!==void 0?e:Ge(jC,e)}async function iO(e,n,t){if(e.length===0)return{};const r=await Pd(n,e,t);return bd(r),wd(r),r.reduce((i,o)=>({...i,[o.address]:o.data.addresses}),{})}async function WC(e,n,t){const i=("addressTableLookups"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?e.addressTableLookups:[]).map(c=>c.lookupTableAddress),{lastValidBlockHeight:o,...s}=t??{},a=i.length>0?await iO(i,n,s):{};return Pl(e,{addressesByLookupTableAddress:a,lastValidBlockHeight:o})}var gt=0,oO=14e5,qC=64*1024*1024;function JC({rpc:e}){return async function(t,r){const{abortSignal:i,...o}=r??{},s=!On(t),a=t.version===1,c=Y(t,d=>Ge(oO,d),d=>a?Or(qC,d):d,En),u=Sr(c);try{const d=await e.simulateTransaction(u,{...o,encoding:"base64",replaceRecentBlockhash:s,sigVerify:!1}).send({abortSignal:i}),{err:R,...l}=d.value;if(l.unitsConsumed==null)throw new _(Ye);if(a&&l.loadedAccountsDataSize==null)throw new _(dt);if(R)throw new _(Ln,{...l,cause:ge(R)});const O=l.unitsConsumed>4294967295n?4294967295:Number(l.unitsConsumed);return a?{computeUnitLimit:O,loadedAccountsDataSizeLimit:l.loadedAccountsDataSize}:l.loadedAccountsDataSize==null?{computeUnitLimit:O}:{computeUnitLimit:O,loadedAccountsDataSizeLimit:l.loadedAccountsDataSize}}catch(d){throw y(d,Ln)||y(d,dt)?d:new _(Ye,{cause:d})}}}function ZC(e){return async function(t,r){const i=fn(t),o=i!==void 0&&i!==gt&&i!==oO,s=t.version===1;let a=!0;if(s){const d=fr(t);a=d!==void 0&&d!==gt}if(o&&a)return t;const c=await e(t,r);let u=t;return o||(u=Ge(c.computeUnitLimit,u)),s&&!a&&"loadedAccountsDataSizeLimit"in c&&(u=Or(c.loadedAccountsDataSizeLimit,u)),u}}function QC(e){let n=e;return fn(n)===void 0&&(n=Ge(gt,n)),n.version===1&&fr(n)===void 0&&(n=Or(gt,n)),n}function eh(e){const n={ACCOUNT_STORAGE_OVERHEAD:128n,DEFAULT_EXEMPTION_THRESHOLD:2n,DEFAULT_LAMPORTS_PER_BYTE_YEAR:3480n};return(n.ACCOUNT_STORAGE_OVERHEAD+e)*n.DEFAULT_LAMPORTS_PER_BYTE_YEAR*n.DEFAULT_EXEMPTION_THRESHOLD}function nh(e,n){return!n?.preflightCommitment&&rr(e,"finalized")<0?{...n,preflightCommitment:e}:n}async function Cc({abortSignal:e,commitment:n,rpc:t,transaction:r,...i}){const o=Sr(r);return await t.sendTransaction(o,{...nh(n,i),encoding:"base64"}).send({abortSignal:e})}async function th({abortSignal:e,commitment:n,confirmDurableNonceTransaction:t,rpc:r,transaction:i,...o}){const s=await Cc({...o,abortSignal:e,commitment:n,rpc:r,transaction:i});return await t({abortSignal:e,commitment:n,transaction:i}),s}async function rh({abortSignal:e,commitment:n,confirmRecentTransaction:t,rpc:r,transaction:i,...o}){const s=await Cc({...o,abortSignal:e,commitment:n,rpc:r,transaction:i});return await t({abortSignal:e,commitment:n,transaction:i}),s}function ih({rpc:e,rpcSubscriptions:n}){const t=xC({rpc:e,rpcSubscriptions:n}),r=Ic({rpc:e,rpcSubscriptions:n});function i(s){return async function(c){try{return await t(c)}catch(u){if(y(u,hn)){let d;try{const{value:R}=await e.getSignatureStatuses([s]).send({abortSignal:c.abortSignal});d=R[0]}catch{throw u}if(d==null)throw u;if(d.confirmationStatus!==null&&rr(d.confirmationStatus,c.commitment)>=0){if(d.err!==null)throw ge(d.err);return}return await new Promise(()=>{})}throw u}}}async function o(s){const a=i(Sn(s.transaction));await FC({...s,getNonceInvalidationPromise:a,getRecentSignatureConfirmationPromise:r})}return async function(a,c){await th({...c,confirmDurableNonceTransaction:o,rpc:e,transaction:a})}}function oh({rpc:e,rpcSubscriptions:n}){const t=UC({rpc:e,rpcSubscriptions:n}),r=Ic({rpc:e,rpcSubscriptions:n});async function i(o){await BC({...o,getBlockHeightExceedencePromise:t,getRecentSignatureConfirmationPromise:r})}return async function(s,a){await rh({...a,confirmRecentTransaction:i,rpc:e,transaction:s})}}function sh({rpc:e}){return async function(t,r){await Cc({...r,rpc:e,transaction:t})}}exports.AccountRole=v;exports.BASE_ACCOUNT_SIZE=kO;exports.DEFAULT_RPC_CONFIG=Cf;exports.DEFAULT_RPC_SUBSCRIPTIONS_CONFIG=Uf;exports.Endian=Fd;exports.MAX_SUPPORTED_TRANSACTION_VERSION=or;exports.OffchainMessageContentFormat=Ir;exports.SOLANA_ERROR__ACCOUNTS__ACCOUNT_NOT_FOUND=Bi;exports.SOLANA_ERROR__ACCOUNTS__EXPECTED_ALL_ACCOUNTS_TO_BE_DECODED=Gi;exports.SOLANA_ERROR__ACCOUNTS__EXPECTED_DECODED_ACCOUNT=Vi;exports.SOLANA_ERROR__ACCOUNTS__FAILED_TO_DECODE_ACCOUNT=zi;exports.SOLANA_ERROR__ACCOUNTS__ONE_OR_MORE_ACCOUNTS_NOT_FOUND=ki;exports.SOLANA_ERROR__ADDRESSES__FAILED_TO_FIND_VIABLE_PDA_BUMP_SEED=xi;exports.SOLANA_ERROR__ADDRESSES__INVALID_BASE58_ENCODED_ADDRESS=c_;exports.SOLANA_ERROR__ADDRESSES__INVALID_BYTE_LENGTH=Mn;exports.SOLANA_ERROR__ADDRESSES__INVALID_ED25519_PUBLIC_KEY=wi;exports.SOLANA_ERROR__ADDRESSES__INVALID_OFF_CURVE_ADDRESS=Fi;exports.SOLANA_ERROR__ADDRESSES__INVALID_SEEDS_POINT_ON_CURVE=mt;exports.SOLANA_ERROR__ADDRESSES__MALFORMED_PDA=yi;exports.SOLANA_ERROR__ADDRESSES__MAX_NUMBER_OF_PDA_SEEDS_EXCEEDED=Ui;exports.SOLANA_ERROR__ADDRESSES__MAX_PDA_SEED_LENGTH_EXCEEDED=It;exports.SOLANA_ERROR__ADDRESSES__PDA_BUMP_SEED_OUT_OF_RANGE=vi;exports.SOLANA_ERROR__ADDRESSES__PDA_ENDS_WITH_PDA_MARKER=Mi;exports.SOLANA_ERROR__ADDRESSES__STRING_LENGTH_OUT_OF_RANGE=Fn;exports.SOLANA_ERROR__BLOCKHASH_STRING_LENGTH_OUT_OF_RANGE=ai;exports.SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED=oi;exports.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY=ns;exports.SOLANA_ERROR__CODECS__CANNOT_USE_LEXICAL_VALUES_AS_ENUM_DISCRIMINATORS=Mt;exports.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL=Ss;exports.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH=ss;exports.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH=as;exports.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH=os;exports.SOLANA_ERROR__CODECS__ENUM_DISCRIMINATOR_OUT_OF_RANGE=_s;exports.SOLANA_ERROR__CODECS__EXPECTED_DECODER_TO_CONSUME_ENTIRE_BYTE_ARRAY=Ts;exports.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH=rs;exports.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH=Dn;exports.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH=is;exports.SOLANA_ERROR__CODECS__EXPECTED_ZERO_VALUE_TO_MATCH_ITEM_FIXED_SIZE=Yu;exports.SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH=ts;exports.SOLANA_ERROR__CODECS__INVALID_CONSTANT=Es;exports.SOLANA_ERROR__CODECS__INVALID_DISCRIMINATED_UNION_VARIANT=us;exports.SOLANA_ERROR__CODECS__INVALID_ENUM_VARIANT=ds;exports.SOLANA_ERROR__CODECS__INVALID_LITERAL_UNION_VARIANT=As;exports.SOLANA_ERROR__CODECS__INVALID_NUMBER_OF_ITEMS=cs;exports.SOLANA_ERROR__CODECS__INVALID_PATTERN_MATCH_BYTES=Is;exports.SOLANA_ERROR__CODECS__INVALID_PATTERN_MATCH_VALUE=gs;exports.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE=Te;exports.SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE=fs;exports.SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE=Rs;exports.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE=ls;exports.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES=Ns;exports.SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE=Os;exports.SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED=Ji;exports.SOLANA_ERROR__FAILED_TO_SEND_TRANSACTION=Ai;exports.SOLANA_ERROR__FAILED_TO_SEND_TRANSACTIONS=fi;exports.SOLANA_ERROR__FIXED_POINTS__ARITHMETIC_OVERFLOW=bs;exports.SOLANA_ERROR__FIXED_POINTS__DIVISION_BY_ZERO=ws;exports.SOLANA_ERROR__FIXED_POINTS__FRACTIONAL_BITS_EXCEED_TOTAL_BITS=ps;exports.SOLANA_ERROR__FIXED_POINTS__INVALID_DECIMALS=hs;exports.SOLANA_ERROR__FIXED_POINTS__INVALID_FRACTIONAL_BITS=Cs;exports.SOLANA_ERROR__FIXED_POINTS__INVALID_STRING=Ds;exports.SOLANA_ERROR__FIXED_POINTS__INVALID_TOTAL_BITS=ms;exports.SOLANA_ERROR__FIXED_POINTS__INVALID_ZERO_DENOMINATOR_RATIO=Ft;exports.SOLANA_ERROR__FIXED_POINTS__MALFORMED_RAW_VALUE=vs;exports.SOLANA_ERROR__FIXED_POINTS__SHAPE_MISMATCH=Ps;exports.SOLANA_ERROR__FIXED_POINTS__STRICT_MODE_PRECISION_LOSS=ys;exports.SOLANA_ERROR__FIXED_POINTS__TOTAL_BITS_NOT_BYTE_ALIGNED=Us;exports.SOLANA_ERROR__FIXED_POINTS__VALUE_OUT_OF_RANGE=Ls;exports.SOLANA_ERROR__FS__UNSUPPORTED_ENVIRONMENT=__;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_ALREADY_INITIALIZED=S_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_FAILED=y_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=v_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_SIZE_CHANGED=P_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_TOO_SMALL=A_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_EXECUTABLE=w_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_RENT_EXEMPT=eu;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ARITHMETIC_OVERFLOW=tu;exports.SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR=Q_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS=cu;exports.SOLANA_ERROR__INSTRUCTION_ERROR__CALL_DEPTH=z_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__COMPUTATIONAL_BUDGET_EXCEEDED=K_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM=Ct;exports.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_INDEX=p_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_OUT_OF_SYNC=U_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_ACCOUNT_NOT_RENT_EXEMPT=B_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_DATA_MODIFIED=M_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_LAMPORT_CHANGE=F_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_MODIFIED=L_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_DATA_MODIFIED=m_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_LAMPORT_SPEND=I_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__GENERIC_ERROR=u_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__ILLEGAL_OWNER=iu;exports.SOLANA_ERROR__INSTRUCTION_ERROR__IMMUTABLE=J_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_AUTHORITY=Z_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_PROGRAM_ID=O_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INSUFFICIENT_FUNDS=f_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_DATA=l_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_OWNER=nu;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ARGUMENT=d_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ERROR=x_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_INSTRUCTION_DATA=R_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_REALLOC=j_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_SEEDS=$_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED=ou;exports.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_EXCEEDED=su;exports.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED=au;exports.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_SEED_LENGTH_EXCEEDED=H_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_ACCOUNT=V_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_REQUIRED_SIGNATURE=E_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__MODIFIED_PROGRAM_ID=g_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__NOT_ENOUGH_ACCOUNT_KEYS=b_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__PRIVILEGE_ESCALATION=X_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_ENVIRONMENT_SETUP_FAILURE=Y_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPILE=q_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPLETE=W_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_DATA_MODIFIED=h_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_LAMPORT_CHANGE=C_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__REENTRANCY_NOT_ALLOWED=G_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__RENT_EPOCH_MODIFIED=D_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNBALANCED_INSTRUCTION=T_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNINITIALIZED_ACCOUNT=N_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNKNOWN=pn;exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_PROGRAM_ID=k_;exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_SYSVAR=ru;exports.SOLANA_ERROR__INSTRUCTION_PLANS__EMPTY_INSTRUCTION_PLAN=Zo;exports.SOLANA_ERROR__INSTRUCTION_PLANS__EXPECTED_SUCCESSFUL_TRANSACTION_PLAN_RESULT=es;exports.SOLANA_ERROR__INSTRUCTION_PLANS__FAILED_SINGLE_TRANSACTION_PLAN_RESULT_NOT_FOUND=Qo;exports.SOLANA_ERROR__INSTRUCTION_PLANS__FAILED_TO_EXECUTE_TRANSACTION_PLAN=Ut;exports.SOLANA_ERROR__INSTRUCTION_PLANS__MESSAGE_CANNOT_ACCOMMODATE_PLAN=ye;exports.SOLANA_ERROR__INSTRUCTION_PLANS__MESSAGE_PACKER_ALREADY_COMPLETE=vt;exports.SOLANA_ERROR__INSTRUCTION_PLANS__NON_DIVISIBLE_TRANSACTION_PLANS_NOT_SUPPORTED=xt;exports.SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_INSTRUCTION_PLAN=ve;exports.SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_TRANSACTION_PLAN=on;exports.SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_TRANSACTION_PLAN_RESULT=Ee;exports.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_ACCOUNTS=oo;exports.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_DATA=so;exports.SOLANA_ERROR__INSTRUCTION__PROGRAM_ID_MISMATCH=ao;exports.SOLANA_ERROR__INVALID_BLOCKHASH_BYTE_LENGTH=ci;exports.SOLANA_ERROR__INVALID_NONCE=hn;exports.SOLANA_ERROR__INVARIANT_VIOLATION__CACHED_ABORTABLE_ITERABLE_CACHE_ENTRY_MISSING=sd;exports.SOLANA_ERROR__INVARIANT_VIOLATION__DATA_PUBLISHER_CHANNEL_UNIMPLEMENTED=js;exports.SOLANA_ERROR__INVARIANT_VIOLATION__INVALID_INSTRUCTION_PLAN_KIND=zn;exports.SOLANA_ERROR__INVARIANT_VIOLATION__INVALID_TRANSACTION_PLAN_KIND=kt;exports.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_MUST_NOT_POLL_BEFORE_RESOLVING_EXISTING_MESSAGE_PROMISE=$s;exports.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_STATE_MISSING=Hs;exports.SOLANA_ERROR__INVARIANT_VIOLATION__SWITCH_MUST_BE_EXHAUSTIVE=sn;exports.SOLANA_ERROR__JSON_RPC__INTERNAL_ERROR=Ei;exports.SOLANA_ERROR__JSON_RPC__INVALID_PARAMS=Si;exports.SOLANA_ERROR__JSON_RPC__INVALID_REQUEST=Ti;exports.SOLANA_ERROR__JSON_RPC__METHOD_NOT_FOUND=Ni;exports.SOLANA_ERROR__JSON_RPC__PARSE_ERROR=Oi;exports.SOLANA_ERROR__JSON_RPC__SCAN_ERROR=Ci;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_CLEANED_UP=Pi;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_NOT_AVAILABLE=bi;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET=mi;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_EPOCH_REWARDS_PERIOD_ACTIVE=n_;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_FILTER_TRANSACTION_NOT_FOUND=gi;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX=hi;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED=pi;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_UNREACHABLE=Qc;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED=t_;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NODE_UNHEALTHY=s_;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NO_SLOT_HISTORY=Zc;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NO_SNAPSHOT=o_;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE=je;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_NOT_EPOCH_BOUNDARY=e_;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_SKIPPED=Li;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE=i_;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE=Di;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH=r_;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE=a_;exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION=Ii;exports.SOLANA_ERROR__KEYS__INVALID_BASE58_IN_GRIND_REGEX=ro;exports.SOLANA_ERROR__KEYS__INVALID_KEY_PAIR_BYTE_LENGTH=Zi;exports.SOLANA_ERROR__KEYS__INVALID_PRIVATE_KEY_BYTE_LENGTH=Qi;exports.SOLANA_ERROR__KEYS__INVALID_SIGNATURE_BYTE_LENGTH=eo;exports.SOLANA_ERROR__KEYS__PUBLIC_KEY_MUST_MATCH_PRIVATE_KEY=to;exports.SOLANA_ERROR__KEYS__SIGNATURE_STRING_LENGTH_OUT_OF_RANGE=no;exports.SOLANA_ERROR__KEYS__WRITE_KEY_PAIR_UNSUPPORTED_ENVIRONMENT=io;exports.SOLANA_ERROR__LAMPORTS_OUT_OF_RANGE=_i;exports.SOLANA_ERROR__MALFORMED_BIGINT_STRING=ui;exports.SOLANA_ERROR__MALFORMED_JSON_RPC_ERROR=li;exports.SOLANA_ERROR__MALFORMED_NUMBER_STRING=di;exports.SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND=si;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__ADDRESSES_CANNOT_SIGN_OFFCHAIN_MESSAGE=po;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__APPLICATION_DOMAIN_STRING_LENGTH_OUT_OF_RANGE=To;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__ENVELOPE_SIGNERS_MISMATCH=ho;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__INVALID_APPLICATION_DOMAIN_BYTE_LENGTH=go;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__MAXIMUM_LENGTH_EXCEEDED=Qe;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_FORMAT_MISMATCH=Bn;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_LENGTH_MISMATCH=mo;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_MUST_BE_NON_EMPTY=we;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_ENVELOPE_SIGNATURES_CANNOT_BE_ZERO=kn;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_REQUIRED_SIGNERS_CANNOT_BE_ZERO=me;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_SIGNATURES_MISMATCH=Io;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__RESTRICTED_ASCII_BODY_CHARACTER_OUT_OF_RANGE=No;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATORIES_MUST_BE_SORTED=Do;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATORIES_MUST_BE_UNIQUE=pt;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATURES_MISSING=Co;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATURE_VERIFICATION_FAILURE=bo;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__UNEXPECTED_VERSION=Lo;exports.SOLANA_ERROR__OFFCHAIN_MESSAGE__VERSION_NUMBER_NOT_SUPPORTED=Ke;exports.SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT=nd;exports.SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION=Ju;exports.SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS=Wu;exports.SOLANA_ERROR__PROGRAM_CLIENTS__RESOLVED_INSTRUCTION_INPUT_MUST_BE_NON_NULL=Qu;exports.SOLANA_ERROR__PROGRAM_CLIENTS__UNEXPECTED_RESOLVED_INSTRUCTION_INPUT_TYPE=Zu;exports.SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_ACCOUNT_TYPE=ed;exports.SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE=qu;exports.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CANNOT_CREATE_SUBSCRIPTION_PLAN=Bs;exports.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CLOSED_BEFORE_MESSAGE_BUFFERED=zs;exports.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CONNECTION_CLOSED=bn;exports.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_FAILED_TO_CONNECT=Vs;exports.SOLANA_ERROR__RPC_SUBSCRIPTIONS__EXPECTED_SERVER_SUBSCRIPTION_ID=ks;exports.SOLANA_ERROR__RPC__API_PLAN_MISSING_FOR_RPC_METHOD=Fs;exports.SOLANA_ERROR__RPC__INTEGER_OVERFLOW=Bt;exports.SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR=Ms;exports.SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN=xs;exports.SOLANA_ERROR__SIGNER__ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS=co;exports.SOLANA_ERROR__SIGNER__EXPECTED_KEY_PAIR_SIGNER=_o;exports.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_MODIFYING_SIGNER=Ro;exports.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_PARTIAL_SIGNER=lo;exports.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_SIGNER=uo;exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_MODIFYING_SIGNER=fo;exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_PARTIAL_SIGNER=Oo;exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SENDING_SIGNER=Eo;exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SIGNER=Ao;exports.SOLANA_ERROR__SIGNER__TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS=So;exports.SOLANA_ERROR__SIGNER__TRANSACTION_SENDING_SIGNER_MISSING=ht;exports.SOLANA_ERROR__SIGNER__WALLET_ACCOUNT_CANNOT_SIGN_TRANSACTION=uu;exports.SOLANA_ERROR__SIGNER__WALLET_MULTISIGN_UNIMPLEMENTED=_u;exports.SOLANA_ERROR__SUBSCRIBABLE__RETRY_NOT_SUPPORTED=Gs;exports.SOLANA_ERROR__SUBTLE_CRYPTO__CANNOT_EXPORT_NON_EXTRACTABLE_KEY=qi;exports.SOLANA_ERROR__SUBTLE_CRYPTO__DIGEST_UNIMPLEMENTED=$i;exports.SOLANA_ERROR__SUBTLE_CRYPTO__DISALLOWED_IN_INSECURE_CONTEXT=Hi;exports.SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED=ji;exports.SOLANA_ERROR__SUBTLE_CRYPTO__EXPORT_FUNCTION_UNIMPLEMENTED=Ki;exports.SOLANA_ERROR__SUBTLE_CRYPTO__GENERATE_FUNCTION_UNIMPLEMENTED=Xi;exports.SOLANA_ERROR__SUBTLE_CRYPTO__SIGN_FUNCTION_UNIMPLEMENTED=Yi;exports.SOLANA_ERROR__SUBTLE_CRYPTO__VERIFY_FUNCTION_UNIMPLEMENTED=Wi;exports.SOLANA_ERROR__TIMESTAMP_OUT_OF_RANGE=Ri;exports.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=Pu;exports.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_IN_USE=fu;exports.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_LOADED_TWICE=Ou;exports.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_NOT_FOUND=Eu;exports.SOLANA_ERROR__TRANSACTION_ERROR__ADDRESS_LOOKUP_TABLE_NOT_FOUND=Fu;exports.SOLANA_ERROR__TRANSACTION_ERROR__ALREADY_PROCESSED=gu;exports.SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND=Iu;exports.SOLANA_ERROR__TRANSACTION_ERROR__CALL_CHAIN_TOO_DEEP=mu;exports.SOLANA_ERROR__TRANSACTION_ERROR__CLUSTER_MAINTENANCE=bu;exports.SOLANA_ERROR__TRANSACTION_ERROR__DUPLICATE_INSTRUCTION=Wo;exports.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_FEE=Nu;exports.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_RENT=qo;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_FOR_FEE=Tu;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_INDEX=hu;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_DATA=ku;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_INDEX=zu;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_OWNER=Bu;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_LOADED_ACCOUNTS_DATA_SIZE_LIMIT=ju;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_PROGRAM_FOR_EXECUTION=Lu;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_RENT_PAYING_ACCOUNT=Vu;exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_WRITABLE_ACCOUNT=vu;exports.SOLANA_ERROR__TRANSACTION_ERROR__MAX_LOADED_ACCOUNTS_DATA_SIZE_EXCEEDED=$u;exports.SOLANA_ERROR__TRANSACTION_ERROR__MISSING_SIGNATURE_FOR_FEE=Cu;exports.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_ACCOUNT_NOT_FOUND=Su;exports.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED=Jo;exports.SOLANA_ERROR__TRANSACTION_ERROR__RESANITIZATION_NEEDED=Ku;exports.SOLANA_ERROR__TRANSACTION_ERROR__SANITIZE_FAILURE=Du;exports.SOLANA_ERROR__TRANSACTION_ERROR__SIGNATURE_FAILURE=pu;exports.SOLANA_ERROR__TRANSACTION_ERROR__TOO_MANY_ACCOUNT_LOCKS=Mu;exports.SOLANA_ERROR__TRANSACTION_ERROR__UNBALANCED_TRANSACTION=Xu;exports.SOLANA_ERROR__TRANSACTION_ERROR__UNKNOWN=Yo;exports.SOLANA_ERROR__TRANSACTION_ERROR__UNSUPPORTED_VERSION=yu;exports.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT=xu;exports.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT=Hu;exports.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT=Uu;exports.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_BLOCK_COST_LIMIT=wu;exports.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_VOTE_COST_LIMIT=Gu;exports.SOLANA_ERROR__TRANSACTION__ADDRESSES_CANNOT_SIGN_TRANSACTION=Mo;exports.SOLANA_ERROR__TRANSACTION__ADDRESS_MISSING=du;exports.SOLANA_ERROR__TRANSACTION__CANNOT_DECODE_EMPTY_TRANSACTION_BYTES=Vo;exports.SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_MESSAGE_BYTES=zo;exports.SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_SIGNATURES=Fo;exports.SOLANA_ERROR__TRANSACTION__EXCEEDS_SIZE_LIMIT=yt;exports.SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME=Dt;exports.SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME=bt;exports.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_CONTENTS_MISSING=wo;exports.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_INDEX_OUT_OF_RANGE=yo;exports.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_FEE_PAYER_MISSING=vo;exports.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_INSTRUCTION_PROGRAM_ADDRESS_NOT_FOUND=Pt;exports.SOLANA_ERROR__TRANSACTION__FAILED_TO_ESTIMATE_COMPUTE_LIMIT=Ye;exports.SOLANA_ERROR__TRANSACTION__FAILED_TO_ESTIMATE_LOADED_ACCOUNTS_DATA_SIZE_LIMIT=dt;exports.SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_COMPUTE_LIMIT=We;exports.SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_RESOURCE_LIMITS=Ln;exports.SOLANA_ERROR__TRANSACTION__FEE_PAYER_MISSING=Ru;exports.SOLANA_ERROR__TRANSACTION__FEE_PAYER_SIGNATURE_MISSING=xo;exports.SOLANA_ERROR__TRANSACTION__INSTRUCTION_HEADERS_PAYLOADS_MISMATCH=Xo;exports.SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_MASK_PRIORITY_FEE_BITS=$o;exports.SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_VALUE_KIND=Ko;exports.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_ACCOUNT_INDEX=jo;exports.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_MUST_BE_ADVANCE_NONCE=Au;exports.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_INSTRUCTIONS_MISSING=lu;exports.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_CANNOT_PAY_FEES=Lt;exports.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE=Xe;exports.SOLANA_ERROR__TRANSACTION__MALFORMED_MESSAGE_BYTES=ko;exports.SOLANA_ERROR__TRANSACTION__MESSAGE_SIGNATURES_MISMATCH=wt;exports.SOLANA_ERROR__TRANSACTION__NONCE_ACCOUNT_CANNOT_BE_IN_LOOKUP_TABLE=Bo;exports.SOLANA_ERROR__TRANSACTION__SIGNATURES_MISSING=Uo;exports.SOLANA_ERROR__TRANSACTION__SIGNATURE_COUNT_TOO_HIGH_FOR_TRANSACTION_BYTES=Ho;exports.SOLANA_ERROR__TRANSACTION__TOO_MANY_ACCOUNTS_IN_INSTRUCTION=rn;exports.SOLANA_ERROR__TRANSACTION__TOO_MANY_ACCOUNT_ADDRESSES=nn;exports.SOLANA_ERROR__TRANSACTION__TOO_MANY_INSTRUCTIONS=tn;exports.SOLANA_ERROR__TRANSACTION__TOO_MANY_SIGNER_ADDRESSES=en;exports.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_NOT_SUPPORTED=Oe;exports.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE=Po;exports.SOLANA_ERROR__TRANSACTION__VERSION_ZERO_MUST_BE_ENCODED_WITH_SIGNATURES_FIRST=Go;exports.SOLANA_ERROR__WALLET__ACCOUNT_NOT_AVAILABLE=od;exports.SOLANA_ERROR__WALLET__NOT_CONNECTED=td;exports.SOLANA_ERROR__WALLET__NO_SIGNER_CONNECTED=rd;exports.SOLANA_ERROR__WALLET__SIGNER_NOT_AVAILABLE=id;exports.SolanaError=_;exports.TRANSACTION_PACKET_HEADER=Wl;exports.TRANSACTION_PACKET_SIZE=Yl;exports.TRANSACTION_SIZE_LIMIT=Ng;exports.absoluteBinaryFixedPoint=QE;exports.absoluteDecimalFixedPoint=hS;exports.addBinaryFixedPoint=YE;exports.addCodecSentinel=SO;exports.addCodecSizePrefix=NO;exports.addDecimalFixedPoint=TS;exports.addDecoderSentinel=ld;exports.addDecoderSizePrefix=Ws;exports.addEncoderSentinel=Rd;exports.addEncoderSizePrefix=Ys;exports.addSignersToInstruction=Xf;exports.addSignersToTransactionMessage=_C;exports.address=oa;exports.airdropFactory=$C;exports.appendTransactionMessageInstruction=fe;exports.appendTransactionMessageInstructionPlan=vg;exports.appendTransactionMessageInstructions=Ve;exports.assertAccountDecoded=VO;exports.assertAccountExists=KO;exports.assertAccountsDecoded=bd;exports.assertAccountsExist=wd;exports.assertByteArrayHasEnoughBytesForCodec=xe;exports.assertByteArrayIsNotEmptyForCodec=zt;exports.assertByteArrayOffsetIsNotOutOfRange=wn;exports.assertContainsResolvableTransactionSendingSigner=Tc;exports.assertIsAddress=Pe;exports.assertIsBinaryFixedPoint=wR;exports.assertIsBlockhash=Ta;exports.assertIsCanceledSingleTransactionPlanResult=jg;exports.assertIsDecimalFixedPoint=MR;exports.assertIsFailedSingleTransactionPlanResult=$g;exports.assertIsFixedSize=Ue;exports.assertIsFullySignedOffchainMessageEnvelope=lc;exports.assertIsFullySignedTransaction=rt;exports.assertIsInstructionForProgram=$S;exports.assertIsInstructionWithAccounts=KS;exports.assertIsInstructionWithData=YS;exports.assertIsKeyPairSigner=lC;exports.assertIsLamports=$R;exports.assertIsMessageModifyingSigner=SC;exports.assertIsMessagePackerInstructionPlan=Lg;exports.assertIsMessagePartialSigner=RC;exports.assertIsMessageSigner=NC;exports.assertIsNonDivisibleSequentialInstructionPlan=bg;exports.assertIsNonDivisibleSequentialTransactionPlan=Mg;exports.assertIsNonDivisibleSequentialTransactionPlanResult=Xg;exports.assertIsOffCurveAddress=xd;exports.assertIsOffchainMessageApplicationDomain=kA;exports.assertIsOffchainMessageContentRestrictedAsciiOf1232BytesMax=oc;exports.assertIsOffchainMessageContentUtf8Of1232BytesMax=sc;exports.assertIsOffchainMessageContentUtf8Of65535BytesMax=ac;exports.assertIsOffchainMessageRestrictedAsciiOf1232BytesMax=cc;exports.assertIsOffchainMessageUtf8Of1232BytesMax=_c;exports.assertIsOffchainMessageUtf8Of65535BytesMax=uc;exports.assertIsParallelInstructionPlan=Pg;exports.assertIsParallelTransactionPlan=Fg;exports.assertIsParallelTransactionPlanResult=Yg;exports.assertIsProgramDerivedAddress=cE;exports.assertIsSendableTransaction=gg;exports.assertIsSequentialInstructionPlan=Dg;exports.assertIsSequentialTransactionPlan=xg;exports.assertIsSequentialTransactionPlanResult=Kg;exports.assertIsSignature=vl;exports.assertIsSignatureBytes=xa;exports.assertIsSingleInstructionPlan=pg;exports.assertIsSingleTransactionPlan=Ug;exports.assertIsSingleTransactionPlanResult=Gg;exports.assertIsStringifiedBigInt=qR;exports.assertIsStringifiedNumber=JR;exports.assertIsSuccessfulSingleTransactionPlanResult=Hg;exports.assertIsSuccessfulTransactionPlanResult=Wg;exports.assertIsTransactionMessageWithBlockhashLifetime=mN;exports.assertIsTransactionMessageWithDurableNonceLifetime=LT;exports.assertIsTransactionMessageWithSingleSendingSigner=Zf;exports.assertIsTransactionMessageWithinSizeLimit=mg;exports.assertIsTransactionModifyingSigner=oC;exports.assertIsTransactionPartialSigner=sC;exports.assertIsTransactionSendingSigner=aC;exports.assertIsTransactionSigner=cC;exports.assertIsTransactionWithBlockhashLifetime=Og;exports.assertIsTransactionWithDurableNonceLifetime=Eg;exports.assertIsTransactionWithinSizeLimit=Jl;exports.assertIsUnixTimestamp=el;exports.assertIsVariableSize=EO;exports.assertNumberIsBetweenForCodec=sa;exports.assertValidBaseString=Js;exports.assertValidNumberOfItemsForCodec=aa;exports.binaryFixedPoint=lS;exports.binaryFixedPointToBase10=la;exports.binaryFixedPointToNumber=SS;exports.binaryFixedPointToString=OS;exports.blockhash=QS;exports.bytesEqual=Hn;exports.canceledSingleTransactionPlanResult=mA;exports.cmpBinaryFixedPoint=ln;exports.cmpDecimalFixedPoint=An;exports.combineCodec=f;exports.commitmentComparator=rr;exports.compileOffchainMessageEnvelope=rf;exports.compileOffchainMessageV0Envelope=nf;exports.compileOffchainMessageV1Envelope=tf;exports.compileTransaction=En;exports.compileTransactionMessage=fl;exports.compressTransactionMessageUsingAddressLookupTables=_T;exports.containsBytes=Gn;exports.createAddressWithSeed=dE;exports.createAsyncGeneratorWithInitialValueAndSlotTracking=zC;exports.createClient=sf;exports.createCodec=dd;exports.createDecoder=T;exports.createDecoderThatConsumesEntireByteArray=TO;exports.createDefaultRpcSubscriptionsChannelCreator=nC;exports.createDefaultRpcSubscriptionsTransport=Gf;exports.createDefaultRpcTransport=hf;exports.createDefaultSolanaRpcSubscriptionsChannelCreator=kf;exports.createEmptyClient=KI;exports.createEncoder=I;exports.createFailedToExecuteTransactionPlanError=wA;exports.createFailedToSendTransactionError=Zg;exports.createFailedToSendTransactionsError=Qg;exports.createJsonRpcApi=Af;exports.createKeyPairFromBytes=xl;exports.createKeyPairFromPrivateKeyBytes=Ml;exports.createKeyPairSignerFromBytes=fC;exports.createKeyPairSignerFromPrivateKeyBytes=OC;exports.createNoopSigner=TC;exports.createPrivateKeyFromBytes=St;exports.createReactiveStoreWithInitialValueAndSlotTracking=GC;exports.createRpc=lf;exports.createRpcMessage=Tt;exports.createRpcSubscriptionsApi=Df;exports.createRpcSubscriptionsTransportFromChannelCreator=Hf;exports.createSignableMessage=yC;exports.createSignerFromKeyPair=st;exports.createSolanaRpc=Gm;exports.createSolanaRpcApi=gf;exports.createSolanaRpcFromTransport=pf;exports.createSolanaRpcSubscriptions=tC;exports.createSolanaRpcSubscriptionsApi=yf;exports.createSolanaRpcSubscriptionsApi_UNSTABLE=Wm;exports.createSolanaRpcSubscriptionsFromTransport=jf;exports.createSolanaRpcSubscriptions_UNSTABLE=rC;exports.createSubscriptionRpc=Lf;exports.createTransactionMessage=dr;exports.createTransactionPlanExecutor=eI;exports.createTransactionPlanner=oI;exports.decimalFixedPoint=UR;exports.decimalFixedPointToNumber=BS;exports.decimalFixedPointToString=MS;exports.decodeAccount=zO;exports.decompileTransactionMessage=Pl;exports.decompileTransactionMessageFetchingLookupTables=WC;exports.devnet=rN;exports.divideBinaryFixedPoint=JE;exports.divideDecimalFixedPoint=mS;exports.downgradeRoleToNonSigner=WS;exports.downgradeRoleToReadonly=qS;exports.eqBinaryFixedPoint=oS;exports.eqDecimalFixedPoint=LS;exports.estimateAndSetComputeUnitLimitFactory=XC;exports.estimateAndSetResourceLimitsFactory=ZC;exports.estimateComputeUnitLimitFactory=KC;exports.estimateResourceLimitsFactory=JC;exports.everyInstructionPlan=sA;exports.everyTransactionPlan=OA;exports.everyTransactionPlanResult=Ja;exports.executeRpcPubSubSubscriptionPlan=Pf;exports.extendClient=cf;exports.failedSingleTransactionPlanResult=IA;exports.fetchAddressesForLookupTables=iO;exports.fetchEncodedAccount=HO;exports.fetchEncodedAccounts=jO;exports.fetchJsonParsedAccount=$O;exports.fetchJsonParsedAccounts=Pd;exports.fillTransactionMessageProvisoryComputeUnitLimit=YC;exports.fillTransactionMessageProvisoryResourceLimits=QC;exports.findInstructionPlan=oA;exports.findTransactionPlan=fA;exports.findTransactionPlanResult=qa;exports.fixBytes=ud;exports.fixCodecSize=gO;exports.fixDecoderSize=se;exports.fixEncoderSize=Se;exports.flattenInstructionPlan=Ha;exports.flattenTransactionPlan=Xa;exports.flattenTransactionPlanResult=gr;exports.formatBinaryFixedPoint=ES;exports.formatDecimalFixedPoint=FS;exports.generateKeyPair=Fa;exports.generateKeyPairSigner=AC;exports.getAddressCodec=Yt;exports.getAddressComparator=Wn;exports.getAddressDecoder=G;exports.getAddressEncoder=ae;exports.getAddressFromPublicKey=Wt;exports.getArrayCodec=pE;exports.getArrayDecoder=D;exports.getArrayEncoder=P;exports.getBase10Codec=wO;exports.getBase10Decoder=PO;exports.getBase10Encoder=bO;exports.getBase16Codec=yO;exports.getBase16Decoder=md;exports.getBase16Encoder=Id;exports.getBase58Codec=vO;exports.getBase58Decoder=Kn;exports.getBase58Encoder=jn;exports.getBase64Codec=xO;exports.getBase64Decoder=na;exports.getBase64EncodedWireTransaction=Sr;exports.getBase64Encoder=Kt;exports.getBaseXCodec=Zs;exports.getBaseXDecoder=jt;exports.getBaseXEncoder=$t;exports.getBaseXResliceCodec=UO;exports.getBaseXResliceDecoder=hd;exports.getBaseXResliceEncoder=Cd;exports.getBinaryFixedPointCodec=iS;exports.getBinaryFixedPointDecoder=LR;exports.getBinaryFixedPointEncoder=pR;exports.getBitArrayCodec=LE;exports.getBitArrayDecoder=tR;exports.getBitArrayEncoder=nR;exports.getBlockhashCodec=eN;exports.getBlockhashComparator=nN;exports.getBlockhashDecoder=GR;exports.getBlockhashEncoder=VR;exports.getBooleanCodec=DE;exports.getBooleanDecoder=Qt;exports.getBooleanEncoder=Zt;exports.getBytesCodec=bE;exports.getBytesDecoder=oe;exports.getBytesEncoder=te;exports.getChannelPoolingChannelCreator=Mf;exports.getCompiledTransactionMessageCodec=XN;exports.getCompiledTransactionMessageDecoder=dl;exports.getCompiledTransactionMessageEncoder=ba;exports.getConstantCodec=wE;exports.getConstantDecoder=Jn;exports.getConstantEncoder=qn;exports.getDecimalFixedPointCodec=pS;exports.getDecimalFixedPointDecoder=vR;exports.getDecimalFixedPointEncoder=yR;exports.getDefaultLamportsCodec=cN;exports.getDefaultLamportsDecoder=KR;exports.getDefaultLamportsEncoder=jR;exports.getDiscriminatedUnionCodec=vE;exports.getDiscriminatedUnionDecoder=aR;exports.getDiscriminatedUnionEncoder=sR;exports.getEncodedSize=ue;exports.getEnumCodec=FE;exports.getEnumDecoder=_a;exports.getEnumEncoder=ca;exports.getF32Codec=RE;exports.getF32Decoder=zd;exports.getF32Encoder=kd;exports.getF64Codec=lE;exports.getF64Decoder=Gd;exports.getF64Encoder=Vd;exports.getFirstFailedSingleTransactionPlanResult=qg;exports.getHiddenPrefixCodec=BE;exports.getHiddenPrefixDecoder=er;exports.getHiddenPrefixEncoder=ua;exports.getHiddenSuffixCodec=kE;exports.getHiddenSuffixDecoder=RR;exports.getHiddenSuffixEncoder=dR;exports.getI128Codec=AE;exports.getI128Decoder=$d;exports.getI128Encoder=Hd;exports.getI16Codec=fE;exports.getI16Decoder=Kd;exports.getI16Encoder=jd;exports.getI32Codec=OE;exports.getI32Decoder=Yd;exports.getI32Encoder=Xd;exports.getI64Codec=EE;exports.getI64Decoder=qd;exports.getI64Encoder=Wd;exports.getI8Codec=SE;exports.getI8Decoder=Zd;exports.getI8Encoder=Jd;exports.getLamportsCodec=_N;exports.getLamportsDecoder=ma;exports.getLamportsEncoder=Ia;exports.getLinearMessagePackerInstructionPlan=wg;exports.getLiteralUnionCodec=zE;exports.getLiteralUnionDecoder=AR;exports.getLiteralUnionEncoder=lR;exports.getMapCodec=VE;exports.getMapDecoder=OR;exports.getMapEncoder=fR;exports.getMessagePackerInstructionPlanFromInstructions=cA;exports.getMinimumBalanceForRentExemption=eh;exports.getNullableCodec=HE;exports.getNullableDecoder=ER;exports.getNullableEncoder=da;exports.getOffchainMessageApplicationDomainCodec=RI;exports.getOffchainMessageApplicationDomainDecoder=tc;exports.getOffchainMessageApplicationDomainEncoder=nc;exports.getOffchainMessageCodec=GI;exports.getOffchainMessageDecoder=ZA;exports.getOffchainMessageEncoder=QA;exports.getOffchainMessageEnvelopeCodec=EI;exports.getOffchainMessageEnvelopeDecoder=YA;exports.getOffchainMessageEnvelopeEncoder=XA;exports.getOffchainMessageV0Codec=BI;exports.getOffchainMessageV0Decoder=dc;exports.getOffchainMessageV0Encoder=vn;exports.getOffchainMessageV1Codec=VI;exports.getOffchainMessageV1Decoder=Rc;exports.getOffchainMessageV1Encoder=Un;exports.getOptionCodec=GS;exports.getOptionDecoder=kR;exports.getOptionEncoder=BR;exports.getPatternMatchCodec=$E;exports.getPatternMatchDecoder=Ra;exports.getPatternMatchEncoder=nr;exports.getPredicateCodec=jE;exports.getPredicateDecoder=NR;exports.getPredicateEncoder=SR;exports.getProgramDerivedAddress=uE;exports.getPublicKeyFromAddress=Md;exports.getPublicKeyFromPrivateKey=yl;exports.getReallocMessagePackerInstructionPlan=yg;exports.getRpcSubscriptionsChannelWithAutoping=xf;exports.getRpcSubscriptionsChannelWithBigIntJSONSerialization=Bf;exports.getRpcSubscriptionsChannelWithJSONSerialization=Ff;exports.getRpcSubscriptionsTransportWithSubscriptionCoalescing=Vf;exports.getSetCodec=KE;exports.getSetDecoder=gR;exports.getSetEncoder=TR;exports.getShortU16Codec=NE;exports.getShortU16Decoder=q;exports.getShortU16Encoder=ie;exports.getSignatureFromTransaction=Sn;exports.getSignersFromInstruction=Kf;exports.getSignersFromOffchainMessage=qf;exports.getSignersFromTransactionMessage=mr;exports.getSolCodec=ON;exports.getSolDecoder=WR;exports.getSolEncoder=YR;exports.getSolanaErrorFromInstructionError=Ks;exports.getSolanaErrorFromJsonRpcError=Pn;exports.getSolanaErrorFromTransactionError=ge;exports.getStructCodec=XE;exports.getStructDecoder=X;exports.getStructEncoder=x;exports.getTransactionCodec=ug;exports.getTransactionDecoder=kl;exports.getTransactionEncoder=Er;exports.getTransactionLifetimeConstraintFromCompiledTransactionMessage=fg;exports.getTransactionMessageComputeUnitLimit=fn;exports.getTransactionMessageComputeUnitPrice=pl;exports.getTransactionMessageHeapSize=wl;exports.getTransactionMessageLoadedAccountsDataSizeLimit=fr;exports.getTransactionMessagePriorityFeeLamports=GT;exports.getTransactionMessageSize=Z;exports.getTransactionMessageSizeLimit=Q;exports.getTransactionSize=Nr;exports.getTransactionSizeLimit=za;exports.getTransactionVersionCodec=yN;exports.getTransactionVersionDecoder=ze;exports.getTransactionVersionEncoder=sr;exports.getTupleCodec=yE;exports.getTupleDecoder=z;exports.getTupleEncoder=J;exports.getU128Codec=TE;exports.getU128Decoder=eR;exports.getU128Encoder=Qd;exports.getU16Codec=gE;exports.getU16Decoder=Jt;exports.getU16Encoder=qt;exports.getU32Codec=IE;exports.getU32Decoder=he;exports.getU32Encoder=Ce;exports.getU64Codec=mE;exports.getU64Decoder=_n;exports.getU64Encoder=cn;exports.getU8Codec=CE;exports.getU8Decoder=p;exports.getU8Encoder=b;exports.getUnionCodec=rR;exports.getUnionDecoder=Be;exports.getUnionEncoder=Fe;exports.getUnitCodec=GE;exports.getUnitDecoder=Ae;exports.getUnitEncoder=Ne;exports.getUtf8Codec=BO;exports.getUtf8Decoder=Xt;exports.getUtf8Encoder=j;exports.grindKeyPair=ZT;exports.grindKeyPairSigner=EC;exports.grindKeyPairSigners=Wf;exports.grindKeyPairs=Ba;exports.gtBinaryFixedPoint=cS;exports.gtDecimalFixedPoint=PS;exports.gteBinaryFixedPoint=_S;exports.gteDecimalFixedPoint=wS;exports.isAddress=an;exports.isAdvanceNonceAccountInstruction=lr;exports.isBinaryFixedPoint=NS;exports.isBlockhash=Na;exports.isCanceledSingleTransactionPlanResult=hA;exports.isDecimalFixedPoint=kS;exports.isFailedSingleTransactionPlanResult=CA;exports.isFixedSize=h;exports.isFullySignedOffchainMessageEnvelope=$I;exports.isFullySignedTransaction=jl;exports.isInstructionForProgram=HS;exports.isInstructionPlan=Ql;exports.isInstructionWithAccounts=jS;exports.isInstructionWithData=XS;exports.isJsonRpcPayload=fc;exports.isKeyPairSigner=Yf;exports.isLamports=aN;exports.isMessageModifyingSigner=Cr;exports.isMessagePackerInstructionPlan=nA;exports.isMessagePartialSigner=Tn;exports.isMessageSigner=Nc;exports.isNonDivisibleSequentialInstructionPlan=rA;exports.isNonDivisibleSequentialTransactionPlan=lA;exports.isNonDivisibleSequentialTransactionPlanResult=LA;exports.isNone=zS;exports.isOffCurveAddress=Ud;exports.isOffchainMessageApplicationDomain=dI;exports.isOffchainMessageContentRestrictedAsciiOf1232BytesMax=NI;exports.isOffchainMessageContentUtf8Of1232BytesMax=gI;exports.isOffchainMessageContentUtf8Of65535BytesMax=mI;exports.isOption=Ot;exports.isParallelInstructionPlan=iA;exports.isParallelTransactionPlan=AA;exports.isParallelTransactionPlanResult=DA;exports.isProgramDerivedAddress=aE;exports.isProgramError=JI;exports.isSendableTransaction=Tg;exports.isSequentialInstructionPlan=tA;exports.isSequentialTransactionPlan=RA;exports.isSequentialTransactionPlanResult=pA;exports.isSignature=KT;exports.isSignatureBytes=Ul;exports.isSignerRole=V;exports.isSingleInstructionPlan=eA;exports.isSingleTransactionPlan=dA;exports.isSingleTransactionPlanResult=Ya;exports.isSolanaError=y;exports.isSome=yn;exports.isStringifiedBigInt=EN;exports.isStringifiedNumber=NN;exports.isSuccessfulSingleTransactionPlanResult=Wa;exports.isSuccessfulTransactionPlanResult=bA;exports.isTransactionMessageWithBlockhashLifetime=Ca;exports.isTransactionMessageWithDurableNonceLifetime=On;exports.isTransactionMessageWithSingleSendingSigner=hC;exports.isTransactionMessageWithinSizeLimit=Ig;exports.isTransactionModifyingSigner=Le;exports.isTransactionPartialSigner=Re;exports.isTransactionPlan=Ka;exports.isTransactionPlanResult=Vg;exports.isTransactionSendingSigner=it;exports.isTransactionSigner=ot;exports.isTransactionWithBlockhashLifetime=Hl;exports.isTransactionWithDurableNonceLifetime=$l;exports.isTransactionWithinSizeLimit=ql;exports.isUnixTimestamp=gN;exports.isVariableSize=Xs;exports.isWritableRole=de;exports.lamports=ga;exports.lamportsToSol=fN;exports.ltBinaryFixedPoint=sS;exports.ltDecimalFixedPoint=DS;exports.lteBinaryFixedPoint=aS;exports.lteDecimalFixedPoint=bS;exports.mainnet=tN;exports.mergeBytes=OO;exports.mergeRoles=Et;exports.multiplyBinaryFixedPoint=qE;exports.multiplyDecimalFixedPoint=IS;exports.negateBinaryFixedPoint=ZE;exports.negateDecimalFixedPoint=CS;exports.nonDivisibleSequentialInstructionPlan=hg;exports.nonDivisibleSequentialTransactionPlan=uA;exports.nonDivisibleSequentialTransactionPlanResult=zg;exports.none=Ea;exports.offCurveAddress=sE;exports.offchainMessageApplicationDomain=zA;exports.offchainMessageContentRestrictedAsciiOf1232BytesMax=TI;exports.offchainMessageContentUtf8Of1232BytesMax=II;exports.offchainMessageContentUtf8Of65535BytesMax=CI;exports.offsetCodec=IO;exports.offsetDecoder=$n;exports.offsetEncoder=Vt;exports.padBytes=_d;exports.padLeftCodec=CO;exports.padLeftDecoder=Sd;exports.padLeftEncoder=Od;exports.padNullCharacters=MO;exports.padRightCodec=hO;exports.padRightDecoder=qs;exports.padRightEncoder=Ed;exports.parallelInstructionPlan=Cg;exports.parallelTransactionPlan=_A;exports.parallelTransactionPlanResult=NA;exports.parseBase58RpcAccount=GO;exports.parseBase64RpcAccount=Xn;exports.parseInstructionOrTransactionPlanInput=Bg;exports.parseInstructionPlanInput=Nt;exports.parseJsonRpcAccount=ta;exports.parseTransactionPlanInput=$e;exports.partiallySignOffchainMessageEnvelope=of;exports.partiallySignOffchainMessageWithSigners=Jf;exports.partiallySignTransaction=ka;exports.partiallySignTransactionMessageWithSigners=Qf;exports.partiallySignTransactionWithSigners=gc;exports.passthroughFailedTransactionPlanExecution=iI;exports.pipe=Y;exports.prependTransactionMessageInstruction=ST;exports.prependTransactionMessageInstructions=hl;exports.ratioBinaryFixedPoint=fS;exports.ratioDecimalFixedPoint=xS;exports.rawBinaryFixedPoint=AS;exports.rawDecimalFixedPoint=xR;exports.removeNullCharacters=Ld;exports.rescaleBinaryFixedPoint=RS;exports.rescaleDecimalFixedPoint=US;exports.resizeCodec=mO;exports.resizeDecoder=Ht;exports.resizeEncoder=Gt;exports.reverseCodec=pO;exports.reverseDecoder=gd;exports.reverseEncoder=Td;exports.safeCaptureStackTrace=Vn;exports.sendAndConfirmDurableNonceTransactionFactory=ih;exports.sendAndConfirmTransactionFactory=oh;exports.sendTransactionWithoutConfirmingFactory=sh;exports.sequentialInstructionPlan=Zl;exports.sequentialTransactionPlan=$a;exports.sequentialTransactionPlanResult=SA;exports.setTransactionMessageComputeUnitLimit=Ge;exports.setTransactionMessageComputeUnitPrice=IT;exports.setTransactionMessageFeePayer=Rr;exports.setTransactionMessageFeePayerSigner=dC;exports.setTransactionMessageHeapSize=MT;exports.setTransactionMessageLifetimeUsingBlockhash=ir;exports.setTransactionMessageLifetimeUsingDurableNonce=Ar;exports.setTransactionMessageLoadedAccountsDataSizeLimit=Or;exports.setTransactionMessagePriorityFeeLamports=HT;exports.signAndSendTransactionMessageWithSigners=LC;exports.signAndSendTransactionWithSigners=eO;exports.signBytes=tt;exports.signOffchainMessageEnvelope=HI;exports.signOffchainMessageWithSigners=gC;exports.signTransaction=Sg;exports.signTransactionMessageWithSigners=pC;exports.signTransactionWithSigners=DC;exports.signature=XT;exports.signatureBytes=YT;exports.singleInstructionPlan=Va;exports.singleTransactionPlan=Tr;exports.sol=lN;exports.solToLamports=AN;exports.some=Oa;exports.stringifiedBigInt=SN;exports.stringifiedNumber=TN;exports.subtractBinaryFixedPoint=WE;exports.subtractDecimalFixedPoint=gS;exports.successfulSingleTransactionPlanResult=gA;exports.successfulSingleTransactionPlanResultFromTransaction=TA;exports.summarizeTransactionPlanResult=Jg;exports.testnet=iN;exports.toArrayBuffer=qe;exports.toSignedBinaryFixedPoint=dS;exports.toSignedDecimalFixedPoint=vS;exports.toUnsignedBinaryFixedPoint=uS;exports.toUnsignedDecimalFixedPoint=yS;exports.transformChannelInboundMessages=Oc;exports.transformChannelOutboundMessages=Ec;exports.transformCodec=LO;exports.transformDecoder=g;exports.transformEncoder=N;exports.transformInstructionPlan=aA;exports.transformTransactionPlan=EA;exports.transformTransactionPlanResult=PA;exports.unixTimestamp=IN;exports.unwrapOption=VS;exports.unwrapOptionRecursively=Jr;exports.unwrapSimulationError=fO;exports.upgradeRoleToSigner=JS;exports.upgradeRoleToWritable=ZS;exports.verifyOffchainMessageEnvelope=jI;exports.verifySignature=Ma;exports.withCleanup=YI;exports.wrapNullable=FR;exports.writeKeyPair=Fl;exports.writeKeyPairSigner=vC;