@revibase/core 0.0.1

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Revibase
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,61 @@
1
+ ## Installation
2
+
3
+ ```bash
4
+ npm install @revibase/wallet
5
+ ```
6
+
7
+ ## Quick Start
8
+
9
+ This SDK requires a Helius RPC endpoint to connect to the Solana network.
10
+ You can get one from Helius or any other Solana RPC provider that supports Helius features. (DAS API & Photon RPC)
11
+
12
+ ## Initialize the SDK
13
+
14
+ ```bash
15
+ import { initializeMultiWallet } from "@revibase/wallet";
16
+
17
+ initializeMultiWallet({
18
+ rpcEndpoint: INSERT_YOUR_HELIUS_RPC_ENDPOINT_HERE
19
+ });
20
+ ```
21
+
22
+ ## Use with Solana Wallet Adapter
23
+
24
+ Once initialized, it is now compatible with the Solana Wallet Adapter.
25
+ Simply integrate it into your existing Solana wallet flow.
26
+
27
+ ## Example
28
+
29
+ ```bash
30
+
31
+ import { useEffect } from "react";
32
+ import { initializeMultiWallet } from "@revibase/wallet";
33
+ import { ConnectionProvider, WalletProvider } from "@solana/wallet-adapter-react";
34
+ import { WalletModalProvider, WalletMultiButton } from "@solana/wallet-adapter-react-ui";
35
+
36
+
37
+ export default function App() {
38
+
39
+ useEffect(() => {
40
+ initializeMultiWallet({
41
+ rpcEndpoint: INSERT_YOUR_HELIUS_RPC_ENDPOINT_HERE
42
+ });
43
+ }, []);
44
+
45
+
46
+ return (
47
+ <ConnectionProvider endpoint={INSERT_YOUR_HELIUS_RPC_ENDPOINT_HERE}>
48
+ <WalletProvider wallets={[]} autoConnect>
49
+ <WalletModalProvider>
50
+ <div>
51
+ <WalletMultiButton />
52
+ {...}
53
+ </div>
54
+ </WalletModalProvider>
55
+ </WalletProvider>
56
+ </ConnectionProvider>
57
+ );
58
+ }
59
+
60
+
61
+ ```
package/dist/index.cjs ADDED
@@ -0,0 +1,3 @@
1
+ 'use strict';var gill=require('gill'),Vx=require('bn.js'),stateless_js=require('@lightprotocol/stateless.js'),sha256=require('@noble/hashes/sha256'),web3_js=require('@solana/web3.js'),programs=require('gill/programs'),tinyCbor=require('@levischuck/tiny-cbor'),p256=require('@noble/curves/p256'),server=require('@simplewebauthn/server');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Vx__default=/*#__PURE__*/_interopDefault(Vx);var hn=new Uint8Array([201,232,212,229,59,241,106,197]);function mI(){return gill.fixEncoderSize(gill.getBytesEncoder(),8).encode(hn)}function Bu(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),8)],["numOrigins",gill.getU16Encoder()],["authority",gill.getAddressEncoder()],["rpIdHash",gill.fixEncoderSize(gill.getBytesEncoder(),32)],["bump",gill.getU8Encoder()],["isDisabled",gill.getU8Encoder()],["rpIdLength",gill.getU8Encoder()],["rpId",gill.fixEncoderSize(gill.getBytesEncoder(),255)],["origins",gill.fixEncoderSize(gill.getBytesEncoder(),413)],["metadataUrlLength",gill.getU8Encoder()],["metadataUrl",gill.fixEncoderSize(gill.getBytesEncoder(),100)]]),e=>({...e,discriminator:hn}))}function vn(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),8)],["numOrigins",gill.getU16Decoder()],["authority",gill.getAddressDecoder()],["rpIdHash",gill.fixDecoderSize(gill.getBytesDecoder(),32)],["bump",gill.getU8Decoder()],["isDisabled",gill.getU8Decoder()],["rpIdLength",gill.getU8Decoder()],["rpId",gill.fixDecoderSize(gill.getBytesDecoder(),255)],["origins",gill.fixDecoderSize(gill.getBytesDecoder(),413)],["metadataUrlLength",gill.getU8Decoder()],["metadataUrl",gill.fixDecoderSize(gill.getBytesDecoder(),100)]])}function pI(){return gill.combineCodec(Bu(),vn())}function bn(e){return gill.decodeAccount(e,vn())}async function _n(e,n,r){let s=await Lu(e,n,r);return gill.assertAccountExists(s),s}async function Lu(e,n,r){let s=await gill.fetchEncodedAccount(e,n,r);return bn(s)}async function fI(e,n,r){let s=await ku(e,n,r);return gill.assertAccountsExist(s),s}async function ku(e,n,r){return (await gill.fetchEncodedAccounts(e,n,r)).map(t=>bn(t))}function lI(){return 846}var On=new Uint8Array([42,206,176,58,175,129,130,233]);function xI(){return gill.fixEncoderSize(gill.getBytesEncoder(),8).encode(On)}function Xu(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),8)],["index",gill.getU128Encoder()]]),e=>({...e,discriminator:On}))}function Bn(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),8)],["index",gill.getU128Decoder()]])}function II(){return gill.combineCodec(Xu(),Bn())}function Ln(e){return gill.decodeAccount(e,Bn())}async function CI(e,n,r){let s=await $u(e,n,r);return gill.assertAccountExists(s),s}async function $u(e,n,r){let s=await gill.fetchEncodedAccount(e,n,r);return Ln(s)}async function DI(e,n,r){let s=await Qu(e,n,r);return gill.assertAccountsExist(s),s}async function Qu(e,n,r){return (await gill.fetchEncodedAccounts(e,n,r)).map(t=>Ln(t))}function MI(){return 24}function or(){return gill.getStructEncoder([["member",Ce()],["verifyArgs",gill.getOptionEncoder(B())],["userArgs",Je()],["setAsDelegate",gill.getBooleanEncoder()]])}function cr(){return gill.getStructDecoder([["member",De()],["verifyArgs",gill.getOptionDecoder(L())],["userArgs",je()],["setAsDelegate",gill.getBooleanDecoder()]])}function hI(){return gill.combineCodec(or(),cr())}function ar(){return gill.getStructEncoder([["programAddressIndex",gill.getU8Encoder()],["accountIndices",gill.addEncoderSizePrefix(gill.getBytesEncoder(),gill.getU32Encoder())],["data",gill.addEncoderSizePrefix(gill.getBytesEncoder(),gill.getU32Encoder())]])}function ir(){return gill.getStructDecoder([["programAddressIndex",gill.getU8Decoder()],["accountIndices",gill.addDecoderSizePrefix(gill.getBytesDecoder(),gill.getU32Decoder())],["data",gill.addDecoderSizePrefix(gill.getBytesDecoder(),gill.getU32Decoder())]])}function _I(){return gill.combineCodec(ar(),ir())}function Ye(){return gill.getStructEncoder([["treeInfo",qe()],["address",gill.fixEncoderSize(gill.getBytesEncoder(),32)],["outputStateTreeIndex",gill.getU8Encoder()]])}function Ze(){return gill.getStructDecoder([["treeInfo",Xe()],["address",gill.fixDecoderSize(gill.getBytesDecoder(),32)],["outputStateTreeIndex",gill.getU8Decoder()]])}function BI(){return gill.combineCodec(Ye(),Ze())}function $e(){return gill.getStructEncoder([["treeInfo",qe()],["address",gill.fixEncoderSize(gill.getBytesEncoder(),32)]])}function Qe(){return gill.getStructDecoder([["treeInfo",Xe()],["address",gill.fixDecoderSize(gill.getBytesDecoder(),32)]])}function NI(){return gill.combineCodec($e(),Qe())}function yr(){return gill.getStructEncoder([["a",gill.fixEncoderSize(gill.getBytesEncoder(),32)],["b",gill.fixEncoderSize(gill.getBytesEncoder(),64)],["c",gill.fixEncoderSize(gill.getBytesEncoder(),32)]])}function mr(){return gill.getStructDecoder([["a",gill.fixDecoderSize(gill.getBytesDecoder(),32)],["b",gill.fixDecoderSize(gill.getBytesDecoder(),64)],["c",gill.fixDecoderSize(gill.getBytesDecoder(),32)]])}function GI(){return gill.combineCodec(yr(),mr())}function et(){return gill.getStructEncoder([["data",gill.getOptionEncoder(tt())]])}function G(){return gill.getStructDecoder([["data",gill.getOptionDecoder(rt())]])}function JI(){return gill.combineCodec(et(),G())}function tt(){return gill.getStructEncoder([["threshold",gill.getU8Encoder()],["bump",gill.getU8Encoder()],["index",gill.getU128Encoder()],["multiWalletBump",gill.getU8Encoder()],["members",gill.getArrayEncoder(Ce())]])}function rt(){return gill.getStructDecoder([["threshold",gill.getU8Decoder()],["bump",gill.getU8Decoder()],["index",gill.getU128Decoder()],["multiWalletBump",gill.getU8Decoder()],["members",gill.getArrayDecoder(De())]])}function qI(){return gill.combineCodec(tt(),rt())}function nt(){return gill.getDiscriminatedUnionEncoder([["EditPermissions",gill.getStructEncoder([["fields",gill.getTupleEncoder([gill.getArrayEncoder(Sr())])]])],["AddMembers",gill.getStructEncoder([["fields",gill.getTupleEncoder([gill.getArrayEncoder(or())])]])],["RemoveMembers",gill.getStructEncoder([["fields",gill.getTupleEncoder([gill.getArrayEncoder(Ir())])]])],["SetThreshold",gill.getStructEncoder([["fields",gill.getTupleEncoder([gill.getU8Encoder()])]])]])}function st(){return gill.getDiscriminatedUnionDecoder([["EditPermissions",gill.getStructDecoder([["fields",gill.getTupleDecoder([gill.getArrayDecoder(xr())])]])],["AddMembers",gill.getStructDecoder([["fields",gill.getTupleDecoder([gill.getArrayDecoder(cr())])]])],["RemoveMembers",gill.getStructDecoder([["fields",gill.getTupleDecoder([gill.getArrayDecoder(Cr())])]])],["SetThreshold",gill.getStructDecoder([["fields",gill.getTupleDecoder([gill.getU8Decoder()])]])]])}function eC(){return gill.combineCodec(nt(),st())}function tC(e,n){return Array.isArray(n)?{__kind:e,fields:n}:{__kind:e,...n??{}}}function rC(e,n){return n.__kind===e}function Dr(){return gill.getStructEncoder([["member",gill.getAddressEncoder()],["isPermanentMember",gill.getBooleanEncoder()],["transactionManagerUrl",gill.getOptionEncoder(gill.addEncoderSizePrefix(gill.getUtf8Encoder(),gill.getU32Encoder()))],["userCreationArgs",Me()]])}function Mr(){return gill.getStructDecoder([["member",gill.getAddressDecoder()],["isPermanentMember",gill.getBooleanDecoder()],["transactionManagerUrl",gill.getOptionDecoder(gill.addDecoderSizePrefix(gill.getUtf8Decoder(),gill.getU32Decoder()))],["userCreationArgs",Ee()]])}function cC(){return gill.combineCodec(Dr(),Mr())}var bt=(s=>(s[s.Add=0]="Add",s[s.Remove=1]="Remove",s[s.Ignore=2]="Ignore",s))(bt||{});function Er(){return gill.getEnumEncoder(bt)}function Pr(){return gill.getEnumDecoder(bt)}function uC(){return gill.combineCodec(Er(),Pr())}function Sr(){return gill.getStructEncoder([["memberKey",ae()],["permissions",ot()],["userArgs",gill.getOptionEncoder(re())],["delegateOperation",Er()]])}function xr(){return gill.getStructDecoder([["memberKey",ie()],["permissions",ct()],["userArgs",gill.getOptionDecoder(ne())],["delegateOperation",Pr()]])}function yC(){return gill.combineCodec(Sr(),xr())}function Rr(){return gill.getStructEncoder([["settingsMutArgs",ye()],["transactionManager",gill.getOptionEncoder(re())]])}function hr(){return gill.getStructDecoder([["settingsMutArgs",me()],["transactionManager",gill.getOptionDecoder(ne())]])}function lC(){return gill.combineCodec(Rr(),hr())}function Ce(){return gill.getStructEncoder([["pubkey",ae()],["permissions",ot()]])}function De(){return gill.getStructDecoder([["pubkey",ie()],["permissions",ct()]])}function IC(){return gill.combineCodec(Ce(),De())}function ae(){return gill.getStructEncoder([["keyType",gill.getU8Encoder()],["key",gill.fixEncoderSize(gill.getBytesEncoder(),33)]])}function ie(){return gill.getStructDecoder([["keyType",gill.getU8Decoder()],["key",gill.fixDecoderSize(gill.getBytesDecoder(),33)]])}function MC(){return gill.combineCodec(ae(),ie())}function at(){return gill.getStructEncoder([["addressMerkleTreePubkeyIndex",gill.getU8Encoder()],["addressQueuePubkeyIndex",gill.getU8Encoder()],["rootIndex",gill.getU16Encoder()]])}function it(){return gill.getStructDecoder([["addressMerkleTreePubkeyIndex",gill.getU8Decoder()],["addressQueuePubkeyIndex",gill.getU8Decoder()],["rootIndex",gill.getU16Decoder()]])}function RC(){return gill.combineCodec(at(),it())}function qe(){return gill.getStructEncoder([["rootIndex",gill.getU16Encoder()],["proveByIndex",gill.getBooleanEncoder()],["merkleTreePubkeyIndex",gill.getU8Encoder()],["queuePubkeyIndex",gill.getU8Encoder()],["leafIndex",gill.getU32Encoder()]])}function Xe(){return gill.getStructDecoder([["rootIndex",gill.getU16Decoder()],["proveByIndex",gill.getBooleanDecoder()],["merkleTreePubkeyIndex",gill.getU8Decoder()],["queuePubkeyIndex",gill.getU8Decoder()],["leafIndex",gill.getU32Decoder()]])}function bC(){return gill.combineCodec(qe(),Xe())}function ot(){return gill.getStructEncoder([["mask",gill.getU8Encoder()]])}function ct(){return gill.getStructDecoder([["mask",gill.getU8Decoder()]])}function WC(){return gill.combineCodec(ot(),ct())}function P(){return gill.getStructEncoder([["proof",gill.getOptionEncoder(yr())],["lightCpiAccountsStartIndex",gill.getU8Encoder()]])}function R(){return gill.getStructDecoder([["proof",gill.getOptionDecoder(mr())],["lightCpiAccountsStartIndex",gill.getU8Decoder()]])}function kC(){return gill.combineCodec(P(),R())}function Ir(){return gill.getStructEncoder([["memberKey",ae()],["userArgs",Je()]])}function Cr(){return gill.getStructDecoder([["memberKey",ie()],["userArgs",je()]])}function VC(){return gill.combineCodec(Ir(),Cr())}function vr(){return gill.getTupleEncoder([gill.fixEncoderSize(gill.getBytesEncoder(),33)])}function ut(){return gill.getTupleDecoder([gill.fixDecoderSize(gill.getBytesDecoder(),33)])}function zC(){return gill.combineCodec(vr(),ut())}function B(){return gill.getStructEncoder([["signedMessageIndex",gill.getU8Encoder()],["slotNumber",gill.getU64Encoder()],["originIndex",gill.getU8Encoder()],["crossOrigin",gill.getBooleanEncoder()],["truncatedClientDataJson",gill.addEncoderSizePrefix(gill.getBytesEncoder(),gill.getU32Encoder())]])}function L(){return gill.getStructDecoder([["signedMessageIndex",gill.getU8Decoder()],["slotNumber",gill.getU64Decoder()],["originIndex",gill.getU8Decoder()],["crossOrigin",gill.getBooleanDecoder()],["truncatedClientDataJson",gill.addDecoderSizePrefix(gill.getBytesDecoder(),gill.getU32Decoder())]])}function jC(){return gill.combineCodec(B(),L())}function J(){return gill.getStructEncoder([["domainConfigKey",gill.getAddressEncoder()],["verifyArgs",B()]])}function j(){return gill.getStructDecoder([["domainConfigKey",gill.getAddressDecoder()],["verifyArgs",L()]])}function XC(){return gill.combineCodec(J(),j())}function br(){return gill.getDiscriminatedUnionEncoder([["Create",gill.getStructEncoder([["fields",gill.getTupleEncoder([Pe()])]])],["Mutate",gill.getStructEncoder([["fields",gill.getTupleEncoder([ye()])]])]])}function _r(){return gill.getDiscriminatedUnionDecoder([["Create",gill.getStructDecoder([["fields",gill.getTupleDecoder([Re()])]])],["Mutate",gill.getStructDecoder([["fields",gill.getTupleDecoder([me()])]])]])}function tD(){return gill.combineCodec(br(),_r())}function rD(e,n){return Array.isArray(n)?{__kind:e,fields:n}:{__kind:e,...n??{}}}function nD(e,n){return n.__kind===e}function Pe(){return gill.getStructEncoder([["addressTreeInfo",at()],["outputStateTreeIndex",gill.getU8Encoder()]])}function Re(){return gill.getStructDecoder([["addressTreeInfo",it()],["outputStateTreeIndex",gill.getU8Decoder()]])}function aD(){return gill.combineCodec(Pe(),Re())}function ye(){return gill.getStructEncoder([["accountMeta",Ye()],["data",et()]])}function me(){return gill.getStructDecoder([["accountMeta",Ze()],["data",G()]])}function gD(){return gill.combineCodec(ye(),me())}function X(){return gill.getStructEncoder([["accountMeta",$e()],["data",et()]])}function $(){return gill.getStructDecoder([["accountMeta",Qe()],["data",G()]])}function pD(){return gill.combineCodec(X(),$())}function dt(){return gill.getStructEncoder([["bufferIndex",gill.getU8Encoder()],["preauthorizeExecution",gill.getBooleanEncoder()],["bufferExtendHashes",gill.getArrayEncoder(gill.fixEncoderSize(gill.getBytesEncoder(),32))],["finalBufferHash",gill.fixEncoderSize(gill.getBytesEncoder(),32)],["finalBufferSize",gill.getU16Encoder()]])}function gt(){return gill.getStructDecoder([["bufferIndex",gill.getU8Decoder()],["preauthorizeExecution",gill.getBooleanDecoder()],["bufferExtendHashes",gill.getArrayDecoder(gill.fixDecoderSize(gill.getBytesDecoder(),32))],["finalBufferHash",gill.fixDecoderSize(gill.getBytesDecoder(),32)],["finalBufferSize",gill.getU16Decoder()]])}function TD(){return gill.combineCodec(dt(),gt())}function At(){return gill.getStructEncoder([["numSigners",gill.getU8Encoder()],["numWritableSigners",gill.getU8Encoder()],["numWritableNonSigners",gill.getU8Encoder()],["numAccountKeys",gill.getU8Encoder()],["instructions",gill.getArrayEncoder(ar())],["addressTableLookups",gill.getArrayEncoder(Ur())]])}function yt(){return gill.getStructDecoder([["numSigners",gill.getU8Decoder()],["numWritableSigners",gill.getU8Decoder()],["numWritableNonSigners",gill.getU8Decoder()],["numAccountKeys",gill.getU8Decoder()],["instructions",gill.getArrayDecoder(ir())],["addressTableLookups",gill.getArrayDecoder(Wr())]])}function CD(){return gill.combineCodec(At(),yt())}function Ur(){return gill.getStructEncoder([["lookupTableAddressIndex",gill.getU8Encoder()],["writableIndexes",gill.addEncoderSizePrefix(gill.getBytesEncoder(),gill.getU32Encoder())],["readonlyIndexes",gill.addEncoderSizePrefix(gill.getBytesEncoder(),gill.getU32Encoder())]])}function Wr(){return gill.getStructDecoder([["lookupTableAddressIndex",gill.getU8Decoder()],["writableIndexes",gill.addDecoderSizePrefix(gill.getBytesDecoder(),gill.getU32Decoder())],["readonlyIndexes",gill.addDecoderSizePrefix(gill.getBytesDecoder(),gill.getU32Decoder())]])}function ED(){return gill.combineCodec(Ur(),Wr())}function he(){return gill.getStructEncoder([["member",ae()],["domainConfig",gill.getOptionEncoder(gill.getAddressEncoder())],["isPermanentMember",gill.getBooleanEncoder()],["settingsIndex",gill.getOptionEncoder(gill.getU128Encoder())],["transactionManagerUrl",gill.getOptionEncoder(gill.addEncoderSizePrefix(gill.getUtf8Encoder(),gill.getU32Encoder()))]])}function Y(){return gill.getStructDecoder([["member",ie()],["domainConfig",gill.getOptionDecoder(gill.getAddressDecoder())],["isPermanentMember",gill.getBooleanDecoder()],["settingsIndex",gill.getOptionDecoder(gill.getU128Decoder())],["transactionManagerUrl",gill.getOptionDecoder(gill.addDecoderSizePrefix(gill.getUtf8Decoder(),gill.getU32Decoder()))]])}function vD(){return gill.combineCodec(he(),Y())}function Me(){return gill.getStructEncoder([["addressTreeInfo",at()],["outputStateTreeIndex",gill.getU8Encoder()]])}function Ee(){return gill.getStructDecoder([["addressTreeInfo",it()],["outputStateTreeIndex",gill.getU8Decoder()]])}function WD(){return gill.combineCodec(Me(),Ee())}function re(){return gill.getStructEncoder([["accountMeta",Ye()],["data",he()]])}function ne(){return gill.getStructDecoder([["accountMeta",Ze()],["data",Y()]])}function kD(){return gill.combineCodec(re(),ne())}function Lr(){return gill.getStructEncoder([["accountMeta",$e()],["data",he()]])}function kr(){return gill.getStructDecoder([["accountMeta",Qe()],["data",Y()]])}function VD(){return gill.combineCodec(Lr(),kr())}function Je(){return gill.getDiscriminatedUnionEncoder([["Read",gill.getStructEncoder([["fields",gill.getTupleEncoder([Lr()])]])],["Mutate",gill.getStructEncoder([["fields",gill.getTupleEncoder([re()])]])]])}function je(){return gill.getDiscriminatedUnionDecoder([["Read",gill.getStructDecoder([["fields",gill.getTupleDecoder([kr()])]])],["Mutate",gill.getStructDecoder([["fields",gill.getTupleDecoder([ne()])]])]])}function KD(){return gill.combineCodec(Je(),je())}function JD(e,n){return Array.isArray(n)?{__kind:e,fields:n}:{__kind:e,...n??{}}}function jD(e,n){return n.__kind===e}var ls=new Uint8Array([223,179,163,190,177,224,67,173]);function UM(){return gill.fixEncoderSize(gill.getBytesEncoder(),8).encode(ls)}function ny(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),8)],["index",gill.getU128Encoder()],["members",gill.getArrayEncoder(Ce(),{size:4})],["membersLen",gill.getU8Encoder()],["threshold",gill.getU8Encoder()],["multiWalletBump",gill.getU8Encoder()],["bump",gill.getU8Encoder()]]),e=>({...e,discriminator:ls}))}function Ts(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),8)],["index",gill.getU128Decoder()],["members",gill.getArrayDecoder(De(),{size:4})],["membersLen",gill.getU8Decoder()],["threshold",gill.getU8Decoder()],["multiWalletBump",gill.getU8Decoder()],["bump",gill.getU8Decoder()]])}function WM(){return gill.combineCodec(ny(),Ts())}function Ss(e){return gill.decodeAccount(e,Ts())}async function OM(e,n,r){let s=await wr(e,n,r);return gill.assertAccountExists(s),s}async function wr(e,n,r){let s=await gill.fetchEncodedAccount(e,n,r);return Ss(s)}async function BM(e,n,r){let s=await sy(e,n,r);return gill.assertAccountsExist(s),s}async function sy(e,n,r){return (await gill.fetchEncodedAccounts(e,n,r)).map(t=>Ss(t))}function LM(){return 168}var Ps=new Uint8Array([90,36,35,219,93,225,110,96]);function HM(){return gill.fixEncoderSize(gill.getBytesEncoder(),8).encode(Ps)}function Cy(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),8)],["multiWalletSettings",gill.getAddressEncoder()],["multiWalletBump",gill.getU8Encoder()],["canExecute",gill.getBooleanEncoder()],["preauthorizeExecution",gill.getBooleanEncoder()],["validTill",gill.getU64Encoder()],["payer",gill.getAddressEncoder()],["bump",gill.getU8Encoder()],["bufferIndex",gill.getU8Encoder()],["finalBufferHash",gill.fixEncoderSize(gill.getBytesEncoder(),32)],["finalBufferSize",gill.getU16Encoder()],["creator",ae()],["bufferExtendHashes",gill.getArrayEncoder(gill.fixEncoderSize(gill.getBytesEncoder(),32))],["voters",gill.getArrayEncoder(ae())],["buffer",gill.addEncoderSizePrefix(gill.getBytesEncoder(),gill.getU32Encoder())]]),e=>({...e,discriminator:Ps}))}function Rs(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),8)],["multiWalletSettings",gill.getAddressDecoder()],["multiWalletBump",gill.getU8Decoder()],["canExecute",gill.getBooleanDecoder()],["preauthorizeExecution",gill.getBooleanDecoder()],["validTill",gill.getU64Decoder()],["payer",gill.getAddressDecoder()],["bump",gill.getU8Decoder()],["bufferIndex",gill.getU8Decoder()],["finalBufferHash",gill.fixDecoderSize(gill.getBytesDecoder(),32)],["finalBufferSize",gill.getU16Decoder()],["creator",ie()],["bufferExtendHashes",gill.getArrayDecoder(gill.fixDecoderSize(gill.getBytesDecoder(),32))],["voters",gill.getArrayDecoder(ie())],["buffer",gill.addDecoderSizePrefix(gill.getBytesDecoder(),gill.getU32Decoder())]])}function VM(){return gill.combineCodec(Cy(),Rs())}function hs(e){return gill.decodeAccount(e,Rs())}async function vs(e,n,r){let s=await Dy(e,n,r);return gill.assertAccountExists(s),s}async function Dy(e,n,r){let s=await gill.fetchEncodedAccount(e,n,r);return hs(s)}async function GM(e,n,r){let s=await My(e,n,r);return gill.assertAccountsExist(s),s}async function My(e,n,r){return (await gill.fetchEncodedAccounts(e,n,r)).map(t=>hs(t))}function m({args:e}){if(!e)return [];let{remainingAccounts:n}=e;return n.map(r=>r.signer?{address:r.address,role:r.role,signer:r.signer}:{address:r.address,role:r.role})}function kt(e){if(e==null)throw new Error("Expected a value but received null or undefined.");return e}function H(e){if(!e)throw new Error("Expected a Address.");return typeof e=="object"&&"address"in e?e.address:Array.isArray(e)?e[0]:e}function p(e,n){return r=>{if(!r.value)return Object.freeze({address:e,role:gill.AccountRole.READONLY});let s=r.isWritable?gill.AccountRole.WRITABLE:gill.AccountRole.READONLY;return Object.freeze({address:H(r.value),role:bs(r.value)?gill.upgradeRoleToSigner(s):s,...bs(r.value)?{signer:r.value}:{}})}}function bs(e){return !!e&&typeof e=="object"&&"address"in e&&gill.isTransactionSigner(e)}var Os=new Uint8Array([8]);function oE(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Os)}function Fr(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["settingsIndex",gill.getU128Encoder()],["configActions",gill.getArrayEncoder(nt())],["compressedProofArgs",gill.getOptionEncoder(P())]]),e=>({...e,discriminator:Os}))}function Bs(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["settingsIndex",gill.getU128Decoder()],["configActions",gill.getArrayDecoder(st())],["compressedProofArgs",gill.getOptionDecoder(R())]])}function cE(){return gill.combineCodec(Fr(),Bs())}async function Ls(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.settings.value||(t.settings.value=await gill.getProgramDerivedAddress({programAddress:r,seeds:[gill.getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,95,119,97,108,108,101,116])),gill.getU128Encoder().encode(kt(c.settingsIndex))]})),t.authority.value||(t.authority.value=await gill.getProgramDerivedAddress({programAddress:r,seeds:[gill.getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,95,119,97,108,108,101,116])),gill.getAddressEncoder().encode(H(t.settings.value)),gill.getBytesEncoder().encode(new Uint8Array([118,97,117,108,116]))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.payer),o(t.authority),o(t.systemProgram),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:Fr().encode(c),programAddress:r})}function aE(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.payer),o(t.authority),o(t.systemProgram),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:Fr().encode(c),programAddress:r})}function iE(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),payer:r(),authority:r(),systemProgram:r(),slotHashSysvar:s(),instructionsSysvar:s()},data:Bs().decode(e.data)}}var Ns=new Uint8Array([19]);function pE(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Ns)}function Hs(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["configActions",gill.getArrayEncoder(nt())],["settingsMut",ye()],["compressedProofArgs",P()]]),e=>({...e,discriminator:Ns}))}function Vs(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["configActions",gill.getArrayDecoder(st())],["settingsMut",me()],["compressedProofArgs",R()]])}function fE(){return gill.combineCodec(Hs(),Vs())}function Gs(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.authority),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:Hs().encode(c),programAddress:r})}function lE(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),authority:r(),slotHashSysvar:s(),instructionsSysvar:s()},data:Vs().decode(e.data)}}var Ks=new Uint8Array([16]);function ME(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Ks)}function Js(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["compressedProofArgs",P()],["settingsArg",br()],["secp256r1VerifyArgs",gill.getArrayEncoder(J())]]),e=>({...e,discriminator:Ks}))}function js(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["compressedProofArgs",R()],["settingsArg",_r()],["secp256r1VerifyArgs",gill.getArrayDecoder(j())]])}function EE(){return gill.combineCodec(Js(),js())}function Ys(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.payer),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:Js().encode(c),programAddress:r})}function PE(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),payer:r(),slotHashSysvar:s(),instructionsSysvar:r()},data:js().decode(e.data)}}var Xs=new Uint8Array([0]);function UE(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Xs)}function $s(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["rpId",gill.addEncoderSizePrefix(gill.getUtf8Encoder(),gill.getU32Encoder())],["origins",gill.getArrayEncoder(gill.addEncoderSizePrefix(gill.getUtf8Encoder(),gill.getU32Encoder()))],["authority",gill.getAddressEncoder()],["metadataUrl",gill.addEncoderSizePrefix(gill.getUtf8Encoder(),gill.getU32Encoder())]]),e=>({...e,discriminator:Xs}))}function Qs(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["rpId",gill.addDecoderSizePrefix(gill.getUtf8Decoder(),gill.getU32Decoder())],["origins",gill.getArrayDecoder(gill.addDecoderSizePrefix(gill.getUtf8Decoder(),gill.getU32Decoder()))],["authority",gill.getAddressDecoder()],["metadataUrl",gill.addDecoderSizePrefix(gill.getUtf8Decoder(),gill.getU32Decoder())]])}function WE(){return gill.combineCodec($s(),Qs())}function eo(e,n){let r=n?.programAddress??d,t={domainConfig:{value:e.domainConfig??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},adminDomainConfig:{value:e.adminDomainConfig??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.domainConfig),o(t.payer),o(t.systemProgram),o(t.adminDomainConfig),...i],data:$s().encode(c),programAddress:r})}function OE(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{domainConfig:r(),payer:r(),systemProgram:r(),adminDomainConfig:s()},data:Qs().decode(e.data)}}var no=new Uint8Array([4]);function VE(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(no)}function so(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["compressedProofArgs",P()],["member",vr()],["isPermanentMember",gill.getBooleanEncoder()],["userAccountCreationArgs",Me()],["linkWalletArgs",gill.getOptionEncoder(Rr())]]),e=>({...e,discriminator:no}))}function oo(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["compressedProofArgs",R()],["member",ut()],["isPermanentMember",gill.getBooleanDecoder()],["userAccountCreationArgs",Ee()],["linkWalletArgs",gill.getOptionDecoder(hr())]])}function GE(){return gill.combineCodec(so(),oo())}function co(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},domainConfig:{value:e.domainConfig??null,isWritable:false},authority:{value:e.authority??null,isWritable:false}},c={...e},i=m({args:c}),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.domainConfig),o(t.authority),...i],data:so().encode(c),programAddress:r})}function FE(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{payer:r(),domainConfig:r(),authority:r()},data:oo().decode(e.data)}}var io=new Uint8Array([3]);function ZE(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(io)}function Xr(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)]]),e=>({...e,discriminator:io}))}function uo(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)]])}function qE(){return gill.combineCodec(Xr(),uo())}async function go(e,n){let r=n?.programAddress??d,t={globalCounter:{value:e.globalCounter??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},c={};t.globalCounter.value||(t.globalCounter.value=await gill.getProgramDerivedAddress({programAddress:r,seeds:[gill.getBytesEncoder().encode(new Uint8Array([103,108,111,98,97,108,95,99,111,117,110,116,101,114]))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let a=m(c),i=p(r);return Object.freeze({accounts:[i(t.globalCounter),i(t.payer),i(t.systemProgram),...a],data:Xr().encode({}),programAddress:r})}function XE(e,n){let r=n?.programAddress??d,t={globalCounter:{value:e.globalCounter??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},c={};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let a=m(c),i=p(r);return Object.freeze({accounts:[i(t.globalCounter),i(t.payer),i(t.systemProgram),...a],data:Xr().encode({}),programAddress:r})}function $E(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{globalCounter:r(),payer:r(),systemProgram:r()},data:uo().decode(e.data)}}var mo=new Uint8Array([7]);function oP(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(mo)}function Qr(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["settingsIndex",gill.getU128Encoder()],["secp256r1VerifyArgs",gill.getOptionEncoder(B())],["userMutArgs",re()],["compressedProofArgs",P()],["setAsDelegate",gill.getBooleanEncoder()]]),e=>({...e,discriminator:mo}))}function po(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["settingsIndex",gill.getU128Decoder()],["secp256r1VerifyArgs",gill.getOptionDecoder(L())],["userMutArgs",ne()],["compressedProofArgs",R()],["setAsDelegate",gill.getBooleanDecoder()]])}function cP(){return gill.combineCodec(Qr(),po())}async function aP(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},initialMember:{value:e.initialMember??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},domainConfig:{value:e.domainConfig??null,isWritable:false},globalCounter:{value:e.globalCounter??null,isWritable:true}},c={...e},a={args:c};t.settings.value||(t.settings.value=await gill.getProgramDerivedAddress({programAddress:r,seeds:[gill.getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,95,119,97,108,108,101,116])),gill.getU128Encoder().encode(kt(c.settingsIndex))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.payer),o(t.initialMember),o(t.systemProgram),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.domainConfig),o(t.globalCounter),...i],data:Qr().encode(c),programAddress:r})}function fo(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},initialMember:{value:e.initialMember??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},domainConfig:{value:e.domainConfig??null,isWritable:false},globalCounter:{value:e.globalCounter??null,isWritable:true}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.payer),o(t.initialMember),o(t.systemProgram),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.domainConfig),o(t.globalCounter),...i],data:Qr().encode(c),programAddress:r})}function iP(e){if(e.accounts.length<8)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),payer:r(),initialMember:s(),systemProgram:r(),slotHashSysvar:s(),instructionsSysvar:s(),domainConfig:s(),globalCounter:r()},data:po().decode(e.data)}}var So=new Uint8Array([18]);function pP(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(So)}function xo(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["secp256r1VerifyArgs",gill.getOptionEncoder(B())],["compressedProofArgs",P()],["settingsCreation",Pe()],["userMutArgs",re()],["settingsIndex",gill.getU128Encoder()],["setAsDelegate",gill.getBooleanEncoder()]]),e=>({...e,discriminator:So}))}function Io(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["secp256r1VerifyArgs",gill.getOptionDecoder(L())],["compressedProofArgs",R()],["settingsCreation",Re()],["userMutArgs",ne()],["settingsIndex",gill.getU128Decoder()],["setAsDelegate",gill.getBooleanDecoder()]])}function fP(){return gill.combineCodec(xo(),Io())}function Co(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},initialMember:{value:e.initialMember??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},domainConfig:{value:e.domainConfig??null,isWritable:false},globalCounter:{value:e.globalCounter??null,isWritable:true}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.initialMember),o(t.systemProgram),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.domainConfig),o(t.globalCounter),...i],data:xo().encode(c),programAddress:r})}function lP(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),initialMember:s(),systemProgram:r(),slotHashSysvar:s(),instructionsSysvar:s(),domainConfig:s(),globalCounter:r()},data:Io().decode(e.data)}}var Eo=new Uint8Array([5]);function MP(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Eo)}function Po(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["compressedProofArgs",P()],["createUserArgs",gill.getArrayEncoder(Dr())]]),e=>({...e,discriminator:Eo}))}function Ro(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["compressedProofArgs",R()],["createUserArgs",gill.getArrayDecoder(Mr())]])}function EP(){return gill.combineCodec(Po(),Ro())}function ho(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.systemProgram),...i],data:Po().encode(c),programAddress:r})}function PP(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{payer:r(),systemProgram:r()},data:Ro().decode(e.data)}}var _o=new Uint8Array([17]);function WP(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(_o)}function Uo(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["settingsMut",ye()],["compressedProofArgs",P()],["secp256r1VerifyArgs",gill.getArrayEncoder(J())]]),e=>({...e,discriminator:_o}))}function Wo(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["settingsMut",me()],["compressedProofArgs",R()],["secp256r1VerifyArgs",gill.getArrayDecoder(j())]])}function OP(){return gill.combineCodec(Uo(),Wo())}function Oo(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.payer),o(t.systemProgram),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:Uo().encode(c),programAddress:r})}function BP(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),payer:r(),systemProgram:r(),slotHashSysvar:s(),instructionsSysvar:r()},data:Wo().decode(e.data)}}var ko=new Uint8Array([2]);function VP(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(ko)}function wo(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["disable",gill.getBooleanEncoder()]]),e=>({...e,discriminator:ko}))}function No(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["disable",gill.getBooleanDecoder()]])}function GP(){return gill.combineCodec(wo(),No())}function Ho(e,n){let r=n?.programAddress??d,t={domainConfig:{value:e.domainConfig??null,isWritable:true},admin:{value:e.admin??null,isWritable:false},adminDomainConfig:{value:e.adminDomainConfig??null,isWritable:false}},c={...e},a={args:c};t.adminDomainConfig.value||(t.adminDomainConfig.value="5tgzUZaVtfnnSEBgmBDtJj6PdgYCnA1uaEGEUi3y5Njg");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.domainConfig),o(t.admin),o(t.adminDomainConfig),...i],data:wo().encode(c),programAddress:r})}function FP(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{domainConfig:r(),admin:r(),adminDomainConfig:r()},data:No().decode(e.data)}}var Zo=new Uint8Array([1]);function ZP(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Zo)}function qo(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["newOrigins",gill.getOptionEncoder(gill.getArrayEncoder(gill.addEncoderSizePrefix(gill.getUtf8Encoder(),gill.getU32Encoder())))],["newAuthority",gill.getOptionEncoder(gill.getAddressEncoder())],["newMetadataUrl",gill.getOptionEncoder(gill.addEncoderSizePrefix(gill.getUtf8Encoder(),gill.getU32Encoder()))]]),e=>({...e,discriminator:Zo}))}function Xo(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["newOrigins",gill.getOptionDecoder(gill.getArrayDecoder(gill.addDecoderSizePrefix(gill.getUtf8Decoder(),gill.getU32Decoder())))],["newAuthority",gill.getOptionDecoder(gill.getAddressDecoder())],["newMetadataUrl",gill.getOptionDecoder(gill.addDecoderSizePrefix(gill.getUtf8Decoder(),gill.getU32Decoder()))]])}function qP(){return gill.combineCodec(qo(),Xo())}function $o(e,n){let r=n?.programAddress??d,t={domainConfig:{value:e.domainConfig??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.domainConfig),o(t.authority),o(t.systemProgram),...i],data:qo().encode(c),programAddress:r})}function XP(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{domainConfig:r(),authority:r(),systemProgram:r()},data:Xo().decode(e.data)}}var tc=new Uint8Array([6]);function sR(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(tc)}function rc(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["userMutArgs",re()],["transactionManagerUrl",gill.addEncoderSizePrefix(gill.getUtf8Encoder(),gill.getU32Encoder())],["compressedProofArgs",P()]]),e=>({...e,discriminator:tc}))}function nc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["userMutArgs",ne()],["transactionManagerUrl",gill.addDecoderSizePrefix(gill.getUtf8Decoder(),gill.getU32Decoder())],["compressedProofArgs",R()]])}function oR(){return gill.combineCodec(rc(),nc())}function sc(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:false}},c={...e},i=m({args:c}),o=p(r);return Object.freeze({accounts:[o(t.authority),...i],data:rc().encode(c),programAddress:r})}function cR(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{authority:r()},data:nc().decode(e.data)}}var ac=new Uint8Array([32]);function yR(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(ac)}function ic(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["args",tt()],["compressedProofArgs",P()],["settingsCreationArgs",Pe()]]),e=>({...e,discriminator:ac}))}function uc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["args",rt()],["compressedProofArgs",R()],["settingsCreationArgs",Re()]])}function mR(){return gill.combineCodec(ic(),uc())}function pR(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},adminDomainConfig:{value:e.adminDomainConfig??null,isWritable:false}},c={...e},a={args:c};t.adminDomainConfig.value||(t.adminDomainConfig.value="5tgzUZaVtfnnSEBgmBDtJj6PdgYCnA1uaEGEUi3y5Njg");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.authority),o(t.adminDomainConfig),...i],data:ic().encode(c),programAddress:r})}function fR(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{authority:r(),adminDomainConfig:r()},data:uc().decode(e.data)}}var Ac=new Uint8Array([31]);function DR(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Ac)}function yc(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["args",he()],["compressedProofArgs",P()],["userCreationArgs",Me()]]),e=>({...e,discriminator:Ac}))}function mc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["args",Y()],["compressedProofArgs",R()],["userCreationArgs",Ee()]])}function MR(){return gill.combineCodec(yc(),mc())}function ER(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},adminDomainConfig:{value:e.adminDomainConfig??null,isWritable:false}},c={...e},a={args:c};t.adminDomainConfig.value||(t.adminDomainConfig.value="5tgzUZaVtfnnSEBgmBDtJj6PdgYCnA1uaEGEUi3y5Njg");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.authority),o(t.adminDomainConfig),...i],data:yc().encode(c),programAddress:r})}function PR(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{authority:r(),adminDomainConfig:r()},data:mc().decode(e.data)}}var fc=new Uint8Array([29]);function WR(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(fc)}function rn(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["amount",gill.getU64Encoder()],["secp256r1VerifyArgs",gill.getArrayEncoder(J())]]),e=>({...e,discriminator:fc}))}function lc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["amount",gill.getU64Decoder()],["secp256r1VerifyArgs",gill.getArrayDecoder(j())]])}function OR(){return gill.combineCodec(rn(),lc())}async function BR(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},source:{value:e.source??null,isWritable:true},destination:{value:e.destination??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.source.value||(t.source.value=await gill.getProgramDerivedAddress({programAddress:r,seeds:[gill.getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,95,119,97,108,108,101,116])),gill.getAddressEncoder().encode(H(t.settings.value)),gill.getBytesEncoder().encode(new Uint8Array([118,97,117,108,116]))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.source),o(t.destination),o(t.systemProgram),...i],data:rn().encode(c),programAddress:r})}function Tc(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},source:{value:e.source??null,isWritable:true},destination:{value:e.destination??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.source),o(t.destination),o(t.systemProgram),...i],data:rn().encode(c),programAddress:r})}function LR(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),slotHashSysvar:s(),instructionsSysvar:r(),source:r(),destination:r(),systemProgram:r()},data:lc().decode(e.data)}}var Ic=new Uint8Array([27]);function FR(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Ic)}function Cc(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["amount",gill.getU64Encoder()],["secp256r1VerifyArgs",gill.getArrayEncoder(J())],["settingsReadonlyArgs",X()],["compressedProofArgs",P()]]),e=>({...e,discriminator:Ic}))}function Dc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["amount",gill.getU64Decoder()],["secp256r1VerifyArgs",gill.getArrayDecoder(j())],["settingsReadonlyArgs",$()],["compressedProofArgs",R()]])}function zR(){return gill.combineCodec(Cc(),Dc())}function Mc(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},source:{value:e.source??null,isWritable:true},destination:{value:e.destination??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.source),o(t.destination),o(t.systemProgram),...i],data:Cc().encode(c),programAddress:r})}function KR(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),slotHashSysvar:s(),instructionsSysvar:r(),source:r(),destination:r(),systemProgram:r()},data:Dc().decode(e.data)}}var Pc=new Uint8Array([30]);function $R(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Pc)}function sn(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["amount",gill.getU64Encoder()],["secp256r1VerifyArgs",gill.getArrayEncoder(J())]]),e=>({...e,discriminator:Pc}))}function Rc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["amount",gill.getU64Decoder()],["secp256r1VerifyArgs",gill.getArrayDecoder(j())]])}function QR(){return gill.combineCodec(sn(),Rc())}async function eh(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},source:{value:e.source??null,isWritable:true},sourceTokenAccount:{value:e.sourceTokenAccount??null,isWritable:true},destination:{value:e.destination??null,isWritable:false},destinationTokenAccount:{value:e.destinationTokenAccount??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},mint:{value:e.mint??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.source.value||(t.source.value=await gill.getProgramDerivedAddress({programAddress:r,seeds:[gill.getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,95,119,97,108,108,101,116])),gill.getAddressEncoder().encode(H(t.settings.value)),gill.getBytesEncoder().encode(new Uint8Array([118,97,117,108,116]))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),t.sourceTokenAccount.value||(t.sourceTokenAccount.value=await gill.getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[gill.getAddressEncoder().encode(H(t.source.value)),gill.getAddressEncoder().encode(H(t.tokenProgram.value)),gill.getAddressEncoder().encode(H(t.mint.value))]})),t.destinationTokenAccount.value||(t.destinationTokenAccount.value=await gill.getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[gill.getAddressEncoder().encode(H(t.destination.value)),gill.getAddressEncoder().encode(H(t.tokenProgram.value)),gill.getAddressEncoder().encode(H(t.mint.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.associatedTokenProgram.value||(t.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.source),o(t.sourceTokenAccount),o(t.destination),o(t.destinationTokenAccount),o(t.tokenProgram),o(t.mint),o(t.systemProgram),o(t.associatedTokenProgram),...i],data:sn().encode(c),programAddress:r})}function hc(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},source:{value:e.source??null,isWritable:true},sourceTokenAccount:{value:e.sourceTokenAccount??null,isWritable:true},destination:{value:e.destination??null,isWritable:false},destinationTokenAccount:{value:e.destinationTokenAccount??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},mint:{value:e.mint??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.tokenProgram.value||(t.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.associatedTokenProgram.value||(t.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.source),o(t.sourceTokenAccount),o(t.destination),o(t.destinationTokenAccount),o(t.tokenProgram),o(t.mint),o(t.systemProgram),o(t.associatedTokenProgram),...i],data:sn().encode(c),programAddress:r})}function th(e){if(e.accounts.length<11)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),slotHashSysvar:s(),instructionsSysvar:r(),source:r(),sourceTokenAccount:r(),destination:r(),destinationTokenAccount:r(),tokenProgram:r(),mint:r(),systemProgram:r(),associatedTokenProgram:r()},data:Rc().decode(e.data)}}var Uc=new Uint8Array([28]);function ih(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Uc)}function on(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["amount",gill.getU64Encoder()],["secp256r1VerifyArgs",gill.getArrayEncoder(J())],["settingsReadonlyArgs",X()],["compressedProofArgs",P()]]),e=>({...e,discriminator:Uc}))}function Wc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["amount",gill.getU64Decoder()],["secp256r1VerifyArgs",gill.getArrayDecoder(j())],["settingsReadonlyArgs",$()],["compressedProofArgs",R()]])}function uh(){return gill.combineCodec(on(),Wc())}async function dh(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},source:{value:e.source??null,isWritable:true},sourceTokenAccount:{value:e.sourceTokenAccount??null,isWritable:true},destination:{value:e.destination??null,isWritable:false},destinationTokenAccount:{value:e.destinationTokenAccount??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},mint:{value:e.mint??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.tokenProgram.value||(t.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),t.sourceTokenAccount.value||(t.sourceTokenAccount.value=await gill.getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[gill.getAddressEncoder().encode(H(t.source.value)),gill.getAddressEncoder().encode(H(t.tokenProgram.value)),gill.getAddressEncoder().encode(H(t.mint.value))]})),t.destinationTokenAccount.value||(t.destinationTokenAccount.value=await gill.getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[gill.getAddressEncoder().encode(H(t.destination.value)),gill.getAddressEncoder().encode(H(t.tokenProgram.value)),gill.getAddressEncoder().encode(H(t.mint.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.associatedTokenProgram.value||(t.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.source),o(t.sourceTokenAccount),o(t.destination),o(t.destinationTokenAccount),o(t.tokenProgram),o(t.mint),o(t.systemProgram),o(t.associatedTokenProgram),...i],data:on().encode(c),programAddress:r})}function Oc(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},source:{value:e.source??null,isWritable:true},sourceTokenAccount:{value:e.sourceTokenAccount??null,isWritable:true},destination:{value:e.destination??null,isWritable:false},destinationTokenAccount:{value:e.destinationTokenAccount??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},mint:{value:e.mint??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.tokenProgram.value||(t.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.associatedTokenProgram.value||(t.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.slotHashSysvar),o(t.instructionsSysvar),o(t.source),o(t.sourceTokenAccount),o(t.destination),o(t.destinationTokenAccount),o(t.tokenProgram),o(t.mint),o(t.systemProgram),o(t.associatedTokenProgram),...i],data:on().encode(c),programAddress:r})}function gh(e){if(e.accounts.length<11)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),slotHashSysvar:s(),instructionsSysvar:r(),source:r(),sourceTokenAccount:r(),destination:r(),destinationTokenAccount:r(),tokenProgram:r(),mint:r(),systemProgram:r(),associatedTokenProgram:r()},data:Wc().decode(e.data)}}var kc=new Uint8Array([12]);function Th(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(kc)}function wc(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["secp256r1VerifyArgs",gill.getOptionEncoder(B())]]),e=>({...e,discriminator:kc}))}function Nc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["secp256r1VerifyArgs",gill.getOptionDecoder(L())]])}function Sh(){return gill.combineCodec(wc(),Nc())}function Hc(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},payer:{value:e.payer??null,isWritable:true},domainConfig:{value:e.domainConfig??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true},closer:{value:e.closer??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.payer),o(t.domainConfig),o(t.transactionBuffer),o(t.closer),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:wc().encode(c),programAddress:r})}function xh(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),payer:r(),domainConfig:s(),transactionBuffer:r(),closer:s(),slotHashSysvar:s(),instructionsSysvar:s()},data:Nc().decode(e.data)}}var Fc=new Uint8Array([23]);function Rh(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Fc)}function zc(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["secp256r1VerifyArgs",gill.getOptionEncoder(B())],["settingsReadonlyArgs",X()],["compressedProofArgs",P()]]),e=>({...e,discriminator:Fc}))}function Kc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["secp256r1VerifyArgs",gill.getOptionDecoder(L())],["settingsReadonlyArgs",$()],["compressedProofArgs",R()]])}function hh(){return gill.combineCodec(zc(),Kc())}function Jc(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},rentCollector:{value:e.rentCollector??null,isWritable:true},domainConfig:{value:e.domainConfig??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true},closer:{value:e.closer??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.rentCollector),o(t.domainConfig),o(t.transactionBuffer),o(t.closer),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:zc().encode(c),programAddress:r})}function vh(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),rentCollector:r(),domainConfig:s(),transactionBuffer:r(),closer:s(),slotHashSysvar:s(),instructionsSysvar:s()},data:Kc().decode(e.data)}}var Zc=new Uint8Array([9]);function Lh(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Zc)}function qc(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["args",dt()],["secp256r1VerifyArgs",gill.getOptionEncoder(B())]]),e=>({...e,discriminator:Zc}))}function Xc(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["args",gt()],["secp256r1VerifyArgs",gill.getOptionDecoder(L())]])}function kh(){return gill.combineCodec(qc(),Xc())}function $c(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},payer:{value:e.payer??null,isWritable:true},domainConfig:{value:e.domainConfig??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true},creator:{value:e.creator??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.payer),o(t.domainConfig),o(t.transactionBuffer),o(t.creator),o(t.systemProgram),o(t.instructionsSysvar),o(t.slotHashSysvar),...i],data:qc().encode(c),programAddress:r})}function wh(e){if(e.accounts.length<8)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),payer:r(),domainConfig:s(),transactionBuffer:r(),creator:s(),systemProgram:r(),instructionsSysvar:r(),slotHashSysvar:s()},data:Xc().decode(e.data)}}var ta=new Uint8Array([20]);function Kh(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(ta)}function ra(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["args",dt()],["secp256r1VerifyArgs",gill.getOptionEncoder(B())],["settingsReadonlyArgs",X()],["compressedProofArgs",P()]]),e=>({...e,discriminator:ta}))}function na(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["args",gt()],["secp256r1VerifyArgs",gill.getOptionDecoder(L())],["settingsReadonlyArgs",$()],["compressedProofArgs",R()]])}function Jh(){return gill.combineCodec(ra(),na())}function sa(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},domainConfig:{value:e.domainConfig??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true},creator:{value:e.creator??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.domainConfig),o(t.transactionBuffer),o(t.creator),o(t.systemProgram),o(t.instructionsSysvar),o(t.slotHashSysvar),...i],data:ra().encode(c),programAddress:r})}function jh(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),domainConfig:s(),transactionBuffer:r(),creator:s(),systemProgram:r(),instructionsSysvar:r(),slotHashSysvar:s()},data:na().decode(e.data)}}var aa=new Uint8Array([13]);function ev(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(aa)}function ia(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["secp256r1VerifyArgs",gill.getOptionEncoder(B())]]),e=>({...e,discriminator:aa}))}function ua(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["secp256r1VerifyArgs",gill.getOptionDecoder(L())]])}function tv(){return gill.combineCodec(ia(),ua())}function da(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},domainConfig:{value:e.domainConfig??null,isWritable:false},executor:{value:e.executor??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.domainConfig),o(t.executor),o(t.transactionBuffer),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:ia().encode(c),programAddress:r})}function rv(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),domainConfig:s(),executor:s(),transactionBuffer:r(),slotHashSysvar:s(),instructionsSysvar:s()},data:ua().decode(e.data)}}var ya=new Uint8Array([24]);function uv(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(ya)}function ma(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["secp256r1VerifyArgs",gill.getOptionEncoder(B())],["settingsReadonlyArgs",X()],["compressedProofArgs",P()]]),e=>({...e,discriminator:ya}))}function pa(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["secp256r1VerifyArgs",gill.getOptionDecoder(L())],["settingsReadonlyArgs",$()],["compressedProofArgs",R()]])}function dv(){return gill.combineCodec(ma(),pa())}function fa(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},domainConfig:{value:e.domainConfig??null,isWritable:false},executor:{value:e.executor??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.domainConfig),o(t.executor),o(t.transactionBuffer),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:ma().encode(c),programAddress:r})}function gv(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),domainConfig:s(),executor:s(),transactionBuffer:r(),slotHashSysvar:s(),instructionsSysvar:s()},data:pa().decode(e.data)}}var Sa=new Uint8Array([11]);function lv(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Sa)}function xa(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["buffer",gill.addEncoderSizePrefix(gill.getBytesEncoder(),gill.getU32Encoder())]]),e=>({...e,discriminator:Sa}))}function Ia(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["buffer",gill.addDecoderSizePrefix(gill.getBytesDecoder(),gill.getU32Decoder())]])}function Tv(){return gill.combineCodec(xa(),Ia())}function Ca(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true}},c={...e},i=m({args:c}),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.transactionBuffer),...i],data:xa().encode(c),programAddress:r})}function Sv(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{settings:r(),transactionBuffer:r()},data:Ia().decode(e.data)}}var Ea=new Uint8Array([22]);function Ev(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Ea)}function Pa(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["buffer",gill.addEncoderSizePrefix(gill.getBytesEncoder(),gill.getU32Encoder())],["settingsKey",gill.getAddressEncoder()]]),e=>({...e,discriminator:Ea}))}function Ra(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["buffer",gill.addDecoderSizePrefix(gill.getBytesDecoder(),gill.getU32Decoder())],["settingsKey",gill.getAddressDecoder()]])}function Pv(){return gill.combineCodec(Pa(),Ra())}function ha(e,n){let r=n?.programAddress??d,t={transactionBuffer:{value:e.transactionBuffer??null,isWritable:true}},c={...e},i=m({args:c}),o=p(r);return Object.freeze({accounts:[o(t.transactionBuffer),...i],data:Pa().encode(c),programAddress:r})}function Rv(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{transactionBuffer:r()},data:Ra().decode(e.data)}}var _a=new Uint8Array([10]);function Ov(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(_a)}function Ua(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["secp256r1VerifyArgs",gill.getOptionEncoder(B())]]),e=>({...e,discriminator:_a}))}function Wa(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["secp256r1VerifyArgs",gill.getOptionDecoder(L())]])}function Bv(){return gill.combineCodec(Ua(),Wa())}function Oa(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:false},domainConfig:{value:e.domainConfig??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true},voter:{value:e.voter??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.domainConfig),o(t.transactionBuffer),o(t.voter),o(t.systemProgram),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:Ua().encode(c),programAddress:r})}function Lv(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),domainConfig:s(),transactionBuffer:r(),voter:s(),systemProgram:r(),slotHashSysvar:s(),instructionsSysvar:s()},data:Wa().decode(e.data)}}var ka=new Uint8Array([21]);function Fv(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(ka)}function wa(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["secp256r1VerifyArgs",gill.getOptionEncoder(B())],["settingsReadonlyArgs",X()],["compressedProofArgs",P()]]),e=>({...e,discriminator:ka}))}function Na(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["secp256r1VerifyArgs",gill.getOptionDecoder(L())],["settingsReadonlyArgs",$()],["compressedProofArgs",R()]])}function zv(){return gill.combineCodec(wa(),Na())}function Ha(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},domainConfig:{value:e.domainConfig??null,isWritable:false},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true},voter:{value:e.voter??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.domainConfig),o(t.transactionBuffer),o(t.voter),o(t.systemProgram),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:wa().encode(c),programAddress:r})}function Kv(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),domainConfig:s(),transactionBuffer:r(),voter:s(),systemProgram:r(),slotHashSysvar:s(),instructionsSysvar:s()},data:Na().decode(e.data)}}var Fa=new Uint8Array([14]);function Xv(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Fa)}function za(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)]]),e=>({...e,discriminator:Fa}))}function Ka(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)]])}function $v(){return gill.combineCodec(za(),Ka())}function Ja(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true}},a=m({}),i=p(r);return Object.freeze({accounts:[i(t.settings),i(t.payer),i(t.transactionBuffer),...a],data:za().encode({}),programAddress:r})}function Qv(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{settings:r(),payer:r(),transactionBuffer:r()},data:Ka().decode(e.data)}}var Za=new Uint8Array([25]);function ob(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(Za)}function qa(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["settingsKey",gill.getAddressEncoder()]]),e=>({...e,discriminator:Za}))}function Xa(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["settingsKey",gill.getAddressDecoder()]])}function cb(){return gill.combineCodec(qa(),Xa())}function $a(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},transactionBuffer:{value:e.transactionBuffer??null,isWritable:true}},c={...e},i=m({args:c}),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.transactionBuffer),...i],data:qa().encode(c),programAddress:r})}function ab(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let n=0,r=()=>{let s=e.accounts[n];return n+=1,s};return {programAddress:e.programAddress,accounts:{payer:r(),transactionBuffer:r()},data:Xa().decode(e.data)}}var ti=new Uint8Array([15]);function mb(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(ti)}function ri(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["transactionMessage",At()],["secp256r1VerifyArgs",gill.getArrayEncoder(J())]]),e=>({...e,discriminator:ti}))}function ni(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["transactionMessage",yt()],["secp256r1VerifyArgs",gill.getArrayDecoder(j())]])}function pb(){return gill.combineCodec(ri(),ni())}function si(e,n){let r=n?.programAddress??d,t={settings:{value:e.settings??null,isWritable:true},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.settings),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:ri().encode(c),programAddress:r})}function fb(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{settings:r(),slotHashSysvar:s(),instructionsSysvar:r()},data:ni().decode(e.data)}}var ai=new Uint8Array([26]);function Db(){return gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(ai)}function ii(){return gill.transformEncoder(gill.getStructEncoder([["discriminator",gill.fixEncoderSize(gill.getBytesEncoder(),1)],["transactionMessage",At()],["secp256r1VerifyArgs",gill.getArrayEncoder(J())],["settingsReadonlyArgs",X()],["compressedProofArgs",P()]]),e=>({...e,discriminator:ai}))}function ui(){return gill.getStructDecoder([["discriminator",gill.fixDecoderSize(gill.getBytesDecoder(),1)],["transactionMessage",yt()],["secp256r1VerifyArgs",gill.getArrayDecoder(j())],["settingsReadonlyArgs",$()],["compressedProofArgs",R()]])}function Mb(){return gill.combineCodec(ii(),ui())}function di(e,n){let r=n?.programAddress??d,t={payer:{value:e.payer??null,isWritable:true},slotHashSysvar:{value:e.slotHashSysvar??null,isWritable:false},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:false}},c={...e},a={args:c};t.slotHashSysvar.value||(t.slotHashSysvar.value="SysvarS1otHashes111111111111111111111111111"),t.instructionsSysvar.value||(t.instructionsSysvar.value="Sysvar1nstructions1111111111111111111111111");let i=m(a),o=p(r);return Object.freeze({accounts:[o(t.payer),o(t.slotHashSysvar),o(t.instructionsSysvar),...i],data:ii().encode(c),programAddress:r})}function Eb(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},s=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{payer:r(),slotHashSysvar:s(),instructionsSysvar:r()},data:ui().decode(e.data)}}var d="reviR1xysEChySVSWGa43a6oJ2boJYTJhwRjo8KJhhT",XT=(t=>(t[t.DomainConfig=0]="DomainConfig",t[t.GlobalCounter=1]="GlobalCounter",t[t.Settings=2]="Settings",t[t.TransactionBuffer=3]="TransactionBuffer",t))(XT||{});function u_(e){let n="data"in e?e.data:e;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),8).encode(new Uint8Array([201,232,212,229,59,241,106,197])),0))return 0;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),8).encode(new Uint8Array([42,206,176,58,175,129,130,233])),0))return 1;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),8).encode(new Uint8Array([223,179,163,190,177,224,67,173])),0))return 2;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),8).encode(new Uint8Array([90,36,35,219,93,225,110,96])),0))return 3;throw new Error("The provided account could not be identified as a multiWallet account.")}var $T=(A=>(A[A.ChangeConfig=0]="ChangeConfig",A[A.ChangeConfigCompressed=1]="ChangeConfigCompressed",A[A.CompressSettingsAccount=2]="CompressSettingsAccount",A[A.CreateDomainConfig=3]="CreateDomainConfig",A[A.CreateDomainUserAccount=4]="CreateDomainUserAccount",A[A.CreateGlobalCounter=5]="CreateGlobalCounter",A[A.CreateMultiWallet=6]="CreateMultiWallet",A[A.CreateMultiWalletCompressed=7]="CreateMultiWalletCompressed",A[A.CreateUserAccounts=8]="CreateUserAccounts",A[A.DecompressSettingsAccount=9]="DecompressSettingsAccount",A[A.DisableDomainConfig=10]="DisableDomainConfig",A[A.EditDomainConfig=11]="EditDomainConfig",A[A.EditTransactionManagerUrl=12]="EditTransactionManagerUrl",A[A.MigrateCompressedSettings=13]="MigrateCompressedSettings",A[A.MigrateCompressedUsers=14]="MigrateCompressedUsers",A[A.NativeTransferIntent=15]="NativeTransferIntent",A[A.NativeTransferIntentCompressed=16]="NativeTransferIntentCompressed",A[A.TokenTransferIntent=17]="TokenTransferIntent",A[A.TokenTransferIntentCompressed=18]="TokenTransferIntentCompressed",A[A.TransactionBufferClose=19]="TransactionBufferClose",A[A.TransactionBufferCloseCompressed=20]="TransactionBufferCloseCompressed",A[A.TransactionBufferCreate=21]="TransactionBufferCreate",A[A.TransactionBufferCreateCompressed=22]="TransactionBufferCreateCompressed",A[A.TransactionBufferExecute=23]="TransactionBufferExecute",A[A.TransactionBufferExecuteCompressed=24]="TransactionBufferExecuteCompressed",A[A.TransactionBufferExtend=25]="TransactionBufferExtend",A[A.TransactionBufferExtendCompressed=26]="TransactionBufferExtendCompressed",A[A.TransactionBufferVote=27]="TransactionBufferVote",A[A.TransactionBufferVoteCompressed=28]="TransactionBufferVoteCompressed",A[A.TransactionExecute=29]="TransactionExecute",A[A.TransactionExecuteCompressed=30]="TransactionExecuteCompressed",A[A.TransactionExecuteSync=31]="TransactionExecuteSync",A[A.TransactionExecuteSyncCompressed=32]="TransactionExecuteSyncCompressed",A))($T||{});function d_(e){let n="data"in e?e.data:e;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([8])),0))return 0;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([19])),0))return 1;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([16])),0))return 2;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([0])),0))return 3;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([4])),0))return 4;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([3])),0))return 5;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([7])),0))return 6;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([18])),0))return 7;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([5])),0))return 8;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([17])),0))return 9;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([2])),0))return 10;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([1])),0))return 11;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([6])),0))return 12;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([32])),0))return 13;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([31])),0))return 14;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([29])),0))return 15;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([27])),0))return 16;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([30])),0))return 17;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([28])),0))return 18;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([12])),0))return 19;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([23])),0))return 20;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([9])),0))return 21;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([20])),0))return 22;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([13])),0))return 23;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([24])),0))return 24;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([11])),0))return 25;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([22])),0))return 26;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([10])),0))return 27;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([21])),0))return 28;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([14])),0))return 29;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([25])),0))return 30;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([15])),0))return 31;if(gill.containsBytes(n,gill.fixEncoderSize(gill.getBytesEncoder(),1).encode(new Uint8Array([26])),0))return 32;throw new Error("The provided instruction could not be identified as a multiWallet instruction.")}var eS=6e3,tS=6001,rS=6002,nS=6003,sS=6004,oS=6005,cS=6006,aS=6007,iS=6008,uS=6009,dS=6010,gS=6011,AS=6012,yS=6013,mS=6014,pS=6015,fS=6016,lS=6017,TS=6018,SS=6019,xS=6020,IS=6021,CS=6022,DS=6023,MS=6024,ES=6025,PS=6026,RS=6027,hS=6028,vS=6029,bS=6030,_S=6031,US=6032,WS=6033,OS=6034,BS=6035,LS=6036,kS=6037,wS=6038,NS=6039,gi;process.env.NODE_ENV!=="production"&&(gi={[TS]:"This member is already delegated to another wallet.",[BS]:"The domain configuration account is disabled. Please contact support or try again later.",[LS]:"Missing domain configuration account. Include it as a required account in this instruction.",[nS]:"Duplicate public keys detected among members. Each member must have a unique key.",[rS]:"Durable nonce detected: this program does not support transactions using a durable nonce.",[uS]:"No members provided. A multisig wallet must contain at least one member.",[ES]:"Final buffer hash mismatch: the serialized data may be corrupted or altered.",[PS]:"The serialized transaction buffer exceeds the maximum size of 10,128 bytes.",[RS]:"Declared buffer size does not match the actual serialized size.",[IS]:"Not enough members with vote permission to meet the approval threshold.",[SS]:"At least one signer with execute permission is required to proceed.",[xS]:"At least one signer with initiate permission is required to perform this action.",[mS]:"One or more provided accounts failed validation. Verify that all required accounts are included and correct.",[pS]:"Invalid or missing instruction arguments. Ensure all required arguments are correctly provided.",[MS]:"Buffer validation failed: contents do not match the expected hash (possible tampering detected).",[yS]:"Unexpected number of accounts provided for this instruction.",[tS]:"Malformed or missing WebAuthn verification parameters. Please provide valid secp256r1 signature arguments.",[eS]:"Invalid signature: the provided signature does not match the expected message payload.",[WS]:"Failed to parse the Slot History sysvar: data format is invalid or corrupted.",[gS]:"Invalid threshold: must be at least 1 and cannot exceed the number of voting-eligible members.",[AS]:"Malformed transaction message: structure or formatting does not match the expected layout.",[_S]:"An input string exceeds the maximum allowed character length.",[kS]:"This member is not registered under the provided domain configuration.",[fS]:"A required account is missing from the instruction context.",[US]:"Missing required sysvar: Slot History must be included as an account in this instruction.",[lS]:"User mutation arguments are required when performing add or remove delegate operations.",[CS]:"No valid signer found in this transaction.",[cS]:"Only one permanent member is allowed per wallet.",[aS]:"Only one transaction manager is allowed per wallet.",[NS]:"The given origin index is not in the whitelisted origins.",[sS]:"Permanent members cannot be removed from a wallet.",[oS]:"This operation cannot assign a permanent member.",[bS]:"Writable CPI calls to protected accounts are not permitted.",[wS]:"The relying party ID hash does not match the one defined in the domain configuration.",[OS]:"The specified slot number was not found in the provided slot history.",[dS]:"Too many members: a maximum of 4 members are supported.",[hS]:"This transaction has expired. It must be executed within 3 minutes of approval.",[iS]:"This operation cannot assign a transaction manager.",[vS]:"This transaction has not yet reached the required approval threshold.",[DS]:"Only the transaction creator or rent payer may close this transaction buffer."});function f_(e){return process.env.NODE_ENV!=="production"?gi[e]:"Error message not available in production bundles."}function l_(e,n,r){return gill.isProgramError(e,n,d,r)}var ft={Ed25519:1,Secp256r1:2};var pe={InitiateTransaction:1,VoteTransaction:2,ExecuteTransaction:4},un=8,lt=16,de=class e{constructor(n){this.mask=n;}static fromPermissions(n){return new e(n.reduce((r,s)=>r|s,0))}static all(){return new e(Object.values(pe).reduce((n,r)=>n|r,0))}static has(n,r){return (n.mask&r)===r}};var dn=33,ue=class{_bn;constructor(n){typeof n=="string"?this._bn=new Uint8Array(gill.getBase58Encoder().encode(n)):this._bn=new Uint8Array(n),this.validateKeyLength(this._bn);}validateKeyLength(n){if(n.length!==dn)throw new Error(`Invalid public key length, expected ${dn} bytes but got ${n.length}`)}toBase58(){return gill.getBase58Decoder().decode(this.toBytes())}toTruncatedBuffer(){let n=this.toBuffer();return n.subarray(1,n.length)}toBuffer(){if(!this._bn)throw new Error("Invalid public key input");let n=this._bn;if(n.byteLength===dn)return n;throw new Error("Invalid public key input")}toBytes(){let n=this.toBuffer();return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}toString(){return this.toBase58()}toJSON(){return this.toBase58()}},M=class extends ue{verifyArgs;domainConfig;authData;signature;originIndex;crossOrigin;constructor(n,r){super(n),this.verifyArgs=r.verifyArgs,this.domainConfig=r.domainConfig,this.authData=r.authData,this.signature=r.signature,this.originIndex=r.originIndex,this.crossOrigin=r.crossOrigin;}};function GS(){return gill.getStructCodec([["programAddressIndex",gill.getU8Codec()],["accountIndices",gill.getArrayCodec(gill.getU8Codec())],["data",gill.getArrayCodec(gill.getU8Codec())]])}function FS(){return gill.getStructCodec([["lookupTableAddress",gill.getAddressCodec()],["writableIndexes",gill.getArrayCodec(gill.getU8Codec())],["readonlyIndexes",gill.getArrayCodec(gill.getU8Codec())]])}var yi=gill.getStructCodec([["numSigners",gill.getU8Codec()],["numWritableSigners",gill.getU8Codec()],["numWritableNonSigners",gill.getU8Codec()],["accountKeys",gill.getArrayCodec(gill.getAddressCodec())],["instructions",gill.getArrayCodec(GS())],["addressTableLookups",gill.getArrayCodec(FS())]]);function mi(e){return yi.encode({numSigners:e.header.numSignerAccounts,numWritableSigners:e.header.numSignerAccounts-e.header.numReadonlySignerAccounts,numWritableNonSigners:e.staticAccounts.length-e.header.numSignerAccounts-e.header.numReadonlyNonSignerAccounts,accountKeys:e.staticAccounts,instructions:e.instructions.map(r=>({programAddressIndex:r.programAddressIndex,accountIndices:r.accountIndices??[],data:Array.from(r.data??[])})),addressTableLookups:e.version!=="legacy"?e.addressTableLookups?.map(r=>({lookupTableAddress:r.lookupTableAddress,readonlyIndexes:r.readonlyIndexes,writableIndexes:r.writableIndexes}))??[]:[]})}function pi(e){let n=yi.decode(e);return {header:{numSignerAccounts:n.numSigners,numReadonlySignerAccounts:n.numSigners-n.numWritableSigners,numReadonlyNonSignerAccounts:n.accountKeys.length-n.numSigners-n.numWritableNonSigners},addressTableLookups:n.addressTableLookups.map(r=>({lookupTableAddress:r.lookupTableAddress,readonlyIndexes:r.readonlyIndexes.map(Number),writableIndexes:r.writableIndexes.map(Number),readableIndices:r.readonlyIndexes.map(Number),writableIndices:r.writableIndexes.map(Number)})),instructions:n.instructions.map(r=>({accountIndices:r.accountIndices.map(Number),data:new Uint8Array(r.data),programAddressIndex:r.programAddressIndex})),lifetimeToken:d,staticAccounts:n.accountKeys,version:0}}stateless_js.featureFlags.version=stateless_js.VERSION.V2;var An="v2",fi="revibase.com",li="https://auth.revibase.com",Ti="https://api.revibase.com";function Q(e){let n=stateless_js.deriveAddressSeedV2([new Uint8Array(gill.getUtf8Encoder().encode("multi_wallet")),new Uint8Array(gill.getU128Encoder().encode(e)),new Uint8Array(gill.getUtf8Encoder().encode(An))]),r=new web3_js.PublicKey(stateless_js.batchAddressTree);return {address:stateless_js.createBN254(stateless_js.deriveAddressV2(n,r,new web3_js.PublicKey(d)).toString(),"base58"),addressTree:r}}function F(e){let n=stateless_js.deriveAddressSeedV2([new Uint8Array(gill.getUtf8Encoder().encode("user")),e instanceof ue?e.toTruncatedBuffer():new Uint8Array(gill.getAddressEncoder().encode(e)),new Uint8Array(gill.getUtf8Encoder().encode(An))]),r=new web3_js.PublicKey(stateless_js.batchAddressTree);return {address:stateless_js.createBN254(stateless_js.deriveAddressV2(n,r,new web3_js.PublicKey(d.toString())).toString(),"base58"),addressTree:r}}async function ke({rpIdHash:e,rpId:n}){if(!e)if(n)e=sha256.sha256(new Uint8Array(gill.getUtf8Encoder().encode(n)));else throw new Error("RpId not found.");if(!e)throw new Error("RpIdHash not found.");let[r]=await gill.getProgramDerivedAddress({programAddress:d,seeds:[gill.getUtf8Encoder().encode("domain_config"),e]});return r}async function Gt(){let[e]=await gill.getProgramDerivedAddress({programAddress:d,seeds:[gill.getUtf8Encoder().encode("global_counter")]});return e}async function Mi(e,n,r){if(r>255)throw new Error("Index cannot be greater than 255.");let[s]=await gill.getProgramDerivedAddress({programAddress:d,seeds:[gill.getUtf8Encoder().encode("multi_wallet"),gill.getAddressEncoder().encode(e),gill.getUtf8Encoder().encode("transaction_buffer"),n instanceof ue?n.toTruncatedBuffer():gill.getAddressEncoder().encode(n),gill.getU8Encoder().encode(r)]});return s}async function fe(e){let[n]=await gill.getProgramDerivedAddress({programAddress:d,seeds:[gill.getUtf8Encoder().encode("multi_wallet"),gill.getAddressEncoder().encode(e),gill.getUtf8Encoder().encode("vault")]});return n}async function z(e){let[n]=await gill.getProgramDerivedAddress({programAddress:d,seeds:[gill.getUtf8Encoder().encode("multi_wallet"),gill.getU128Encoder().encode(e)]});return n}async function Ei(e){let n=await z(e);return await fe(n)}async function tU(){let[e]=await gill.getProgramDerivedAddress({programAddress:d,seeds:[gill.getUtf8Encoder().encode("cpi_authority")]});return e}async function mn(e,n=false){let r=n?{blockhash:gill.getBlockhashDecoder().decode(crypto.getRandomValues(new Uint8Array(32))),lastValidBlockHeight:BigInt(Number.MAX_SAFE_INTEGER)}:(await oe().getLatestBlockhash().send()).value;return await Promise.all(e.map(async s=>await gill.pipe(gill.createTransactionMessage({version:0}),c=>gill.appendTransactionMessageInstructions(s.instructions,c),c=>gill.setTransactionMessageFeePayerSigner(s.payer,c),c=>gill.setTransactionMessageLifetimeUsingBlockhash(r,c),c=>s.addressesByLookupTableAddress?gill.compressTransactionMessageUsingAddressLookupTables(c,s.addressesByLookupTableAddress):c,async c=>{let a=Math.ceil((s.unitsConsumed??0)*1.1)||8e5;return a>2e5?gill.prependTransactionMessageInstructions([programs.getSetComputeUnitLimitInstruction({units:a})],c):c},async c=>n?gill.compileTransaction(await c):await gill.signTransactionMessageWithSigners(await c))))}async function Ri(e,n){let s=(await e.getRecentPrioritizationFees(n.filter(c=>c.role===gill.AccountRole.WRITABLE||c.role===gill.AccountRole.WRITABLE_SIGNER).map(c=>c.address)).send()).map(c=>Number(c.prioritizationFee));s.sort((c,a)=>c-a);let t=Math.floor(s.length/2);return s.length%2===0?Math.round((s[t-1]+s[t])/2):s[t]}async function hi(e,n){if(e.length===0)throw new Error("Bundle is empty.");for(let c=0;c<e.length;c++){if(e[c].length>1644)throw new Error(`Transaction ${c} exceeds maximum length, ${e[c].length}. Retry again.`);console.log(`Transaction ${c} length: ${e[c].length}`);}let r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:"2",method:"simulateBundle",params:[{encodedTransactions:e},{skipSigVerify:true,replaceRecentBlockhash:true,preExecutionAccountsConfigs:e.map(()=>({encoding:"base64",addresses:[]})),postExecutionAccountsConfigs:e.map(()=>({encoding:"base64",addresses:[]}))}]})});if(!r.ok)throw console.error(await r.json()),new Error("Failed to simulate bundle");let{result:s,error:t}=await r.json();if(!s||t)throw console.error(t??s),new Error(`Unable to simulate bundle: ${JSON.stringify(t??s)}`);if(typeof s.value.summary!="string"&&s.value.summary.failed){let{TransactionFailure:c}=s.value.summary.failed.error,[,a]=c;throw console.error(t??s),new Error(`Simulation failed: ${a}`)}return s.value.transactionResults.map(c=>c.unitsConsumed)}function w(e,n=0){let r=e instanceof M?e:void 0,s=r?.verifyArgs&&n!==-1?gill.some({signedMessageIndex:n,truncatedClientDataJson:r.verifyArgs.truncatedClientDataJson,slotNumber:r.verifyArgs.slotNumber,originIndex:r.originIndex,crossOrigin:r.crossOrigin}):null,t=r?.domainConfig?r.domainConfig:void 0,c=r?.verifyArgs?r.signature:void 0,a=r?.authData&&r.verifyArgs?.clientDataJson?new Uint8Array([...r.authData,...sha256.sha256(r.verifyArgs.clientDataJson)]):void 0,i=r?.toBuffer();return {domainConfig:t,verifyArgs:s,signature:c,message:a,publicKey:i}}function ge(e){function n(t){return t instanceof M?t.toString():t.address.toString()}let r=new Set,s=[];for(let t of e)r.has(n(t))||(s.push(t),r.add(n(t)));if(s.filter(t=>t instanceof M).length>1)throw new Error("More than 1 Secp256r1 signers in an instruction is not supported.");return s}function vi({payer:e,tipAmount:n}){let r=["HFqU5x63VTqvQss8hp11i4wVV8bD44PvwucfZ2bU7gRe","ADaUMid9yfUytqMBgopwjb2DTLSokTSzL1zt6iGPaS49","96gYZGLnJYVFmbjzopPSU6QiEV5fGqZNyN9nmNhvrZU5","Cw8CFyM9FkoMi7K7Crf6HNQqf4uEMzpKw6QNghXLvLkY","DfXygSm4jCyNCybVYYK6DwvWqjKee8pbDmJGcLWNDXjh","ADuUkR4vqLUMWXxW9gh6D6L8pMSawimctcNZ5pGwDcEt","3AVi9Tg9Uo68tJfuvoKvqKNWKkC5wPdSSdeBnizKZ6jT","DttWaMuVvTiduZRnguLF7jNxTgiMBZ1hyAumKUiL2KRL"],s=r[Math.floor(Math.random()*r.length)];return programs.getTransferSolInstruction({source:e,destination:gill.address(s),amount:n})}async function bi(e){let n=await fetch(`${e}/getRandomPayer`),{randomPayer:r}=await n.json();return {address:gill.address(r),async signTransactions(s){let t={publicKey:r,transactions:s.map(i=>gill.getBase64Decoder().decode(gill.getTransactionEncoder().encode(i)))},a=await(await fetch(`${e}/sign`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json();if("error"in a)throw new Error(a.error);return a.signatures.map(i=>({[gill.address(r)]:gill.getBase58Encoder().encode(i)}))}}}var we=null,zt=null,Kt=null,Jt=null,jt=null,Ft=null,pn=null,Yt=null,fn=null,ln=null,_i=null;function Ui(){if(!we)throw new Error("Rpc is not initialized yet.");return we}function Tt(){if(!zt)throw new Error("Rpc is not initialized yet");return zt}function oe(){if(!Kt)throw new Error("Rpc is not initialized yet");return Kt}function Wi(){if(!Jt)throw new Error("Rpc is not initialized yet.");return Jt}function Oi(){if(!jt)throw new Error("Rpc is not initialized yet");return jt}async function pU(){return Ft||(Ft=await bi(pn??Ti)),Ft}function Tn(){if(!Yt)throw new Error("Jito Bundle Config is not set.");return Yt}function Se(){return fn??li}function Bi(){return ln}function Zt(){return _i}function fU(){zt=null,Kt=null,we=null,Ft=null,pn=null,Yt=null,fn=null,Jt=null,jt=null,ln=null;}function lU({rpcEndpoint:e,proverEndpoint:n,compressionApiEndpoint:r,jitoTipsConfig:s,apiEndpoint:t,authEndpoint:c,authorizedClient:a,additionalInfo:i}){we=e,zt=stateless_js.createRpc(we,r,n);let{rpc:o,sendAndConfirmTransaction:u}=gill.createSolanaClient({urlOrMoniker:we});Kt=o,Jt=u,jt=programs.estimateComputeUnitLimitFactory({rpc:o}),pn=t??null,Yt=s??null,fn=c??null,ln=a??null,_i=i??null;}var K=class{preAccounts;systemAccounts;nextIndex;map;outputTreeIndex;constructor(){this.preAccounts=[],this.systemAccounts=[],this.nextIndex=0,this.map=new Map,this.outputTreeIndex=-1;}addPreAccounts(n){this.preAccounts.push(...n);}getAccountRole(n,r){return n?r?gill.AccountRole.WRITABLE_SIGNER:gill.AccountRole.READONLY_SIGNER:r?gill.AccountRole.WRITABLE:gill.AccountRole.READONLY}async addSystemAccounts(){this.systemAccounts.push(...stateless_js.getLightSystemAccountMetasV2({selfProgram:new web3_js.PublicKey(d.toString())}).map(n=>({address:gill.address(n.pubkey.toString()),role:this.getAccountRole(n.isSigner,n.isWritable)})));}insertOrGet(n){return this.insertOrGetConfig(n,gill.AccountRole.WRITABLE)}insertOrGetConfig(n,r){if(!this.map.has(n)){let s=this.nextIndex++,t={address:gill.address(n),role:r};this.map.set(n,{index:s,accountMeta:t});}return this.map.get(n).index}packOutputTreeIndex(n){if(n.treeType===stateless_js.TreeType.StateV1)return this.insertOrGet(n.tree.toString());if(n.treeType===stateless_js.TreeType.StateV2)return this.insertOrGet(n.queue.toString());throw new Error("Tree type not supported")}async getOutputTreeIndex(){if(this.outputTreeIndex!==-1)return this.outputTreeIndex;let n=await Tt().getStateTreeInfos();return this.packOutputTreeIndex(stateless_js.selectStateTreeInfo(n))}packTreeInfos(n,r){let s=[],t=[];for(let c of n){let a=this.insertOrGet(c.treeInfo.tree.toString()),i=this.insertOrGet(c.treeInfo.queue.toString());s.push({rootIndex:c.rootIndex,merkleTreePubkeyIndex:a,queuePubkeyIndex:i,leafIndex:c.leafIndex,proveByIndex:c.proveByIndex});let o=c.treeInfo.nextTreeInfo??c.treeInfo,u=this.packOutputTreeIndex(o);this.outputTreeIndex===-1&&(this.outputTreeIndex=u);}for(let c of r){let a=this.insertOrGet(c.treeInfo.tree.toString()),i=this.insertOrGet(c.treeInfo.queue.toString());t.push({rootIndex:c.rootIndex,addressMerkleTreePubkeyIndex:a,addressQueuePubkeyIndex:i});}return {stateTrees:s.length>0?{packedTreeInfos:s,outputTreeIndex:this.outputTreeIndex}:void 0,addressTrees:t}}hashSetAccountsToMetas(){return Array.from(this.map.entries()).sort((r,s)=>r[1].index-s[1].index).map(([,{accountMeta:r}])=>({...r}))}getOffsets(){let n=this.preAccounts.length,r=n+this.systemAccounts.length;return [n,r]}toAccountMetas(){let n=this.hashSetAccountsToMetas(),[r,s]=this.getOffsets();return {remainingAccounts:[...this.preAccounts,...this.systemAccounts,...n],systemOffset:r,packedOffset:s}}};async function Ne(e,n){let r=n?.get(e.toString());if(r)return r;{let s=await Tt().getCompressedAccount(e);return s&&n?.set(e.toString(),s),s}}async function ce(e,n){let s=(await Promise.all(e.map(async t=>Ne(t.address,n)))).filter(t=>t!==null).filter(t=>t.data!==null&&t.address!==null);if(s.length!==e.length)throw new Error("Unable to find compressed account.");return s.map((t,c)=>({...t,type:e[c].type,tree:t.treeInfo.tree,queue:t.treeInfo.queue}))}function k(e,n){return {proof:e?.compressedProof?gill.some({a:new Uint8Array(e.compressedProof.a),b:new Uint8Array(e.compressedProof.b),c:new Uint8Array(e.compressedProof.c)}):null,lightCpiAccountsStartIndex:n}}async function xe(e,n,r,s,t){if(t.length===0)return [];let c=t.map((u,g)=>({treeInfo:n[g],root:r[g],rootIndex:s[g],address:u.address.toArray()})),{addressTrees:a}=e.packTreeInfos([],c),i=await e.getOutputTreeIndex();return t.map((u,g)=>({addressTreeInfo:a[g],outputStateTreeIndex:i,address:u.address,type:u.type}))}function ee(e,n,r,s,t,c,a){let i=[];for(let g=0;g<n.length;g++)i.push({treeInfo:n[g],rootIndex:s[g],leafIndex:r[g],proveByIndex:t[g],hash:c[g].hash});let o=e.packTreeInfos(i,[]).stateTrees;if(!o)throw new Error("Unable to parsed data.");return c.map((g,y)=>({data:a.decode(g.data.data),accountMeta:{treeInfo:o.packedTreeInfos[y],address:new Uint8Array(g.address),outputStateTreeIndex:o.outputTreeIndex}}))}async function Ae(e,n,r,s){let t=null,c=null,a=new K;if(e){await a.addSystemAccounts();let{address:i}=Q(n),o=(await ce([{address:i,type:"Settings"}],s))[0];r?c={rootIndices:[0],roots:[],leafIndices:[o.leafIndex],leaves:[],treeInfos:[o.treeInfo],proveByIndices:[o.proveByIndex],compressedProof:{a:Array.from(crypto.getRandomValues(new Uint8Array(32))),b:Array.from(crypto.getRandomValues(new Uint8Array(32))),c:Array.from(crypto.getRandomValues(new Uint8Array(32)))}}:c=await q([o],[]);let u=a.packTreeInfos([{treeInfo:c.treeInfos[0],rootIndex:c.rootIndices[0],leafIndex:c.leafIndices[0],proveByIndex:c.proveByIndices[0],hash:o.hash}],[]).stateTrees;if(!u)throw new Error("Unable to parsed data.");t={accountMeta:{address:new Uint8Array(o.address),treeInfo:u.packedTreeInfos[0]},data:G().decode(o.data?.data)};}return {settingsReadonlyArgs:t,proof:c,packedAccounts:a}}async function q(e,n,r=10,s=400){let t=1;for(;t<r;)try{return await Tt().getValidityProofV0(e,n)}catch(c){if(console.error(`Attempt ${t}, Get Validity Proof failed. ${c}`),t++,t>=r)throw new Error(`Failed to get validity proof after ${r} attempts: ${c}`);await new Promise(a=>setTimeout(a,s));}throw new Error(`Failed to get validity proof after ${r} attempts`)}async function wi(e,n){let r=await Tx(e,n);if(!r)throw new Error("User cannot be found.");return r}async function Tx(e,n){let{address:r}=F(e),s=await Ne(r,n);return s?.data?.data?Y().decode(s.data.data):null}async function qt(e,n){let r=await Sx(e,n);if(!r)throw new Error("Settings cannot be found.");return r}async function Sx(e,n){try{let{address:r}=Q(e),s=await Ne(r,n);if(!s?.data?.data)return null;let t=G().decode(s.data.data);return t.data.__option==="None"?null:{...t.data.value,isCompressed:!0}}catch{let r=await wr(oe(),await z(e));return r.exists?{...r.data,members:r.data.members.slice(0,r.data.membersLen),isCompressed:false}:null}}var He=null,Hi=2e3,Vi=3e3,xx=300*1e3;async function Xt({authUrl:e,additionalInfo:n,signer:r,popUp:s=null,data:t}){if(typeof window>"u")throw new Error("Function can only be called in a browser environment");return new Promise((c,a)=>{let i=new URL(e).origin,o=null,u=setInterval(()=>{s&&s.closed&&(y(),a(new Error("User closed the authentication window")));},500),g=setTimeout(()=>{l("Authentication timeout."),y(),a(new Error("Authentication timed out"));},xx);function y(){clearInterval(u),clearTimeout(g),o&&clearTimeout(o),He&&window.removeEventListener("message",He),s&&s.close();}if(s?s.location.replace(e):s=Ki(e),!s){a(new Error("Disable your popup blocker to continue."));return}function l(...S){n?.debug&&console.debug("[Popup]",...S);}let T=S=>{let D=S.origin===i,_=S.source===s;if(!D||!_||!S.isTrusted||!s){l("Ignored message from unknown source",S);return}switch(S.data.type){case "popup-ready":l("Popup is ready, sending auth data"),s.postMessage({type:"popup-init",payload:{signer:r?.toString(),data:t,additionalInfo:n}},i),o=setTimeout(()=>{y(),a(new Error("User closed the authentication window"));},Hi+Vi);break;case "popup-complete":l("Received completion message");try{let I=JSON.parse(S.data.payload);y(),c(I);}catch{a(new Error("Failed to parse response payload"));}break;case "popup-heartbeat":l("Received heartbeat"),o&&(clearTimeout(o),o=setTimeout(()=>{y(),a(new Error("User closed the authentication window"));},Hi+Vi));break;case "popup-closed":l("Popup explicitly closed"),y(),a(new Error("User closed the authentication window"));break;default:l("Unknown message type",S.data.type);}};He&&window.removeEventListener("message",He),He=T,window.addEventListener("message",He);})}function $t(e){let n="";for(let s of e)n+=String.fromCharCode(s);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function xt(e){let n=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-n.length%4)%4,s=n.padEnd(n.length+r,"="),t=atob(s),c=new ArrayBuffer(t.length),a=new Uint8Array(c);for(let i=0;i<t.length;i++)a[i]=t.charCodeAt(i);return c}function Qt(e){return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}function Ix(e){let n=new Uint8Array(e.length/2);for(let r=0;r<n.length;r++)n[r]=parseInt(e.slice(r*2,r*2+2),16);return n}function Gi(e){let n=new Set(["type","challenge","origin","crossOrigin"]),r={};for(let t in e)n.has(t)||(r[t]=e[t]);if(Object.keys(r).length===0)return new Uint8Array([]);let s=JSON.stringify(r);return new TextEncoder().encode(s.slice(1,-1))}function Fi(e,n){let r=[],s=0,t=new TextDecoder;for(let c=0;c<n;c++){if(s+2>e.length)throw new Error("MaxLengthExceeded");let a=e[s]|e[s+1]<<8;if(s+=2,s+a>e.length)throw new Error("MaxLengthExceeded");let i=e.slice(s,s+a),o=t.decode(i);r.push(o),s+=a;}return r}function zi(e){if(e.length===64)return e;if(e[0]!==48)throw new Error("Invalid DER sequence");let n=e[1],r=2;if(n>128){let I=n&127;r+=I;}if(e[r]!==2)throw new Error("Expected INTEGER for r");let s=e[r+1],t=r+2,c=e.slice(t,t+s);if(r=t+s,e[r]!==2)throw new Error("Expected INTEGER for s");let a=e[r+1],i=r+2,o=e.slice(i,i+a),u=c[0]===0&&c.length>32?c.slice(1):c,g=o[0]===0&&o.length>32?o.slice(1):o;if(u.length>32||g.length>32)throw new Error("r or s length > 32 bytes");let y=new Uint8Array(32);y.set(u,32-u.length);let l=p256.p256.Point.CURVE().n>>1n,T=BigInt("0x"+Qt(g)),D=(T>l?p256.p256.Point.CURVE().n-T:T).toString(16).padStart(64,"0"),_=Ix(D);return new Uint8Array([...y,..._])}function Ki(e=`${Se()}/loading`){if(typeof window>"u")throw new Error("Function can only be called in a browser environment");let n=window.innerWidth||screen.availWidth,r=window.innerHeight||screen.availHeight,s=n<=768,t,c,a,i;if(s)t=n,c=r,a=0,i=0;else {let g=window.screenLeft??window.screenX,y=window.screenTop??window.screenY,l=window.innerWidth??document.documentElement.clientWidth??screen.width,T=window.innerHeight??document.documentElement.clientHeight??screen.height;t=500,c=600,i=g+(l-t)/2,a=y+(T-c)/2;}let o=[`width=${t}`,`height=${c}`,`top=${a}`,`left=${i}`,"toolbar=no","location=no","status=no","menubar=no","scrollbars=yes","resizable=yes"].join(","),u=window.open(e,"_blank",o);return u&&u.focus(),u}function rW(e){let n=tinyCbor.decodeCBOR(e),r=p256.p256.Point.fromAffine({x:BigInt("0x"+Qt(n.get(-2))),y:BigInt("0x"+Qt(n.get(-3)))});return gill.getBase58Decoder().decode(r.toBytes(true))}function Yi(e){let r=p256.p256.Point.fromBytes(new Uint8Array(gill.getBase58Encoder().encode(e))).toBytes(false),s=new Map;return s.set(1,2),s.set(3,-7),s.set(-1,1),s.set(-2,r.slice(1,33)),s.set(-3,r.slice(33,65)),new Uint8Array(tinyCbor.encodeCBOR(s))}async function nW(e,n=0,r=false){let{authenticatorData:s,clientDataJSON:t,signature:c}=e.authResponse.response,a=new Uint8Array(xt(s)),i=JSON.parse(new TextDecoder().decode(xt(t))),o=Gi(i),u=zi(new Uint8Array(xt(c))),g=await ke({rpIdHash:a.subarray(0,32)});return new M(e.signer.toString(),{verifyArgs:{clientDataJson:new Uint8Array(xt(t)),truncatedClientDataJson:o,slotNumber:BigInt(e.slotNumber),slotHash:new Uint8Array(gill.getBase58Encoder().encode(e.slotHash))},domainConfig:g,authData:a,signature:u,originIndex:n,crossOrigin:r})}async function sW(e,n){let{data:r}=await _n(oe(),e),t=Fi(new Uint8Array(r.origins),r.numOrigins).findIndex(c=>c===n);if(t===-1)throw new Error("Origin not found in domain config");return t}async function pW(e){let n=await mn(e,true),r=await hi(n.map(gill.getBase64EncodedWireTransaction),Ui()),s=await mn(e.map((c,a)=>({...c,unitsConsumed:r[a]})));return await Nx(s.map(gill.getBase64EncodedWireTransaction))}async function fW({instructions:e,payer:n,addressesByLookupTableAddress:r}){let s=await oe().getLatestBlockhash().send(),t=await gill.pipe(gill.createTransactionMessage({version:0}),c=>gill.appendTransactionMessageInstructions([...e],c),c=>gill.setTransactionMessageFeePayerSigner(n,c),c=>gill.setTransactionMessageLifetimeUsingBlockhash(s.value,c),c=>r?gill.compressTransactionMessageUsingAddressLookupTables(c,r):c,async c=>{let[a,i]=await Promise.all([Oi()(c),Ri(oe(),c.instructions.flatMap(u=>u.accounts??[]))]),o=Math.ceil(a*1.1);return gill.prependTransactionMessageInstructions([...o>2e5?[programs.getSetComputeUnitLimitInstruction({units:o})]:[],...i>0?[programs.getSetComputeUnitPriceInstruction({microLamports:i})]:[]],c)},async c=>await gill.signTransactionMessageWithSigners(await c));return await Wi()(t,{commitment:"confirmed",skipPreflight:true}),gill.getSignatureFromTransaction(t)}async function Nx(e,n=10,r=1e3,s=Tn()){let{blockEngineUrl:t}=s;for(let c=1;c<=n;c++){let a=await fetch(`${t}/bundles`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"sendBundle",params:[e,{encoding:"base64"}]})});if(a.status===429&&c<n){await new Promise(o=>setTimeout(o,r));continue}let i=await a.json();if(i.error)throw new Error(`Error sending bundles: ${JSON.stringify(i.error,null,2)}`);return i.result}throw new Error("Failed to send bundle after retries.")}async function lW(e,n=30,r=3e3,s=Tn()){let{blockEngineUrl:t}=s;for(let c=1;c<=n;c++){let a=await fetch(`${t}/getBundleStatuses`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"getBundleStatuses",params:[[e]]})});if(a.status===429&&c<n){await new Promise(u=>setTimeout(u,r));continue}let i=await a.json();if(i.error)throw new Error(`Error sending bundles: ${JSON.stringify(i.error,null,2)}`);let o=i.result;if(o.value.length){let u=o.value[0];if(u.confirmation_status==="confirmed"||u.confirmation_status==="finalized")return u.transactions[u.transactions.length-1]}if(c<n){await new Promise(u=>setTimeout(u,r));continue}}throw new Error("Failed to get bundle status after retries.")}async function TW({signer:e,index:n,transactionMessageBytes:r,cachedAccounts:s}){let t=await qt(n,s);if(t.threshold>1)throw new Error("Multi-signature transactions with threshold > 1 are not supported yet.");let{permissions:c}=t.members.find(l=>It(l.pubkey)===e.toString())??{};if(!c)throw new Error("No permissions found for the current member.");let a=de.has(c,pe.InitiateTransaction),i=de.has(c,pe.VoteTransaction),o=de.has(c,pe.ExecuteTransaction);if(a&&i&&o)return null;if(!i||!o)throw new Error("Signer lacks the required Vote/Execute permissions.");let u=t.members.find(l=>de.has(l.permissions,lt));if(!u)throw new Error("No transaction manager available in wallet.");let g=gill.address(It(u.pubkey)),y=await wi(g,s);if(y.transactionManagerUrl.__option==="None")throw new Error("Transaction manager endpoint is missing for this account.");return Hx(g,y.transactionManagerUrl.value,r)}function Hx(e,n,r){return {address:e,async signTransactions(s){let t={publicKey:e.toString(),transactions:s.map(gill.getBase64EncodedWireTransaction)};r&&(t.transactionMessageBytes=gill.getBase64Decoder().decode(r));let c=Bi();if(c){let{url:o,publicKey:u}=c,y=await(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({transactions:t.transactions,publicKey:u})})).json();if("error"in y)throw new Error(y.error);t.authorizedClient={publicKey:u,signatures:y.signatures};}let i=await(await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json();if("error"in i)throw new Error(i.error);return i.signatures.map(o=>({[e]:gill.getBase58Encoder().encode(o)}))}}}function It(e){return e.keyType===ft.Ed25519?gill.getBase58Decoder().decode(e.key.subarray(1,33)):gill.getBase58Decoder().decode(e.key)}async function LW({index:e,configActionsArgs:n,payer:r,compressed:s=false,cachedAccounts:t}){let c=await Ei(e),a=[],i=[];for(let x of n)if(x.type==="AddMembers")a.push(...x.members.map(f=>f.pubkey instanceof M?{address:F(f.pubkey).address,type:"User"}:f.setAsDelegate?{address:F(f.pubkey.address).address,type:"User"}:{address:F(f.pubkey).address,type:"User"}));else if(x.type==="RemoveMembers")i.push(...x.members.map(f=>({address:F(f.pubkey).address,type:"User"})));else if(x.type==="EditPermissions")for(let f of x.members)f.delegateOperation!==2&&(f.delegateOperation===0?a:i).push({address:F(f.pubkey).address,type:"User"});let o=new K,u=null,g=null,y=[];if(a.length||i.length||s){await o.addSystemAccounts();let x=[...s?[{address:Q(e).address,type:"Settings"}]:[],...i,...a],f=x.length?await ce(x,t):[];if(f.length){u=await q(f,[]);let C=f.filter(U=>U.type==="Settings"),E=f.filter(U=>U.type==="User");s&&u&&(g=ee(o,u.treeInfos.slice(0,1),u.leafIndices.slice(0,1),u.rootIndices.slice(0,1),u.proveByIndices.slice(0,1),C,G())[0]),E.length&&u&&(y=ee(o,u.treeInfos.slice(s?1:0),u.leafIndices.slice(s?1:0),u.rootIndices.slice(s?1:0),u.proveByIndices.slice(s?1:0),E,Y()));}}let l=[],T=[];for(let x of n)switch(x.type){case "AddMembers":{let f=[];for(let C of x.members)if(C.pubkey instanceof M){let E=l.length,{message:U,signature:W,publicKey:O,domainConfig:N}=w(C.pubkey,E);U&&W&&O&&l.push({message:U,signature:W,publicKey:O}),N&&o.addPreAccounts([{address:N,role:gill.AccountRole.READONLY}]);let Z=await er(C.pubkey,y);Z&&f.push(Xi({...C,permissionArgs:C.permissions,index:E,userMutArgs:Z}));}else {C.setAsDelegate&&o.addPreAccounts([{address:C.pubkey.address,role:gill.AccountRole.READONLY_SIGNER,signer:C.pubkey}]);let E=await er(C.setAsDelegate?C.pubkey.address:C.pubkey,y);E&&f.push(Xi({...C,permissionArgs:C.permissions,index:-1,userMutArgs:E}));}T.push({__kind:x.type,fields:[f]});break}case "RemoveMembers":{let f=await Promise.all(x.members.map(async C=>{let E=await er(C.pubkey,y);if(!E)throw new Error("User account not found");return Kx({...C,userMutArgs:E})}));T.push({__kind:x.type,fields:[f]});break}case "EditPermissions":{let f=await qt(e,t),C=f.members.find(W=>de.has(W.permissions,un)),E=f.members.find(W=>de.has(W.permissions,lt)),U=await Promise.all(x.members.map(async W=>{let O=!!C?.pubkey&&It(C.pubkey)===W.pubkey.toString();if(!!E?.pubkey&&It(E.pubkey)===W.pubkey.toString())throw new Error("Transaction Manager's permission cannot be changed.");let Z=W.delegateOperation!==2?await er(W.pubkey,y):void 0;return zx({...W,permissionArgs:W.permissions,isPermanentMember:O,userMutArgs:Z})}));T.push({__kind:x.type,fields:[U]});break}default:T.push({__kind:x.type,fields:[x.threshold]});}let{remainingAccounts:S,systemOffset:D}=o.toAccountMetas(),_=k(u,D);return {instructions:s?[Gs({configActions:T,payer:r,authority:gill.createNoopSigner(c),compressedProofArgs:_,settingsMut:g,remainingAccounts:S})]:[await Ls({settingsIndex:e,configActions:T,payer:r,compressedProofArgs:_,remainingAccounts:S})],secp256r1VerifyInput:l}}async function er(e,n){let{address:r}=F(e);return n.find(t=>new Vx__default.default(new Uint8Array(t.accountMeta.address)).eq(r))}function zx({pubkey:e,permissionArgs:n,userMutArgs:r,delegateOperation:s,isPermanentMember:t}){if(t&&(r||s!==2))throw new Error("Delegation cannot be modified for a permanent member.");let c=eu(n,t);return {memberKey:xn(e),permissions:c,userArgs:r?gill.some(r):gill.none(),delegateOperation:s}}function Kx({pubkey:e,userMutArgs:n}){if(n.data.isPermanentMember)throw new Error("Permanent Member cannot be removed from the wallet.");return {memberKey:xn(e),userArgs:n.data.settingsIndex.__option==="Some"?{__kind:"Mutate",fields:[n]}:{__kind:"Read",fields:[n]}}}function Xi({pubkey:e,permissionArgs:n,index:r,userMutArgs:s,setAsDelegate:t,isTransactionManager:c}){return {member:{permissions:Jx(s,t,n,c),pubkey:xn(e instanceof M?e:t?e.address:e)},verifyArgs:e instanceof M&&e.verifyArgs&&r!==-1?gill.some({truncatedClientDataJson:e.verifyArgs.truncatedClientDataJson,slotNumber:e.verifyArgs.slotNumber,signedMessageIndex:r,originIndex:e.originIndex,crossOrigin:e.crossOrigin}):gill.none(),userArgs:t?{__kind:"Mutate",fields:[s]}:{__kind:"Read",fields:[s]},setAsDelegate:t}}function xn(e){return e instanceof ue?{keyType:ft.Secp256r1,key:e.toBytes()}:{keyType:ft.Ed25519,key:new Uint8Array([0,...gill.getAddressEncoder().encode(e)])}}function Jx(e,n,r,s){let t=e.data,c=t.isPermanentMember;if(c){if(!n)throw new Error("Permanent members must also be delegates. Please set `setAsDelegate = true`.");if(t.settingsIndex.__option==="Some")throw new Error("This user is already registered as a permanent member in another wallet. A permanent member can only belong to one wallet.")}if(s){if(r.execute||r.vote)throw new Error("Transaction Manager can only have initiate permission");if(n)throw new Error("Transaction Manager cannot be a delegate. Please set `setAsDelegate = false`.")}return eu(r,c,s)}function eu(e,n=false,r=false){let s=[];return e.initiate&&s.push(pe.InitiateTransaction),e.vote&&s.push(pe.VoteTransaction),e.execute&&s.push(pe.ExecuteTransaction),n&&s.push(un),r&&s.push(lt),de.fromPermissions(s)}var Ve=33,Ge=64,Mn=14,Qx=2,eI=gill.address("Secp256r1SigVerify1111111111111111111111111");function tI(){return gill.getStructEncoder([["signatureOffset",gill.getU16Encoder()],["signatureInstructionIndex",gill.getU16Encoder()],["publicKeyOffset",gill.getU16Encoder()],["publicKeyInstructionIndex",gill.getU16Encoder()],["messageDataOffset",gill.getU16Encoder()],["messageDataSize",gill.getU16Encoder()],["messageInstructionIndex",gill.getU16Encoder()]])}function rI(){return gill.getStructDecoder([["signatureOffset",gill.getU16Decoder()],["signatureInstructionIndex",gill.getU16Decoder()],["publicKeyOffset",gill.getU16Decoder()],["publicKeyInstructionIndex",gill.getU16Decoder()],["messageDataOffset",gill.getU16Decoder()],["messageDataSize",gill.getU16Decoder()],["messageInstructionIndex",gill.getU16Decoder()]])}function su(){return gill.createDecoder({read:(e,n=0)=>{let r=gill.getU8Decoder().decode(e,n);n+=1;let s=gill.getU8Decoder().decode(e,n);n+=1;let t=[],c=rI();for(let i=0;i<r;i++)t.push(c.decode(e,n)),n+=Mn;let a=[];for(let i=0;i<r;i++){let o=gill.fixDecoderSize(gill.getBytesDecoder(),Ve).decode(e,n);n+=Ve;let u=gill.fixDecoderSize(gill.getBytesDecoder(),Ge).decode(e,n);n+=Ge;let g=t[i].messageDataSize,y=gill.fixDecoderSize(gill.getBytesDecoder(),g).decode(e,n);n+=g,a.push({publicKey:o,signature:u,message:y});}return [{numSignatures:r,padding:s,offsets:t,payload:a},n]}})}function ou(){return gill.createEncoder({getSizeFromValue:e=>{let n=Mn*e.offsets.length,r=e.payload.reduce((s,t)=>s+Ve+Ge+t.message.length,0);return 2+n+r},write:(e,n,r=0)=>{r=gill.getU8Encoder().write(e.numSignatures,n,r),r=gill.getU8Encoder().write(e.padding,n,r);let s=tI();for(let t of e.offsets)r=s.write(t,n,r);for(let t of e.payload)r=gill.fixEncoderSize(gill.getBytesEncoder(),Ve).write(t.publicKey,n,r),r=gill.fixEncoderSize(gill.getBytesEncoder(),Ge).write(t.signature,n,r),r=gill.getBytesEncoder().write(t.message,n,r);return r}})}function NW(){return gill.combineCodec(ou(),su())}function V(e,n){let r=e.length,s=Qx+r*Mn,t=[];for(let o=0;o<r;o++){let{message:u}=e[o],g=s,y=g+Ve,l=y+Ge;t.push({publicKeyOffset:g,publicKeyInstructionIndex:65535,signatureOffset:y,signatureInstructionIndex:65535,messageDataOffset:l,messageDataSize:u.length,messageInstructionIndex:65535}),s+=Ve+Ge+u.length;}let c=n?.programAddress??eI,a={numSignatures:r,padding:0,offsets:t,payload:e};return {accounts:[],programAddress:c,data:ou().encode(a)}}function HW(e){return {programAddress:e.programAddress,accounts:{},data:su().decode(e.data)}}async function qW({index:e,payer:n,signers:r,cachedAccounts:s}){let t=new K;await t.addSystemAccounts();let c=await z(e),{address:a,addressTree:i}=Q(e),o=await Ne(a,s),u,g;if(o?.data?.data)if(G().decode(o.data.data).data.__option==="None"){let C=await ce([{address:a,type:"Settings"}],s);g=await q(C,[]),u={__kind:"Mutate",fields:[ee(t,g.treeInfos,g.leafIndices,g.rootIndices,g.proveByIndices,C.filter(U=>U.type==="Settings"),G())[0]]};}else throw new Error("Settings account is already compressed.");else {let f=[{address:a,tree:i,queue:i,type:"Settings"}];g=await q([],f),u={__kind:"Create",fields:[(await xe(t,g.treeInfos,g.roots,g.rootIndices,f))[0]]};}let y=ge(r),l=y.filter(f=>f instanceof M),T=[],S=[];for(let f of l){let C=T.length,{domainConfig:E,verifyArgs:U,signature:W,publicKey:O,message:N}=w(f,C);N&&W&&O&&T.push({message:N,signature:W,publicKey:O}),E&&(t.addPreAccounts([{address:E,role:gill.AccountRole.READONLY}]),U?.__option==="Some"&&S.push({domainConfigKey:E,verifyArgs:U.value}));}t.addPreAccounts(y.filter(f=>"address"in f).map(f=>({address:f.address,role:gill.AccountRole.READONLY_SIGNER,signer:f})));let{remainingAccounts:D,systemOffset:_}=t.toAccountMetas(),I=k(g,_),x=[];return T.length>0&&x.push(V(T)),x.push(Ys({settings:c,settingsArg:u,compressedProofArgs:I,payer:n,secp256r1VerifyArgs:S,remainingAccounts:D})),x}async function tO({payer:e,rpId:n,origins:r,authority:s,metadataUrl:t,adminDomainConfig:c}){let a=await ke({rpId:n});return eo({origins:r,authority:s,payer:e,domainConfig:a,rpId:n,metadataUrl:t,adminDomainConfig:c,remainingAccounts:[]})}async function dO({authority:e,payer:n,createUserArgs:r,domainConfig:s,cachedAccounts:t}){let c=new K;await c.addSystemAccounts();let a=[];r.settingsIndex&&(a.push({address:Q(r.settingsIndex).address,type:"Settings"}),r.transactionManager&&a.push({address:F(r.transactionManager).address,type:"User"}));let i=a.length?await ce(a,t):[],{address:o,addressTree:u}=F(r.member),g=[{address:o,type:"User",tree:u,queue:u}],y=await q(i,g),l=null,T=null,S=i.filter(C=>C.type==="Settings"),D=i.filter(C=>C.type==="User");S.length&&(l=ee(c,y.treeInfos.slice(0,1),y.leafIndices.slice(0,1),y.rootIndices.slice(0,1),y.proveByIndices.slice(0,1),S,G())[0]),D.length&&(T=ee(c,y.treeInfos.slice(1,2),y.leafIndices.slice(1,2),y.rootIndices.slice(1,2),y.proveByIndices.slice(1,2),D,Y())[0]);let _=await xe(c,y.treeInfos.slice(i.length),y.roots.slice(i.length),y.rootIndices.slice(i.length),g),{remainingAccounts:I,systemOffset:x}=c.toAccountMetas(),f=k(y,x);return co({payer:n,authority:e,compressedProofArgs:f,member:ut().decode(r.member.toBuffer()),isPermanentMember:r.isPermanentMember,linkWalletArgs:l?gill.some({settingsMutArgs:l,transactionManager:T?gill.some(T):gill.none()}):gill.none(),userAccountCreationArgs:_[0],domainConfig:s,remainingAccounts:I})}async function mO({payer:e}){let n=await Gt();return go({payer:e,globalCounter:n})}async function IO({createUserArgs:e,payer:n}){let r=new K;await r.addSystemAccounts(),r.addPreAccounts(e.map(u=>({address:u.member.address,role:gill.AccountRole.READONLY_SIGNER,signer:u.member})));let s=e.map(u=>{let{address:g,addressTree:y}=F(u.member.address);return {address:g,tree:y,queue:y,type:"User"}}),t=await q([],s),c=await xe(r,t.treeInfos,t.roots,t.rootIndices,s),{remainingAccounts:a,systemOffset:i}=r.toAccountMetas(),o=k(t,i);return ho({compressedProofArgs:o,payer:n,createUserArgs:e.map((u,g)=>({member:u.member.address,isPermanentMember:u.isPermanentMember,userCreationArgs:c[g],transactionManagerUrl:u.transactionManagerUrl??null})),remainingAccounts:a})}async function EO({admin:e,rpId:n,disable:r}){let s=await ke({rpId:n});return Ho({domainConfig:s,admin:e,disable:r,remainingAccounts:[]})}async function vO({authority:e,domainConfig:n,newAuthority:r,newOrigins:s,newMetadataUrl:t}){return $o({domainConfig:n,authority:e,newOrigins:s?gill.some(s):gill.none(),newAuthority:r?gill.some(r):gill.none(),newMetadataUrl:t?gill.some(t):gill.none(),remainingAccounts:[]})}async function BO({authority:e,transactionManagerUrl:n}){let r=new K;await r.addSystemAccounts();let s=await ce([{address:F(e.address).address,type:"User"}]),t=await q(s,[]),c=ee(r,t.treeInfos,t.leafIndices,t.rootIndices,t.proveByIndices,s,Y())[0],{remainingAccounts:a,systemOffset:i}=r.toAccountMetas(),o=k(t,i);return sc({authority:e,transactionManagerUrl:n,compressedProofArgs:o,userMutArgs:c,remainingAccounts:a})}async function $O({index:e,payer:n,initialMember:r,setAsDelegate:s,compressed:t=false,cachedAccounts:c}){let a=await Gt(),{domainConfig:i,verifyArgs:o,message:u,signature:g,publicKey:y}=w(r),l=[];u&&g&&y&&l.push({message:u,signature:g,publicKey:y});let T=new K;await T.addSystemAccounts();let S=[],D=[];if(D.push(...await ce([{address:F("address"in r?r.address:r).address,type:"User"}],c)),t){let{address:N,addressTree:Z}=Q(e);S.push({address:N,queue:Z,tree:Z,type:"Settings"});}let _=D.length,I=await q(D,S),x=ee(T,I.treeInfos.slice(0,_),I.leafIndices.slice(0,_),I.rootIndices.slice(0,_),I.proveByIndices.slice(0,_),D.filter(N=>N.type==="User"),Y())[0],C=(await xe(T,I.treeInfos.slice(_),I.roots.slice(_),I.rootIndices.slice(_),S)).find(N=>N.type==="Settings")??null;i?T.addPreAccounts([{address:i,role:gill.AccountRole.READONLY}]):"address"in r&&T.addPreAccounts([{address:r.address,role:gill.AccountRole.READONLY_SIGNER,signer:r}]);let{remainingAccounts:E,systemOffset:U}=T.toAccountMetas(),W=k(I,U),O=[];if(t){if(!C)throw new Error("Settings creation args is missing.");O.push(Co({settingsIndex:e,payer:n,initialMember:r instanceof M?void 0:r,secp256r1VerifyArgs:o,domainConfig:i,userMutArgs:x,globalCounter:a,compressedProofArgs:W,settingsCreation:C,setAsDelegate:s,remainingAccounts:E}));}else {let N=await z(e);O.push(fo({settingsIndex:e,settings:N,payer:n,initialMember:r instanceof M?void 0:r,secp256r1VerifyArgs:o,domainConfig:i,userMutArgs:x,globalCounter:a,compressedProofArgs:W,setAsDelegate:s,remainingAccounts:E}));}return {instructions:O,secp256r1VerifyInput:l}}async function iB({index:e,payer:n,signers:r,cachedAccounts:s}){let t=new K;await t.addSystemAccounts();let c=await ce([{address:Q(e).address,type:"Settings"}],s),a=await q(c,[]),i=ee(t,a.treeInfos,a.leafIndices,a.rootIndices,a.proveByIndices,c.filter(I=>I.type==="Settings"),G())[0],o=ge(r),u=o.filter(I=>I instanceof M),g=[],y=[];for(let I of u){let x=g.length,{domainConfig:f,verifyArgs:C,signature:E,publicKey:U,message:W}=w(I,x);W&&E&&U&&g.push({message:W,signature:E,publicKey:U}),f&&(t.addPreAccounts([{address:f,role:gill.AccountRole.READONLY}]),C?.__option==="Some"&&y.push({domainConfigKey:f,verifyArgs:C.value}));}t.addPreAccounts(o.filter(I=>"address"in I).map(I=>({address:I.address,role:gill.AccountRole.READONLY_SIGNER,signer:I})));let{remainingAccounts:l,systemOffset:T}=t.toAccountMetas(),S=k(a,T),D=[];g.length>0&&D.push(V(g));let _=await z(e);return D.push(Oo({settings:_,payer:n,settingsMut:i,compressedProofArgs:S,secp256r1VerifyArgs:y,remainingAccounts:l})),D}function oI(e,n,r,s){let t=cI(e,n),c=aI(e,n)&&r!==s;return t&&c?gill.AccountRole.WRITABLE_SIGNER:t&&!c?gill.AccountRole.WRITABLE:!t&&c?gill.AccountRole.READONLY_SIGNER:gill.AccountRole.READONLY}function cI(e,n){let r=e.staticAccounts.length,{numSignerAccounts:s,numReadonlySignerAccounts:t,numReadonlyNonSignerAccounts:c}=e.header,a=s-t,i=r-s-c;return n>=r?false:n<a?true:n>=s?n-s<i:false}function aI(e,n){return n<e.header.numSignerAccounts}async function tr({walletAddress:e,transactionMessageBytes:n,addressesByLookupTableAddress:r,additionalSigners:s}){let t=pi(n);if(t.version==="legacy")throw new Error("Only versioned transaction is allowed.");let c=r??(t.addressTableLookups?await gill.fetchAddressesForLookupTables(t.addressTableLookups.map(i=>i.lookupTableAddress),oe()):{}),a=[];a.push(...t.addressTableLookups?.map(i=>({role:gill.AccountRole.READONLY,address:i.lookupTableAddress}))??[]);for(let[i,o]of t.staticAccounts.entries())a.push({address:o,role:oI(t,i,o,e)});if(t.addressTableLookups)for(let i of t.addressTableLookups){let o=c[i.lookupTableAddress];if(!o)throw new Error(`Address lookup table account ${i.lookupTableAddress} not found`);for(let u of i.writableIndexes){let g=o[u];if(!g)throw new Error(`Address lookup table account ${i.lookupTableAddress} does not contain address at index ${u}`);a.push({address:g,role:gill.AccountRole.WRITABLE});}for(let u of i.readonlyIndexes){let g=o[u];if(!g)throw new Error(`Address lookup table account ${i.lookupTableAddress} does not contain address at index ${u}`);a.push({address:g,role:gill.AccountRole.READONLY});}}for(let i of s?.filter(o=>o.address!==e)??[]){let o=a.findIndex(u=>u.address===i.address);o===-1?a.push({address:i.address,role:gill.AccountRole.READONLY_SIGNER,signer:i}):a[o].role===gill.AccountRole.READONLY||a[o].role===gill.AccountRole.READONLY_SIGNER?a[o]={address:i.address,role:gill.AccountRole.READONLY_SIGNER,signer:i}:(a[o].role===gill.AccountRole.WRITABLE||a[o].role===gill.AccountRole.WRITABLE_SIGNER)&&(a[o]={address:i.address,role:gill.AccountRole.WRITABLE_SIGNER,signer:i});}return {accountMetas:a,addressLookupTableAccounts:c,transactionMessage:t}}async function gu({settings:e,transactionBufferAddress:n,transactionMessageBytes:r,payer:s,addressesByLookupTableAddress:t,secp256r1VerifyInput:c=[],additionalSigners:a=[],jitoBundlesTipAmount:i,compressed:o=false}){let u=await fe(e),{accountMetas:g,addressLookupTableAccounts:y}=await tr({transactionMessageBytes:r,walletAddress:u,additionalSigners:a,addressesByLookupTableAddress:t}),l=[];return c.length>0&&l.push(V(c)),l.push(o?$a({transactionBuffer:n,payer:s.address,remainingAccounts:g,settingsKey:e}):Ja({transactionBuffer:n,payer:s.address,settings:e})),i&&l.push(vi({payer:s,tipAmount:i})),{instructions:l,addressLookupTableAccounts:y}}async function Au({index:e,transactionMessageBytes:n,signers:r,payer:s,addressesByLookupTableAddress:t,secp256r1VerifyInput:c=[],compressed:a=false,simulateProof:i=false,cachedAccounts:o}){let u=ge(r),g=await z(e),y=await fe(g),[{accountMetas:l,addressLookupTableAccounts:T,transactionMessage:S},{settingsReadonlyArgs:D,proof:_,packedAccounts:I}]=await Promise.all([tr({transactionMessageBytes:n,walletAddress:y,additionalSigners:u.filter(O=>!(O instanceof M)),addressesByLookupTableAddress:t}),Ae(a,e,i,o)]);I.addPreAccounts(l);let x=u.filter(O=>O instanceof M),f=[];for(let O of x){let N=c.length,{domainConfig:Z,verifyArgs:le,signature:Ie,publicKey:Ct,message:Dt}=w(O,N);Dt&&Ie&&Ct&&c.push({message:Dt,signature:Ie,publicKey:Ct}),Z&&(I.addPreAccounts([{address:Z,role:gill.AccountRole.READONLY}]),le?.__option==="Some"&&f.push({domainConfigKey:Z,verifyArgs:le.value}));}let{remainingAccounts:C,systemOffset:E}=I.toAccountMetas(),U=[];c.length>0&&U.push(V(c));let W=uI(S,l);if(a){if(!s||!D)throw new Error("Payer not found or proof args is missing.");let O=k(_,E);U.push(di({secp256r1VerifyArgs:f,transactionMessage:W,settingsReadonlyArgs:D,compressedProofArgs:O,payer:s,remainingAccounts:C}));}else U.push(si({secp256r1VerifyArgs:f,settings:g,transactionMessage:W,remainingAccounts:C}));return {instructions:U,addressLookupTableAccounts:T}}function uI(e,n){if(e.version==="legacy")throw new Error("Only versioned transaction is allowed.");return {numSigners:e.header.numSignerAccounts,numWritableNonSigners:e.staticAccounts.length-e.header.numSignerAccounts-e.header.numReadonlyNonSignerAccounts,numWritableSigners:e.header.numSignerAccounts-e.header.numReadonlySignerAccounts,numAccountKeys:e.staticAccounts.length,instructions:e.instructions.map(r=>({...r,accountIndices:new Uint8Array(r.accountIndices??[]),data:new Uint8Array(r.data??[])})),addressTableLookups:e.addressTableLookups?.map(r=>({lookupTableAddressIndex:n.findIndex(s=>s.address===r.lookupTableAddress),writableIndexes:new Uint8Array(r.writableIndexes),readonlyIndexes:new Uint8Array(r.readonlyIndexes)}))??[]}}async function LB({index:e,destination:n,signers:r,cachedAccounts:s,amount:t,payer:c,compressed:a=false}){let i=ge(r),o=await z(e),u=await fe(o),{settingsReadonlyArgs:g,proof:y,packedAccounts:l}=await Ae(a,e,false,s),T=[],S=[];for(let x of i)if(x instanceof M){let f=T.length,{domainConfig:C,verifyArgs:E,signature:U,publicKey:W,message:O}=w(x,f);O&&U&&W&&T.push({message:O,signature:U,publicKey:W}),C&&(l.addPreAccounts([{address:C,role:gill.AccountRole.READONLY}]),E?.__option==="Some"&&S.push({domainConfigKey:C,verifyArgs:E.value}));}else l.addPreAccounts([{address:x.address,role:gill.AccountRole.READONLY_SIGNER,signer:x}]);let{remainingAccounts:D,systemOffset:_}=l.toAccountMetas(),I=[];if(T.length>0&&I.push(V(T)),a){if(!c||!g)throw new Error("Payer not found or proof args is missing.");let x=k(y,_);I.push(Mc({amount:t,settingsReadonlyArgs:g,compressedProofArgs:x,payer:c,secp256r1VerifyArgs:S,source:u,destination:n,remainingAccounts:D}));}else I.push(Tc({amount:t,secp256r1VerifyArgs:S,source:u,destination:n,settings:o,remainingAccounts:D}));return I}async function JB({index:e,destination:n,mint:r,signers:s,cachedAccounts:t,amount:c,payer:a,tokenProgram:i,compressed:o=false}){let u=ge(s),g=await z(e),y=await fe(g),[l,T]=await Promise.all([programs.getAssociatedTokenAccountAddress(r,y,i),programs.getAssociatedTokenAccountAddress(r,n,i)]),{settingsReadonlyArgs:S,proof:D,packedAccounts:_}=await Ae(o,e,false,t),I=[],x=[];for(let U of u)if(U instanceof M){let W=I.length,{domainConfig:O,verifyArgs:N,signature:Z,publicKey:le,message:Ie}=w(U,W);Ie&&Z&&le&&I.push({message:Ie,signature:Z,publicKey:le}),O&&(_.addPreAccounts([{address:O,role:gill.AccountRole.READONLY}]),N?.__option==="Some"&&x.push({domainConfigKey:O,verifyArgs:N.value}));}else _.addPreAccounts([{address:U.address,role:gill.AccountRole.READONLY_SIGNER,signer:U}]);let{remainingAccounts:f,systemOffset:C}=_.toAccountMetas(),E=[];if(I.length>0&&E.push(V(I)),o){if(!a||!S)throw new Error("Payer not found or proof args is missing.");let U=k(D,C);E.push(Oc({amount:c,settingsReadonlyArgs:S,compressedProofArgs:U,payer:a,secp256r1VerifyArgs:x,source:y,sourceTokenAccount:l,destination:n,destinationTokenAccount:T,mint:r,tokenProgram:i,remainingAccounts:f}));}else E.push(hc({amount:c,secp256r1VerifyArgs:x,source:y,sourceTokenAccount:l,destination:n,destinationTokenAccount:T,settings:g,mint:r,tokenProgram:i,remainingAccounts:f}));return E}async function nL({index:e,closer:n,transactionBufferAddress:r,payer:s,compressed:t=false,cachedAccounts:c}){let a=await vs(oe(),r),i=a.data.multiWalletSettings,{settingsReadonlyArgs:o,proof:u,packedAccounts:g}=await Ae(t,e,false,c),{remainingAccounts:y,systemOffset:l}=g.toAccountMetas(),{domainConfig:T,verifyArgs:S,message:D,signature:_,publicKey:I}=w(n),x=[];if(D&&_&&I&&x.push(V([{message:D,signature:_,publicKey:I}])),t){if(!s||!o)throw new Error("Payer not found or proof args is missing.");let f=k(u,l);x.push(Jc({transactionBuffer:r,domainConfig:T,closer:n instanceof M?void 0:n,rentCollector:a.data.payer,secp256r1VerifyArgs:S,settingsReadonlyArgs:o,payer:s,compressedProofArgs:f,remainingAccounts:y}));}else x.push(Hc({transactionBuffer:r,domainConfig:T,closer:n instanceof M?void 0:n,settings:i,payer:a.data.payer,secp256r1VerifyArgs:S,remainingAccounts:[]}));return x}function fu({payer:e,creator:n,bufferIndex:r,settings:s,transactionBufferAddress:t,finalBufferHash:c,finalBufferSize:a,preauthorizeExecution:i,bufferExtendHashes:o,compressedArgs:u}){let{domainConfig:g,verifyArgs:y,message:l,signature:T,publicKey:S}=w(n),D=[];if(l&&T&&S&&D.push(V([{message:l,signature:T,publicKey:S}])),u){let{settingsReadonlyArgs:_,compressedProofArgs:I,remainingAccounts:x}=u;D.push(sa({transactionBuffer:t,payer:e,secp256r1VerifyArgs:y,creator:n instanceof M?void 0:n,domainConfig:g,args:{bufferIndex:r,finalBufferHash:c,finalBufferSize:a,bufferExtendHashes:o,preauthorizeExecution:i},settingsReadonlyArgs:_,compressedProofArgs:I,remainingAccounts:x}));}else D.push($c({settings:s,transactionBuffer:t,payer:e,secp256r1VerifyArgs:y,creator:n instanceof M?void 0:n,domainConfig:g,args:{bufferIndex:r,finalBufferHash:c,finalBufferSize:a,bufferExtendHashes:o,preauthorizeExecution:i},remainingAccounts:[]}));return D}function lu({executor:e,transactionBufferAddress:n,settings:r,compressedArgs:s}){let{domainConfig:t,verifyArgs:c,signature:a,message:i,publicKey:o}=w(e),u=[];return i&&a&&o&&u.push(V([{message:i,signature:a,publicKey:o}])),s?u.push(fa({transactionBuffer:n,secp256r1VerifyArgs:c,domainConfig:t,executor:e instanceof M?void 0:e,settingsReadonlyArgs:s.settingsReadonlyArgs,payer:s.payer,compressedProofArgs:s.compressedProofArgs,remainingAccounts:s.remainingAccounts})):u.push(da({settings:r,transactionBuffer:n,secp256r1VerifyArgs:c,domainConfig:t,executor:e instanceof M?void 0:e,remainingAccounts:[]})),u}function Tu({transactionMessageBytes:e,transactionBufferAddress:n,settings:r,compressed:s=false}){return s?ha({transactionBuffer:n,buffer:e,settingsKey:r,remainingAccounts:[]}):Ca({transactionBuffer:n,buffer:e,settings:r,remainingAccounts:[]})}function Su({settings:e,voter:n,transactionBufferAddress:r,compressedArgs:s}){let{domainConfig:t,verifyArgs:c,signature:a,publicKey:i,message:o}=w(n),u=[];return o&&a&&i&&u.push(V([{message:o,signature:a,publicKey:i}])),s?u.push(Ha({transactionBuffer:r,secp256r1VerifyArgs:c,domainConfig:t,voter:n instanceof M?void 0:n,settingsReadonlyArgs:s.settingsReadonlyArgs,payer:s.payer,compressedProofArgs:s.compressedProofArgs,remainingAccounts:s.remainingAccounts})):u.push(Oa({settings:e,transactionBuffer:r,secp256r1VerifyArgs:c,domainConfig:t,voter:n instanceof M?void 0:n,remainingAccounts:[]})),u}async function GL({message:e,signer:n,popUp:r}){let s=await Xt({authUrl:`${Se()}/?redirectUrl=${encodeURIComponent(window.origin)}`,data:{type:"message",payload:e},signer:n,popUp:r,additionalInfo:Zt()});return {...s,signer:new ue(s.signer)}}async function jL({transactionActionType:e,transactionAddress:n,transactionMessageBytes:r,signer:s,popUp:t}){let c=await Xt({authUrl:`${Se()}/?redirectUrl=${encodeURIComponent(window.origin)}`,data:{type:"transaction",payload:JSON.stringify({transactionActionType:e,transactionAddress:n,transactionMessageBytes:$t(r)})},additionalInfo:Zt(),signer:s,popUp:t});return {...c,signer:new ue(c.signer)}}async function QL({message:e,response:n,expectedOrigin:r=Se()}){let{verified:s}=await server.verifyAuthenticationResponse({response:n.authResponse,expectedChallenge:$t(new TextEncoder().encode(e)),expectedOrigin:r,expectedRPID:fi,requireUserVerification:false,credential:{id:n.authResponse.id,publicKey:Yi(n.signer.toString()),counter:0}});return s}async function dk({payer:e,index:n,transactionMessageBytes:r,creator:s,executor:t,secp256r1VerifyInput:c,jitoBundlesTipAmount:a,addressesByLookupTableAddress:i,bufferIndex:o=Math.floor(Math.random()*255),additionalVoters:u=[],additionalSigners:g=[],compressed:y=false,chunkSize:l=Math.ceil(r.length/2),cachedAccounts:T}){let[S,D]=await Promise.all([z(n),Mi(await z(n),s instanceof M?s:s.address,o)]),_=[],I=[];for(let A=0;A<r.length;A+=l){let Rn=r.subarray(A,A+l);_.push(Rn),I.push(sha256.sha256(Rn));}let x=sha256.sha256(new Uint8Array(r)),{settingsReadonlyArgs:f,proof:C,packedAccounts:E}=await Ae(y,n,false,T),{remainingAccounts:U,systemOffset:W}=E.toAccountMetas(),O=f?{settingsReadonlyArgs:f,compressedProofArgs:k(C,W),remainingAccounts:U,payer:e}:null,N=fu({finalBufferHash:x,finalBufferSize:r.length,bufferIndex:o,payer:e,transactionBufferAddress:D,settings:S,creator:s,preauthorizeExecution:!t,bufferExtendHashes:I,compressedArgs:O}),Z=_.map(A=>Tu({transactionMessageBytes:A,transactionBufferAddress:D,settings:S,compressed:y})),le=u.map(A=>Su({voter:A,transactionBufferAddress:D,settings:S,compressedArgs:O})),Ie=lu({compressedArgs:O,settings:S,executor:t,transactionBufferAddress:D}),{instructions:Ct,addressLookupTableAccounts:Dt}=await gu({compressed:y,settings:S,transactionMessageBytes:r,transactionBufferAddress:D,payer:e,additionalSigners:g,secp256r1VerifyInput:c,jitoBundlesTipAmount:a,addressesByLookupTableAddress:i}),Fe=A=>({payer:e,instructions:A,addressesByLookupTableAddress:Dt});return [Fe(N),...Z.map(A=>Fe([A])),...le.length?[Fe(le.flat())]:[],Fe(Ie),Fe(Ct)]}var nr=class e{payer;keyMetaMap;constructor(n,r){this.payer=n,this.keyMetaMap=r;}static compile(n,r){let s=new Map,t=a=>{let i=s.get(a);return i===void 0&&(i={isSigner:false,isWritable:false,isInvoked:false},s.set(a,i)),i},c=t(r);c.isSigner=true,c.isWritable=true;for(let a of n){t(a.programAddress).isInvoked=false;for(let i of a.accounts??[]){let o=t(i.address);o.isSigner||=i.role===gill.AccountRole.READONLY_SIGNER||i.role===gill.AccountRole.WRITABLE_SIGNER,o.isWritable||=i.role===gill.AccountRole.WRITABLE||i.role===gill.AccountRole.WRITABLE_SIGNER;}}return new e(r,s)}getMessageComponents(){let n=[...this.keyMetaMap.entries()];if(n.length>256)throw new Error("Max static account keys length exceeded");let r=n.filter(([,o])=>o.isSigner&&o.isWritable),s=n.filter(([,o])=>o.isSigner&&!o.isWritable),t=n.filter(([,o])=>!o.isSigner&&o.isWritable),c=n.filter(([,o])=>!o.isSigner&&!o.isWritable),a={numSignerAccounts:r.length+s.length,numReadonlySignerAccounts:s.length,numReadonlyNonSignerAccounts:c.length};{if(r.length===0)throw new Error("Expected at least one writable signer key");let[o]=r[0];if(o!==this.payer)throw new Error("Expected first writable signer key to be the fee payer")}let i=[...r.map(([o])=>o),...s.map(([o])=>o),...t.map(([o])=>o),...c.map(([o])=>o)];return [a,i]}extractTableLookup(n){let[r,s]=this.drainKeysFoundInLookupTable(n[1],a=>!a.isSigner&&!a.isInvoked&&a.isWritable),[t,c]=this.drainKeysFoundInLookupTable(n[1],a=>!a.isSigner&&!a.isInvoked&&!a.isWritable);if(!(r.length===0&&t.length===0))return {addressTableLookup:{lookupTableAddress:n[0],writableIndexes:r,readonlyIndexes:t},drainedKeys:{writable:s,readonly:c}}}drainKeysFoundInLookupTable(n,r){let s=new Array,t=new Array;for(let[c,a]of this.keyMetaMap.entries())if(r(a)){let i=c,o=n.findIndex(u=>u===i);if(o>=0){if(o>=256)throw new Error("Max lookup table index exceeded");s.push(o),t.push(i),this.keyMetaMap.delete(c);}}return [s,t]}};var sr=class{staticAccountKeys;accountKeysFromLookups;constructor(n,r){this.staticAccountKeys=n,this.accountKeysFromLookups=r;}keySegments(){let n=[this.staticAccountKeys];return this.accountKeysFromLookups&&(n.push(this.accountKeysFromLookups.writable),n.push(this.accountKeysFromLookups.readonly)),n}get(n){for(let r of this.keySegments()){if(n<r.length)return r[n];n-=r.length;}}get length(){return this.keySegments().flat().length}compileInstructions(n){if(this.length>256)throw new Error("Account index overflow encountered during compilation");let s=new Map;this.keySegments().flat().forEach((c,a)=>{s.set(c,a);});let t=c=>{let a=s.get(c);if(a===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return a};return n.map(c=>({programAddressIndex:t(c.programAddress),accountIndices:c.accounts?.map(a=>t(a.address))??[],data:c.data}))}};function Iu({payer:e,recentBlockhash:n,instructions:r,addressesByLookupTableAddress:s}){let t=nr.compile(r,e),c=new Array,a={writable:[],readonly:[]},i=Object.entries(s??{});for(let l of i){let T=t.extractTableLookup(l);if(T!==void 0){let{addressTableLookup:S,drainedKeys:D}=T;c.push({readonlyIndexes:S.readonlyIndexes,readableIndices:S.readonlyIndexes,writableIndexes:S.writableIndexes,writableIndices:S.writableIndexes,lookupTableAddress:gill.address(S.lookupTableAddress)}),a.writable.push(...D.writable),a.readonly.push(...D.readonly);}}let[o,u]=t.getMessageComponents(),y=new sr(u,a).compileInstructions(r);return {version:0,header:o,instructions:y,lifetimeToken:n,staticAccounts:u,addressTableLookups:c}}function Dk({instructions:e,payer:n,addressesByLookupTableAddress:r}){let s=Iu({instructions:e,payer:n,recentBlockhash:d,addressesByLookupTableAddress:r});return mi(s)}async function hk({payer:e,index:n,transactionMessageBytes:r,signers:s,secp256r1VerifyInput:t,addressesByLookupTableAddress:c,cachedAccounts:a,compressed:i=false,simulateProof:o=false}){let{instructions:u,addressLookupTableAccounts:g}=await Au({index:n,payer:e,signers:s,transactionMessageBytes:r,secp256r1VerifyInput:t,compressed:i,addressesByLookupTableAddress:c,simulateProof:o,cachedAccounts:a});return {payer:e,instructions:u,addressesByLookupTableAddress:g}}
2
+ exports.CHANGE_CONFIG_COMPRESSED_DISCRIMINATOR=Ns;exports.CHANGE_CONFIG_DISCRIMINATOR=Os;exports.COMPRESS_SETTINGS_ACCOUNT_DISCRIMINATOR=Ks;exports.CREATE_DOMAIN_CONFIG_DISCRIMINATOR=Xs;exports.CREATE_DOMAIN_USER_ACCOUNT_DISCRIMINATOR=no;exports.CREATE_GLOBAL_COUNTER_DISCRIMINATOR=io;exports.CREATE_MULTI_WALLET_COMPRESSED_DISCRIMINATOR=So;exports.CREATE_MULTI_WALLET_DISCRIMINATOR=mo;exports.CREATE_USER_ACCOUNTS_DISCRIMINATOR=Eo;exports.DECOMPRESS_SETTINGS_ACCOUNT_DISCRIMINATOR=_o;exports.DISABLE_DOMAIN_CONFIG_DISCRIMINATOR=ko;exports.DOMAIN_CONFIG_DISCRIMINATOR=hn;exports.DelegateOp=bt;exports.EDIT_DOMAIN_CONFIG_DISCRIMINATOR=Zo;exports.EDIT_TRANSACTION_MANAGER_URL_DISCRIMINATOR=tc;exports.GLOBAL_COUNTER_DISCRIMINATOR=On;exports.KeyType=ft;exports.MIGRATE_COMPRESSED_SETTINGS_DISCRIMINATOR=ac;exports.MIGRATE_COMPRESSED_USERS_DISCRIMINATOR=Ac;exports.MULTI_WALLET_ERROR__ALREADY_DELEGATED=TS;exports.MULTI_WALLET_ERROR__DOMAIN_CONFIG_IS_DISABLED=BS;exports.MULTI_WALLET_ERROR__DOMAIN_CONFIG_IS_MISSING=LS;exports.MULTI_WALLET_ERROR__DUPLICATE_MEMBER=nS;exports.MULTI_WALLET_ERROR__DURABLE_NONCE_DETECTED=rS;exports.MULTI_WALLET_ERROR__EMPTY_MEMBERS=uS;exports.MULTI_WALLET_ERROR__FINAL_BUFFER_HASH_MISMATCH=ES;exports.MULTI_WALLET_ERROR__FINAL_BUFFER_SIZE_EXCEEDED=PS;exports.MULTI_WALLET_ERROR__FINAL_BUFFER_SIZE_MISMATCH=RS;exports.MULTI_WALLET_ERROR__INSUFFICIENT_SIGNERS_WITH_VOTE_PERMISSION=IS;exports.MULTI_WALLET_ERROR__INSUFFICIENT_SIGNER_WITH_EXECUTE_PERMISSION=SS;exports.MULTI_WALLET_ERROR__INSUFFICIENT_SIGNER_WITH_INITIATE_PERMISSION=xS;exports.MULTI_WALLET_ERROR__INVALID_ACCOUNT=mS;exports.MULTI_WALLET_ERROR__INVALID_ARGUMENTS=pS;exports.MULTI_WALLET_ERROR__INVALID_BUFFER=MS;exports.MULTI_WALLET_ERROR__INVALID_NUMBER_OF_ACCOUNTS=yS;exports.MULTI_WALLET_ERROR__INVALID_SECP256R1_VERIFY_ARG=tS;exports.MULTI_WALLET_ERROR__INVALID_SIGNED_MESSAGE=eS;exports.MULTI_WALLET_ERROR__INVALID_SYSVAR_DATA_FORMAT=WS;exports.MULTI_WALLET_ERROR__INVALID_THRESHOLD=gS;exports.MULTI_WALLET_ERROR__INVALID_TRANSACTION_MESSAGE=AS;exports.MULTI_WALLET_ERROR__MAX_LENGTH_EXCEEDED=_S;exports.MULTI_WALLET_ERROR__MEMBER_DOES_NOT_BELONG_TO_DOMAIN_CONFIG=kS;exports.MULTI_WALLET_ERROR__MISSING_ACCOUNT=fS;exports.MULTI_WALLET_ERROR__MISSING_SYSVAR_SLOT_HISTORY=US;exports.MULTI_WALLET_ERROR__MISSING_USER_ARGS=lS;exports.MULTI_WALLET_ERROR__NO_SIGNER_FOUND=CS;exports.MULTI_WALLET_ERROR__ONLY_ONE_PERMANENT_MEMBER_ALLOWED=cS;exports.MULTI_WALLET_ERROR__ONLY_ONE_TRANSACTION_MANAGER_ALLOWED=aS;exports.MULTI_WALLET_ERROR__ORIGIN_INDEX_OUT_OF_BOUNDS=NS;exports.MULTI_WALLET_ERROR__PERMANENT_MEMBER=sS;exports.MULTI_WALLET_ERROR__PERMANENT_MEMBER_NOT_ALLOWED=oS;exports.MULTI_WALLET_ERROR__PROTECTED_ACCOUNT=bS;exports.MULTI_WALLET_ERROR__RP_ID_HASH_MISMATCH=wS;exports.MULTI_WALLET_ERROR__SLOT_NUMBER_NOT_FOUND=OS;exports.MULTI_WALLET_ERROR__TOO_MANY_MEMBERS=dS;exports.MULTI_WALLET_ERROR__TRANSACTION_HAS_EXPIRED=hS;exports.MULTI_WALLET_ERROR__TRANSACTION_MANAGER_NOT_ALLOWED=iS;exports.MULTI_WALLET_ERROR__TRANSACTION_NOT_APPROVED=vS;exports.MULTI_WALLET_ERROR__UNAUTHORISED_TO_CLOSE_TRANSACTION_BUFFER=DS;exports.MULTI_WALLET_PROGRAM_ADDRESS=d;exports.MultiWalletAccount=XT;exports.MultiWalletInstruction=$T;exports.NATIVE_TRANSFER_INTENT_COMPRESSED_DISCRIMINATOR=Ic;exports.NATIVE_TRANSFER_INTENT_DISCRIMINATOR=fc;exports.PermanentMemberPermission=un;exports.Permission=pe;exports.Permissions=de;exports.SETTINGS_DISCRIMINATOR=ls;exports.Secp256r1Key=ue;exports.SignedSecp256r1Key=M;exports.TOKEN_TRANSFER_INTENT_COMPRESSED_DISCRIMINATOR=Uc;exports.TOKEN_TRANSFER_INTENT_DISCRIMINATOR=Pc;exports.TRANSACTION_BUFFER_CLOSE_COMPRESSED_DISCRIMINATOR=Fc;exports.TRANSACTION_BUFFER_CLOSE_DISCRIMINATOR=kc;exports.TRANSACTION_BUFFER_CREATE_COMPRESSED_DISCRIMINATOR=ta;exports.TRANSACTION_BUFFER_CREATE_DISCRIMINATOR=Zc;exports.TRANSACTION_BUFFER_DISCRIMINATOR=Ps;exports.TRANSACTION_BUFFER_EXECUTE_COMPRESSED_DISCRIMINATOR=ya;exports.TRANSACTION_BUFFER_EXECUTE_DISCRIMINATOR=aa;exports.TRANSACTION_BUFFER_EXTEND_COMPRESSED_DISCRIMINATOR=Ea;exports.TRANSACTION_BUFFER_EXTEND_DISCRIMINATOR=Sa;exports.TRANSACTION_BUFFER_VOTE_COMPRESSED_DISCRIMINATOR=ka;exports.TRANSACTION_BUFFER_VOTE_DISCRIMINATOR=_a;exports.TRANSACTION_EXECUTE_COMPRESSED_DISCRIMINATOR=Za;exports.TRANSACTION_EXECUTE_DISCRIMINATOR=Fa;exports.TRANSACTION_EXECUTE_SYNC_COMPRESSED_DISCRIMINATOR=ai;exports.TRANSACTION_EXECUTE_SYNC_DISCRIMINATOR=ti;exports.TransactionManagerPermission=lt;exports.changeConfig=LW;exports.closeTransactionBuffer=nL;exports.compressSettingsAccount=qW;exports.configAction=tC;exports.convertMemberKeyToString=It;exports.convertPubkeyCompressedToCose=Yi;exports.convertPubkeyCoseToCompressed=rW;exports.createDomainConfig=tO;exports.createDomainUserAccounts=dO;exports.createGlobalCounter=mO;exports.createPopUp=Ki;exports.createTransactionBuffer=fu;exports.createTransactionManagerSigner=Hx;exports.createUserAccounts=IO;exports.createWallet=$O;exports.decodeDomainConfig=bn;exports.decodeGlobalCounter=Ln;exports.decodeSettings=Ss;exports.decodeTransactionBuffer=hs;exports.decompressSettingsAccount=iB;exports.disableDomainConfig=EO;exports.editDomainConfig=vO;exports.editTransactionManagerUrl=BO;exports.executeTransaction=gu;exports.executeTransactionBuffer=lu;exports.executeTransactionSync=Au;exports.extendTransactionBuffer=Tu;exports.fetchAllDomainConfig=fI;exports.fetchAllGlobalCounter=DI;exports.fetchAllMaybeDomainConfig=ku;exports.fetchAllMaybeGlobalCounter=Qu;exports.fetchAllMaybeSettings=sy;exports.fetchAllMaybeTransactionBuffer=My;exports.fetchAllSettings=BM;exports.fetchAllTransactionBuffer=GM;exports.fetchDomainConfig=_n;exports.fetchGlobalCounter=CI;exports.fetchMaybeDomainConfig=Lu;exports.fetchMaybeGlobalCounter=$u;exports.fetchMaybeSettings=wr;exports.fetchMaybeSettingsAccountData=Sx;exports.fetchMaybeTransactionBuffer=Dy;exports.fetchMaybeUserAccountData=Tx;exports.fetchSettings=OM;exports.fetchSettingsAccountData=qt;exports.fetchTransactionBuffer=vs;exports.fetchUserAccountData=wi;exports.getAddMemberArgsCodec=hI;exports.getAddMemberArgsDecoder=cr;exports.getAddMemberArgsEncoder=or;exports.getAuthEndpoint=Se;exports.getChangeConfigCompressedDiscriminatorBytes=pE;exports.getChangeConfigCompressedInstruction=Gs;exports.getChangeConfigCompressedInstructionDataCodec=fE;exports.getChangeConfigCompressedInstructionDataDecoder=Vs;exports.getChangeConfigCompressedInstructionDataEncoder=Hs;exports.getChangeConfigDiscriminatorBytes=oE;exports.getChangeConfigInstruction=aE;exports.getChangeConfigInstructionAsync=Ls;exports.getChangeConfigInstructionDataCodec=cE;exports.getChangeConfigInstructionDataDecoder=Bs;exports.getChangeConfigInstructionDataEncoder=Fr;exports.getCompiledInstructionCodec=_I;exports.getCompiledInstructionDecoder=ir;exports.getCompiledInstructionEncoder=ar;exports.getCompressSettingsAccountDiscriminatorBytes=ME;exports.getCompressSettingsAccountInstruction=Ys;exports.getCompressSettingsAccountInstructionDataCodec=EE;exports.getCompressSettingsAccountInstructionDataDecoder=js;exports.getCompressSettingsAccountInstructionDataEncoder=Js;exports.getCompressedAccountMetaCodec=BI;exports.getCompressedAccountMetaDecoder=Ze;exports.getCompressedAccountMetaEncoder=Ye;exports.getCompressedAccountMetaReadOnlyCodec=NI;exports.getCompressedAccountMetaReadOnlyDecoder=Qe;exports.getCompressedAccountMetaReadOnlyEncoder=$e;exports.getCompressedProofCodec=GI;exports.getCompressedProofDecoder=mr;exports.getCompressedProofEncoder=yr;exports.getCompressedSettingsAddressFromIndex=Q;exports.getCompressedSettingsCodec=JI;exports.getCompressedSettingsDataCodec=qI;exports.getCompressedSettingsDataDecoder=rt;exports.getCompressedSettingsDataEncoder=tt;exports.getCompressedSettingsDecoder=G;exports.getCompressedSettingsEncoder=et;exports.getComputeBudgetEstimate=Oi;exports.getConfigActionCodec=eC;exports.getConfigActionDecoder=st;exports.getConfigActionEncoder=nt;exports.getCreateDomainConfigDiscriminatorBytes=UE;exports.getCreateDomainConfigInstruction=eo;exports.getCreateDomainConfigInstructionDataCodec=WE;exports.getCreateDomainConfigInstructionDataDecoder=Qs;exports.getCreateDomainConfigInstructionDataEncoder=$s;exports.getCreateDomainUserAccountDiscriminatorBytes=VE;exports.getCreateDomainUserAccountInstruction=co;exports.getCreateDomainUserAccountInstructionDataCodec=GE;exports.getCreateDomainUserAccountInstructionDataDecoder=oo;exports.getCreateDomainUserAccountInstructionDataEncoder=so;exports.getCreateGlobalCounterDiscriminatorBytes=ZE;exports.getCreateGlobalCounterInstruction=XE;exports.getCreateGlobalCounterInstructionAsync=go;exports.getCreateGlobalCounterInstructionDataCodec=qE;exports.getCreateGlobalCounterInstructionDataDecoder=uo;exports.getCreateGlobalCounterInstructionDataEncoder=Xr;exports.getCreateMultiWalletCompressedDiscriminatorBytes=pP;exports.getCreateMultiWalletCompressedInstruction=Co;exports.getCreateMultiWalletCompressedInstructionDataCodec=fP;exports.getCreateMultiWalletCompressedInstructionDataDecoder=Io;exports.getCreateMultiWalletCompressedInstructionDataEncoder=xo;exports.getCreateMultiWalletDiscriminatorBytes=oP;exports.getCreateMultiWalletInstruction=fo;exports.getCreateMultiWalletInstructionAsync=aP;exports.getCreateMultiWalletInstructionDataCodec=cP;exports.getCreateMultiWalletInstructionDataDecoder=po;exports.getCreateMultiWalletInstructionDataEncoder=Qr;exports.getCreateUserAccountArgsCodec=cC;exports.getCreateUserAccountArgsDecoder=Mr;exports.getCreateUserAccountArgsEncoder=Dr;exports.getCreateUserAccountsDiscriminatorBytes=MP;exports.getCreateUserAccountsInstruction=ho;exports.getCreateUserAccountsInstructionDataCodec=EP;exports.getCreateUserAccountsInstructionDataDecoder=Ro;exports.getCreateUserAccountsInstructionDataEncoder=Po;exports.getDecompressSettingsAccountDiscriminatorBytes=WP;exports.getDecompressSettingsAccountInstruction=Oo;exports.getDecompressSettingsAccountInstructionDataCodec=OP;exports.getDecompressSettingsAccountInstructionDataDecoder=Wo;exports.getDecompressSettingsAccountInstructionDataEncoder=Uo;exports.getDelegateOpCodec=uC;exports.getDelegateOpDecoder=Pr;exports.getDelegateOpEncoder=Er;exports.getDisableDomainConfigDiscriminatorBytes=VP;exports.getDisableDomainConfigInstruction=Ho;exports.getDisableDomainConfigInstructionDataCodec=GP;exports.getDisableDomainConfigInstructionDataDecoder=No;exports.getDisableDomainConfigInstructionDataEncoder=wo;exports.getDomainConfigAddress=ke;exports.getDomainConfigCodec=pI;exports.getDomainConfigDecoder=vn;exports.getDomainConfigDiscriminatorBytes=mI;exports.getDomainConfigEncoder=Bu;exports.getDomainConfigSize=lI;exports.getEditDomainConfigDiscriminatorBytes=ZP;exports.getEditDomainConfigInstruction=$o;exports.getEditDomainConfigInstructionDataCodec=qP;exports.getEditDomainConfigInstructionDataDecoder=Xo;exports.getEditDomainConfigInstructionDataEncoder=qo;exports.getEditMemberArgsCodec=yC;exports.getEditMemberArgsDecoder=xr;exports.getEditMemberArgsEncoder=Sr;exports.getEditTransactionManagerUrlDiscriminatorBytes=sR;exports.getEditTransactionManagerUrlInstruction=sc;exports.getEditTransactionManagerUrlInstructionDataCodec=oR;exports.getEditTransactionManagerUrlInstructionDataDecoder=nc;exports.getEditTransactionManagerUrlInstructionDataEncoder=rc;exports.getFeePayer=pU;exports.getGlobalAdditonalInfo=Zt;exports.getGlobalAuthorizedClient=Bi;exports.getGlobalCounterAddress=Gt;exports.getGlobalCounterCodec=II;exports.getGlobalCounterDecoder=Bn;exports.getGlobalCounterDiscriminatorBytes=xI;exports.getGlobalCounterEncoder=Xu;exports.getGlobalCounterSize=MI;exports.getJitoTipsConfig=Tn;exports.getLightCpiSigner=tU;exports.getLightProtocolRpc=Tt;exports.getLinkWalletArgsCodec=lC;exports.getLinkWalletArgsDecoder=hr;exports.getLinkWalletArgsEncoder=Rr;exports.getMemberCodec=IC;exports.getMemberDecoder=De;exports.getMemberEncoder=Ce;exports.getMemberKeyCodec=MC;exports.getMemberKeyDecoder=ie;exports.getMemberKeyEncoder=ae;exports.getMigrateCompressedSettingsDiscriminatorBytes=yR;exports.getMigrateCompressedSettingsInstruction=pR;exports.getMigrateCompressedSettingsInstructionDataCodec=mR;exports.getMigrateCompressedSettingsInstructionDataDecoder=uc;exports.getMigrateCompressedSettingsInstructionDataEncoder=ic;exports.getMigrateCompressedUsersDiscriminatorBytes=DR;exports.getMigrateCompressedUsersInstruction=ER;exports.getMigrateCompressedUsersInstructionDataCodec=MR;exports.getMigrateCompressedUsersInstructionDataDecoder=mc;exports.getMigrateCompressedUsersInstructionDataEncoder=yc;exports.getMultiWalletErrorMessage=f_;exports.getNativeTransferIntentCompressedDiscriminatorBytes=FR;exports.getNativeTransferIntentCompressedInstruction=Mc;exports.getNativeTransferIntentCompressedInstructionDataCodec=zR;exports.getNativeTransferIntentCompressedInstructionDataDecoder=Dc;exports.getNativeTransferIntentCompressedInstructionDataEncoder=Cc;exports.getNativeTransferIntentDiscriminatorBytes=WR;exports.getNativeTransferIntentInstruction=Tc;exports.getNativeTransferIntentInstructionAsync=BR;exports.getNativeTransferIntentInstructionDataCodec=OR;exports.getNativeTransferIntentInstructionDataDecoder=lc;exports.getNativeTransferIntentInstructionDataEncoder=rn;exports.getOriginIndex=sW;exports.getPackedAddressTreeInfoCodec=RC;exports.getPackedAddressTreeInfoDecoder=it;exports.getPackedAddressTreeInfoEncoder=at;exports.getPackedStateTreeInfoCodec=bC;exports.getPackedStateTreeInfoDecoder=Xe;exports.getPackedStateTreeInfoEncoder=qe;exports.getPermissionsCodec=WC;exports.getPermissionsDecoder=ct;exports.getPermissionsEncoder=ot;exports.getProofArgsCodec=kC;exports.getProofArgsDecoder=R;exports.getProofArgsEncoder=P;exports.getRemoveMemberArgsCodec=VC;exports.getRemoveMemberArgsDecoder=Cr;exports.getRemoveMemberArgsEncoder=Ir;exports.getSecp256r1PubkeyCodec=zC;exports.getSecp256r1PubkeyDecoder=ut;exports.getSecp256r1PubkeyEncoder=vr;exports.getSecp256r1SignatureOffsetsDataDecoder=rI;exports.getSecp256r1SignatureOffsetsDataEncoder=tI;exports.getSecp256r1VerifyArgsCodec=jC;exports.getSecp256r1VerifyArgsDecoder=L;exports.getSecp256r1VerifyArgsEncoder=B;exports.getSecp256r1VerifyArgsWithDomainAddressCodec=XC;exports.getSecp256r1VerifyArgsWithDomainAddressDecoder=j;exports.getSecp256r1VerifyArgsWithDomainAddressEncoder=J;exports.getSecp256r1VerifyInstruction=V;exports.getSecp256r1VerifyInstructionDataCodec=NW;exports.getSecp256r1VerifyInstructionDataDecoder=su;exports.getSecp256r1VerifyInstructionDataEncoder=ou;exports.getSendAndConfirmTransaction=Wi;exports.getSettingsCodec=WM;exports.getSettingsCreateOrMutateArgsCodec=tD;exports.getSettingsCreateOrMutateArgsDecoder=_r;exports.getSettingsCreateOrMutateArgsEncoder=br;exports.getSettingsCreationArgsCodec=aD;exports.getSettingsCreationArgsDecoder=Re;exports.getSettingsCreationArgsEncoder=Pe;exports.getSettingsDecoder=Ts;exports.getSettingsDiscriminatorBytes=UM;exports.getSettingsEncoder=ny;exports.getSettingsFromIndex=z;exports.getSettingsMutArgsCodec=gD;exports.getSettingsMutArgsDecoder=me;exports.getSettingsMutArgsEncoder=ye;exports.getSettingsReadonlyArgsCodec=pD;exports.getSettingsReadonlyArgsDecoder=$;exports.getSettingsReadonlyArgsEncoder=X;exports.getSettingsSize=LM;exports.getSignedSecp256r1Key=nW;exports.getSolanaRpc=oe;exports.getSolanaRpcEndpoint=Ui;exports.getTokenTransferIntentCompressedDiscriminatorBytes=ih;exports.getTokenTransferIntentCompressedInstruction=Oc;exports.getTokenTransferIntentCompressedInstructionAsync=dh;exports.getTokenTransferIntentCompressedInstructionDataCodec=uh;exports.getTokenTransferIntentCompressedInstructionDataDecoder=Wc;exports.getTokenTransferIntentCompressedInstructionDataEncoder=on;exports.getTokenTransferIntentDiscriminatorBytes=$R;exports.getTokenTransferIntentInstruction=hc;exports.getTokenTransferIntentInstructionAsync=eh;exports.getTokenTransferIntentInstructionDataCodec=QR;exports.getTokenTransferIntentInstructionDataDecoder=Rc;exports.getTokenTransferIntentInstructionDataEncoder=sn;exports.getTransactionBufferAddress=Mi;exports.getTransactionBufferCloseCompressedDiscriminatorBytes=Rh;exports.getTransactionBufferCloseCompressedInstruction=Jc;exports.getTransactionBufferCloseCompressedInstructionDataCodec=hh;exports.getTransactionBufferCloseCompressedInstructionDataDecoder=Kc;exports.getTransactionBufferCloseCompressedInstructionDataEncoder=zc;exports.getTransactionBufferCloseDiscriminatorBytes=Th;exports.getTransactionBufferCloseInstruction=Hc;exports.getTransactionBufferCloseInstructionDataCodec=Sh;exports.getTransactionBufferCloseInstructionDataDecoder=Nc;exports.getTransactionBufferCloseInstructionDataEncoder=wc;exports.getTransactionBufferCodec=VM;exports.getTransactionBufferCreateArgsCodec=TD;exports.getTransactionBufferCreateArgsDecoder=gt;exports.getTransactionBufferCreateArgsEncoder=dt;exports.getTransactionBufferCreateCompressedDiscriminatorBytes=Kh;exports.getTransactionBufferCreateCompressedInstruction=sa;exports.getTransactionBufferCreateCompressedInstructionDataCodec=Jh;exports.getTransactionBufferCreateCompressedInstructionDataDecoder=na;exports.getTransactionBufferCreateCompressedInstructionDataEncoder=ra;exports.getTransactionBufferCreateDiscriminatorBytes=Lh;exports.getTransactionBufferCreateInstruction=$c;exports.getTransactionBufferCreateInstructionDataCodec=kh;exports.getTransactionBufferCreateInstructionDataDecoder=Xc;exports.getTransactionBufferCreateInstructionDataEncoder=qc;exports.getTransactionBufferDecoder=Rs;exports.getTransactionBufferDiscriminatorBytes=HM;exports.getTransactionBufferEncoder=Cy;exports.getTransactionBufferExecuteCompressedDiscriminatorBytes=uv;exports.getTransactionBufferExecuteCompressedInstruction=fa;exports.getTransactionBufferExecuteCompressedInstructionDataCodec=dv;exports.getTransactionBufferExecuteCompressedInstructionDataDecoder=pa;exports.getTransactionBufferExecuteCompressedInstructionDataEncoder=ma;exports.getTransactionBufferExecuteDiscriminatorBytes=ev;exports.getTransactionBufferExecuteInstruction=da;exports.getTransactionBufferExecuteInstructionDataCodec=tv;exports.getTransactionBufferExecuteInstructionDataDecoder=ua;exports.getTransactionBufferExecuteInstructionDataEncoder=ia;exports.getTransactionBufferExtendCompressedDiscriminatorBytes=Ev;exports.getTransactionBufferExtendCompressedInstruction=ha;exports.getTransactionBufferExtendCompressedInstructionDataCodec=Pv;exports.getTransactionBufferExtendCompressedInstructionDataDecoder=Ra;exports.getTransactionBufferExtendCompressedInstructionDataEncoder=Pa;exports.getTransactionBufferExtendDiscriminatorBytes=lv;exports.getTransactionBufferExtendInstruction=Ca;exports.getTransactionBufferExtendInstructionDataCodec=Tv;exports.getTransactionBufferExtendInstructionDataDecoder=Ia;exports.getTransactionBufferExtendInstructionDataEncoder=xa;exports.getTransactionBufferVoteCompressedDiscriminatorBytes=Fv;exports.getTransactionBufferVoteCompressedInstruction=Ha;exports.getTransactionBufferVoteCompressedInstructionDataCodec=zv;exports.getTransactionBufferVoteCompressedInstructionDataDecoder=Na;exports.getTransactionBufferVoteCompressedInstructionDataEncoder=wa;exports.getTransactionBufferVoteDiscriminatorBytes=Ov;exports.getTransactionBufferVoteInstruction=Oa;exports.getTransactionBufferVoteInstructionDataCodec=Bv;exports.getTransactionBufferVoteInstructionDataDecoder=Wa;exports.getTransactionBufferVoteInstructionDataEncoder=Ua;exports.getTransactionExecuteCompressedDiscriminatorBytes=ob;exports.getTransactionExecuteCompressedInstruction=$a;exports.getTransactionExecuteCompressedInstructionDataCodec=cb;exports.getTransactionExecuteCompressedInstructionDataDecoder=Xa;exports.getTransactionExecuteCompressedInstructionDataEncoder=qa;exports.getTransactionExecuteDiscriminatorBytes=Xv;exports.getTransactionExecuteInstruction=Ja;exports.getTransactionExecuteInstructionDataCodec=$v;exports.getTransactionExecuteInstructionDataDecoder=Ka;exports.getTransactionExecuteInstructionDataEncoder=za;exports.getTransactionExecuteSyncCompressedDiscriminatorBytes=Db;exports.getTransactionExecuteSyncCompressedInstruction=di;exports.getTransactionExecuteSyncCompressedInstructionDataCodec=Mb;exports.getTransactionExecuteSyncCompressedInstructionDataDecoder=ui;exports.getTransactionExecuteSyncCompressedInstructionDataEncoder=ii;exports.getTransactionExecuteSyncDiscriminatorBytes=mb;exports.getTransactionExecuteSyncInstruction=si;exports.getTransactionExecuteSyncInstructionDataCodec=pb;exports.getTransactionExecuteSyncInstructionDataDecoder=ni;exports.getTransactionExecuteSyncInstructionDataEncoder=ri;exports.getTransactionMessageAddressTableLookupCodec=ED;exports.getTransactionMessageAddressTableLookupDecoder=Wr;exports.getTransactionMessageAddressTableLookupEncoder=Ur;exports.getTransactionMessageCodec=CD;exports.getTransactionMessageDecoder=yt;exports.getTransactionMessageEncoder=At;exports.getUserAccountAddress=F;exports.getUserCodec=vD;exports.getUserCreationArgsCodec=WD;exports.getUserCreationArgsDecoder=Ee;exports.getUserCreationArgsEncoder=Me;exports.getUserDecoder=Y;exports.getUserEncoder=he;exports.getUserMutArgsCodec=kD;exports.getUserMutArgsDecoder=ne;exports.getUserMutArgsEncoder=re;exports.getUserReadOnlyArgsCodec=VD;exports.getUserReadOnlyArgsDecoder=kr;exports.getUserReadOnlyArgsEncoder=Lr;exports.getUserReadOnlyOrMutateArgsCodec=KD;exports.getUserReadOnlyOrMutateArgsDecoder=je;exports.getUserReadOnlyOrMutateArgsEncoder=Je;exports.getWalletAddressFromIndex=Ei;exports.getWalletAddressFromSettings=fe;exports.identifyMultiWalletAccount=u_;exports.identifyMultiWalletInstruction=d_;exports.initialize=lU;exports.isConfigAction=rC;exports.isMultiWalletError=l_;exports.isSettingsCreateOrMutateArgs=nD;exports.isUserReadOnlyOrMutateArgs=jD;exports.nativeTransferIntent=LB;exports.parseChangeConfigCompressedInstruction=lE;exports.parseChangeConfigInstruction=iE;exports.parseCompressSettingsAccountInstruction=PE;exports.parseCreateDomainConfigInstruction=OE;exports.parseCreateDomainUserAccountInstruction=FE;exports.parseCreateGlobalCounterInstruction=$E;exports.parseCreateMultiWalletCompressedInstruction=lP;exports.parseCreateMultiWalletInstruction=iP;exports.parseCreateUserAccountsInstruction=PP;exports.parseDecompressSettingsAccountInstruction=BP;exports.parseDisableDomainConfigInstruction=FP;exports.parseEditDomainConfigInstruction=XP;exports.parseEditTransactionManagerUrlInstruction=cR;exports.parseMigrateCompressedSettingsInstruction=fR;exports.parseMigrateCompressedUsersInstruction=PR;exports.parseNativeTransferIntentCompressedInstruction=KR;exports.parseNativeTransferIntentInstruction=LR;exports.parseSecp256r1VerifyInstruction=HW;exports.parseTokenTransferIntentCompressedInstruction=gh;exports.parseTokenTransferIntentInstruction=th;exports.parseTransactionBufferCloseCompressedInstruction=vh;exports.parseTransactionBufferCloseInstruction=xh;exports.parseTransactionBufferCreateCompressedInstruction=jh;exports.parseTransactionBufferCreateInstruction=wh;exports.parseTransactionBufferExecuteCompressedInstruction=gv;exports.parseTransactionBufferExecuteInstruction=rv;exports.parseTransactionBufferExtendCompressedInstruction=Rv;exports.parseTransactionBufferExtendInstruction=Sv;exports.parseTransactionBufferVoteCompressedInstruction=Kv;exports.parseTransactionBufferVoteInstruction=Lv;exports.parseTransactionExecuteCompressedInstruction=ab;exports.parseTransactionExecuteInstruction=Qv;exports.parseTransactionExecuteSyncCompressedInstruction=Eb;exports.parseTransactionExecuteSyncInstruction=fb;exports.pollJitoBundleConfirmation=lW;exports.prepareTransactionBundle=dk;exports.prepareTransactionMessage=Dk;exports.prepareTransactionSync=hk;exports.resolveTransactionManagerSigner=TW;exports.sendJitoBundle=Nx;exports.settingsCreateOrMutateArgs=rD;exports.signAndSendBundledTransactions=pW;exports.signAndSendTransaction=fW;exports.signMessageWithPasskey=GL;exports.signTransactionWithPasskey=jL;exports.tokenTransferIntent=JB;exports.uninitialize=fU;exports.userReadOnlyOrMutateArgs=JD;exports.vaultTransactionMessageDeserialize=pi;exports.vaultTransactionMessageSerialize=mi;exports.verifyMessage=QL;exports.voteTransactionBuffer=Su;//# sourceMappingURL=index.cjs.map
3
+ //# sourceMappingURL=index.cjs.map