@moonpay/cli 0.12.3 → 0.12.4

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.
@@ -1,3 +1,3 @@
1
1
  process.noDeprecation = true; import { createRequire as __createRequire } from "module"; const require = __createRequire(import.meta.url);
2
- import{a as C,b as x,c as v,e as R,i as D}from"./chunk-INE4OXJA.js";import{existsSync as De,readFileSync as Ue,writeFileSync as We,renameSync as Le}from"fs";import{join as F}from"path";import{homedir as Pe}from"os";import{randomBytes as Be}from"crypto";import{execFileSync as K,execSync as ae}from"child_process";import{randomBytes as fe}from"crypto";import{existsSync as le,readFileSync as ue,writeFileSync as de}from"fs";import{homedir as pe,platform as B}from"os";import{join as ye}from"path";import*as o from"fs";import*as W from"os";import*as g from"path";import{readFileSync as X}from"fs";import{join as G}from"path";import{homedir as q}from"os";var z="0.12.3",Q="X-CLI-Version",Z="X-Agent-Id",u;function ee(){if(u!==void 0)return u;try{u=JSON.parse(X(G(q(),".config","moonpay","consent.json"),"utf-8")).agentId??null}catch{u=null}return u??null}function U(){let e={"Content-Type":"application/json",[Q]:z},r=ee();return r&&(e[Z]=r),e}var p=g.join(W.homedir(),".config","moonpay"),b=g.join(p,"config.json"),y=g.join(p,"credentials.json"),d=g.join(p,".credentials.lock"),A={baseUrl:"https://agents.moonpay.com"};function a(){o.existsSync(p)||o.mkdirSync(p,{recursive:!0,mode:448})}function L(e,r,n){let t=e+`.tmp.${process.pid}`;o.writeFileSync(t,r,{encoding:"utf-8",mode:n}),o.renameSync(t,e)}var re=3e4;function ne(){a();try{let e=o.openSync(d,o.constants.O_CREAT|o.constants.O_EXCL|o.constants.O_WRONLY,384);o.writeSync(e,JSON.stringify({pid:process.pid,ts:Date.now()})),o.closeSync(e)}catch(e){if(e.code!=="EEXIST")throw e;try{let r=JSON.parse(o.readFileSync(d,"utf-8"));if(Date.now()-r.ts<re)return null}catch{}try{o.unlinkSync(d)}catch{}try{let r=o.openSync(d,o.constants.O_CREAT|o.constants.O_EXCL|o.constants.O_WRONLY,384);o.writeSync(r,JSON.stringify({pid:process.pid,ts:Date.now()})),o.closeSync(r)}catch{return null}}return()=>{try{o.unlinkSync(d)}catch{}}}function P(){if(!o.existsSync(b))return null;try{let e=JSON.parse(o.readFileSync(b,"utf-8"));return e.baseUrl?e:null}catch{return null}}function Qe(){let e=P();return e||(oe(A),A)}function w(){if(!o.existsSync(y))return null;let e=m();if(!e)return null;try{let r=JSON.parse(o.readFileSync(y,"utf-8")),n=C.parse(r),t=v(n,e),s=JSON.parse(t);return!s.accessToken||!s.baseUrl?null:s}catch{return null}}function te(e){let r=E(),n=x(JSON.stringify(e),r);a(),L(y,JSON.stringify(n,null,2),384)}function oe(e){a(),L(b,JSON.stringify(e,null,2),384)}function Ze(){o.existsSync(y)&&o.unlinkSync(y)}function er(){let e=P(),r=w();return e?.baseUrl??r?.baseUrl??A.baseUrl}async function se(e,r,n){let t=await fetch(`${e}/api/tools/${encodeURIComponent(r)}`,{method:"POST",signal:AbortSignal.timeout(15e3),headers:U(),body:JSON.stringify(n)}),s=await t.json();if(!t.ok){let i=s;throw new Error(i?.error??`${r} failed (${t.status})`)}return s}async function ie(e){if(!e.refreshToken)throw new Error("No refresh token available");let r=ne();if(!r){await new Promise(t=>setTimeout(t,2e3));let n=w();if(n&&n.expiresAt>Date.now())return n;throw new Error("Token refresh failed (concurrent refresh in progress)")}try{let n=w();if(n&&n.expiresAt>Date.now()+6e4)return n;let t=await se(e.baseUrl,"refresh",{refreshToken:e.refreshToken}),s={accessToken:t.accessToken,refreshToken:t.refreshToken,expiresAt:t.expiresAt*1e3,baseUrl:e.baseUrl};return te(s),s}finally{r()}}var ce=300*1e3;async function rr(){let e=w();if(!e)return null;if(Date.now()>=e.expiresAt-ce){if(e.refreshToken)try{return(await ie(e)).accessToken}catch{return null}return null}return e.accessToken}var f="moonpay-cli",h="encryption-key",k=ye(pe(),".config","moonpay",".encryption-key");function me(e){try{K("security",["delete-generic-password","-s",f,"-a",h],{stdio:"ignore"})}catch{}K("security",["add-generic-password","-s",f,"-a",h,"-w",e],{stdio:"ignore"})}function ge(){try{return K("security",["find-generic-password","-s",f,"-a",h,"-w"],{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return null}}function he(e){ae(`printf '%s' | secret-tool store --label="${f}" service "${f}" account "${h}"`,{input:e,stdio:["pipe","ignore","ignore"]})}function Se(){try{return K("secret-tool",["lookup","service",f,"account",h],{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return null}}function Ce(e){a(),de(k,e,{encoding:"utf-8",mode:384})}function xe(){try{return le(k)&&ue(k,"utf-8").trim()||null}catch{return null}}function ve(e){try{let r=B();return r==="darwin"?(me(e),!0):r==="linux"?(he(e),!0):!1}catch{return!1}}function we(){let e=B();return e==="darwin"?ge():e==="linux"?Se():null}function m(){let e=process.env.MOONPAY_ENCRYPTION_KEY;return e||(we()??xe())}function E(){let e=m();if(e)return e;let r=fe(32).toString("hex");return ve(r)||(Ce(r),process.stderr.write("Note: Keychain unavailable. Encryption key stored in "+k+`
2
+ import{a as C,b as x,c as v,e as R,i as D}from"./chunk-INE4OXJA.js";import{existsSync as De,readFileSync as Ue,writeFileSync as We,renameSync as Le}from"fs";import{join as F}from"path";import{homedir as Pe}from"os";import{randomBytes as Be}from"crypto";import{execFileSync as K,execSync as ae}from"child_process";import{randomBytes as fe}from"crypto";import{existsSync as le,readFileSync as ue,writeFileSync as de}from"fs";import{homedir as pe,platform as B}from"os";import{join as ye}from"path";import*as o from"fs";import*as W from"os";import*as g from"path";import{readFileSync as X}from"fs";import{join as G}from"path";import{homedir as q}from"os";var z="0.12.4",Q="X-CLI-Version",Z="X-Agent-Id",u;function ee(){if(u!==void 0)return u;try{u=JSON.parse(X(G(q(),".config","moonpay","consent.json"),"utf-8")).agentId??null}catch{u=null}return u??null}function U(){let e={"Content-Type":"application/json",[Q]:z},r=ee();return r&&(e[Z]=r),e}var p=g.join(W.homedir(),".config","moonpay"),b=g.join(p,"config.json"),y=g.join(p,"credentials.json"),d=g.join(p,".credentials.lock"),A={baseUrl:"https://agents.moonpay.com"};function a(){o.existsSync(p)||o.mkdirSync(p,{recursive:!0,mode:448})}function L(e,r,n){let t=e+`.tmp.${process.pid}`;o.writeFileSync(t,r,{encoding:"utf-8",mode:n}),o.renameSync(t,e)}var re=3e4;function ne(){a();try{let e=o.openSync(d,o.constants.O_CREAT|o.constants.O_EXCL|o.constants.O_WRONLY,384);o.writeSync(e,JSON.stringify({pid:process.pid,ts:Date.now()})),o.closeSync(e)}catch(e){if(e.code!=="EEXIST")throw e;try{let r=JSON.parse(o.readFileSync(d,"utf-8"));if(Date.now()-r.ts<re)return null}catch{}try{o.unlinkSync(d)}catch{}try{let r=o.openSync(d,o.constants.O_CREAT|o.constants.O_EXCL|o.constants.O_WRONLY,384);o.writeSync(r,JSON.stringify({pid:process.pid,ts:Date.now()})),o.closeSync(r)}catch{return null}}return()=>{try{o.unlinkSync(d)}catch{}}}function P(){if(!o.existsSync(b))return null;try{let e=JSON.parse(o.readFileSync(b,"utf-8"));return e.baseUrl?e:null}catch{return null}}function Qe(){let e=P();return e||(oe(A),A)}function w(){if(!o.existsSync(y))return null;let e=m();if(!e)return null;try{let r=JSON.parse(o.readFileSync(y,"utf-8")),n=C.parse(r),t=v(n,e),s=JSON.parse(t);return!s.accessToken||!s.baseUrl?null:s}catch{return null}}function te(e){let r=E(),n=x(JSON.stringify(e),r);a(),L(y,JSON.stringify(n,null,2),384)}function oe(e){a(),L(b,JSON.stringify(e,null,2),384)}function Ze(){o.existsSync(y)&&o.unlinkSync(y)}function er(){let e=P(),r=w();return e?.baseUrl??r?.baseUrl??A.baseUrl}async function se(e,r,n){let t=await fetch(`${e}/api/tools/${encodeURIComponent(r)}`,{method:"POST",signal:AbortSignal.timeout(15e3),headers:U(),body:JSON.stringify(n)}),s=await t.json();if(!t.ok){let i=s;throw new Error(i?.error??`${r} failed (${t.status})`)}return s}async function ie(e){if(!e.refreshToken)throw new Error("No refresh token available");let r=ne();if(!r){await new Promise(t=>setTimeout(t,2e3));let n=w();if(n&&n.expiresAt>Date.now())return n;throw new Error("Token refresh failed (concurrent refresh in progress)")}try{let n=w();if(n&&n.expiresAt>Date.now()+6e4)return n;let t=await se(e.baseUrl,"refresh",{refreshToken:e.refreshToken}),s={accessToken:t.accessToken,refreshToken:t.refreshToken,expiresAt:t.expiresAt*1e3,baseUrl:e.baseUrl};return te(s),s}finally{r()}}var ce=300*1e3;async function rr(){let e=w();if(!e)return null;if(Date.now()>=e.expiresAt-ce){if(e.refreshToken)try{return(await ie(e)).accessToken}catch{return null}return null}return e.accessToken}var f="moonpay-cli",h="encryption-key",k=ye(pe(),".config","moonpay",".encryption-key");function me(e){try{K("security",["delete-generic-password","-s",f,"-a",h],{stdio:"ignore"})}catch{}K("security",["add-generic-password","-s",f,"-a",h,"-w",e],{stdio:"ignore"})}function ge(){try{return K("security",["find-generic-password","-s",f,"-a",h,"-w"],{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return null}}function he(e){ae(`printf '%s' | secret-tool store --label="${f}" service "${f}" account "${h}"`,{input:e,stdio:["pipe","ignore","ignore"]})}function Se(){try{return K("secret-tool",["lookup","service",f,"account",h],{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return null}}function Ce(e){a(),de(k,e,{encoding:"utf-8",mode:384})}function xe(){try{return le(k)&&ue(k,"utf-8").trim()||null}catch{return null}}function ve(e){try{let r=B();return r==="darwin"?(me(e),!0):r==="linux"?(he(e),!0):!1}catch{return!1}}function we(){let e=B();return e==="darwin"?ge():e==="linux"?Se():null}function m(){let e=process.env.MOONPAY_ENCRYPTION_KEY;return e||(we()??xe())}function E(){let e=m();if(e)return e;let r=fe(32).toString("hex");return ve(r)||(Ce(r),process.stderr.write("Note: Keychain unavailable. Encryption key stored in "+k+`
3
3
  `)),r}import{createHash as $}from"crypto";import{HDKey as N}from"@scure/bip32";import{mnemonicToSeedSync as _}from"@scure/bip39";import{keccak_256 as J}from"@noble/hashes/sha3";import{derivePath as Ee}from"ed25519-hd-key";import*as j from"bitcoinjs-lib";import Ke from"ecpair";import*as O from"tiny-secp256k1";import{Keypair as ke}from"@solana/web3.js";import _e from"bs58";var Oe=Ke(O);function T(e,r=0){switch(e){case"solana":return`m/44'/501'/${r}'/0'`;case"ethereum":return`m/44'/60'/${r}'/0/0`;case"bitcoin":return`m/84'/0'/${r}'/0/0`;case"tron":return`m/44'/195'/${r}'/0/0`}}function l(e,r,n=0){switch(r){case"solana":return Te(e,n);case"ethereum":return be(e,n);case"bitcoin":return Ie(e,n);case"tron":return Fe(e,n)}}function Sr(e,r=0){return{solana:l(e,"solana",r).address,ethereum:l(e,"ethereum",r).address,bitcoin:l(e,"bitcoin",r).address,tron:l(e,"tron",r).address}}function Te(e,r){let n=_(e),t=T("solana",r),{key:s}=Ee(t,Buffer.from(n).toString("hex")),i=ke.fromSeed(Uint8Array.from(s));return{privateKey:i.secretKey,address:i.publicKey.toBase58()}}function be(e,r){let n=_(e),t=N.fromMasterSeed(n),s=T("ethereum",r),i=t.derive(s);if(!i.privateKey)throw new Error("Failed to derive EVM private key");let c=Ae(i.publicKey);return{privateKey:i.privateKey,address:c}}function Ae(e){let r=O.pointCompress(e,!1),t=H(r.slice(1)).slice(-20),s="0x"+Buffer.from(t).toString("hex");return Ne(s)}function H(e){return J(e)}function Ne(e){let r=e.toLowerCase().replace("0x",""),n=Buffer.from(J(Buffer.from(r,"utf8"))).toString("hex"),t="0x";for(let s=0;s<r.length;s++)t+=parseInt(n[s],16)>=8?r[s].toUpperCase():r[s];return t}function Ie(e,r){let n=_(e),t=N.fromMasterSeed(n),s=T("bitcoin",r),i=t.derive(s);if(!i.privateKey)throw new Error("Failed to derive Bitcoin private key");let c=Oe.fromPrivateKey(Buffer.from(i.privateKey)),{address:S}=j.payments.p2wpkh({pubkey:Buffer.from(c.publicKey)});if(!S)throw new Error("Failed to derive Bitcoin address");return{privateKey:i.privateKey,address:S}}function Fe(e,r){let n=_(e),t=N.fromMasterSeed(n),s=T("tron",r),i=t.derive(s);if(!i.privateKey)throw new Error("Failed to derive Tron private key");let c=Re(i.publicKey);return{privateKey:i.privateKey,address:c}}function Re(e){let r=O.pointCompress(e,!1),t=H(r.slice(1)).slice(-20),s=Buffer.concat([Buffer.from([65]),Buffer.from(t)]),i=$("sha256").update(s).digest(),c=$("sha256").update(i).digest(),S=Buffer.concat([s,c.slice(0,4)]);return _e.encode(S)}import $e from"bs58";var M=F(Pe(),".config","moonpay"),I=F(M,"wallets.json");function V(){if(!De(I))return[];let e=m();if(!e)throw new Error("Encryption key not found. Set MOONPAY_ENCRYPTION_KEY or ensure OS keychain is accessible.");let r=JSON.parse(Ue(I,"utf-8")),n=C.parse(r),t=v(n,e);return(JSON.parse(t).wallets??[]).map(i=>D.parse(i))}function Je(e){let r=E(),n=JSON.stringify({wallets:e}),t=x(n,r);a();let s=F(M,`.wallets.${Be(4).toString("hex")}.tmp`);We(s,JSON.stringify(t,null,2),{mode:384}),Le(s,I)}function Y(e){let r=V();e(r),Je(r)}function je(e){let r=V();for(let n of r){if(n.name===e)return n;for(let t of Object.values(n.addresses))if(t===e)return n}return null}function Ar(e){let r=je(e);if(!r)throw new Error(`Wallet "${e}" not found`);return r}function Nr(e){Y(r=>{if(r.some(n=>n.name===e.name))throw new Error(`Wallet "${e.name}" already exists`);r.push(e)})}function Ir(e){Y(r=>{let n=r.findIndex(t=>t.name===e);if(n===-1)throw new Error(`Wallet "${e}" not found`);r.splice(n,1)})}function Fr(e,r){if(e.type==="hardware")throw new Error(`Wallet "${e.name}" is a hardware wallet. Signing must happen on the device \u2014 use ledgerSignTransaction/ledgerSignMessage instead.`);let n=R[r];if(e.type==="imported"){if(e.chain!==n)throw new Error(`Wallet "${e.name}" was imported for ${e.chain}, cannot sign for ${r}.`);return{privateKey:He(e.privateKey,n),address:e.addresses[n]}}let t=l(e.mnemonic,n);return{privateKey:t.privateKey,address:t.address}}function He(e,r){if(r==="solana")return $e.decode(e);let n=e.startsWith("0x")?e.slice(2):e;return Uint8Array.from(Buffer.from(n,"hex"))}export{z as a,U as b,a as c,Qe as d,w as e,te as f,Ze as g,er as h,se as i,ie as j,rr as k,Sr as l,V as m,Je as n,Y as o,je as p,Ar as q,Nr as r,Ir as s,Fr as t};
@@ -0,0 +1,6 @@
1
+ process.noDeprecation = true; import { createRequire as __createRequire } from "module"; const require = __createRequire(import.meta.url);
2
+ var Gd=1,kd=2,Vd=3,Hd=4,jd=5,Yd=6,$d=7,Kd=8,Xd=9,Mn=10,vn=-32700,bn=-32603,yn=-32602,Ln=-32601,wn=-32600,Zd=-32019,qd=-32018,Jd=-32017,Qd=-32016,Un=-32015,Pn=-32014,el=-32013,zn=-32012,tl=-32011,xn=-32010,Fn=-32009,nl=-32008,Bn=-32007,Wn=-32006,rl=-32005,Gn=-32004,ol=-32003,At=-32002,kn=-32001,_t=28e5,ft=2800001,al=2800002,Vn=2800003,Hn=2800004,jn=2800005,gt=2800006,Rt=2800007,$e=2800008,mt=2800009,Yn=2800010,$n=2800011,Et=323e4,It=32300001,Nt=3230002,Kn=3230003,Xn=3230004,il=361e4,St=3610001,Zn=3610002,qn=3610003,Jn=3610004,Qn=3610005,er=3610006,cl=3610007,tr=3611e3,sl=3704e3,ul=3704001,dl=3704002,ll=3704003,Al=3704004,_l=4128e3,fl=4128001,gl=4128002,nr=4615e3,Rl=4615001,ml=4615002,El=4615003,Il=4615004,Nl=4615005,Sl=4615006,Ol=4615007,Tl=4615008,Dl=4615009,hl=4615010,Cl=4615011,pl=4615012,Ml=4615013,vl=4615014,bl=4615015,yl=4615016,Ll=4615017,wl=4615018,Ul=4615019,Pl=4615020,zl=4615021,xl=4615022,Fl=4615023,Bl=4615024,Wl=4615025,Ke=4615026,Gl=4615027,kl=4615028,Vl=4615029,Hl=4615030,jl=4615031,Yl=4615032,$l=4615033,Kl=4615034,Xl=4615035,Zl=4615036,ql=4615037,Jl=4615038,Ql=4615039,eA=4615040,tA=4615041,nA=4615042,rA=4615043,oA=4615044,aA=4615045,iA=4615046,cA=4615047,sA=4615048,uA=4615049,dA=4615050,lA=4615051,AA=4615052,_A=4615053,fA=4615054,Ot=5508e3,rr=5508001,or=5508002,ar=5508003,ir=5508004,cr=5508005,sr=5508006,ur=5508007,dr=5508008,lr=5508009,Ar=5508010,gA=5508011,RA=5607e3,mA=5607001,EA=5607002,IA=5607003,NA=5607004,SA=5607005,OA=5607006,TA=5607007,DA=5607008,hA=5607009,CA=5607010,pA=5607011,MA=5607012,vA=5607013,bA=5607014,yA=5607015,LA=5607016,wA=5607017,Tt=5663e3,Xe=5663001,Dt=5663002,ht=5663003,Ct=5663004,_r=5663005,fr=5663006,gr=5663007,Rr=5663008,mr=5663009,UA=5663010,PA=5663011,Er=5663012,zA=5663013,xA=5663014,Ir=5663015,pt=5663016,Mt=5663017,FA=5663018,BA=5663019,Nr=5663020,Ze=5663021,Sr=5663022,Or=705e4,WA=7050001,GA=7050002,kA=7050003,VA=7050004,HA=7050005,jA=7050006,YA=7050007,$A=7050008,KA=7050009,XA=7050010,ZA=7050011,qA=7050012,JA=7050013,QA=7050014,e_=7050015,t_=7050016,n_=7050017,r_=7050018,o_=7050019,a_=7050020,i_=7050021,c_=7050022,s_=7050023,u_=7050024,d_=7050025,l_=7050026,A_=7050027,__=7050028,f_=7050029,Tr=7050030,Dr=7050031,g_=7050032,R_=7050033,m_=7050034,hr=7050035,E_=7050036,I_=7618e3,N_=7618001,S_=7618002,O_=7618003,T_=7618004,D_=7618005,h_=7618006,C_=7618007,p_=7618008,M_=7618009,vt=8078e3,bt=8078001,yt=8078002,Cr=8078003,Lt=8078004,wt=8078005,Ut=8078006,Pt=8078007,zt=8078008,xt=8078009,Ft=8078010,Bt=8078011,Le=8078012,we=8078013,Wt=8078014,pr=8078015,Mr=8078016,Gt=8078017,kt=8078018,v_=8078019,vr=8078020,br=8078021,qe=8078022,yr=8078023,b_=81e5,y_=8100001,L_=8100002,w_=8100003,U_=819e4,P_=8190001,z_=8190002,x_=8190003,F_=8190004,B_=99e5,W_=9900001,G_=9900002,k_=9900003,V_=9900004,H_=9900005,j_=9900006;function Lr(e){return Array.isArray(e)?"%5B"+e.map(Lr).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function Y_([e,t]){return`${e}=${Lr(t)}`}function $_(e){let t=Object.entries(e).map(Y_).join("&");return Buffer.from(t,"utf8").toString("base64")}var K_={[Et]:"Account not found at address: $address",[Xn]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Kn]:"Expected decoded account at address: $address",[Nt]:"Failed to decode account data at address: $address",[It]:"Accounts not found at addresses: $addresses",[mt]:"Unable to find a viable program address bump seed.",[al]:"$putativeAddress is not a base58-encoded address.",[_t]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Vn]:"The `CryptoKey` must be an `Ed25519` public key.",[$n]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[$e]:"Invalid seeds; point must fall off the Ed25519 curve.",[Hn]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[gt]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Rt]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[jn]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Yn]:"Program address cannot end with PDA marker.",[ft]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Hd]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Gd]:"The network has progressed past the last block for which this transaction could have been committed.",[vt]:"Codec [$codecDescription] cannot decode empty byte arrays.",[qe]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[vr]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[wt]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Ut]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Lt]:"Encoder and decoder must either both be fixed-size or variable-size.",[zt]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[yt]:"Expected a fixed-size codec, got a variable-size one.",[we]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Cr]:"Expected a variable-size codec, got a fixed-size one.",[v_]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[bt]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[kt]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[xt]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Ft]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[pr]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Pt]:"Expected [$codecDescription] to have $expected items, got $actual.",[Le]:"Invalid value $value for base $base with alphabet $alphabet.",[Mr]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Bt]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Wt]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[br]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Gt]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[yr]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[tr]:"No random values implementation could be found.",[Dl]:"instruction requires an uninitialized account",[Fl]:"instruction tries to borrow reference for an account which is already borrowed",[Bl]:"instruction left account with an outstanding borrowed reference",[zl]:"program other than the account's owner changed the size of the account data",[Nl]:"account data too small for instruction",[xl]:"instruction expected an executable account",[iA]:"An account does not have enough lamports to be rent-exempt",[sA]:"Program arithmetic overflowed",[aA]:"Failed to serialize or deserialize account data: $encodedData",[fA]:"Builtin programs must consume compute units",[Yl]:"Cross-program invocation call depth too deep",[Jl]:"Computational budget exceeded",[Ke]:"custom program error: #$code",[Ll]:"instruction contains duplicate accounts",[Wl]:"instruction modifications of multiply-passed account differ",[Hl]:"executable accounts must be rent exempt",[kl]:"instruction changed executable accounts data",[Vl]:"instruction changed the balance of an executable account",[wl]:"instruction changed executable bit of an account",[vl]:"instruction modified data of an account it does not own",[Ml]:"instruction spent from the balance of an account it does not own",[Rl]:"generic instruction error",[dA]:"Provided owner is not allowed",[rA]:"Account is immutable",[oA]:"Incorrect authority provided",[Ol]:"incorrect program id for instruction",[Sl]:"insufficient funds for instruction",[Il]:"invalid account data for instruction",[cA]:"Invalid account owner",[ml]:"invalid program argument",[Gl]:"program returned invalid error code",[El]:"invalid instruction data",[ql]:"Failed to reallocate account data",[Zl]:"Provided seeds do not result in a valid address",[lA]:"Accounts data allocations exceeded the maximum allowed per transaction",[AA]:"Max accounts exceeded",[_A]:"Max instruction trace length exceeded",[Xl]:"Length of the seed is too long for address generation",[$l]:"An account required by the instruction is missing",[Tl]:"missing required signature for instruction",[pl]:"instruction illegally modified the program id of an account",[Pl]:"insufficient account keys for instruction",[Ql]:"Cross-program invocation with unauthorized signer or writable account",[eA]:"Failed to create program execution environment",[nA]:"Program failed to compile",[tA]:"Program failed to complete",[yl]:"instruction modified data of a read-only account",[bl]:"instruction changed the balance of a read-only account",[Kl]:"Cross-program invocation reentrancy not allowed for this instruction",[Ul]:"instruction modified rent epoch of an account",[Cl]:"sum of account balances before and after instruction do not match",[hl]:"instruction requires an initialized account",[nr]:"",[jl]:"Unsupported program id",[uA]:"Unsupported sysvar",[H_]:"Invalid instruction plan kind: $kind.",[S_]:"The provided instruction plan is empty.",[D_]:"No failed transaction plan result was found in the provided transaction plan result.",[T_]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved \u2014 e.g. by targetting RPCs that support transaction bundles.",[O_]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[I_]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[j_]:"Invalid transaction plan kind: $kind.",[N_]:"No more instructions to pack; the message packer has completed the instruction plan.",[h_]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[C_]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[p_]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[M_]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[_l]:"The instruction does not have any accounts.",[fl]:"The instruction does not have any data.",[gl]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[jd]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[kd]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[G_]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[V_]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[W_]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[B_]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[k_]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[bn]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[yn]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[wn]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Ln]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[vn]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[zn]:"$__serverMessage",[kn]:"$__serverMessage",[Gn]:"$__serverMessage",[Pn]:"$__serverMessage",[Jd]:"Epoch rewards period still active at slot $slot",[xn]:"$__serverMessage",[Fn]:"$__serverMessage",[Zd]:"Failed to query long-term storage; please try again",[Qd]:"Minimum context slot has not been reached",[rl]:"Node is unhealthy; behind by $numSlotsBehind slots",[nl]:"No snapshot",[At]:"Transaction simulation failed",[qd]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Bn]:"$__serverMessage",[tl]:"Transaction history is not available from this node",[Wn]:"$__serverMessage",[el]:"Transaction signature length mismatch",[ol]:"Transaction signature verification failure",[Un]:"$__serverMessage",[sl]:"Key pair bytes must be of length 64, got $byteLength.",[ul]:"Expected private key bytes with length 32. Actual length: $actualLength.",[dl]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Al]:"The provided private key does not match the provided public key.",[ll]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Yd]:"Lamports value must be in the range [0, 2e64-1]",[$d]:"`$value` cannot be parsed as a `BigInt`",[Mn]:"$message",[Kd]:"`$value` cannot be parsed as a `Number`",[Vd]:"No nonce account could be found at address `$nonceAccountAddress`",[IA]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[vA]:"Attempted to sign an offchain message with an address that is not a signer for it",[EA]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[MA]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[RA]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[TA]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[DA]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[hA]:"Offchain message content must be non-empty",[SA]:"Offchain message must specify the address of at least one required signer",[CA]:"Offchain message envelope must reserve space for at least one signature",[NA]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[yA]:"The signatories of this offchain message must be listed in lexicographical order",[LA]:"An address must be listed no more than once among the signatories of an offchain message",[pA]:"Offchain message is missing signatures for addresses: $addresses.",[wA]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[mA]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[bA]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[OA]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[U_]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[z_]:"WebSocket was closed before payload could be added to the send buffer",[x_]:"WebSocket connection closed",[F_]:"WebSocket failed to connect",[P_]:"Failed to obtain a subscription id from the server",[w_]:"Could not find an API plan for RPC method: `$method`",[b_]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[L_]:"HTTP error ($statusCode): $message",[y_]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Ot]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[rr]:"The provided value does not implement the `KeyPairSigner` interface",[ar]:"The provided value does not implement the `MessageModifyingSigner` interface",[ir]:"The provided value does not implement the `MessagePartialSigner` interface",[or]:"The provided value does not implement any of the `MessageSigner` interfaces",[sr]:"The provided value does not implement the `TransactionModifyingSigner` interface",[ur]:"The provided value does not implement the `TransactionPartialSigner` interface",[dr]:"The provided value does not implement the `TransactionSendingSigner` interface",[cr]:"The provided value does not implement any of the `TransactionSigner` interfaces",[lr]:"More than one `TransactionSendingSigner` was identified.",[Ar]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[gA]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[cl]:"Cannot export a non-extractable key.",[St]:"No digest implementation could be found.",[il]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Zn]:`This runtime does not support the generation of Ed25519 key pairs.
3
+
4
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
5
+
6
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[qn]:"No signature verification implementation could be found.",[Jn]:"No key generation implementation could be found.",[Qn]:"No signing implementation could be found.",[er]:"No key export implementation could be found.",[Xd]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[t_]:"Transaction processing left an account with an outstanding borrowed reference",[WA]:"Account in use",[GA]:"Account loaded twice",[kA]:"Attempt to debit an account but found no record of a prior credit.",[s_]:"Transaction loads an address table account that doesn't exist",[YA]:"This transaction has already been processed",[$A]:"Blockhash not found",[KA]:"Loader call chain is too deep",[e_]:"Transactions are currently disabled due to cluster maintenance",[Tr]:"Transaction contains a duplicate instruction ($index) that is not allowed",[HA]:"Insufficient funds for fee",[Dr]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[jA]:"This account may not be used to pay transaction fees",[ZA]:"Transaction contains an invalid account reference",[d_]:"Transaction loads an address table account with invalid data",[l_]:"Transaction address table lookup uses an invalid index",[u_]:"Transaction loads an address table account with an invalid owner",[R_]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[JA]:"This program may not be used for executing instructions",[A_]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[o_]:"Transaction loads a writable account that cannot be written",[g_]:"Transaction exceeded max loaded accounts data size cap",[XA]:"Transaction requires a fee but has no signature present",[VA]:"Attempt to load a program that does not exist",[hr]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[m_]:"ResanitizationNeeded",[QA]:"Transaction failed to sanitize accounts offsets correctly",[qA]:"Transaction did not pass signature verification",[c_]:"Transaction locked too many accounts",[E_]:"Sum of account balances before and after transaction do not match",[Or]:"The transaction failed with the error `$errorName`",[r_]:"Transaction version is unsupported",[i_]:"Transaction would exceed account data limit within the block",[f_]:"Transaction would exceed total account data limit",[a_]:"Transaction would exceed max account limit within the block",[n_]:"Transaction would exceed max Block Cost Limit",[__]:"Transaction would exceed max Vote Cost Limit",[Ir]:"Attempted to sign a transaction with an address that is not a signer for it",[UA]:"Transaction is missing an address at index: $index.",[pt]:"Transaction has no expected signers therefore it cannot be encoded",[Nr]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Dt]:"Transaction does not have a blockhash lifetime",[ht]:"Transaction is not a durable nonce transaction",[_r]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[fr]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Rr]:"No fee payer set in CompiledTransaction",[gr]:"Could not find program address at index $index",[FA]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[BA]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[PA]:"Transaction is missing a fee payer.",[Er]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[xA]:"Transaction first instruction is not advance nonce account instruction.",[zA]:"Transaction with no instructions cannot be durable nonce transaction.",[Tt]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Xe]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Mt]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[mr]:"Transaction is missing signatures for addresses: $addresses.",[Ct]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Ze]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[Sr]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},ce="i",re="t";function X_(e,t={}){let n=K_[e];if(n.length===0)return"";let o;function r(s){if(o[re]===2){let c=n.slice(o[ce]+1,s);a.push(c in t?`${t[c]}`:`$${c}`)}else o[re]===1&&a.push(n.slice(o[ce],s))}let a=[];return n.split("").forEach((s,c)=>{if(c===0){o={[ce]:0,[re]:n[0]==="\\"?0:n[0]==="$"?2:1};return}let u;switch(o[re]){case 0:u={[ce]:c,[re]:1};break;case 1:s==="\\"?u={[ce]:c,[re]:0}:s==="$"&&(u={[ce]:c,[re]:2});break;case 2:s==="\\"?u={[ce]:c,[re]:0}:s==="$"?u={[ce]:c,[re]:2}:s.match(/\w/)||(u={[ce]:c,[re]:1});break}u&&(o!==u&&r(c),o=u)}),r(),a.join("")}function Z_(e,t={}){if(process.env.NODE_ENV!=="production")return X_(e,t);{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${$_(t)}'`),`${n}\``}}function Je(e,t){return e instanceof Error&&e.name==="SolanaError"?t!==void 0?e.context.__code===t:!0:!1}var O=class extends Error{cause=this.cause;context;constructor(...[e,t]){let n,o;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([a,s])=>{a==="cause"?o={cause:s.value}:(n===void 0&&(n={__code:e}),Object.defineProperty(n,a,s))});let r=Z_(e,n);super(r,o),this.context=Object.freeze(n===void 0?{__code:e}:n),this.name="SolanaError"}};function wr(...e){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...e)}function Ur({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:n,rpcEnumError:o},r){let a,s;typeof o=="string"?a=o:(a=Object.keys(o)[0],s=o[a]);let c=n.indexOf(a),u=e+c,S=t(u,a,s),v=new O(u,S);return wr(v,r),v}var q_=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function Pr(e,t){let n=Number(e);return Ur({errorCodeBaseOffset:4615001,getErrorContext(o,r,a){return o===nr?{errorName:r,index:n,...a!==void 0?{instructionErrorContext:a}:null}:o===Ke?{code:Number(a),index:n}:{index:n}},orderedErrorNames:q_,rpcEnumError:t},Pr)}var J_=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function zr(e){return typeof e=="object"&&"InstructionError"in e?Pr(...e.InstructionError):Ur({errorCodeBaseOffset:7050001,getErrorContext(t,n,o){if(t===Or)return{errorName:n,...o!==void 0?{transactionErrorContext:o}:null};if(t===Tr)return{index:Number(o)};if(t===Dr||t===hr)return{accountIndex:Number(o.account_index)}},orderedErrorNames:J_,rpcEnumError:e},zr)}function Q_(e){let t;if(ef(e)){let{code:n,data:o,message:r}=e,a=Number(n);if(a===At){let{err:s,...c}=o,u=s?{cause:zr(s)}:null;t=new O(At,{...c,...u})}else{let s;switch(a){case bn:case yn:case wn:case Ln:case vn:case zn:case kn:case Gn:case Pn:case xn:case Fn:case Bn:case Wn:case Un:s={__serverMessage:r};break;default:typeof o=="object"&&!Array.isArray(o)&&(s=o)}t=new O(a,s)}}else{let n=typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string"?e.message:"Malformed JSON-RPC error with no message attribute";t=new O(Mn,{error:e,message:n})}return wr(t,Q_),t}function ef(e){return typeof e=="object"&&e!==null&&"code"in e&&"message"in e&&(typeof e.code=="number"||typeof e.code=="bigint")&&typeof e.message=="string"}function tf(e,t){if(e.length>=t)return e;let n=new Uint8Array(t).fill(0);return n.set(e),n}var nf=(e,t)=>tf(e.length<=t?e:e.slice(0,t),t);function l(e,t,n){let o=n===0&&e.length===t.length?e:e.slice(n,n+t.length);return Vt(o,t)}function Vt(e,t){return e.length===t.length&&e.every((n,o)=>n===t[o])}function se(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function L(e){return Object.freeze({...e,encode:t=>{let n=new Uint8Array(se(t,e));return e.write(t,n,0),n}})}function w(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function P(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function et(e){if(!P(e))throw new O(yt)}function rf(e){return!P(e)}function f(e,t){if(P(e)!==P(t))throw new O(Lt);if(P(e)&&P(t)&&e.fixedSize!==t.fixedSize)throw new O(wt,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!P(e)&&!P(t)&&e.maxSize!==t.maxSize)throw new O(Ut,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function xr(e,t,n=0){if(t.length-n<=0)throw new O(vt,{codecDescription:e})}function Ue(e,t,n,o=0){let r=n.length-o;if(r<t)throw new O(bt,{bytesLength:r,codecDescription:e,expected:t})}function Qe(e,t,n){if(t<0||t>n)throw new O(Wt,{bytesLength:n,codecDescription:e,offset:t})}function p(e,t){let n=((s,c,u)=>{let S=e.encode(s);return u=t.write(S.length,c,u),c.set(S,u),u+S.length});if(P(t)&&P(e))return L({...e,fixedSize:t.fixedSize+e.fixedSize,write:n});let o=P(t)?t.fixedSize:t.maxSize??null,r=P(e)?e.fixedSize:e.maxSize??null,a=o!==null&&r!==null?o+r:null;return L({...e,...a!==null?{maxSize:a}:{},getSizeFromValue:s=>{let c=se(s,e);return se(c,t)+c},write:n})}function M(e,t){let n=((s,c)=>{let[u,S]=t.read(s,c),v=Number(u);return c=S,(c>0||s.length>v)&&(s=s.slice(c,c+v)),Ue("addDecoderSizePrefix",v,s),[e.decode(s),c+v]});if(P(t)&&P(e))return w({...e,fixedSize:t.fixedSize+e.fixedSize,read:n});let o=P(t)?t.fixedSize:t.maxSize??null,r=P(e)?e.fixedSize:e.maxSize??null,a=o!==null&&r!==null?o+r:null;return w({...e,...a!==null?{maxSize:a}:{},read:n})}function tt(e,t,n){let o=e.byteOffset+(t??0),r=n??e.byteLength,a;return typeof SharedArrayBuffer>"u"?a=e.buffer:e.buffer instanceof SharedArrayBuffer?(a=new ArrayBuffer(e.length),new Uint8Array(a).set(new Uint8Array(e))):a=e.buffer,(o===0||o===-e.byteLength)&&r===e.byteLength?a:a.slice(o,o+r)}function J(e,t){return L({fixedSize:t,write:(n,o,r)=>{let a=e.encode(n),s=a.length>t?a.slice(0,t):a;return o.set(s,r),r+t}})}function Q(e,t){return w({fixedSize:t,read:(n,o)=>{Ue("fixCodecSize",t,n,o),(o>0||n.length>t)&&(n=n.slice(o,o+t)),P(e)&&(n=nf(n,e.fixedSize));let[r]=e.read(n,0);return[r,o+t]}})}function of(e,t){return L({...e,write:(n,o,r)=>{let a=S=>Fr(S,o.length),s=t.preOffset?t.preOffset({bytes:o,preOffset:r,wrapBytes:a}):r;Qe("offsetEncoder",s,o.length);let c=e.write(n,o,s),u=t.postOffset?t.postOffset({bytes:o,newPreOffset:s,postOffset:c,preOffset:r,wrapBytes:a}):c;return Qe("offsetEncoder",u,o.length),u}})}function af(e,t){return w({...e,read:(n,o)=>{let r=S=>Fr(S,n.length),a=t.preOffset?t.preOffset({bytes:n,preOffset:o,wrapBytes:r}):o;Qe("offsetDecoder",a,n.length);let[s,c]=e.read(n,a),u=t.postOffset?t.postOffset({bytes:n,newPreOffset:a,postOffset:c,preOffset:o,wrapBytes:r}):c;return Qe("offsetDecoder",u,n.length),[s,u]}})}function Fr(e,t){return t===0?0:(e%t+t)%t}function cf(e,t){if(P(e)){let n=t(e.fixedSize);if(n<0)throw new O(we,{bytesLength:n,codecDescription:"resizeEncoder"});return L({...e,fixedSize:n})}return L({...e,getSizeFromValue:n=>{let o=t(e.getSizeFromValue(n));if(o<0)throw new O(we,{bytesLength:o,codecDescription:"resizeEncoder"});return o}})}function sf(e,t){if(P(e)){let n=t(e.fixedSize);if(n<0)throw new O(we,{bytesLength:n,codecDescription:"resizeDecoder"});return w({...e,fixedSize:n})}return e}function nt(e,t){return of(cf(e,n=>n+t),{preOffset:({preOffset:n})=>n+t})}function Br(e,t){return af(sf(e,n=>n+t),{postOffset:({postOffset:n})=>n+t})}function g(e,t){return L({...rf(e)?{...e,getSizeFromValue:n=>e.getSizeFromValue(t(n))}:e,write:(n,o,r)=>e.write(t(n),o,r)})}function Y(e,t){return w({...e,read:(n,o)=>{let[r,a]=e.read(n,o);return[t(r,n,o),a]}})}function Vr(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new O(Le,{alphabet:e,base:e.length,value:n})}var uf=e=>L({getSizeFromValue:t=>{let[n,o]=Wr(t,e[0]);if(!o)return t.length;let r=Gr(o,e);return n.length+Math.ceil(r.toString(16).length/2)},write(t,n,o){if(Vr(e,t),t==="")return o;let[r,a]=Wr(t,e[0]);if(!a)return n.set(new Uint8Array(r.length).fill(0),o),o+r.length;let s=Gr(a,e),c=[];for(;s>0n;)c.unshift(Number(s%256n)),s/=256n;let u=[...Array(r.length).fill(0),...c];return n.set(u,o),o+u.length}}),df=e=>w({read(t,n){let o=n===0?t:t.slice(n);if(o.length===0)return["",0];let r=o.findIndex(u=>u!==0);r=r===-1?o.length:r;let a=e[0].repeat(r);if(r===o.length)return[a,t.length];let s=o.slice(r).reduce((u,S)=>u*256n+BigInt(S),0n),c=lf(s,e);return[a+c,t.length]}});function Wr(e,t){let[n,o]=e.split(new RegExp(`((?!${t}).*)`));return[n,o]}function Gr(e,t){let n=BigInt(t.length),o=0n;for(let r of e)o*=n,o+=BigInt(t.indexOf(r));return o}function lf(e,t){let n=BigInt(t.length),o=[];for(;e>0n;)o.unshift(t[Number(e%n)]),e/=n;return o.join("")}var Hr="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Ht=()=>uf(Hr),jt=()=>df(Hr);var Af="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jr=()=>L({getSizeFromValue:e=>Buffer.from(e,"base64").length,write(e,t,n){Vr(Af,e.replace(/=/g,""));let o=Buffer.from(e,"base64");return t.set(o,n),o.length+n}}),Yr=()=>w({read:(e,t=0)=>[Buffer.from(tt(e),t).toString("base64"),e.length]});var _f=e=>e.replace(/\u0000/g,"");var ff=globalThis.TextDecoder,kr=globalThis.TextEncoder,Z=()=>{let e;return L({getSizeFromValue:t=>(e||=new kr).encode(t).length,write:(t,n,o)=>{let r=(e||=new kr).encode(t);return n.set(r,o),o+r.length}})},q=()=>{let e;return w({read(t,n){let o=(e||=new ff).decode(t.slice(n));return[_f(o),t.length]}})};function Oe(e,t){try{return"exists"in e&&!e.exists?e:Object.freeze({...e,data:t.decode(e.data)})}catch{throw new O(Nt,{address:e.address})}}function $r(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=jr().encode(t.data[0]);return Object.freeze({...gf(t),address:e,data:n,exists:!0})}function gf(e){return Object.freeze({executable:e.executable,lamports:e.lamports,programAddress:e.owner,space:e.space})}async function Te(e,t,n={}){let{abortSignal:o,...r}=n,a=await e.getAccountInfo(t,{...r,encoding:"base64"}).send({abortSignal:o});return $r(t,a.value)}async function rt(e,t,n={}){let{abortSignal:o,...r}=n;return(await e.getMultipleAccounts(t,{...r,encoding:"base64"}).send({abortSignal:o})).value.map((s,c)=>$r(t[c],s))}function De(e){if(!e.exists)throw new O(Et,{address:e.address})}function ot(e){let t=e.filter(n=>!n.exists);if(t.length>0){let n=t.map(o=>o.address);throw new O(It,{addresses:n})}}function Kr(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.digest!="function")throw new O(St)}var Yt,$t;function Kt(){return Yt||(Yt=Ht()),Yt}function Rf(){return $t||($t=jt()),$t}function Xt(e){if(e.length<32||e.length>44)return!1;let t=Kt();try{return t.encode(e).byteLength===32}catch{return!1}}function Zt(e){if(e.length<32||e.length>44)throw new O(ft,{actualLength:e.length});let o=Kt().encode(e).byteLength;if(o!==32)throw new O(_t,{actualLength:o})}function mf(e){return Zt(e),e}function E(){return g(J(Kt(),32),e=>mf(e))}function I(){return Q(Rf(),32)}function Ef(){return f(E(),I())}function at(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}var If=37095705934669439343138083508754565189542113879843219016388785533085940283555n,$=57896044618658097711785492504343953926634992332820282019728792003956564819949n,Xr=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function ee(e){let t=e%$;return t>=0n?t:$+t}function oe(e,t){let n=e;for(;t-- >0n;)n*=n,n%=$;return n}function Nf(e){let n=e*e%$*e%$,o=oe(n,2n)*n%$,r=oe(o,1n)*e%$,a=oe(r,5n)*r%$,s=oe(a,10n)*a%$,c=oe(s,20n)*s%$,u=oe(c,40n)*c%$,S=oe(u,80n)*u%$,v=oe(S,80n)*u%$,B=oe(v,10n)*a%$;return oe(B,2n)*e%$}function Sf(e,t){let n=ee(t*t*t),o=ee(n*n*t),r=Nf(e*o),a=ee(e*n*r),s=ee(t*a*a),c=a,u=ee(a*Xr),S=s===e,v=s===ee(-e),B=s===ee(-e*Xr);return S&&(a=c),(v||B)&&(a=u),(ee(a)&1n)===1n&&(a=ee(-a)),!S&&!v?null:a}function Of(e,t){let n=ee(e*e),o=ee(n-1n),r=ee(If*n+1n),a=Sf(o,r);if(a===null)return!1;let s=(t&128)!==0;return!(a===0n&&s)}function Tf(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function Df(e){let n=`0x${e.reduce((o,r,a)=>`${Tf(a===31?r&-129:r)}${o}`,"")}`;return BigInt(n)}function hf(e){if(e.byteLength!==32)return!1;let t=Df(e);return Of(t,e[31])}var Zr=32,qr=16,Cf=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function pf({programAddress:e,seeds:t}){if(Kr(),t.length>qr)throw new O(gt,{actual:t.length,maxSeeds:qr});let n,o=t.reduce((u,S,v)=>{let B=typeof S=="string"?(n||=new TextEncoder).encode(S):S;if(B.byteLength>Zr)throw new O(Rt,{actual:B.byteLength,index:v,maxSeedLength:Zr});return u.push(...B),u},[]),r=Ef(),a=r.encode(e),s=await crypto.subtle.digest("SHA-256",new Uint8Array([...o,...a,...Cf])),c=new Uint8Array(s);if(hf(c))throw new O($e);return r.decode(c)}async function Jr({programAddress:e,seeds:t}){let n=255;for(;n>0;)try{return[await pf({programAddress:e,seeds:[...t,new Uint8Array([n])]}),n]}catch(o){if(Je(o,$e))n--;else throw o}throw new O(mt)}function Qr(e,t,n,o){if(o<t||o>n)throw new O(Bt,{codecDescription:e,max:n,min:t,value:o})}function eo(e){return e?.endian!==1}function _e(e){return L({fixedSize:e.size,write(t,n,o){e.range&&Qr(e.name,e.range[0],e.range[1],t);let r=new ArrayBuffer(e.size);return e.set(new DataView(r),t,eo(e.config)),n.set(new Uint8Array(r),o),o+e.size}})}function fe(e){return w({fixedSize:e.size,read(t,n=0){xr(e.name,t,n),Ue(e.name,e.size,t,n);let o=new DataView(tt(t,n,e.size));return[e.get(o,eo(e.config)),n+e.size]}})}var he=(e={})=>_e({config:e,name:"f64",set:(t,n,o)=>t.setFloat64(0,Number(n),o),size:8}),Ce=(e={})=>fe({config:e,get:(t,n)=>t.getFloat64(0,n),name:"f64",size:8});var Pe=(e={})=>_e({config:e,name:"i16",range:[-+"0x7fff"-1,+"0x7fff"],set:(t,n,o)=>t.setInt16(0,Number(n),o),size:2}),ze=(e={})=>fe({config:e,get:(t,n)=>t.getInt16(0,n),name:"i16",size:2});var qt=(e={})=>_e({config:e,name:"i64",range:[-BigInt("0x7fffffffffffffff")-1n,BigInt("0x7fffffffffffffff")],set:(t,n,o)=>t.setBigInt64(0,BigInt(n),o),size:8}),xe=(e={})=>fe({config:e,get:(t,n)=>t.getBigInt64(0,n),name:"i64",size:8});var K=()=>_e({name:"i8",range:[-+"0x7f"-1,+"0x7f"],set:(e,t)=>e.setInt8(0,Number(t)),size:1}),X=()=>fe({get:e=>e.getInt8(0),name:"i8",size:1});var ue=()=>L({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,t,n)=>{Qr("shortU16",0,65535,e);let o=[0];for(let r=0;;r+=1){let a=Number(e)>>r*7;if(a===0)break;let s=127&a;o[r]=s,r>0&&(o[r-1]|=128)}return t.set(o,n),n+o.length}}),ae=()=>w({maxSize:3,read:(e,t)=>{let n=0,o=0;for(;++o;){let r=o-1,a=e[t+r],s=127&a;if(n|=s<<r*7,(a&128)===0)break}return[n,t+o]}});var b=(e={})=>_e({config:e,name:"u16",range:[0,+"0xffff"],set:(t,n,o)=>t.setUint16(0,Number(n),o),size:2}),y=(e={})=>fe({config:e,get:(t,n)=>t.getUint16(0,n),name:"u16",size:2});var x=(e={})=>_e({config:e,name:"u32",range:[0,+"0xffffffff"],set:(t,n,o)=>t.setUint32(0,Number(n),o),size:4}),F=(e={})=>fe({config:e,get:(t,n)=>t.getUint32(0,n),name:"u32",size:4});var C=(e={})=>_e({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,n,o)=>t.setBigUint64(0,BigInt(n),o),size:8}),h=(e={})=>fe({config:e,get:(t,n)=>t.getBigUint64(0,n),name:"u64",size:8});var i=()=>_e({name:"u8",range:[0,+"0xff"],set:(e,t)=>e.setUint8(0,Number(t)),size:1}),d=()=>fe({get:e=>e.getUint8(0),name:"u8",size:1});function to(e,t,n){if(t!==n)throw new O(Pt,{actual:n,codecDescription:e,expected:t})}function Mf(e){return e.reduce((t,n)=>t===null||n===null?null:Math.max(t,n),0)}function ge(e){return e.reduce((t,n)=>t===null||n===null?null:t+n,0)}function pe(e){return P(e)?e.fixedSize:null}function me(e){return P(e)?e.fixedSize:e.maxSize??null}function k(e,t={}){let n=t.size??x(),o=it(n,pe(e)),r=it(n,me(e))??void 0;return L({...o!==null?{fixedSize:o}:{getSizeFromValue:a=>(typeof n=="object"?se(a.length,n):0)+[...a].reduce((c,u)=>c+se(u,e),0),maxSize:r},write:(a,s,c)=>(typeof n=="number"&&to("array",n,a.length),typeof n=="object"&&(c=n.write(a.length,s,c)),a.forEach(u=>{c=e.write(u,s,c)}),c)})}function H(e,t={}){let n=t.size??F(),o=pe(e),r=it(n,o),a=it(n,me(e))??void 0;return w({...r!==null?{fixedSize:r}:{maxSize:a},read:(s,c)=>{let u=[];if(typeof n=="object"&&s.slice(c).length===0)return[u,c];if(n==="remainder"){for(;c<s.length;){let[B,Se]=e.read(s,c);c=Se,u.push(B)}return[u,c]}let[S,v]=typeof n=="number"?[n,c]:n.read(s,c);c=v;for(let B=0;B<S;B+=1){let[Se,Wd]=e.read(s,c);c=Wd,u.push(Se)}return[u,c]}})}function it(e,t){return typeof e!="number"?null:e===0?0:t===null?null:t*e}function W(e={}){return g(e.size??i(),t=>t?1:0)}function G(e={}){return Y(e.size??d(),t=>Number(t)===1)}function U(){return L({getSizeFromValue:e=>e.length,write:(e,t,n)=>(t.set(e,n),n+e.length)})}function V(){return w({read:(e,t)=>{let n=e.slice(t);return[n,t+n.length]}})}var vf=()=>w({read(e,t){return[e.slice(t).reduce((o,r)=>o+r.toString(16).padStart(2,"0"),""),e.length]}});function de(e){return L({fixedSize:e.length,write:(t,n,o)=>(n.set(e,o),o+e.length)})}function Fe(e){return w({fixedSize:e.length,read:(t,n)=>{let o=vf();if(!l(t,e,n))throw new O(kt,{constant:e,data:t,hexConstant:o.decode(e),hexData:o.decode(t),offset:n});return[void 0,n+e.length]}})}function Re(e){let t=ge(e.map(pe)),n=ge(e.map(me))??void 0;return L({...t===null?{getSizeFromValue:o=>e.map((r,a)=>se(o[a],r)).reduce((r,a)=>r+a,0),maxSize:n}:{fixedSize:t},write:(o,r,a)=>(to("tuple",e.length,o.length),e.forEach((s,c)=>{a=s.write(o[c],r,a)}),a)})}function ie(e){let t=ge(e.map(pe)),n=ge(e.map(me))??void 0;return w({...t===null?{maxSize:n}:{fixedSize:t},read:(o,r)=>{let a=[];return e.forEach(s=>{let[c,u]=s.read(o,r);a.push(c),r=u}),[a,r]}})}function Be(e,t){let n=no(e),o=(a,s,c)=>{let u=t(a);return Jt(e,u),e[u].write(a,s,c)};if(n!==null)return L({fixedSize:n,write:o});let r=ro(e);return L({...r!==null?{maxSize:r}:{},getSizeFromValue:a=>{let s=t(a);return Jt(e,s),se(a,e[s])},write:o})}function Qt(e,t){let n=no(e),o=(a,s)=>{let c=t(a,s);return Jt(e,c),e[c].read(a,s)};if(n!==null)return w({fixedSize:n,read:o});let r=ro(e);return w({...r!==null?{maxSize:r}:{},read:o})}function Jt(e,t){if(typeof e[t]>"u")throw new O(Gt,{maxRange:e.length-1,minRange:0,variant:t})}function no(e){if(e.length===0)return 0;if(!P(e[0]))return null;let t=e[0].fixedSize;return e.every(o=>P(o)&&o.fixedSize===t)?t:null}function ro(e){return Mf(e.map(t=>me(t)))}function en(e,t={}){let n=t.discriminator??"__kind",o=t.size??i();return Be(e.map(([,r],a)=>g(Re([o,r]),s=>[a,s])),r=>bf(e,r[n]))}function tn(e,t={}){let n=t.discriminator??"__kind",o=t.size??d();return Qt(e.map(([r,a])=>Y(ie([o,a]),([,s])=>({[n]:r,...s}))),(r,a)=>Number(o.read(r,a)[0]))}function bf(e,t){let n=e.findIndex(([o])=>t===o);if(n<0)throw new O(xt,{value:t,variants:e.map(([o])=>o)});return n}function oo(e){let t=[...new Set(Object.values(e).filter(s=>typeof s=="number"))].sort(),n=Object.fromEntries(Object.entries(e).slice(t.length)),o=Object.keys(n),r=Object.values(n),a=[...new Set([...o,...r.filter(s=>typeof s=="string")])];return{enumKeys:o,enumRecord:n,enumValues:r,numericalValues:t,stringValues:a}}function yf({enumKeys:e,enumValues:t,variant:n}){let o=ao(t,r=>r===n);return o>=0?o:e.findIndex(r=>r===n)}function Lf({discriminator:e,enumKeys:t,enumValues:n,useValuesAsDiscriminators:o}){return o?ao(n,r=>r===e):e>=0&&e<t.length?e:-1}function ao(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function io(e){if(e.length===0)return"";let t=[e[0],e[0]],n=[];for(let o=1;o<e.length;o++){let r=e[o];t[1]+1===r?t[1]=r:(n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),t=[r,r])}return n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),n.join(", ")}function ct(e,t={}){let n=t.size??i(),o=t.useValuesAsDiscriminators??!1,{enumKeys:r,enumValues:a,numericalValues:s,stringValues:c}=oo(e);if(o&&a.some(u=>typeof u=="string"))throw new O(qe,{stringValues:a.filter(u=>typeof u=="string")});return g(n,u=>{let S=yf({enumKeys:r,enumValues:a,variant:u});if(S<0)throw new O(Ft,{formattedNumericalValues:io(s),numericalValues:s,stringValues:c,variant:u});return o?a[S]:S})}function st(e,t={}){let n=t.size??d(),o=t.useValuesAsDiscriminators??!1,{enumKeys:r,enumValues:a,numericalValues:s}=oo(e);if(o&&a.some(c=>typeof c=="string"))throw new O(qe,{stringValues:a.filter(c=>typeof c=="string")});return Y(n,c=>{let u=Number(c),S=Lf({discriminator:u,enumKeys:r,enumValues:a,useValuesAsDiscriminators:o});if(S<0){let v=o?s:[...Array(r.length).keys()];throw new O(zt,{discriminator:u,formattedValidDiscriminators:io(v),validDiscriminators:v})}return a[S]})}function We(e,t){return g(Re([...t,e]),n=>[...t.map(()=>{}),n])}function nn(e,t){return Y(ie([...t,e]),n=>n[n.length-1])}function co(e,t,n={}){return g(k(Re([e,t]),n),o=>[...o.entries()])}function so(e,t,n={}){return Y(H(ie([e,t]),n),o=>new Map(o))}function te(){return L({fixedSize:0,write:(e,t,n)=>n})}function ne(){return w({fixedSize:0,read:(e,t)=>[void 0,t]})}function A(e){let t=e.map(([,r])=>r),n=ge(t.map(pe)),o=ge(t.map(me))??void 0;return L({...n===null?{getSizeFromValue:r=>e.map(([a,s])=>se(r[a],s)).reduce((a,s)=>a+s,0),maxSize:o}:{fixedSize:n},write:(r,a,s)=>(e.forEach(([c,u])=>{s=u.write(r[c],a,s)}),s)})}function _(e){let t=e.map(([,r])=>r),n=ge(t.map(pe)),o=ge(t.map(me))??void 0;return w({...n===null?{maxSize:o}:{fixedSize:n},read:(r,a)=>{let s={};return e.forEach(([c,u])=>{let[S,v]=u.read(r,a);a=v,s[c]=S}),[s,a]}})}var uo=e=>({__option:"Some",value:e}),Ee=()=>({__option:"None"}),Ge=e=>!!(e&&typeof e=="object"&&"__option"in e&&(e.__option==="Some"&&"value"in e||e.__option==="None")),rn=e=>e.__option==="Some",lo=e=>e.__option==="None";function on(e,t){return rn(e)?e.value:t?t():null}var ut=e=>e!==null?uo(e):Ee();function T(e,t={}){let n=t.prefix===null?g(te(),r=>{}):W({size:t.prefix??i()}),o=t.noneValue==="zeroes"?(et(e),J(te(),e.fixedSize)):t.noneValue?de(t.noneValue):te();return Be([g(Re([n,o]),r=>[!1,void 0]),g(Re([n,e]),r=>[!0,Ge(r)&&rn(r)?r.value:r])],r=>{let a=Ge(r)?r:ut(r);return Number(rn(a))})}function D(e,t={}){let n=t.prefix===null?Y(ne(),()=>!1):G({size:t.prefix??d()}),o=t.noneValue==="zeroes"?(et(e),Q(ne(),e.fixedSize)):t.noneValue?Fe(t.noneValue):ne();return Qt([Y(ie([n,o]),()=>Ee()),Y(ie([n,e]),([,r])=>uo(r))],(r,a)=>{if(t.prefix===null&&!t.noneValue)return+(a<r.length);if(t.prefix===null&&t.noneValue!=null){let s=t.noneValue==="zeroes"?new Uint8Array(o.fixedSize).fill(0):t.noneValue;return l(r,s,a)?0:1}return Number(n.read(r,a)[0])})}function um(e,...t){return t.reduce((n,o)=>o(n),e)}var N=(e=>(e[e.WRITABLE_SIGNER=3]="WRITABLE_SIGNER",e[e.READONLY_SIGNER=2]="READONLY_SIGNER",e[e.WRITABLE=1]="WRITABLE",e[e.READONLY=0]="READONLY",e))(N||{}),wf=2,Uf=1;function Ie(e){return e>=2}function Me(e){return(e&Uf)!==0}function an(e,t){return e|t}function Ao(e){return e|wf}function _o(e){return Xt(e)}function Io(e){return"lifetimeConstraint"in e&&typeof e.lifetimeConstraint.blockhash=="string"&&typeof e.lifetimeConstraint.lastValidBlockHeight=="bigint"&&_o(e.lifetimeConstraint.blockhash)}function Sm(e,t){return"lifetimeConstraint"in t&&t.lifetimeConstraint&&"blockhash"in t.lifetimeConstraint&&t.lifetimeConstraint.blockhash===e.blockhash&&t.lifetimeConstraint.lastValidBlockHeight===e.lastValidBlockHeight?t:Object.freeze({...t,lifetimeConstraint:Object.freeze(e)})}function Pf(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new O(Le,{alphabet:e,base:e.length,value:n})}var zf=e=>L({getSizeFromValue:t=>{let[n,o]=fo(t,e[0]);if(!o)return t.length;let r=go(o,e);return n.length+Math.ceil(r.toString(16).length/2)},write(t,n,o){if(Pf(e,t),t==="")return o;let[r,a]=fo(t,e[0]);if(!a)return n.set(new Uint8Array(r.length).fill(0),o),o+r.length;let s=go(a,e),c=[];for(;s>0n;)c.unshift(Number(s%256n)),s/=256n;let u=[...Array(r.length).fill(0),...c];return n.set(u,o),o+u.length}}),xf=e=>w({read(t,n){let o=n===0?t:t.slice(n);if(o.length===0)return["",0];let r=o.findIndex(u=>u!==0);r=r===-1?o.length:r;let a=e[0].repeat(r);if(r===o.length)return[a,t.length];let s=o.slice(r).reduce((u,S)=>u*256n+BigInt(S),0n),c=Ff(s,e);return[a+c,t.length]}});function fo(e,t){let[n,o]=e.split(new RegExp(`((?!${t}).*)`));return[n,o]}function go(e,t){let n=BigInt(t.length),o=0n;for(let r of e)o*=n,o+=BigInt(t.indexOf(r));return o}function Ff(e,t){let n=BigInt(t.length),o=[];for(;e>0n;)o.unshift(t[Number(e%n)]),e/=n;return o.join("")}var No="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Bf=()=>zf(No),Wf=()=>xf(No),cn;function Gf(){if(!cn){let e=k(i(),{size:ue()});cn=A([["lookupTableAddress",E()],["writableIndexes",e],["readonlyIndexes",e]])}return cn}var sn;function kf(){if(!sn){let e=H(d(),{size:ae()});sn=_([["lookupTableAddress",I()],["writableIndexes",e],["readonlyIndexes",e]])}return sn}var un;function dn(){return un||(un=i()),un}var ln;function An(){return ln||(ln=d()),ln}function Vf(){return A([["numSignerAccounts",dn()],["numReadonlySignerAccounts",dn()],["numReadonlyNonSignerAccounts",dn()]])}function Hf(){return _([["numSignerAccounts",An()],["numReadonlySignerAccounts",An()],["numReadonlyNonSignerAccounts",An()]])}var _n;function jf(){return _n||(_n=g(A([["programAddressIndex",i()],["accountIndices",k(i(),{size:ue()})],["data",p(U(),ue())]]),e=>e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:e.accountIndices??[],data:e.data??new Uint8Array(0)})),_n}var fn;function Yf(){return fn||(fn=Y(_([["programAddressIndex",d()],["accountIndices",H(d(),{size:ae()})],["data",M(V(),ae())]]),e=>{if(e.accountIndices.length&&e.data.byteLength)return e;let{accountIndices:t,data:n,...o}=e;return{...o,...t.length?{accountIndices:t}:null,...n.byteLength?{data:n}:null}})),fn}var So=0,gn=128;function $f(){return L({getSizeFromValue:e=>e==="legacy"?0:1,maxSize:1,write:(e,t,n)=>{if(e==="legacy")return n;if(e<0||e>127)throw new O(Ct,{actualVersion:e});if(e>So)throw new O(Ze,{unsupportedVersion:e});return t.set([e|gn],n),n+1}})}function Rn(){return w({maxSize:1,read:(e,t)=>{let n=e[t];if((n&gn)===0)return["legacy",t];{let o=n^gn;if(o>So)throw new O(Ze,{unsupportedVersion:o});return[o,t+1]}}})}function Ro(){return A(Oo())}function mo(){return g(A([...Oo(),["addressTableLookups",Xf()]]),e=>e.version==="legacy"?e:{...e,addressTableLookups:e.addressTableLookups??[]})}function Oo(){let e=Be([de(new Uint8Array(32)),J(Bf(),32)],t=>t===void 0?0:1);return[["version",$f()],["header",Vf()],["staticAccounts",k(E(),{size:ue()})],["lifetimeToken",e],["instructions",k(jf(),{size:ue()})]]}function Kf(){return[["version",Rn()],["header",Hf()],["staticAccounts",H(I(),{size:ae()})],["lifetimeToken",Q(Wf(),32)],["instructions",H(Yf(),{size:ae()})],["addressTableLookups",Zf()]]}function Xf(){return k(Gf(),{size:ue()})}function Zf(){return H(kf(),{size:ae()})}function To(){return L({getSizeFromValue:e=>e.version==="legacy"?Ro().getSizeFromValue(e):mo().getSizeFromValue(e),write:(e,t,n)=>e.version==="legacy"?Ro().write(e,t,n):mo().write(e,t,n)})}function Om(){return Y(_(Kf()),({addressTableLookups:e,...t})=>t.version==="legacy"||!e?.length?t:{...t,addressTableLookups:e})}function Eo(e,t,n){e[t]=n(e[t]??{role:N.READONLY})}var z=Symbol("AddressMapTypeProperty");function qf(e,t){let n={[e]:{[z]:0,role:N.WRITABLE_SIGNER}},o=new Set;for(let r of t){Eo(n,r.programAddress,s=>{if(o.add(r.programAddress),z in s){if(Me(s.role))throw s[z]===0?new O(Tt,{programAddress:r.programAddress}):new O(Xe,{programAddress:r.programAddress});if(s[z]===2)return s}return{[z]:2,role:N.READONLY}});let a;if(r.accounts)for(let s of r.accounts)Eo(n,s.address,c=>{let{address:u,...S}=s;if(z in c)switch(c[z]){case 0:return c;case 1:{let v=an(c.role,S.role);if("lookupTableAddress"in S){if(c.lookupTableAddress!==S.lookupTableAddress&&(a||=at())(S.lookupTableAddress,c.lookupTableAddress)<0)return{[z]:1,...S,role:v}}else if(Ie(S.role))return{[z]:2,role:v};return c.role!==v?{...c,role:v}:c}case 2:{let v=an(c.role,S.role);if(o.has(s.address)){if(Me(S.role))throw new O(Xe,{programAddress:s.address});return c.role!==v?{...c,role:v}:c}else return"lookupTableAddress"in S&&!Ie(c.role)?{...S,[z]:1,role:v}:c.role!==v?{...c,role:v}:c}}return"lookupTableAddress"in S?{...S,[z]:1}:{...S,[z]:2}})}return n}function Jf(e){let t;return Object.entries(e).sort(([o,r],[a,s])=>{if(r[z]!==s[z]){if(r[z]===0)return-1;if(s[z]===0)return 1;if(r[z]===2)return-1;if(s[z]===2)return 1}let c=Ie(r.role);if(c!==Ie(s.role))return c?-1:1;let u=Me(r.role);return u!==Me(s.role)?u?-1:1:(t||=at(),r[z]===1&&s[z]===1&&r.lookupTableAddress!==s.lookupTableAddress?t(r.lookupTableAddress,s.lookupTableAddress):t(o,a))}).map(([o,r])=>({address:o,...r}))}function Qf(e){let t={};for(let n of e){if(!("lookupTableAddress"in n))continue;let o=t[n.lookupTableAddress]||={readonlyIndexes:[],writableIndexes:[]};n.role===N.WRITABLE?o.writableIndexes.push(n.addressIndex):o.readonlyIndexes.push(n.addressIndex)}return Object.keys(t).sort(at()).map(n=>({lookupTableAddress:n,...t[n]}))}function eg(e){let t=0,n=0,o=0;for(let r of e){if("lookupTableAddress"in r)break;let a=Me(r.role);Ie(r.role)?(o++,a||n++):a||t++}return{numReadonlyNonSignerAccounts:t,numReadonlySignerAccounts:n,numSignerAccounts:o}}function tg(e){let t={};for(let[n,o]of e.entries())t[o.address]=n;return t}function ng(e,t){let n=tg(t);return e.map(({accounts:o,data:r,programAddress:a})=>({programAddressIndex:n[a],...o?{accountIndices:o.map(({address:s})=>n[s])}:null,...r?{data:r}:null}))}function rg(e){return"nonce"in e?e.nonce:e.blockhash}function og(e){let t=e.findIndex(o=>"lookupTableAddress"in o);return(t===-1?e:e.slice(0,t)).map(({address:o})=>o)}function Do(e){let t=qf(e.feePayer.address,e.instructions),n=Jf(t),o=e.lifetimeConstraint;return{...e.version!=="legacy"?{addressTableLookups:Qf(n)}:null,...o?{lifetimeToken:rg(o)}:null,header:eg(n),instructions:ng(e.instructions,n),staticAccounts:og(n),version:e.version}}function Tm(e){return Object.freeze({instructions:Object.freeze([]),version:e.version})}var ag="SysvarRecentB1ockHashes11111111111111111111",ig="11111111111111111111111111111111";function cg(e){return e.programAddress===ig&&e.data!=null&&sg(e.data)&&e.accounts?.length===3&&e.accounts[0].address!=null&&e.accounts[0].role===N.WRITABLE&&e.accounts[1].address===ag&&e.accounts[1].role===N.READONLY&&e.accounts[2].address!=null&&Ie(e.accounts[2].role)}function sg(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}function ho(e){return"lifetimeConstraint"in e&&typeof e.lifetimeConstraint.nonce=="string"&&e.instructions[0]!=null&&cg(e.instructions[0])}function Dm(e,t){if("feePayer"in t&&e===t.feePayer?.address&&ug(t.feePayer))return t;let n={...t,feePayer:Object.freeze({address:e})};return Object.freeze(n),n}function ug(e){return!!e&&"address"in e&&typeof e.address=="string"&&Object.keys(e).length===1}function hm(e,t){return dg([e],t)}function dg(e,t){return Object.freeze({...t,instructions:Object.freeze([...t.instructions,...e])})}function Cm(e,t){return lg([e],t)}function lg(e,t){return Object.freeze({...t,instructions:Object.freeze([...e,...t.instructions])})}function Ag(e){let t=Object.values(e);if(t.length===0)throw new O(pt);return t.map(n=>n||new Uint8Array(64).fill(0))}function _g(){return g(k(J(U(),64),{size:ue()}),Ag)}function fg(){return A([["signatures",_g()],["messageBytes",U()]])}function zm(){return Y(_([["signatures",H(Q(V(),64),{size:ae()})],["messageBytes",V()]]),gg)}function gg(e){let{messageBytes:t,signatures:n}=e,o=ie([Rn(),Br(d(),2),H(I(),{size:ae()})]),[r,a,s]=o.decode(t),c=s.slice(0,a);if(c.length!==n.length)throw new O(Mt,{numRequiredSignatures:a,signaturesLength:n.length,signerAddresses:c});let u={};return c.forEach((S,v)=>{let B=n[v];B.every(Se=>Se===0)?u[S]=null:u[S]=B}),{messageBytes:t,signatures:Object.freeze(u)}}function Co(e){let t=Do(e),n=To().encode(t),o=t.staticAccounts.slice(0,t.header.numSignerAccounts),r={};for(let s of o)r[s]=null;let a;return Io(e)?a={blockhash:e.lifetimeConstraint.blockhash,lastValidBlockHeight:e.lifetimeConstraint.lastValidBlockHeight}:ho(e)&&(a={nonce:e.lifetimeConstraint.nonce,nonceAccountAddress:e.instructions[0].accounts[0].address}),Object.freeze({...a?{lifetimeConstraint:a}:void 0,messageBytes:n,signatures:Object.freeze(r)})}function xm(e){let t=fg().encode(e);return Yr().decode(t)}var Rg=1280,mg=48,Fm=Rg-mg;function mn(e,t,n,o){if(!Je(e,Ke))return!1;let r=t.instructions[e.context.index]?.programAddress;return!r||r!==n?!1:typeof o>"u"||e.context.code===o}function En(e){let t={};return e.forEach(n=>{if(!t[n.address])t[n.address]=n;else if(t[n.address]!==n)throw new O(Ot,{address:n.address})}),Object.values(t)}function dt(e){return"modifyAndSignTransactions"in e&&typeof e.modifyAndSignTransactions=="function"}function ke(e){return"signTransactions"in e&&typeof e.signTransactions=="function"}function po(e){return"signAndSendTransactions"in e&&typeof e.signAndSendTransactions=="function"}function lt(e){return ke(e)||dt(e)||po(e)}function Eg(e){return En((e.accounts??[]).flatMap(t=>"signer"in t?t.signer:[]))}function Ig(e){return En([...e.feePayer&&lt(e.feePayer)?[e.feePayer]:[],...e.instructions.flatMap(Eg)])}async function Ym(e,t){let{partialSigners:n,modifyingSigners:o}=Ng(En(Ig(e).filter(lt)),{identifySendingSigner:!1});return await Tg(e,o,n,t)}function Ng(e,t={}){let o=t.identifySendingSigner??!0?Sg(e):null,r=e.filter(c=>c!==o&&(dt(c)||ke(c))),a=Og(r),s=r.filter(ke).filter(c=>!a.includes(c));return Object.freeze({modifyingSigners:a,partialSigners:s,sendingSigner:o})}function Sg(e){let t=e.filter(po);if(t.length===0)return null;let n=t.filter(o=>!dt(o)&&!ke(o));return n.length>0?n[0]:t[0]}function Og(e){let t=e.filter(dt);if(t.length===0)return[];let n=t.filter(o=>!ke(o));return n.length>0?n:[t[0]]}async function Tg(e,t=[],n=[],o){let r=Co(e),a=await t.reduce(async(c,u)=>{o?.abortSignal?.throwIfAborted();let[S]=await u.modifyAndSignTransactions([await c],o);return Object.freeze(S)},Promise.resolve(r));o?.abortSignal?.throwIfAborted();let s=await Promise.all(n.map(async c=>{let[u]=await c.signTransactions([a],o);return u}));return Object.freeze({...a,signatures:Object.freeze(s.reduce((c,u)=>({...c,...u}),a.signatures??{}))})}var $m=globalThis.TextEncoder;var Dg="SysvarC1ock11111111111111111111111111111111";async function hg(e,t,n){return await Te(e,t,n)}function Cg(){return _([["slot",h()],["epochStartTimestamp",xe()],["epoch",h()],["leaderScheduleEpoch",h()],["unixTimestamp",xe()]])}async function Mo(e,t){let n=await hg(e,Dg,t);return De(n),Oe(n,Cg()).data}var pg=1024*1024,Mg=pg/64,nE=9+Mg*8+8+8;var Sn=(e=>(e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Frozen=2]="Frozen",e))(Sn||{});function He(){return ct(Sn)}function je(){return st(Sn)}function iE(){return f(He(),je())}var On=(e=>(e[e.MintTokens=0]="MintTokens",e[e.FreezeAccount=1]="FreezeAccount",e[e.AccountOwner=2]="AccountOwner",e[e.CloseAccount=3]="CloseAccount",e[e.TransferFeeConfig=4]="TransferFeeConfig",e[e.WithheldWithdraw=5]="WithheldWithdraw",e[e.CloseMint=6]="CloseMint",e[e.InterestRate=7]="InterestRate",e[e.PermanentDelegate=8]="PermanentDelegate",e[e.ConfidentialTransferMint=9]="ConfidentialTransferMint",e[e.TransferHookProgramId=10]="TransferHookProgramId",e[e.ConfidentialTransferFeeConfig=11]="ConfidentialTransferFeeConfig",e[e.MetadataPointer=12]="MetadataPointer",e[e.GroupPointer=13]="GroupPointer",e[e.GroupMemberPointer=14]="GroupMemberPointer",e[e.ScaledUiAmount=15]="ScaledUiAmount",e[e.Pause=16]="Pause",e))(On||{});function wo(){return ct(On)}function Uo(){return st(On)}function cE(){return f(wo(),Uo())}function le(){return J(U(),36)}function Ae(){return Q(V(),36)}function sE(){return f(le(),Ae())}function ve(){return J(U(),64)}function be(){return Q(V(),64)}function uE(){return f(ve(),be())}function Ye(){return en([["Uninitialized",te()],["TransferFeeConfig",p(A([["transferFeeConfigAuthority",E()],["withdrawWithheldAuthority",E()],["withheldAmount",C()],["olderTransferFee",In()],["newerTransferFee",In()]]),b())],["TransferFeeAmount",p(A([["withheldAmount",C()]]),b())],["MintCloseAuthority",p(A([["closeAuthority",E()]]),b())],["ConfidentialTransferMint",p(A([["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["autoApproveNewAccounts",W()],["auditorElgamalPubkey",T(E(),{prefix:null,noneValue:"zeroes"})]]),b())],["ConfidentialTransferAccount",p(A([["approved",W()],["elgamalPubkey",E()],["pendingBalanceLow",ve()],["pendingBalanceHigh",ve()],["availableBalance",ve()],["decryptableAvailableBalance",le()],["allowConfidentialCredits",W()],["allowNonConfidentialCredits",W()],["pendingBalanceCreditCounter",C()],["maximumPendingBalanceCreditCounter",C()],["expectedPendingBalanceCreditCounter",C()],["actualPendingBalanceCreditCounter",C()]]),b())],["DefaultAccountState",p(A([["state",He()]]),b())],["ImmutableOwner",p(A([]),b())],["MemoTransfer",p(A([["requireIncomingTransferMemos",W()]]),b())],["NonTransferable",p(A([]),b())],["InterestBearingConfig",p(A([["rateAuthority",E()],["initializationTimestamp",C()],["preUpdateAverageRate",Pe()],["lastUpdateTimestamp",C()],["currentRate",Pe()]]),b())],["CpiGuard",p(A([["lockCpi",W()]]),b())],["PermanentDelegate",p(A([["delegate",E()]]),b())],["NonTransferableAccount",p(A([]),b())],["TransferHook",p(A([["authority",E()],["programId",E()]]),b())],["TransferHookAccount",p(A([["transferring",W()]]),b())],["ConfidentialTransferFee",p(A([["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["elgamalPubkey",E()],["harvestToMintEnabled",W()],["withheldAmount",ve()]]),b())],["ConfidentialTransferFeeAmount",p(A([["withheldAmount",ve()]]),b())],["MetadataPointer",p(A([["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["metadataAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),b())],["TokenMetadata",p(A([["updateAuthority",T(E(),{prefix:null,noneValue:"zeroes"})],["mint",E()],["name",p(Z(),x())],["symbol",p(Z(),x())],["uri",p(Z(),x())],["additionalMetadata",co(p(Z(),x()),p(Z(),x()))]]),b())],["GroupPointer",p(A([["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["groupAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),b())],["TokenGroup",p(A([["updateAuthority",T(E(),{prefix:null,noneValue:"zeroes"})],["mint",E()],["size",C()],["maxSize",C()]]),b())],["GroupMemberPointer",p(A([["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["memberAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),b())],["TokenGroupMember",p(A([["mint",E()],["group",E()],["memberNumber",C()]]),b())],["ConfidentialMintBurn",te()],["ScaledUiAmountConfig",p(A([["authority",E()],["multiplier",he()],["newMultiplierEffectiveTimestamp",C()],["newMultiplier",he()]]),b())],["PausableConfig",p(A([["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["paused",W()]]),b())],["PausableAccount",te()]],{size:b()})}function Tn(){return tn([["Uninitialized",ne()],["TransferFeeConfig",M(_([["transferFeeConfigAuthority",I()],["withdrawWithheldAuthority",I()],["withheldAmount",h()],["olderTransferFee",Nn()],["newerTransferFee",Nn()]]),y())],["TransferFeeAmount",M(_([["withheldAmount",h()]]),y())],["MintCloseAuthority",M(_([["closeAuthority",I()]]),y())],["ConfidentialTransferMint",M(_([["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["autoApproveNewAccounts",G()],["auditorElgamalPubkey",D(I(),{prefix:null,noneValue:"zeroes"})]]),y())],["ConfidentialTransferAccount",M(_([["approved",G()],["elgamalPubkey",I()],["pendingBalanceLow",be()],["pendingBalanceHigh",be()],["availableBalance",be()],["decryptableAvailableBalance",Ae()],["allowConfidentialCredits",G()],["allowNonConfidentialCredits",G()],["pendingBalanceCreditCounter",h()],["maximumPendingBalanceCreditCounter",h()],["expectedPendingBalanceCreditCounter",h()],["actualPendingBalanceCreditCounter",h()]]),y())],["DefaultAccountState",M(_([["state",je()]]),y())],["ImmutableOwner",M(_([]),y())],["MemoTransfer",M(_([["requireIncomingTransferMemos",G()]]),y())],["NonTransferable",M(_([]),y())],["InterestBearingConfig",M(_([["rateAuthority",I()],["initializationTimestamp",h()],["preUpdateAverageRate",ze()],["lastUpdateTimestamp",h()],["currentRate",ze()]]),y())],["CpiGuard",M(_([["lockCpi",G()]]),y())],["PermanentDelegate",M(_([["delegate",I()]]),y())],["NonTransferableAccount",M(_([]),y())],["TransferHook",M(_([["authority",I()],["programId",I()]]),y())],["TransferHookAccount",M(_([["transferring",G()]]),y())],["ConfidentialTransferFee",M(_([["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["elgamalPubkey",I()],["harvestToMintEnabled",G()],["withheldAmount",be()]]),y())],["ConfidentialTransferFeeAmount",M(_([["withheldAmount",be()]]),y())],["MetadataPointer",M(_([["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["metadataAddress",D(I(),{prefix:null,noneValue:"zeroes"})]]),y())],["TokenMetadata",M(_([["updateAuthority",D(I(),{prefix:null,noneValue:"zeroes"})],["mint",I()],["name",M(q(),F())],["symbol",M(q(),F())],["uri",M(q(),F())],["additionalMetadata",so(M(q(),F()),M(q(),F()))]]),y())],["GroupPointer",M(_([["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["groupAddress",D(I(),{prefix:null,noneValue:"zeroes"})]]),y())],["TokenGroup",M(_([["updateAuthority",D(I(),{prefix:null,noneValue:"zeroes"})],["mint",I()],["size",h()],["maxSize",h()]]),y())],["GroupMemberPointer",M(_([["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["memberAddress",D(I(),{prefix:null,noneValue:"zeroes"})]]),y())],["TokenGroupMember",M(_([["mint",I()],["group",I()],["memberNumber",h()]]),y())],["ConfidentialMintBurn",ne()],["ScaledUiAmountConfig",M(_([["authority",I()],["multiplier",Ce()],["newMultiplierEffectiveTimestamp",h()],["newMultiplier",Ce()]]),y())],["PausableConfig",M(_([["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["paused",G()]]),y())],["PausableAccount",ne()]],{size:y()})}function dE(){return f(Ye(),Tn())}function lE(e,t){return Array.isArray(t)?{__kind:e,fields:t}:{__kind:e,...t??{}}}function AE(e,t){return t.__kind===e}var Dn=(e=>(e[e.Uninitialized=0]="Uninitialized",e[e.TransferFeeConfig=1]="TransferFeeConfig",e[e.TransferFeeAmount=2]="TransferFeeAmount",e[e.MintCloseAuthority=3]="MintCloseAuthority",e[e.ConfidentialTransferMint=4]="ConfidentialTransferMint",e[e.ConfidentialTransferAccount=5]="ConfidentialTransferAccount",e[e.DefaultAccountState=6]="DefaultAccountState",e[e.ImmutableOwner=7]="ImmutableOwner",e[e.MemoTransfer=8]="MemoTransfer",e[e.NonTransferable=9]="NonTransferable",e[e.InterestBearingConfig=10]="InterestBearingConfig",e[e.CpiGuard=11]="CpiGuard",e[e.PermanentDelegate=12]="PermanentDelegate",e[e.NonTransferableAccount=13]="NonTransferableAccount",e[e.TransferHook=14]="TransferHook",e[e.TransferHookAccount=15]="TransferHookAccount",e[e.ConfidentialTransferFee=16]="ConfidentialTransferFee",e[e.ConfidentialTransferFeeAmount=17]="ConfidentialTransferFeeAmount",e[e.ScaledUiAmountConfig=18]="ScaledUiAmountConfig",e[e.PausableConfig=19]="PausableConfig",e[e.PausableAccount=20]="PausableAccount",e[e.MetadataPointer=21]="MetadataPointer",e[e.TokenMetadata=22]="TokenMetadata",e[e.GroupPointer=23]="GroupPointer",e[e.TokenGroup=24]="TokenGroup",e[e.GroupMemberPointer=25]="GroupMemberPointer",e[e.TokenGroupMember=26]="TokenGroupMember",e))(Dn||{});function Po(){return ct(Dn,{size:b()})}function zo(){return st(Dn,{size:y()})}function _E(){return f(Po(),zo())}function xo(){return en([["Name",te()],["Symbol",te()],["Uri",te()],["Key",A([["fields",Re([p(Z(),x())])]])]])}function Fo(){return tn([["Name",ne()],["Symbol",ne()],["Uri",ne()],["Key",_([["fields",ie([M(q(),F())])]])]])}function fE(){return f(xo(),Fo())}function gE(e,t){return Array.isArray(t)?{__kind:e,fields:t}:{__kind:e,...t??{}}}function RE(e,t){return t.__kind===e}function In(){return A([["epoch",C()],["maximumFee",C()],["transferFeeBasisPoints",b()]])}function Nn(){return _([["epoch",h()],["maximumFee",h()],["transferFeeBasisPoints",y()]])}function mE(){return f(In(),Nn())}function vg(){return A([["mintAuthority",T(E(),{prefix:x(),noneValue:"zeroes"})],["supply",C()],["decimals",i()],["isInitialized",W()],["freezeAuthority",T(E(),{prefix:x(),noneValue:"zeroes"})],["extensions",T(We(k(Ye(),{size:"remainder"}),[de(nt(i(),83).encode(1))]),{prefix:null})]])}function Bo(){return _([["mintAuthority",D(I(),{prefix:F(),noneValue:"zeroes"})],["supply",h()],["decimals",d()],["isInitialized",G()],["freezeAuthority",D(I(),{prefix:F(),noneValue:"zeroes"})],["extensions",D(nn(H(Tn(),{size:"remainder"}),[Fe(nt(i(),83).encode(1))]),{prefix:null})]])}function EE(){return f(vg(),Bo())}function Wo(e){return Oe(e,Bo())}async function Go(e,t,n){let o=await bg(e,t,n);return De(o),o}async function bg(e,t,n){let o=await Te(e,t,n);return Wo(o)}async function IE(e,t,n){let o=await yg(e,t,n);return ot(o),o}async function yg(e,t,n){return(await rt(e,t,n)).map(r=>Wo(r))}function Lg(){return A([["m",i()],["n",i()],["isInitialized",W()],["signers",k(E(),{size:11})]])}function ko(){return _([["m",d()],["n",d()],["isInitialized",G()],["signers",H(I(),{size:11})]])}function NE(){return f(Lg(),ko())}function Vo(e){return Oe(e,ko())}async function SE(e,t,n){let o=await wg(e,t,n);return De(o),o}async function wg(e,t,n){let o=await Te(e,t,n);return Vo(o)}async function OE(e,t,n){let o=await Ug(e,t,n);return ot(o),o}async function Ug(e,t,n){return(await rt(e,t,n)).map(r=>Vo(r))}function TE(){return 355}function Pg(){return A([["mint",E()],["owner",E()],["amount",C()],["delegate",T(E(),{prefix:x(),noneValue:"zeroes"})],["state",He()],["isNative",T(C(),{prefix:x(),noneValue:"zeroes"})],["delegatedAmount",C()],["closeAuthority",T(E(),{prefix:x(),noneValue:"zeroes"})],["extensions",T(We(k(Ye(),{size:"remainder"}),[de(i().encode(2))]),{prefix:null})]])}function Ho(){return _([["mint",I()],["owner",I()],["amount",h()],["delegate",D(I(),{prefix:F(),noneValue:"zeroes"})],["state",je()],["isNative",D(h(),{prefix:F(),noneValue:"zeroes"})],["delegatedAmount",h()],["closeAuthority",D(I(),{prefix:F(),noneValue:"zeroes"})],["extensions",D(nn(H(Tn(),{size:"remainder"}),[Fe(i().encode(2))]),{prefix:null})]])}function DE(){return f(Pg(),Ho())}function jo(e){return Oe(e,Ho())}async function hE(e,t,n){let o=await zg(e,t,n);return De(o),o}async function zg(e,t,n){let o=await Te(e,t,n);return jo(o)}async function CE(e,t,n){let o=await xg(e,t,n);return ot(o),o}async function xg(e,t,n){return(await rt(e,t,n)).map(r=>jo(r))}var Ne="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",Fg=(e=>(e[e.CreateAssociatedToken=0]="CreateAssociatedToken",e[e.CreateAssociatedTokenIdempotent=1]="CreateAssociatedTokenIdempotent",e[e.RecoverNestedAssociatedToken=2]="RecoverNestedAssociatedToken",e))(Fg||{});function pE(e){let t="data"in e?e.data:e;if(l(t,i().encode(0),0))return 0;if(l(t,i().encode(1),0))return 1;if(l(t,i().encode(2),0))return 2;throw new Error("The provided instruction could not be identified as a associatedToken instruction.")}var R="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",Bg=(e=>(e[e.Mint=0]="Mint",e[e.Token=1]="Token",e[e.Multisig=2]="Multisig",e))(Bg||{});function ME(e){let t="data"in e?e.data:e;if(t.length===82)return 0;if(t.length===165)return 1;if(t.length===355)return 2;throw new Error("The provided account could not be identified as a token-2022 account.")}var Wg=(e=>(e[e.InitializeMint=0]="InitializeMint",e[e.InitializeAccount=1]="InitializeAccount",e[e.InitializeMultisig=2]="InitializeMultisig",e[e.Transfer=3]="Transfer",e[e.Approve=4]="Approve",e[e.Revoke=5]="Revoke",e[e.SetAuthority=6]="SetAuthority",e[e.MintTo=7]="MintTo",e[e.Burn=8]="Burn",e[e.CloseAccount=9]="CloseAccount",e[e.FreezeAccount=10]="FreezeAccount",e[e.ThawAccount=11]="ThawAccount",e[e.TransferChecked=12]="TransferChecked",e[e.ApproveChecked=13]="ApproveChecked",e[e.MintToChecked=14]="MintToChecked",e[e.BurnChecked=15]="BurnChecked",e[e.InitializeAccount2=16]="InitializeAccount2",e[e.SyncNative=17]="SyncNative",e[e.InitializeAccount3=18]="InitializeAccount3",e[e.InitializeMultisig2=19]="InitializeMultisig2",e[e.InitializeMint2=20]="InitializeMint2",e[e.GetAccountDataSize=21]="GetAccountDataSize",e[e.InitializeImmutableOwner=22]="InitializeImmutableOwner",e[e.AmountToUiAmount=23]="AmountToUiAmount",e[e.UiAmountToAmount=24]="UiAmountToAmount",e[e.InitializeMintCloseAuthority=25]="InitializeMintCloseAuthority",e[e.InitializeTransferFeeConfig=26]="InitializeTransferFeeConfig",e[e.TransferCheckedWithFee=27]="TransferCheckedWithFee",e[e.WithdrawWithheldTokensFromMint=28]="WithdrawWithheldTokensFromMint",e[e.WithdrawWithheldTokensFromAccounts=29]="WithdrawWithheldTokensFromAccounts",e[e.HarvestWithheldTokensToMint=30]="HarvestWithheldTokensToMint",e[e.SetTransferFee=31]="SetTransferFee",e[e.InitializeConfidentialTransferMint=32]="InitializeConfidentialTransferMint",e[e.UpdateConfidentialTransferMint=33]="UpdateConfidentialTransferMint",e[e.ConfigureConfidentialTransferAccount=34]="ConfigureConfidentialTransferAccount",e[e.ApproveConfidentialTransferAccount=35]="ApproveConfidentialTransferAccount",e[e.EmptyConfidentialTransferAccount=36]="EmptyConfidentialTransferAccount",e[e.ConfidentialDeposit=37]="ConfidentialDeposit",e[e.ConfidentialWithdraw=38]="ConfidentialWithdraw",e[e.ConfidentialTransfer=39]="ConfidentialTransfer",e[e.ApplyConfidentialPendingBalance=40]="ApplyConfidentialPendingBalance",e[e.EnableConfidentialCredits=41]="EnableConfidentialCredits",e[e.DisableConfidentialCredits=42]="DisableConfidentialCredits",e[e.EnableNonConfidentialCredits=43]="EnableNonConfidentialCredits",e[e.DisableNonConfidentialCredits=44]="DisableNonConfidentialCredits",e[e.ConfidentialTransferWithFee=45]="ConfidentialTransferWithFee",e[e.InitializeDefaultAccountState=46]="InitializeDefaultAccountState",e[e.UpdateDefaultAccountState=47]="UpdateDefaultAccountState",e[e.Reallocate=48]="Reallocate",e[e.EnableMemoTransfers=49]="EnableMemoTransfers",e[e.DisableMemoTransfers=50]="DisableMemoTransfers",e[e.CreateNativeMint=51]="CreateNativeMint",e[e.InitializeNonTransferableMint=52]="InitializeNonTransferableMint",e[e.InitializeInterestBearingMint=53]="InitializeInterestBearingMint",e[e.UpdateRateInterestBearingMint=54]="UpdateRateInterestBearingMint",e[e.EnableCpiGuard=55]="EnableCpiGuard",e[e.DisableCpiGuard=56]="DisableCpiGuard",e[e.InitializePermanentDelegate=57]="InitializePermanentDelegate",e[e.InitializeTransferHook=58]="InitializeTransferHook",e[e.UpdateTransferHook=59]="UpdateTransferHook",e[e.InitializeConfidentialTransferFee=60]="InitializeConfidentialTransferFee",e[e.WithdrawWithheldTokensFromMintForConfidentialTransferFee=61]="WithdrawWithheldTokensFromMintForConfidentialTransferFee",e[e.WithdrawWithheldTokensFromAccountsForConfidentialTransferFee=62]="WithdrawWithheldTokensFromAccountsForConfidentialTransferFee",e[e.HarvestWithheldTokensToMintForConfidentialTransferFee=63]="HarvestWithheldTokensToMintForConfidentialTransferFee",e[e.EnableHarvestToMint=64]="EnableHarvestToMint",e[e.DisableHarvestToMint=65]="DisableHarvestToMint",e[e.WithdrawExcessLamports=66]="WithdrawExcessLamports",e[e.InitializeMetadataPointer=67]="InitializeMetadataPointer",e[e.UpdateMetadataPointer=68]="UpdateMetadataPointer",e[e.InitializeGroupPointer=69]="InitializeGroupPointer",e[e.UpdateGroupPointer=70]="UpdateGroupPointer",e[e.InitializeGroupMemberPointer=71]="InitializeGroupMemberPointer",e[e.UpdateGroupMemberPointer=72]="UpdateGroupMemberPointer",e[e.InitializeScaledUiAmountMint=73]="InitializeScaledUiAmountMint",e[e.UpdateMultiplierScaledUiMint=74]="UpdateMultiplierScaledUiMint",e[e.InitializePausableConfig=75]="InitializePausableConfig",e[e.Pause=76]="Pause",e[e.Resume=77]="Resume",e[e.InitializeTokenMetadata=78]="InitializeTokenMetadata",e[e.UpdateTokenMetadataField=79]="UpdateTokenMetadataField",e[e.RemoveTokenMetadataKey=80]="RemoveTokenMetadataKey",e[e.UpdateTokenMetadataUpdateAuthority=81]="UpdateTokenMetadataUpdateAuthority",e[e.EmitTokenMetadata=82]="EmitTokenMetadata",e[e.InitializeTokenGroup=83]="InitializeTokenGroup",e[e.UpdateTokenGroupMaxSize=84]="UpdateTokenGroupMaxSize",e[e.UpdateTokenGroupUpdateAuthority=85]="UpdateTokenGroupUpdateAuthority",e[e.InitializeTokenGroupMember=86]="InitializeTokenGroupMember",e))(Wg||{});function vE(e){let t="data"in e?e.data:e;if(l(t,i().encode(0),0))return 0;if(l(t,i().encode(1),0))return 1;if(l(t,i().encode(2),0))return 2;if(l(t,i().encode(3),0))return 3;if(l(t,i().encode(4),0))return 4;if(l(t,i().encode(5),0))return 5;if(l(t,i().encode(6),0))return 6;if(l(t,i().encode(7),0))return 7;if(l(t,i().encode(8),0))return 8;if(l(t,i().encode(9),0))return 9;if(l(t,i().encode(10),0))return 10;if(l(t,i().encode(11),0))return 11;if(l(t,i().encode(12),0))return 12;if(l(t,i().encode(13),0))return 13;if(l(t,i().encode(14),0))return 14;if(l(t,i().encode(15),0))return 15;if(l(t,i().encode(16),0))return 16;if(l(t,i().encode(17),0))return 17;if(l(t,i().encode(18),0))return 18;if(l(t,i().encode(19),0))return 19;if(l(t,i().encode(20),0))return 20;if(l(t,i().encode(21),0))return 21;if(l(t,i().encode(22),0))return 22;if(l(t,i().encode(23),0))return 23;if(l(t,i().encode(24),0))return 24;if(l(t,i().encode(25),0))return 25;if(l(t,i().encode(26),0)&&l(t,i().encode(0),1))return 26;if(l(t,i().encode(26),0)&&l(t,i().encode(1),1))return 27;if(l(t,i().encode(26),0)&&l(t,i().encode(2),1))return 28;if(l(t,i().encode(26),0)&&l(t,i().encode(3),1))return 29;if(l(t,i().encode(26),0)&&l(t,i().encode(4),1))return 30;if(l(t,i().encode(26),0)&&l(t,i().encode(5),1))return 31;if(l(t,i().encode(27),0)&&l(t,i().encode(0),1))return 32;if(l(t,i().encode(27),0)&&l(t,i().encode(1),1))return 33;if(l(t,i().encode(27),0)&&l(t,i().encode(2),1))return 34;if(l(t,i().encode(27),0)&&l(t,i().encode(3),1))return 35;if(l(t,i().encode(27),0)&&l(t,i().encode(4),1))return 36;if(l(t,i().encode(27),0)&&l(t,i().encode(5),1))return 37;if(l(t,i().encode(27),0)&&l(t,i().encode(6),1))return 38;if(l(t,i().encode(27),0)&&l(t,i().encode(7),1))return 39;if(l(t,i().encode(27),0)&&l(t,i().encode(8),1))return 40;if(l(t,i().encode(27),0)&&l(t,i().encode(9),1))return 41;if(l(t,i().encode(27),0)&&l(t,i().encode(10),1))return 42;if(l(t,i().encode(27),0)&&l(t,i().encode(11),1))return 43;if(l(t,i().encode(27),0)&&l(t,i().encode(12),1))return 44;if(l(t,i().encode(27),0)&&l(t,i().encode(13),1))return 45;if(l(t,i().encode(28),0)&&l(t,i().encode(0),1))return 46;if(l(t,i().encode(28),0)&&l(t,i().encode(1),1))return 47;if(l(t,i().encode(29),0))return 48;if(l(t,i().encode(30),0)&&l(t,i().encode(0),1))return 49;if(l(t,i().encode(30),0)&&l(t,i().encode(1),1))return 50;if(l(t,i().encode(31),0))return 51;if(l(t,i().encode(32),0))return 52;if(l(t,i().encode(33),0)&&l(t,i().encode(0),1))return 53;if(l(t,i().encode(33),0)&&l(t,i().encode(1),1))return 54;if(l(t,i().encode(34),0)&&l(t,i().encode(0),1))return 55;if(l(t,i().encode(34),0)&&l(t,i().encode(1),1))return 56;if(l(t,i().encode(35),0))return 57;if(l(t,i().encode(36),0)&&l(t,i().encode(0),1))return 58;if(l(t,i().encode(36),0)&&l(t,i().encode(1),1))return 59;if(l(t,i().encode(37),0)&&l(t,i().encode(0),1))return 60;if(l(t,i().encode(37),0)&&l(t,i().encode(1),1))return 61;if(l(t,i().encode(37),0)&&l(t,i().encode(2),1))return 62;if(l(t,i().encode(37),0)&&l(t,i().encode(3),1))return 63;if(l(t,i().encode(37),0)&&l(t,i().encode(4),1))return 64;if(l(t,i().encode(37),0)&&l(t,i().encode(5),1))return 65;if(l(t,i().encode(38),0))return 66;if(l(t,i().encode(39),0)&&l(t,i().encode(0),1))return 67;if(l(t,i().encode(39),0)&&l(t,i().encode(1),1))return 68;if(l(t,i().encode(40),0)&&l(t,i().encode(0),1))return 69;if(l(t,i().encode(40),0)&&l(t,i().encode(1),1))return 70;if(l(t,i().encode(41),0)&&l(t,i().encode(0),1))return 71;if(l(t,i().encode(41),0)&&l(t,i().encode(1),1))return 72;if(l(t,i().encode(43),0)&&l(t,i().encode(0),1))return 73;if(l(t,i().encode(43),0)&&l(t,i().encode(1),1))return 74;if(l(t,i().encode(44),0)&&l(t,i().encode(0),1))return 75;if(l(t,i().encode(44),0)&&l(t,i().encode(1),1))return 76;if(l(t,i().encode(44),0)&&l(t,i().encode(2),1))return 77;if(l(t,new Uint8Array([210,225,30,162,88,184,77,141]),0))return 78;if(l(t,new Uint8Array([221,233,49,45,181,202,220,200]),0))return 79;if(l(t,new Uint8Array([234,18,32,56,89,141,37,181]),0))return 80;if(l(t,new Uint8Array([215,228,166,228,84,100,86,123]),0))return 81;if(l(t,new Uint8Array([250,166,180,250,13,12,184,70]),0))return 82;if(l(t,new Uint8Array([121,113,108,39,54,51,0,4]),0))return 83;if(l(t,new Uint8Array([108,37,171,143,248,30,18,110]),0))return 84;if(l(t,new Uint8Array([161,105,88,1,237,221,216,203]),0))return 85;if(l(t,new Uint8Array([152,32,222,176,223,237,116,134]),0))return 86;throw new Error("The provided instruction could not be identified as a token-2022 instruction.")}var Gg=0,Yo;process.env.NODE_ENV!=="production"&&(Yo={[Gg]:"Associated token account owner does not match address derivation"});function bE(e){return process.env.NODE_ENV!=="production"?Yo[e]:"Error message not available in production bundles."}function yE(e,t,n){return mn(e,t,Ne,n)}var kg=0,Vg=1,Hg=2,jg=3,Yg=4,$g=5,Kg=6,Xg=7,Zg=8,qg=9,Jg=10,Qg=11,eR=12,tR=13,nR=14,rR=15,oR=16,aR=17,iR=18,cR=19,$o;process.env.NODE_ENV!=="production"&&($o={[aR]:"Account is frozen",[Kg]:"Already in use",[rR]:"Account does not support specified authority type",[$g]:"Fixed supply",[Vg]:"Insufficient funds",[eR]:"Invalid instruction",[Hg]:"Invalid Mint",[Xg]:"Invalid number of provided signers",[Zg]:"Invalid number of required signers",[tR]:"State is invalid for requested operation",[oR]:"This token mint cannot freeze accounts",[iR]:"The provided decimals value different from the Mint decimals",[jg]:"Account not associated with this Mint",[Jg]:"Instruction does not support native tokens",[Qg]:"Non-native account can only be closed if its balance is zero",[cR]:"Instruction does not support non-native tokens",[kg]:"Lamport balance below rent-exempt threshold",[nR]:"Operation overflowed",[Yg]:"Owner does not match",[qg]:"State is unititialized"});function LE(e){return process.env.NODE_ENV!=="production"?$o[e]:"Error message not available in production bundles."}function wE(e,t,n){return mn(e,t,R,n)}function j(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 m(e,t){return n=>{if(!n.value)return Object.freeze({address:e,role:N.READONLY});let o=n.isWritable?N.WRITABLE:N.READONLY;return Object.freeze({address:j(n.value),role:vo(n.value)?Ao(o):o,...vo(n.value)?{signer:n.value}:{}})}}function vo(e){return!!e&&typeof e=="object"&&"address"in e&&lt(e)}var Ko=23;function UE(){return i().encode(Ko)}function Xo(){return g(A([["discriminator",i()],["amount",C()]]),e=>({...e,discriminator:Ko}))}function Zo(){return _([["discriminator",d()],["amount",h()]])}function PE(){return f(Xo(),Zo())}function zE(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:Xo().encode(a),programAddress:n})}function xE(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Zo().decode(e.data)}}var qo=27;function FE(){return i().encode(qo)}var Jo=8;function BE(){return i().encode(Jo)}function Qo(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["expectedPendingBalanceCreditCounter",C()],["newDecryptableAvailableBalance",le()]]),e=>({...e,discriminator:qo,confidentialTransferDiscriminator:Jo}))}function ea(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["expectedPendingBalanceCreditCounter",h()],["newDecryptableAvailableBalance",Ae()]])}function WE(){return f(Qo(),ea())}function GE(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.authority),...s],data:Qo().encode(a),programAddress:n})}function kE(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),authority:n()},data:ea().decode(e.data)}}var ta=4;function VE(){return i().encode(ta)}function na(){return g(A([["discriminator",i()],["amount",C()]]),e=>({...e,discriminator:ta}))}function ra(){return _([["discriminator",d()],["amount",h()]])}function HE(){return f(na(),ra())}function jE(e,t){let n=t?.programAddress??R,r={source:{value:e.source??null,isWritable:!0},delegate:{value:e.delegate??null,isWritable:!1},owner:{value:e.owner??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.source),c(r.delegate),c(r.owner),...s],data:na().encode(a),programAddress:n})}function YE(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{source:n(),delegate:n(),owner:n()},data:ra().decode(e.data)}}var oa=13;function $E(){return i().encode(oa)}function aa(){return g(A([["discriminator",i()],["amount",C()],["decimals",i()]]),e=>({...e,discriminator:oa}))}function ia(){return _([["discriminator",d()],["amount",h()],["decimals",d()]])}function KE(){return f(aa(),ia())}function XE(e,t){let n=t?.programAddress??R,r={source:{value:e.source??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},delegate:{value:e.delegate??null,isWritable:!1},owner:{value:e.owner??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.source),c(r.mint),c(r.delegate),c(r.owner),...s],data:aa().encode(a),programAddress:n})}function ZE(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{source:n(),mint:n(),delegate:n(),owner:n()},data:ia().decode(e.data)}}var ca=27;function qE(){return i().encode(ca)}var sa=3;function JE(){return i().encode(sa)}function ua(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()]]),e=>({...e,discriminator:ca,confidentialTransferDiscriminator:sa}))}function da(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()]])}function QE(){return f(ua(),da())}function eI(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a=m(n);return Object.freeze({accounts:[a(r.token),a(r.mint),a(r.authority)],data:ua().encode({}),programAddress:n})}function tI(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),mint:n(),authority:n()},data:da().decode(e.data)}}var la=8;function nI(){return i().encode(la)}function Aa(){return g(A([["discriminator",i()],["amount",C()]]),e=>({...e,discriminator:la}))}function _a(){return _([["discriminator",d()],["amount",h()]])}function rI(){return f(Aa(),_a())}function oI(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.account),c(r.mint),c(r.authority),...s],data:Aa().encode(a),programAddress:n})}function aI(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n(),mint:n(),authority:n()},data:_a().decode(e.data)}}var fa=15;function iI(){return i().encode(fa)}function ga(){return g(A([["discriminator",i()],["amount",C()],["decimals",i()]]),e=>({...e,discriminator:fa}))}function Ra(){return _([["discriminator",d()],["amount",h()],["decimals",d()]])}function cI(){return f(ga(),Ra())}function sI(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.account),c(r.mint),c(r.authority),...s],data:ga().encode(a),programAddress:n})}function uI(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n(),mint:n(),authority:n()},data:Ra().decode(e.data)}}var ma=9;function dI(){return i().encode(ma)}function Ea(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:ma}))}function Ia(){return _([["discriminator",d()]])}function lI(){return f(Ea(),Ia())}function AI(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0},destination:{value:e.destination??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.account),c(r.destination),c(r.owner),...s],data:Ea().encode({}),programAddress:n})}function _I(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n(),destination:n(),owner:n()},data:Ia().decode(e.data)}}var Na=27;function fI(){return i().encode(Na)}var Sa=5;function gI(){return i().encode(Sa)}function Oa(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["amount",C()],["decimals",i()]]),e=>({...e,discriminator:Na,confidentialTransferDiscriminator:Sa}))}function Ta(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["amount",h()],["decimals",d()]])}function RI(){return f(Oa(),Ta())}function mI(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.mint),c(r.authority),...s],data:Oa().encode(a),programAddress:n})}function EI(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),mint:n(),authority:n()},data:Ta().decode(e.data)}}var Da=27;function II(){return i().encode(Da)}var ha=7;function NI(){return i().encode(ha)}function Ca(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["newSourceDecryptableAvailableBalance",le()],["equalityProofInstructionOffset",K()],["ciphertextValidityProofInstructionOffset",K()],["rangeProofInstructionOffset",K()]]),e=>({...e,discriminator:Da,confidentialTransferDiscriminator:ha}))}function pa(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["newSourceDecryptableAvailableBalance",Ae()],["equalityProofInstructionOffset",X()],["ciphertextValidityProofInstructionOffset",X()],["rangeProofInstructionOffset",X()]])}function SI(){return f(Ca(),pa())}function OI(e,t){let n=t?.programAddress??R,r={sourceToken:{value:e.sourceToken??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},destinationToken:{value:e.destinationToken??null,isWritable:!0},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:!1},equalityRecord:{value:e.equalityRecord??null,isWritable:!1},ciphertextValidityRecord:{value:e.ciphertextValidityRecord??null,isWritable:!1},rangeRecord:{value:e.rangeRecord??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.sourceToken),c(r.mint),c(r.destinationToken),c(r.instructionsSysvar),c(r.equalityRecord),c(r.ciphertextValidityRecord),c(r.rangeRecord),c(r.authority),...s],data:Ca().encode(a),programAddress:n})}function TI(e){if(e.accounts.length<8)throw new Error("Not enough accounts");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r},o=()=>{let r=n();return r.address===R?void 0:r};return{programAddress:e.programAddress,accounts:{sourceToken:n(),mint:n(),destinationToken:n(),instructionsSysvar:o(),equalityRecord:o(),ciphertextValidityRecord:o(),rangeRecord:o(),authority:n()},data:pa().decode(e.data)}}var Ma=27;function DI(){return i().encode(Ma)}var va=13;function hI(){return i().encode(va)}function ba(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["newSourceDecryptableAvailableBalance",le()],["equalityProofInstructionOffset",K()],["transferAmountCiphertextValidityProofInstructionOffset",K()],["feeSigmaProofInstructionOffset",K()],["feeCiphertextValidityProofInstructionOffset",K()],["rangeProofInstructionOffset",K()]]),e=>({...e,discriminator:Ma,confidentialTransferDiscriminator:va}))}function ya(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["newSourceDecryptableAvailableBalance",Ae()],["equalityProofInstructionOffset",X()],["transferAmountCiphertextValidityProofInstructionOffset",X()],["feeSigmaProofInstructionOffset",X()],["feeCiphertextValidityProofInstructionOffset",X()],["rangeProofInstructionOffset",X()]])}function CI(){return f(ba(),ya())}function pI(e,t){let n=t?.programAddress??R,r={sourceToken:{value:e.sourceToken??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},destinationToken:{value:e.destinationToken??null,isWritable:!0},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:!1},equalityRecord:{value:e.equalityRecord??null,isWritable:!1},transferAmountCiphertextValidityRecord:{value:e.transferAmountCiphertextValidityRecord??null,isWritable:!1},feeSigmaRecord:{value:e.feeSigmaRecord??null,isWritable:!1},feeCiphertextValidityRecord:{value:e.feeCiphertextValidityRecord??null,isWritable:!1},rangeRecord:{value:e.rangeRecord??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.sourceToken),c(r.mint),c(r.destinationToken),c(r.instructionsSysvar),c(r.equalityRecord),c(r.transferAmountCiphertextValidityRecord),c(r.feeSigmaRecord),c(r.feeCiphertextValidityRecord),c(r.rangeRecord),c(r.authority),...s],data:ba().encode(a),programAddress:n})}function MI(e){if(e.accounts.length<10)throw new Error("Not enough accounts");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r},o=()=>{let r=n();return r.address===R?void 0:r};return{programAddress:e.programAddress,accounts:{sourceToken:n(),mint:n(),destinationToken:n(),instructionsSysvar:o(),equalityRecord:o(),transferAmountCiphertextValidityRecord:o(),feeSigmaRecord:o(),feeCiphertextValidityRecord:o(),rangeRecord:o(),authority:n()},data:ya().decode(e.data)}}var La=27;function vI(){return i().encode(La)}var wa=6;function bI(){return i().encode(wa)}function Ua(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["amount",C()],["decimals",i()],["newDecryptableAvailableBalance",le()],["equalityProofInstructionOffset",K()],["rangeProofInstructionOffset",K()]]),e=>({...e,discriminator:La,confidentialTransferDiscriminator:wa}))}function Pa(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["amount",h()],["decimals",d()],["newDecryptableAvailableBalance",Ae()],["equalityProofInstructionOffset",X()],["rangeProofInstructionOffset",X()]])}function yI(){return f(Ua(),Pa())}function LI(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},instructionsSysvar:{value:e.instructionsSysvar??null,isWritable:!1},equalityRecord:{value:e.equalityRecord??null,isWritable:!1},rangeRecord:{value:e.rangeRecord??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.mint),c(r.instructionsSysvar),c(r.equalityRecord),c(r.rangeRecord),c(r.authority),...s],data:Ua().encode(a),programAddress:n})}function wI(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r},o=()=>{let r=n();return r.address===R?void 0:r};return{programAddress:e.programAddress,accounts:{token:n(),mint:n(),instructionsSysvar:o(),equalityRecord:o(),rangeRecord:o(),authority:n()},data:Pa().decode(e.data)}}var za=27;function UI(){return i().encode(za)}var xa=2;function PI(){return i().encode(xa)}function Fa(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["decryptableZeroBalance",le()],["maximumPendingBalanceCreditCounter",C()],["proofInstructionOffset",K()]]),e=>({...e,discriminator:za,confidentialTransferDiscriminator:xa}))}function Ba(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["decryptableZeroBalance",Ae()],["maximumPendingBalanceCreditCounter",h()],["proofInstructionOffset",X()]])}function zI(){return f(Fa(),Ba())}function xI(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},instructionsSysvarOrContextState:{value:e.instructionsSysvarOrContextState??null,isWritable:!1},record:{value:e.record??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a={...e};r.instructionsSysvarOrContextState.value||(r.instructionsSysvarOrContextState.value="Sysvar1nstructions1111111111111111111111111");let s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.mint),c(r.instructionsSysvarOrContextState),c(r.record),c(r.authority),...s],data:Fa().encode(a),programAddress:n})}function FI(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r},o=()=>{let r=n();return r.address===R?void 0:r};return{programAddress:e.programAddress,accounts:{token:n(),mint:n(),instructionsSysvarOrContextState:n(),record:o(),authority:n()},data:Ba().decode(e.data)}}async function Ve(e,t={}){let{programAddress:n="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"}=t;return await Jr({programAddress:n,seeds:[E().encode(e.owner),E().encode(e.tokenProgram),E().encode(e.mint)]})}var Wa=0;function BI(){return i().encode(Wa)}function hn(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:Wa}))}function Ga(){return _([["discriminator",d()]])}function WI(){return f(hn(),Ga())}async function GI(e,t){let n=t?.programAddress??Ne,r={payer:{value:e.payer??null,isWritable:!0},ata:{value:e.ata??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1},mint:{value:e.mint??null,isWritable:!1},systemProgram:{value:e.systemProgram??null,isWritable:!1},tokenProgram:{value:e.tokenProgram??null,isWritable:!1}};r.tokenProgram.value||(r.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),r.ata.value||(r.ata.value=await Ve({owner:j(r.owner.value),tokenProgram:j(r.tokenProgram.value),mint:j(r.mint.value)})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let a=m(n);return Object.freeze({accounts:[a(r.payer),a(r.ata),a(r.owner),a(r.mint),a(r.systemProgram),a(r.tokenProgram)],data:hn().encode({}),programAddress:n})}function kI(e,t){let n=t?.programAddress??Ne,r={payer:{value:e.payer??null,isWritable:!0},ata:{value:e.ata??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1},mint:{value:e.mint??null,isWritable:!1},systemProgram:{value:e.systemProgram??null,isWritable:!1},tokenProgram:{value:e.tokenProgram??null,isWritable:!1}};r.tokenProgram.value||(r.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let a=m(n);return Object.freeze({accounts:[a(r.payer),a(r.ata),a(r.owner),a(r.mint),a(r.systemProgram),a(r.tokenProgram)],data:hn().encode({}),programAddress:n})}function VI(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{payer:n(),ata:n(),owner:n(),mint:n(),systemProgram:n(),tokenProgram:n()},data:Ga().decode(e.data)}}var ka=1;function HI(){return i().encode(ka)}function Cn(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:ka}))}function Va(){return _([["discriminator",d()]])}function jI(){return f(Cn(),Va())}async function YI(e,t){let n=t?.programAddress??Ne,r={payer:{value:e.payer??null,isWritable:!0},ata:{value:e.ata??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1},mint:{value:e.mint??null,isWritable:!1},systemProgram:{value:e.systemProgram??null,isWritable:!1},tokenProgram:{value:e.tokenProgram??null,isWritable:!1}};r.tokenProgram.value||(r.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),r.ata.value||(r.ata.value=await Ve({owner:j(r.owner.value),tokenProgram:j(r.tokenProgram.value),mint:j(r.mint.value)})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let a=m(n);return Object.freeze({accounts:[a(r.payer),a(r.ata),a(r.owner),a(r.mint),a(r.systemProgram),a(r.tokenProgram)],data:Cn().encode({}),programAddress:n})}function $I(e,t){let n=t?.programAddress??Ne,r={payer:{value:e.payer??null,isWritable:!0},ata:{value:e.ata??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1},mint:{value:e.mint??null,isWritable:!1},systemProgram:{value:e.systemProgram??null,isWritable:!1},tokenProgram:{value:e.tokenProgram??null,isWritable:!1}};r.tokenProgram.value||(r.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let a=m(n);return Object.freeze({accounts:[a(r.payer),a(r.ata),a(r.owner),a(r.mint),a(r.systemProgram),a(r.tokenProgram)],data:Cn().encode({}),programAddress:n})}function KI(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{payer:n(),ata:n(),owner:n(),mint:n(),systemProgram:n(),tokenProgram:n()},data:Va().decode(e.data)}}var Ha=31;function XI(){return i().encode(Ha)}function ja(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:Ha}))}function Ya(){return _([["discriminator",d()]])}function ZI(){return f(ja(),Ya())}function qI(e,t){let n=t?.programAddress??R,r={payer:{value:e.payer??null,isWritable:!0},nativeMint:{value:e.nativeMint??null,isWritable:!0},systemProgram:{value:e.systemProgram??null,isWritable:!1}};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let a=m(n);return Object.freeze({accounts:[a(r.payer),a(r.nativeMint),a(r.systemProgram)],data:ja().encode({}),programAddress:n})}function JI(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{payer:n(),nativeMint:n(),systemProgram:n()},data:Ya().decode(e.data)}}var $a=27;function QI(){return i().encode($a)}var Ka=10;function eN(){return i().encode(Ka)}function Xa(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()]]),e=>({...e,discriminator:$a,confidentialTransferDiscriminator:Ka}))}function Za(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()]])}function tN(){return f(Xa(),Za())}function nN(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.authority),...s],data:Xa().encode({}),programAddress:n})}function rN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),authority:n()},data:Za().decode(e.data)}}var qa=34;function oN(){return i().encode(qa)}var Ja=1;function aN(){return i().encode(Ja)}function Qa(){return g(A([["discriminator",i()],["cpiGuardDiscriminator",i()]]),e=>({...e,discriminator:qa,cpiGuardDiscriminator:Ja}))}function ei(){return _([["discriminator",d()],["cpiGuardDiscriminator",d()]])}function iN(){return f(Qa(),ei())}function sR(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.owner),...s],data:Qa().encode({}),programAddress:n})}function cN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),owner:n()},data:ei().decode(e.data)}}var ti=37;function sN(){return i().encode(ti)}var ni=5;function uN(){return i().encode(ni)}function ri(){return g(A([["discriminator",i()],["confidentialTransferFeeDiscriminator",i()]]),e=>({...e,discriminator:ti,confidentialTransferFeeDiscriminator:ni}))}function oi(){return _([["discriminator",d()],["confidentialTransferFeeDiscriminator",d()]])}function dN(){return f(ri(),oi())}function lN(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.authority),...s],data:ri().encode({}),programAddress:n})}function AN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),authority:n()},data:oi().decode(e.data)}}var ai=30;function _N(){return i().encode(ai)}var ii=1;function fN(){return i().encode(ii)}function ci(){return g(A([["discriminator",i()],["memoTransfersDiscriminator",i()]]),e=>({...e,discriminator:ai,memoTransfersDiscriminator:ii}))}function si(){return _([["discriminator",d()],["memoTransfersDiscriminator",d()]])}function gN(){return f(ci(),si())}function uR(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.owner),...s],data:ci().encode({}),programAddress:n})}function RN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),owner:n()},data:si().decode(e.data)}}var ui=27;function mN(){return i().encode(ui)}var di=12;function EN(){return i().encode(di)}function li(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()]]),e=>({...e,discriminator:ui,confidentialTransferDiscriminator:di}))}function Ai(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()]])}function IN(){return f(li(),Ai())}function NN(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.authority),...s],data:li().encode({}),programAddress:n})}function SN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),authority:n()},data:Ai().decode(e.data)}}var _i=new Uint8Array([250,166,180,250,13,12,184,70]);function ON(){return U().encode(_i)}function fi(){return g(A([["discriminator",U()],["start",T(C())],["end",T(C())]]),e=>({...e,discriminator:_i,start:e.start??Ee(),end:e.end??Ee()}))}function gi(){return _([["discriminator",V()],["start",D(h())],["end",D(h())]])}function TN(){return f(fi(),gi())}function DN(e,t){let n=t?.programAddress??R,r={metadata:{value:e.metadata??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.metadata)],data:fi().encode(a),programAddress:n})}function hN(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{metadata:n()},data:gi().decode(e.data)}}var Ri=27;function CN(){return i().encode(Ri)}var mi=4;function pN(){return i().encode(mi)}function Ei(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["proofInstructionOffset",K()]]),e=>({...e,discriminator:Ri,confidentialTransferDiscriminator:mi}))}function Ii(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["proofInstructionOffset",X()]])}function MN(){return f(Ei(),Ii())}function vN(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},instructionsSysvarOrContextState:{value:e.instructionsSysvarOrContextState??null,isWritable:!1},record:{value:e.record??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a={...e};r.instructionsSysvarOrContextState.value||(r.instructionsSysvarOrContextState.value="Sysvar1nstructions1111111111111111111111111");let s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.instructionsSysvarOrContextState),c(r.record),c(r.authority),...s],data:Ei().encode(a),programAddress:n})}function bN(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r},o=()=>{let r=n();return r.address===R?void 0:r};return{programAddress:e.programAddress,accounts:{token:n(),instructionsSysvarOrContextState:n(),record:o(),authority:n()},data:Ii().decode(e.data)}}var Ni=27;function yN(){return i().encode(Ni)}var Si=9;function LN(){return i().encode(Si)}function Oi(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()]]),e=>({...e,discriminator:Ni,confidentialTransferDiscriminator:Si}))}function Ti(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()]])}function wN(){return f(Oi(),Ti())}function UN(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.authority),...s],data:Oi().encode({}),programAddress:n})}function PN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),authority:n()},data:Ti().decode(e.data)}}var Di=34;function zN(){return i().encode(Di)}var hi=0;function xN(){return i().encode(hi)}function Ci(){return g(A([["discriminator",i()],["cpiGuardDiscriminator",i()]]),e=>({...e,discriminator:Di,cpiGuardDiscriminator:hi}))}function pi(){return _([["discriminator",d()],["cpiGuardDiscriminator",d()]])}function FN(){return f(Ci(),pi())}function dR(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.owner),...s],data:Ci().encode({}),programAddress:n})}function BN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),owner:n()},data:pi().decode(e.data)}}var Mi=37;function WN(){return i().encode(Mi)}var vi=4;function GN(){return i().encode(vi)}function bi(){return g(A([["discriminator",i()],["confidentialTransferFeeDiscriminator",i()]]),e=>({...e,discriminator:Mi,confidentialTransferFeeDiscriminator:vi}))}function yi(){return _([["discriminator",d()],["confidentialTransferFeeDiscriminator",d()]])}function kN(){return f(bi(),yi())}function VN(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.authority),...s],data:bi().encode({}),programAddress:n})}function HN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),authority:n()},data:yi().decode(e.data)}}var Li=30;function jN(){return i().encode(Li)}var wi=0;function YN(){return i().encode(wi)}function Ui(){return g(A([["discriminator",i()],["memoTransfersDiscriminator",i()]]),e=>({...e,discriminator:Li,memoTransfersDiscriminator:wi}))}function Pi(){return _([["discriminator",d()],["memoTransfersDiscriminator",d()]])}function $N(){return f(Ui(),Pi())}function lR(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.owner),...s],data:Ui().encode({}),programAddress:n})}function KN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),owner:n()},data:Pi().decode(e.data)}}var zi=27;function XN(){return i().encode(zi)}var xi=11;function ZN(){return i().encode(xi)}function Fi(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()]]),e=>({...e,discriminator:zi,confidentialTransferDiscriminator:xi}))}function Bi(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()]])}function qN(){return f(Fi(),Bi())}function JN(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.authority),...s],data:Fi().encode({}),programAddress:n})}function QN(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),authority:n()},data:Bi().decode(e.data)}}var Wi=10;function eS(){return i().encode(Wi)}function Gi(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:Wi}))}function ki(){return _([["discriminator",d()]])}function tS(){return f(Gi(),ki())}function nS(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},owner:{value:e.owner??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.account),c(r.mint),c(r.owner),...s],data:Gi().encode({}),programAddress:n})}function rS(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n(),mint:n(),owner:n()},data:ki().decode(e.data)}}var Vi=21;function oS(){return i().encode(Vi)}function Hi(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:Vi}))}function ji(){return _([["discriminator",d()]])}function aS(){return f(Hi(),ji())}function iS(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!1}},a=m(n);return Object.freeze({accounts:[a(r.mint)],data:Hi().encode({}),programAddress:n})}function cS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:ji().decode(e.data)}}var Yi=26;function sS(){return i().encode(Yi)}var $i=4;function uS(){return i().encode($i)}function Ki(){return g(A([["discriminator",i()],["transferFeeDiscriminator",i()]]),e=>({...e,discriminator:Yi,transferFeeDiscriminator:$i}))}function Xi(){return _([["discriminator",d()],["transferFeeDiscriminator",d()]])}function dS(){return f(Ki(),Xi())}function lS(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},s={...e}.sources.map(u=>({address:u,role:N.WRITABLE})),c=m(n);return Object.freeze({accounts:[c(r.mint),...s],data:Ki().encode({}),programAddress:n})}function AS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Xi().decode(e.data)}}var Zi=37;function _S(){return i().encode(Zi)}var qi=3;function fS(){return i().encode(qi)}function Ji(){return g(A([["discriminator",i()],["confidentialTransferFeeDiscriminator",i()]]),e=>({...e,discriminator:Zi,confidentialTransferFeeDiscriminator:qi}))}function Qi(){return _([["discriminator",d()],["confidentialTransferFeeDiscriminator",d()]])}function gS(){return f(Ji(),Qi())}function RS(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},s=({...e}.sources??[]).map(u=>({address:u,role:N.WRITABLE})),c=m(n);return Object.freeze({accounts:[c(r.mint),...s],data:Ji().encode({}),programAddress:n})}function mS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Qi().decode(e.data)}}var ec=1;function ES(){return i().encode(ec)}function tc(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:ec}))}function nc(){return _([["discriminator",d()]])}function IS(){return f(tc(),nc())}function NS(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},owner:{value:e.owner??null,isWritable:!1},rent:{value:e.rent??null,isWritable:!1}};r.rent.value||(r.rent.value="SysvarRent111111111111111111111111111111111");let a=m(n);return Object.freeze({accounts:[a(r.account),a(r.mint),a(r.owner),a(r.rent)],data:tc().encode({}),programAddress:n})}function SS(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n(),mint:n(),owner:n(),rent:n()},data:nc().decode(e.data)}}var rc=16;function OS(){return i().encode(rc)}function oc(){return g(A([["discriminator",i()],["owner",E()]]),e=>({...e,discriminator:rc}))}function ac(){return _([["discriminator",d()],["owner",I()]])}function TS(){return f(oc(),ac())}function DS(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},rent:{value:e.rent??null,isWritable:!1}},a={...e};r.rent.value||(r.rent.value="SysvarRent111111111111111111111111111111111");let s=m(n);return Object.freeze({accounts:[s(r.account),s(r.mint),s(r.rent)],data:oc().encode(a),programAddress:n})}function hS(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n(),mint:n(),rent:n()},data:ac().decode(e.data)}}var ic=18;function CS(){return i().encode(ic)}function cc(){return g(A([["discriminator",i()],["owner",E()]]),e=>({...e,discriminator:ic}))}function sc(){return _([["discriminator",d()],["owner",I()]])}function pS(){return f(cc(),sc())}function MS(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.account),s(r.mint)],data:cc().encode(a),programAddress:n})}function vS(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n(),mint:n()},data:sc().decode(e.data)}}var uc=37;function bS(){return i().encode(uc)}var dc=0;function yS(){return i().encode(dc)}function lc(){return g(A([["discriminator",i()],["confidentialTransferFeeDiscriminator",i()],["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["withdrawWithheldAuthorityElGamalPubkey",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:uc,confidentialTransferFeeDiscriminator:dc}))}function Ac(){return _([["discriminator",d()],["confidentialTransferFeeDiscriminator",d()],["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["withdrawWithheldAuthorityElGamalPubkey",D(I(),{prefix:null,noneValue:"zeroes"})]])}function LS(){return f(lc(),Ac())}function AR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:lc().encode(a),programAddress:n})}function wS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Ac().decode(e.data)}}var _c=27;function US(){return i().encode(_c)}var fc=0;function PS(){return i().encode(fc)}function gc(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["autoApproveNewAccounts",W()],["auditorElgamalPubkey",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:_c,confidentialTransferDiscriminator:fc}))}function Rc(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["autoApproveNewAccounts",G()],["auditorElgamalPubkey",D(I(),{prefix:null,noneValue:"zeroes"})]])}function zS(){return f(gc(),Rc())}function _R(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:gc().encode(a),programAddress:n})}function xS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Rc().decode(e.data)}}var mc=28;function FS(){return i().encode(mc)}var Ec=0;function BS(){return i().encode(Ec)}function Ic(){return g(A([["discriminator",i()],["defaultAccountStateDiscriminator",i()],["state",He()]]),e=>({...e,discriminator:mc,defaultAccountStateDiscriminator:Ec}))}function Nc(){return _([["discriminator",d()],["defaultAccountStateDiscriminator",d()],["state",je()]])}function WS(){return f(Ic(),Nc())}function fR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:Ic().encode(a),programAddress:n})}function GS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Nc().decode(e.data)}}var Sc=41;function kS(){return i().encode(Sc)}var Oc=0;function VS(){return i().encode(Oc)}function Tc(){return g(A([["discriminator",i()],["groupMemberPointerDiscriminator",i()],["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["memberAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:Sc,groupMemberPointerDiscriminator:Oc}))}function Dc(){return _([["discriminator",d()],["groupMemberPointerDiscriminator",d()],["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["memberAddress",D(I(),{prefix:null,noneValue:"zeroes"})]])}function HS(){return f(Tc(),Dc())}function gR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:Tc().encode(a),programAddress:n})}function jS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Dc().decode(e.data)}}var hc=40;function YS(){return i().encode(hc)}var Cc=0;function $S(){return i().encode(Cc)}function pc(){return g(A([["discriminator",i()],["groupPointerDiscriminator",i()],["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["groupAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:hc,groupPointerDiscriminator:Cc}))}function Mc(){return _([["discriminator",d()],["groupPointerDiscriminator",d()],["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["groupAddress",D(I(),{prefix:null,noneValue:"zeroes"})]])}function KS(){return f(pc(),Mc())}function RR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:pc().encode(a),programAddress:n})}function XS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Mc().decode(e.data)}}var vc=22;function ZS(){return i().encode(vc)}function bc(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:vc}))}function yc(){return _([["discriminator",d()]])}function qS(){return f(bc(),yc())}function JS(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0}},a=m(n);return Object.freeze({accounts:[a(r.account)],data:bc().encode({}),programAddress:n})}function QS(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n()},data:yc().decode(e.data)}}var Lc=33;function eO(){return i().encode(Lc)}var wc=0;function tO(){return i().encode(wc)}function Uc(){return g(A([["discriminator",i()],["interestBearingMintDiscriminator",i()],["rateAuthority",T(E(),{prefix:null,noneValue:"zeroes"})],["rate",Pe()]]),e=>({...e,discriminator:Lc,interestBearingMintDiscriminator:wc}))}function Pc(){return _([["discriminator",d()],["interestBearingMintDiscriminator",d()],["rateAuthority",D(I(),{prefix:null,noneValue:"zeroes"})],["rate",ze()]])}function nO(){return f(Uc(),Pc())}function mR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:Uc().encode(a),programAddress:n})}function rO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Pc().decode(e.data)}}var zc=39;function oO(){return i().encode(zc)}var xc=0;function aO(){return i().encode(xc)}function Fc(){return g(A([["discriminator",i()],["metadataPointerDiscriminator",i()],["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["metadataAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:zc,metadataPointerDiscriminator:xc}))}function Bc(){return _([["discriminator",d()],["metadataPointerDiscriminator",d()],["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["metadataAddress",D(I(),{prefix:null,noneValue:"zeroes"})]])}function iO(){return f(Fc(),Bc())}function ER(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:Fc().encode(a),programAddress:n})}function cO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Bc().decode(e.data)}}var Wc=0;function sO(){return i().encode(Wc)}function Gc(){return g(A([["discriminator",i()],["decimals",i()],["mintAuthority",E()],["freezeAuthority",T(E())]]),e=>({...e,discriminator:Wc,freezeAuthority:e.freezeAuthority??Ee()}))}function kc(){return _([["discriminator",d()],["decimals",d()],["mintAuthority",I()],["freezeAuthority",D(I())]])}function uO(){return f(Gc(),kc())}function dO(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},rent:{value:e.rent??null,isWritable:!1}},a={...e};r.rent.value||(r.rent.value="SysvarRent111111111111111111111111111111111");let s=m(n);return Object.freeze({accounts:[s(r.mint),s(r.rent)],data:Gc().encode(a),programAddress:n})}function lO(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),rent:n()},data:kc().decode(e.data)}}var Vc=20;function AO(){return i().encode(Vc)}function Hc(){return g(A([["discriminator",i()],["decimals",i()],["mintAuthority",E()],["freezeAuthority",T(E())]]),e=>({...e,discriminator:Vc,freezeAuthority:e.freezeAuthority??Ee()}))}function jc(){return _([["discriminator",d()],["decimals",d()],["mintAuthority",I()],["freezeAuthority",D(I())]])}function _O(){return f(Hc(),jc())}function fO(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:Hc().encode(a),programAddress:n})}function gO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:jc().decode(e.data)}}var Yc=25;function RO(){return i().encode(Yc)}function $c(){return g(A([["discriminator",i()],["closeAuthority",T(E())]]),e=>({...e,discriminator:Yc}))}function Kc(){return _([["discriminator",d()],["closeAuthority",D(I())]])}function mO(){return f($c(),Kc())}function IR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:$c().encode(a),programAddress:n})}function EO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Kc().decode(e.data)}}var Xc=2;function IO(){return i().encode(Xc)}function Zc(){return g(A([["discriminator",i()],["m",i()]]),e=>({...e,discriminator:Xc}))}function qc(){return _([["discriminator",d()],["m",d()]])}function NO(){return f(Zc(),qc())}function SO(e,t){let n=t?.programAddress??R,r={multisig:{value:e.multisig??null,isWritable:!0},rent:{value:e.rent??null,isWritable:!1}},a={...e};r.rent.value||(r.rent.value="SysvarRent111111111111111111111111111111111");let s=a.signers.map(u=>({address:u,role:N.READONLY})),c=m(n);return Object.freeze({accounts:[c(r.multisig),c(r.rent),...s],data:Zc().encode(a),programAddress:n})}function OO(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{multisig:n(),rent:n()},data:qc().decode(e.data)}}var Jc=19;function TO(){return i().encode(Jc)}function Qc(){return g(A([["discriminator",i()],["m",i()]]),e=>({...e,discriminator:Jc}))}function es(){return _([["discriminator",d()],["m",d()]])}function DO(){return f(Qc(),es())}function hO(e,t){let n=t?.programAddress??R,r={multisig:{value:e.multisig??null,isWritable:!0}},a={...e},s=a.signers.map(u=>({address:u,role:N.READONLY})),c=m(n);return Object.freeze({accounts:[c(r.multisig),...s],data:Qc().encode(a),programAddress:n})}function CO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{multisig:n()},data:es().decode(e.data)}}var ts=32;function pO(){return i().encode(ts)}function ns(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:ts}))}function rs(){return _([["discriminator",d()]])}function MO(){return f(ns(),rs())}function NR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a=m(n);return Object.freeze({accounts:[a(r.mint)],data:ns().encode({}),programAddress:n})}function vO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:rs().decode(e.data)}}var os=44;function bO(){return i().encode(os)}var as=0;function yO(){return i().encode(as)}function is(){return g(A([["discriminator",i()],["pausableDiscriminator",i()],["authority",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:os,pausableDiscriminator:as}))}function cs(){return _([["discriminator",d()],["pausableDiscriminator",d()],["authority",D(I(),{prefix:null,noneValue:"zeroes"})]])}function LO(){return f(is(),cs())}function SR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:is().encode(a),programAddress:n})}function wO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:cs().decode(e.data)}}var ss=35;function UO(){return i().encode(ss)}function us(){return g(A([["discriminator",i()],["delegate",E()]]),e=>({...e,discriminator:ss}))}function ds(){return _([["discriminator",d()],["delegate",I()]])}function PO(){return f(us(),ds())}function OR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:us().encode(a),programAddress:n})}function zO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:ds().decode(e.data)}}var ls=43;function xO(){return i().encode(ls)}var As=0;function FO(){return i().encode(As)}function _s(){return g(A([["discriminator",i()],["scaledUiAmountMintDiscriminator",i()],["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["multiplier",he()]]),e=>({...e,discriminator:ls,scaledUiAmountMintDiscriminator:As}))}function fs(){return _([["discriminator",d()],["scaledUiAmountMintDiscriminator",d()],["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["multiplier",Ce()]])}function BO(){return f(_s(),fs())}function TR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:_s().encode(a),programAddress:n})}function WO(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:fs().decode(e.data)}}var gs=new Uint8Array([121,113,108,39,54,51,0,4]);function GO(){return U().encode(gs)}function Rs(){return g(A([["discriminator",U()],["updateAuthority",T(E(),{prefix:null,noneValue:"zeroes"})],["maxSize",C()]]),e=>({...e,discriminator:gs}))}function ms(){return _([["discriminator",V()],["updateAuthority",D(I(),{prefix:null,noneValue:"zeroes"})],["maxSize",h()]])}function kO(){return f(Rs(),ms())}function DR(e,t){let n=t?.programAddress??R,r={group:{value:e.group??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},mintAuthority:{value:e.mintAuthority??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.group),s(r.mint),s(r.mintAuthority)],data:Rs().encode(a),programAddress:n})}function VO(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{group:n(),mint:n(),mintAuthority:n()},data:ms().decode(e.data)}}var Es=new Uint8Array([152,32,222,176,223,237,116,134]);function HO(){return U().encode(Es)}function Is(){return g(A([["discriminator",U()]]),e=>({...e,discriminator:Es}))}function Ns(){return _([["discriminator",V()]])}function jO(){return f(Is(),Ns())}function YO(e,t){let n=t?.programAddress??R,r={member:{value:e.member??null,isWritable:!0},memberMint:{value:e.memberMint??null,isWritable:!1},memberMintAuthority:{value:e.memberMintAuthority??null,isWritable:!1},group:{value:e.group??null,isWritable:!0},groupUpdateAuthority:{value:e.groupUpdateAuthority??null,isWritable:!1}},a=m(n);return Object.freeze({accounts:[a(r.member),a(r.memberMint),a(r.memberMintAuthority),a(r.group),a(r.groupUpdateAuthority)],data:Is().encode({}),programAddress:n})}function $O(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{member:n(),memberMint:n(),memberMintAuthority:n(),group:n(),groupUpdateAuthority:n()},data:Ns().decode(e.data)}}var Ss=new Uint8Array([210,225,30,162,88,184,77,141]);function KO(){return U().encode(Ss)}function Os(){return g(A([["discriminator",U()],["name",p(Z(),x())],["symbol",p(Z(),x())],["uri",p(Z(),x())]]),e=>({...e,discriminator:Ss}))}function Ts(){return _([["discriminator",V()],["name",M(q(),F())],["symbol",M(q(),F())],["uri",M(q(),F())]])}function XO(){return f(Os(),Ts())}function hR(e,t){let n=t?.programAddress??R,r={metadata:{value:e.metadata??null,isWritable:!0},updateAuthority:{value:e.updateAuthority??null,isWritable:!1},mint:{value:e.mint??null,isWritable:!1},mintAuthority:{value:e.mintAuthority??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.metadata),s(r.updateAuthority),s(r.mint),s(r.mintAuthority)],data:Os().encode(a),programAddress:n})}function ZO(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{metadata:n(),updateAuthority:n(),mint:n(),mintAuthority:n()},data:Ts().decode(e.data)}}var Ds=26;function qO(){return i().encode(Ds)}var hs=0;function JO(){return i().encode(hs)}function Cs(){return g(A([["discriminator",i()],["transferFeeDiscriminator",i()],["transferFeeConfigAuthority",T(E())],["withdrawWithheldAuthority",T(E())],["transferFeeBasisPoints",b()],["maximumFee",C()]]),e=>({...e,discriminator:Ds,transferFeeDiscriminator:hs}))}function ps(){return _([["discriminator",d()],["transferFeeDiscriminator",d()],["transferFeeConfigAuthority",D(I())],["withdrawWithheldAuthority",D(I())],["transferFeeBasisPoints",y()],["maximumFee",h()]])}function QO(){return f(Cs(),ps())}function CR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:Cs().encode(a),programAddress:n})}function eT(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:ps().decode(e.data)}}var Ms=36;function tT(){return i().encode(Ms)}var vs=0;function nT(){return i().encode(vs)}function bs(){return g(A([["discriminator",i()],["transferHookDiscriminator",i()],["authority",T(E(),{prefix:null,noneValue:"zeroes"})],["programId",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:Ms,transferHookDiscriminator:vs}))}function ys(){return _([["discriminator",d()],["transferHookDiscriminator",d()],["authority",D(I(),{prefix:null,noneValue:"zeroes"})],["programId",D(I(),{prefix:null,noneValue:"zeroes"})]])}function rT(){return f(bs(),ys())}function pR(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:bs().encode(a),programAddress:n})}function oT(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:ys().decode(e.data)}}var Ls=7;function aT(){return i().encode(Ls)}function ws(){return g(A([["discriminator",i()],["amount",C()]]),e=>({...e,discriminator:Ls}))}function Us(){return _([["discriminator",d()],["amount",h()]])}function iT(){return f(ws(),Us())}function cT(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},token:{value:e.token??null,isWritable:!0},mintAuthority:{value:e.mintAuthority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.token),c(r.mintAuthority),...s],data:ws().encode(a),programAddress:n})}function sT(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),token:n(),mintAuthority:n()},data:Us().decode(e.data)}}var Ps=14;function uT(){return i().encode(Ps)}function zs(){return g(A([["discriminator",i()],["amount",C()],["decimals",i()]]),e=>({...e,discriminator:Ps}))}function xs(){return _([["discriminator",d()],["amount",h()],["decimals",d()]])}function dT(){return f(zs(),xs())}function lT(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},token:{value:e.token??null,isWritable:!0},mintAuthority:{value:e.mintAuthority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.token),c(r.mintAuthority),...s],data:zs().encode(a),programAddress:n})}function AT(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),token:n(),mintAuthority:n()},data:xs().decode(e.data)}}var Fs=44;function _T(){return i().encode(Fs)}var Bs=1;function fT(){return i().encode(Bs)}function Ws(){return g(A([["discriminator",i()],["pausableDiscriminator",i()]]),e=>({...e,discriminator:Fs,pausableDiscriminator:Bs}))}function Gs(){return _([["discriminator",d()],["pausableDiscriminator",d()]])}function gT(){return f(Ws(),Gs())}function RT(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a=m(n);return Object.freeze({accounts:[a(r.mint),a(r.authority)],data:Ws().encode({}),programAddress:n})}function mT(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),authority:n()},data:Gs().decode(e.data)}}var ks=29;function ET(){return i().encode(ks)}function Vs(){return g(A([["discriminator",i()],["newExtensionTypes",k(Po(),{size:"remainder"})]]),e=>({...e,discriminator:ks}))}function Hs(){return _([["discriminator",d()],["newExtensionTypes",H(zo(),{size:"remainder"})]])}function IT(){return f(Vs(),Hs())}function NT(e,t){let n=t?.programAddress??R,r={token:{value:e.token??null,isWritable:!0},payer:{value:e.payer??null,isWritable:!0},systemProgram:{value:e.systemProgram??null,isWritable:!1},owner:{value:e.owner??null,isWritable:!1}},a={...e};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.token),c(r.payer),c(r.systemProgram),c(r.owner),...s],data:Vs().encode(a),programAddress:n})}function ST(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{token:n(),payer:n(),systemProgram:n(),owner:n()},data:Hs().decode(e.data)}}var js=2;function OT(){return i().encode(js)}function pn(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:js}))}function Ys(){return _([["discriminator",d()]])}function TT(){return f(pn(),Ys())}async function DT(e,t){let n=t?.programAddress??Ne,r={nestedAssociatedAccountAddress:{value:e.nestedAssociatedAccountAddress??null,isWritable:!0},nestedTokenMintAddress:{value:e.nestedTokenMintAddress??null,isWritable:!1},destinationAssociatedAccountAddress:{value:e.destinationAssociatedAccountAddress??null,isWritable:!0},ownerAssociatedAccountAddress:{value:e.ownerAssociatedAccountAddress??null,isWritable:!1},ownerTokenMintAddress:{value:e.ownerTokenMintAddress??null,isWritable:!1},walletAddress:{value:e.walletAddress??null,isWritable:!0},tokenProgram:{value:e.tokenProgram??null,isWritable:!1}};r.tokenProgram.value||(r.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),r.ownerAssociatedAccountAddress.value||(r.ownerAssociatedAccountAddress.value=await Ve({owner:j(r.walletAddress.value),tokenProgram:j(r.tokenProgram.value),mint:j(r.ownerTokenMintAddress.value)})),r.nestedAssociatedAccountAddress.value||(r.nestedAssociatedAccountAddress.value=await Ve({owner:j(r.ownerAssociatedAccountAddress.value),tokenProgram:j(r.tokenProgram.value),mint:j(r.nestedTokenMintAddress.value)})),r.destinationAssociatedAccountAddress.value||(r.destinationAssociatedAccountAddress.value=await Ve({owner:j(r.walletAddress.value),tokenProgram:j(r.tokenProgram.value),mint:j(r.nestedTokenMintAddress.value)}));let a=m(n);return Object.freeze({accounts:[a(r.nestedAssociatedAccountAddress),a(r.nestedTokenMintAddress),a(r.destinationAssociatedAccountAddress),a(r.ownerAssociatedAccountAddress),a(r.ownerTokenMintAddress),a(r.walletAddress),a(r.tokenProgram)],data:pn().encode({}),programAddress:n})}function hT(e,t){let n=t?.programAddress??Ne,r={nestedAssociatedAccountAddress:{value:e.nestedAssociatedAccountAddress??null,isWritable:!0},nestedTokenMintAddress:{value:e.nestedTokenMintAddress??null,isWritable:!1},destinationAssociatedAccountAddress:{value:e.destinationAssociatedAccountAddress??null,isWritable:!0},ownerAssociatedAccountAddress:{value:e.ownerAssociatedAccountAddress??null,isWritable:!1},ownerTokenMintAddress:{value:e.ownerTokenMintAddress??null,isWritable:!1},walletAddress:{value:e.walletAddress??null,isWritable:!0},tokenProgram:{value:e.tokenProgram??null,isWritable:!1}};r.tokenProgram.value||(r.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let a=m(n);return Object.freeze({accounts:[a(r.nestedAssociatedAccountAddress),a(r.nestedTokenMintAddress),a(r.destinationAssociatedAccountAddress),a(r.ownerAssociatedAccountAddress),a(r.ownerTokenMintAddress),a(r.walletAddress),a(r.tokenProgram)],data:pn().encode({}),programAddress:n})}function CT(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{nestedAssociatedAccountAddress:n(),nestedTokenMintAddress:n(),destinationAssociatedAccountAddress:n(),ownerAssociatedAccountAddress:n(),ownerTokenMintAddress:n(),walletAddress:n(),tokenProgram:n()},data:Ys().decode(e.data)}}var $s=new Uint8Array([234,18,32,56,89,141,37,181]);function pT(){return U().encode($s)}function Ks(){return g(A([["discriminator",U()],["idempotent",W()],["key",p(Z(),x())]]),e=>({...e,discriminator:$s,idempotent:e.idempotent??!1}))}function Xs(){return _([["discriminator",V()],["idempotent",G()],["key",M(q(),F())]])}function MT(){return f(Ks(),Xs())}function vT(e,t){let n=t?.programAddress??R,r={metadata:{value:e.metadata??null,isWritable:!0},updateAuthority:{value:e.updateAuthority??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.metadata),s(r.updateAuthority)],data:Ks().encode(a),programAddress:n})}function bT(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{metadata:n(),updateAuthority:n()},data:Xs().decode(e.data)}}var Zs=44;function yT(){return i().encode(Zs)}var qs=2;function LT(){return i().encode(qs)}function Js(){return g(A([["discriminator",i()],["pausableDiscriminator",i()]]),e=>({...e,discriminator:Zs,pausableDiscriminator:qs}))}function Qs(){return _([["discriminator",d()],["pausableDiscriminator",d()]])}function wT(){return f(Js(),Qs())}function UT(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a=m(n);return Object.freeze({accounts:[a(r.mint),a(r.authority)],data:Js().encode({}),programAddress:n})}function PT(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),authority:n()},data:Qs().decode(e.data)}}var eu=5;function zT(){return i().encode(eu)}function tu(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:eu}))}function nu(){return _([["discriminator",d()]])}function xT(){return f(tu(),nu())}function FT(e,t){let n=t?.programAddress??R,r={source:{value:e.source??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.source),c(r.owner),...s],data:tu().encode({}),programAddress:n})}function BT(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{source:n(),owner:n()},data:nu().decode(e.data)}}var ru=6;function WT(){return i().encode(ru)}function ou(){return g(A([["discriminator",i()],["authorityType",wo()],["newAuthority",T(E())]]),e=>({...e,discriminator:ru}))}function au(){return _([["discriminator",d()],["authorityType",Uo()],["newAuthority",D(I())]])}function GT(){return f(ou(),au())}function kT(e,t){let n=t?.programAddress??R,r={owned:{value:e.owned??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.owned),c(r.owner),...s],data:ou().encode(a),programAddress:n})}function VT(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{owned:n(),owner:n()},data:au().decode(e.data)}}var iu=26;function HT(){return i().encode(iu)}var cu=5;function jT(){return i().encode(cu)}function su(){return g(A([["discriminator",i()],["transferFeeDiscriminator",i()],["transferFeeBasisPoints",b()],["maximumFee",C()]]),e=>({...e,discriminator:iu,transferFeeDiscriminator:cu}))}function uu(){return _([["discriminator",d()],["transferFeeDiscriminator",d()],["transferFeeBasisPoints",y()],["maximumFee",h()]])}function YT(){return f(su(),uu())}function $T(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},transferFeeConfigAuthority:{value:e.transferFeeConfigAuthority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.transferFeeConfigAuthority),...s],data:su().encode(a),programAddress:n})}function KT(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),transferFeeConfigAuthority:n()},data:uu().decode(e.data)}}var du=17;function XT(){return i().encode(du)}function lu(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:du}))}function Au(){return _([["discriminator",d()]])}function ZT(){return f(lu(),Au())}function qT(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0}},a=m(n);return Object.freeze({accounts:[a(r.account)],data:lu().encode({}),programAddress:n})}function JT(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n()},data:Au().decode(e.data)}}var _u=11;function QT(){return i().encode(_u)}function fu(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:_u}))}function gu(){return _([["discriminator",d()]])}function eD(){return f(fu(),gu())}function tD(e,t){let n=t?.programAddress??R,r={account:{value:e.account??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},owner:{value:e.owner??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.account),c(r.mint),c(r.owner),...s],data:fu().encode({}),programAddress:n})}function nD(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{account:n(),mint:n(),owner:n()},data:gu().decode(e.data)}}var Ru=3;function rD(){return i().encode(Ru)}function mu(){return g(A([["discriminator",i()],["amount",C()]]),e=>({...e,discriminator:Ru}))}function Eu(){return _([["discriminator",d()],["amount",h()]])}function oD(){return f(mu(),Eu())}function aD(e,t){let n=t?.programAddress??R,r={source:{value:e.source??null,isWritable:!0},destination:{value:e.destination??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.source),c(r.destination),c(r.authority),...s],data:mu().encode(a),programAddress:n})}function iD(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{source:n(),destination:n(),authority:n()},data:Eu().decode(e.data)}}var Iu=12;function cD(){return i().encode(Iu)}function Nu(){return g(A([["discriminator",i()],["amount",C()],["decimals",i()]]),e=>({...e,discriminator:Iu}))}function Su(){return _([["discriminator",d()],["amount",h()],["decimals",d()]])}function sD(){return f(Nu(),Su())}function uD(e,t){let n=t?.programAddress??R,r={source:{value:e.source??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},destination:{value:e.destination??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.source),c(r.mint),c(r.destination),c(r.authority),...s],data:Nu().encode(a),programAddress:n})}function dD(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{source:n(),mint:n(),destination:n(),authority:n()},data:Su().decode(e.data)}}var Ou=26;function lD(){return i().encode(Ou)}var Tu=1;function AD(){return i().encode(Tu)}function Du(){return g(A([["discriminator",i()],["transferFeeDiscriminator",i()],["amount",C()],["decimals",i()],["fee",C()]]),e=>({...e,discriminator:Ou,transferFeeDiscriminator:Tu}))}function hu(){return _([["discriminator",d()],["transferFeeDiscriminator",d()],["amount",h()],["decimals",d()],["fee",h()]])}function _D(){return f(Du(),hu())}function fD(e,t){let n=t?.programAddress??R,r={source:{value:e.source??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},destination:{value:e.destination??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.source),c(r.mint),c(r.destination),c(r.authority),...s],data:Du().encode(a),programAddress:n})}function gD(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{source:n(),mint:n(),destination:n(),authority:n()},data:hu().decode(e.data)}}var Cu=24;function RD(){return i().encode(Cu)}function pu(){return g(A([["discriminator",i()],["uiAmount",Z()]]),e=>({...e,discriminator:Cu}))}function Mu(){return _([["discriminator",d()],["uiAmount",q()]])}function mD(){return f(pu(),Mu())}function ED(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint)],data:pu().encode(a),programAddress:n})}function ID(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n()},data:Mu().decode(e.data)}}var vu=27;function ND(){return i().encode(vu)}var bu=1;function SD(){return i().encode(bu)}function yu(){return g(A([["discriminator",i()],["confidentialTransferDiscriminator",i()],["autoApproveNewAccounts",W()],["auditorElgamalPubkey",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:vu,confidentialTransferDiscriminator:bu}))}function Lu(){return _([["discriminator",d()],["confidentialTransferDiscriminator",d()],["autoApproveNewAccounts",G()],["auditorElgamalPubkey",D(I(),{prefix:null,noneValue:"zeroes"})]])}function OD(){return f(yu(),Lu())}function TD(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.mint),s(r.authority)],data:yu().encode(a),programAddress:n})}function DD(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),authority:n()},data:Lu().decode(e.data)}}var wu=28;function hD(){return i().encode(wu)}var Uu=1;function CD(){return i().encode(Uu)}function Pu(){return g(A([["discriminator",i()],["defaultAccountStateDiscriminator",i()],["state",He()]]),e=>({...e,discriminator:wu,defaultAccountStateDiscriminator:Uu}))}function zu(){return _([["discriminator",d()],["defaultAccountStateDiscriminator",d()],["state",je()]])}function pD(){return f(Pu(),zu())}function MD(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},freezeAuthority:{value:e.freezeAuthority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.freezeAuthority),...s],data:Pu().encode(a),programAddress:n})}function vD(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),freezeAuthority:n()},data:zu().decode(e.data)}}var xu=41;function bD(){return i().encode(xu)}var Fu=1;function yD(){return i().encode(Fu)}function Bu(){return g(A([["discriminator",i()],["groupMemberPointerDiscriminator",i()],["memberAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:xu,groupMemberPointerDiscriminator:Fu}))}function Wu(){return _([["discriminator",d()],["groupMemberPointerDiscriminator",d()],["memberAddress",D(I(),{prefix:null,noneValue:"zeroes"})]])}function LD(){return f(Bu(),Wu())}function wD(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},groupMemberPointerAuthority:{value:e.groupMemberPointerAuthority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.groupMemberPointerAuthority),...s],data:Bu().encode(a),programAddress:n})}function UD(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),groupMemberPointerAuthority:n()},data:Wu().decode(e.data)}}var Gu=40;function PD(){return i().encode(Gu)}var ku=1;function zD(){return i().encode(ku)}function Vu(){return g(A([["discriminator",i()],["groupPointerDiscriminator",i()],["groupAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:Gu,groupPointerDiscriminator:ku}))}function Hu(){return _([["discriminator",d()],["groupPointerDiscriminator",d()],["groupAddress",D(I(),{prefix:null,noneValue:"zeroes"})]])}function xD(){return f(Vu(),Hu())}function FD(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},groupPointerAuthority:{value:e.groupPointerAuthority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.groupPointerAuthority),...s],data:Vu().encode(a),programAddress:n})}function BD(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),groupPointerAuthority:n()},data:Hu().decode(e.data)}}var ju=39;function WD(){return i().encode(ju)}var Yu=1;function GD(){return i().encode(Yu)}function $u(){return g(A([["discriminator",i()],["metadataPointerDiscriminator",i()],["metadataAddress",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:ju,metadataPointerDiscriminator:Yu}))}function Ku(){return _([["discriminator",d()],["metadataPointerDiscriminator",d()],["metadataAddress",D(I(),{prefix:null,noneValue:"zeroes"})]])}function kD(){return f($u(),Ku())}function VD(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},metadataPointerAuthority:{value:e.metadataPointerAuthority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.metadataPointerAuthority),...s],data:$u().encode(a),programAddress:n})}function HD(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),metadataPointerAuthority:n()},data:Ku().decode(e.data)}}var Xu=43;function jD(){return i().encode(Xu)}var Zu=1;function YD(){return i().encode(Zu)}function qu(){return g(A([["discriminator",i()],["scaledUiAmountMintDiscriminator",i()],["multiplier",he()],["effectiveTimestamp",qt()]]),e=>({...e,discriminator:Xu,scaledUiAmountMintDiscriminator:Zu}))}function Ju(){return _([["discriminator",d()],["scaledUiAmountMintDiscriminator",d()],["multiplier",Ce()],["effectiveTimestamp",xe()]])}function $D(){return f(qu(),Ju())}function KD(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!0}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.authority),...s],data:qu().encode(a),programAddress:n})}function XD(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),authority:n()},data:Ju().decode(e.data)}}var Qu=33;function ZD(){return i().encode(Qu)}var ed=1;function qD(){return i().encode(ed)}function td(){return g(A([["discriminator",i()],["interestBearingMintDiscriminator",i()],["rate",Pe()]]),e=>({...e,discriminator:Qu,interestBearingMintDiscriminator:ed}))}function nd(){return _([["discriminator",d()],["interestBearingMintDiscriminator",d()],["rate",ze()]])}function JD(){return f(td(),nd())}function QD(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},rateAuthority:{value:e.rateAuthority??null,isWritable:!0}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.rateAuthority),...s],data:td().encode(a),programAddress:n})}function eh(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),rateAuthority:n()},data:nd().decode(e.data)}}var rd=new Uint8Array([108,37,171,143,248,30,18,110]);function th(){return U().encode(rd)}function od(){return g(A([["discriminator",U()],["maxSize",C()]]),e=>({...e,discriminator:rd}))}function ad(){return _([["discriminator",V()],["maxSize",h()]])}function nh(){return f(od(),ad())}function rh(e,t){let n=t?.programAddress??R,r={group:{value:e.group??null,isWritable:!0},updateAuthority:{value:e.updateAuthority??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.group),s(r.updateAuthority)],data:od().encode(a),programAddress:n})}function oh(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{group:n(),updateAuthority:n()},data:ad().decode(e.data)}}var id=new Uint8Array([161,105,88,1,237,221,216,203]);function ah(){return U().encode(id)}function cd(){return g(A([["discriminator",U()],["newUpdateAuthority",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:id}))}function sd(){return _([["discriminator",V()],["newUpdateAuthority",D(I(),{prefix:null,noneValue:"zeroes"})]])}function ih(){return f(cd(),sd())}function ch(e,t){let n=t?.programAddress??R,r={group:{value:e.group??null,isWritable:!0},updateAuthority:{value:e.updateAuthority??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.group),s(r.updateAuthority)],data:cd().encode(a),programAddress:n})}function sh(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{group:n(),updateAuthority:n()},data:sd().decode(e.data)}}var ud=new Uint8Array([221,233,49,45,181,202,220,200]);function uh(){return U().encode(ud)}function dd(){return g(A([["discriminator",U()],["field",xo()],["value",p(Z(),x())]]),e=>({...e,discriminator:ud}))}function ld(){return _([["discriminator",V()],["field",Fo()],["value",M(q(),F())]])}function dh(){return f(dd(),ld())}function lh(e,t){let n=t?.programAddress??R,r={metadata:{value:e.metadata??null,isWritable:!0},updateAuthority:{value:e.updateAuthority??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.metadata),s(r.updateAuthority)],data:dd().encode(a),programAddress:n})}function Ah(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{metadata:n(),updateAuthority:n()},data:ld().decode(e.data)}}var Ad=new Uint8Array([215,228,166,228,84,100,86,123]);function _h(){return U().encode(Ad)}function _d(){return g(A([["discriminator",U()],["newUpdateAuthority",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:Ad}))}function fd(){return _([["discriminator",V()],["newUpdateAuthority",D(I(),{prefix:null,noneValue:"zeroes"})]])}function fh(){return f(_d(),fd())}function gh(e,t){let n=t?.programAddress??R,r={metadata:{value:e.metadata??null,isWritable:!0},updateAuthority:{value:e.updateAuthority??null,isWritable:!1}},a={...e},s=m(n);return Object.freeze({accounts:[s(r.metadata),s(r.updateAuthority)],data:_d().encode(a),programAddress:n})}function Rh(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{metadata:n(),updateAuthority:n()},data:fd().decode(e.data)}}var gd=36;function mh(){return i().encode(gd)}var Rd=1;function Eh(){return i().encode(Rd)}function md(){return g(A([["discriminator",i()],["transferHookDiscriminator",i()],["programId",T(E(),{prefix:null,noneValue:"zeroes"})]]),e=>({...e,discriminator:gd,transferHookDiscriminator:Rd}))}function Ed(){return _([["discriminator",d()],["transferHookDiscriminator",d()],["programId",D(I(),{prefix:null,noneValue:"zeroes"})]])}function Ih(){return f(md(),Ed())}function Nh(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.authority),...s],data:md().encode(a),programAddress:n})}function Sh(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),authority:n()},data:Ed().decode(e.data)}}var Id=38;function Oh(){return i().encode(Id)}function Nd(){return g(A([["discriminator",i()]]),e=>({...e,discriminator:Id}))}function Sd(){return _([["discriminator",d()]])}function Th(){return f(Nd(),Sd())}function Dh(e,t){let n=t?.programAddress??R,r={sourceAccount:{value:e.sourceAccount??null,isWritable:!0},destinationAccount:{value:e.destinationAccount??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.sourceAccount),c(r.destinationAccount),c(r.authority),...s],data:Nd().encode({}),programAddress:n})}function hh(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{sourceAccount:n(),destinationAccount:n(),authority:n()},data:Sd().decode(e.data)}}var Od=26;function Ch(){return i().encode(Od)}var Td=3;function ph(){return i().encode(Td)}function Dd(){return g(A([["discriminator",i()],["transferFeeDiscriminator",i()],["numTokenAccounts",i()]]),e=>({...e,discriminator:Od,transferFeeDiscriminator:Td}))}function hd(){return _([["discriminator",d()],["transferFeeDiscriminator",d()],["numTokenAccounts",d()]])}function Mh(){return f(Dd(),hd())}function vh(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!1},feeReceiver:{value:e.feeReceiver??null,isWritable:!0},withdrawWithheldAuthority:{value:e.withdrawWithheldAuthority??null,isWritable:!1}},a={...e},s=[...(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),...a.sources.map(u=>({address:u,role:N.WRITABLE}))],c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.feeReceiver),c(r.withdrawWithheldAuthority),...s],data:Dd().encode(a),programAddress:n})}function bh(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),feeReceiver:n(),withdrawWithheldAuthority:n()},data:hd().decode(e.data)}}var Cd=37;function yh(){return i().encode(Cd)}var pd=2;function Lh(){return i().encode(pd)}function Md(){return g(A([["discriminator",i()],["confidentialTransferFeeDiscriminator",i()],["numTokenAccounts",i()],["proofInstructionOffset",K()],["newDecryptableAvailableBalance",le()]]),e=>({...e,discriminator:Cd,confidentialTransferFeeDiscriminator:pd}))}function vd(){return _([["discriminator",d()],["confidentialTransferFeeDiscriminator",d()],["numTokenAccounts",d()],["proofInstructionOffset",X()],["newDecryptableAvailableBalance",Ae()]])}function wh(){return f(Md(),vd())}function Uh(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!1},destination:{value:e.destination??null,isWritable:!0},instructionsSysvarOrContextState:{value:e.instructionsSysvarOrContextState??null,isWritable:!1},record:{value:e.record??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.destination),c(r.instructionsSysvarOrContextState),c(r.record),c(r.authority),...s],data:Md().encode(a),programAddress:n})}function Ph(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r},o=()=>{let r=n();return r.address===R?void 0:r};return{programAddress:e.programAddress,accounts:{mint:n(),destination:n(),instructionsSysvarOrContextState:n(),record:o(),authority:n()},data:vd().decode(e.data)}}var bd=26;function zh(){return i().encode(bd)}var yd=2;function xh(){return i().encode(yd)}function Ld(){return g(A([["discriminator",i()],["transferFeeDiscriminator",i()]]),e=>({...e,discriminator:bd,transferFeeDiscriminator:yd}))}function wd(){return _([["discriminator",d()],["transferFeeDiscriminator",d()]])}function Fh(){return f(Ld(),wd())}function Bh(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},feeReceiver:{value:e.feeReceiver??null,isWritable:!0},withdrawWithheldAuthority:{value:e.withdrawWithheldAuthority??null,isWritable:!1}},s=({...e}.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.feeReceiver),c(r.withdrawWithheldAuthority),...s],data:Ld().encode({}),programAddress:n})}function Wh(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,n=()=>{let o=e.accounts[t];return t+=1,o};return{programAddress:e.programAddress,accounts:{mint:n(),feeReceiver:n(),withdrawWithheldAuthority:n()},data:wd().decode(e.data)}}var Ud=37;function Gh(){return i().encode(Ud)}var Pd=1;function kh(){return i().encode(Pd)}function zd(){return g(A([["discriminator",i()],["confidentialTransferFeeDiscriminator",i()],["proofInstructionOffset",K()],["newDecryptableAvailableBalance",le()]]),e=>({...e,discriminator:Ud,confidentialTransferFeeDiscriminator:Pd}))}function xd(){return _([["discriminator",d()],["confidentialTransferFeeDiscriminator",d()],["proofInstructionOffset",X()],["newDecryptableAvailableBalance",Ae()]])}function Vh(){return f(zd(),xd())}function Hh(e,t){let n=t?.programAddress??R,r={mint:{value:e.mint??null,isWritable:!0},destination:{value:e.destination??null,isWritable:!0},instructionsSysvarOrContextState:{value:e.instructionsSysvarOrContextState??null,isWritable:!1},record:{value:e.record??null,isWritable:!1},authority:{value:e.authority??null,isWritable:!1}},a={...e},s=(a.multiSigners??[]).map(u=>({address:u.address,role:N.READONLY_SIGNER,signer:u})),c=m(n);return Object.freeze({accounts:[c(r.mint),c(r.destination),c(r.instructionsSysvarOrContextState),c(r.record),c(r.authority),...s],data:zd().encode(a),programAddress:n})}function jh(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r},o=()=>{let r=n();return r.address===R?void 0:r};return{programAddress:e.programAddress,accounts:{mint:n(),destination:n(),instructionsSysvarOrContextState:n(),record:o(),authority:n()},data:xd().decode(e.data)}}var MR=1e4,vR=3600*24*365.24;function bo(e,t,n){let o=t-e;if(o<0)throw new Error("Invalid timespan: end time before start time");let a=n*o/(vR*MR);return Math.exp(a)}function Fd({currentTimestamp:e,lastUpdateTimestamp:t,initializationTimestamp:n,preUpdateAverageRate:o,currentRate:r}){let a=bo(n,t,o),s=bo(t,e,r);return a*s}function ye(e){return Math.pow(10,e)}async function Bd(e){let t=await Mo(e);if(!t)throw new Error("Failed to fetch sysvar clock");return t.unixTimestamp}function bR(e,t,n,o,r,a,s){let c=Fd({currentTimestamp:n,lastUpdateTimestamp:o,initializationTimestamp:r,preUpdateAverageRate:a,currentRate:s}),u=Number(e)*c,S=ye(t);return(Math.trunc(u)/S).toString()}function yR(e,t,n,o,r,a,s){let c=parseFloat(e),u=ye(t),S=c*u,v=Fd({currentTimestamp:n,lastUpdateTimestamp:o,initializationTimestamp:r,preUpdateAverageRate:a,currentRate:s}),B=S/v;return BigInt(Math.trunc(B))}function LR(e,t,n){let o=Number(e)*n,r=ye(t);return(Math.trunc(o)/r).toString()}function wR(e,t,n){let o=parseFloat(e),r=ye(t),s=o*r/n;return BigInt(Math.trunc(s))}async function Yh(e,t,n){let o=await Go(e,t),r=on(o.data.extensions),a=r?.find(u=>u.__kind==="InterestBearingConfig"),s=r?.find(u=>u.__kind==="ScaledUiAmountConfig");if(!a&&!s){let u=Number(n),S=ye(o.data.decimals);return(u/S).toString()}let c=await Bd(e);if(a)return bR(n,o.data.decimals,Number(c),Number(a.lastUpdateTimestamp),Number(a.initializationTimestamp),a.preUpdateAverageRate,a.currentRate);if(s){let u=s.multiplier;return c>=s.newMultiplierEffectiveTimestamp&&(u=s.newMultiplier),LR(n,o.data.decimals,u)}throw new Error("Unknown mint extension type")}async function $h(e,t,n){let o=await Go(e,t),r=on(o.data.extensions),a=r?.find(u=>u.__kind==="InterestBearingConfig"),s=r?.find(u=>u.__kind==="ScaledUiAmountConfig");if(!a&&!s){let u=parseFloat(n)*ye(o.data.decimals);return BigInt(Math.trunc(u))}let c=await Bd(e);if(a)return yR(n,o.data.decimals,Number(c),Number(a.lastUpdateTimestamp),Number(a.initializationTimestamp),a.preUpdateAverageRate,a.currentRate);if(s){let u=s.multiplier;return c>=s.newMultiplierEffectiveTimestamp&&(u=s.newMultiplier),wR(n,o.data.decimals,u)}throw new Error("Unknown mint extension type")}function Kh(e,t){return t.flatMap(n=>{switch(n.__kind){case"ConfidentialTransferMint":return[_R({mint:e,...n})];case"DefaultAccountState":return[fR({mint:e,state:n.state})];case"TransferFeeConfig":return[CR({mint:e,transferFeeConfigAuthority:n.transferFeeConfigAuthority,withdrawWithheldAuthority:n.withdrawWithheldAuthority,transferFeeBasisPoints:n.newerTransferFee.transferFeeBasisPoints,maximumFee:n.newerTransferFee.maximumFee})];case"MetadataPointer":return[ER({mint:e,authority:n.authority,metadataAddress:n.metadataAddress})];case"InterestBearingConfig":return[mR({mint:e,rateAuthority:n.rateAuthority,rate:n.currentRate})];case"ScaledUiAmountConfig":return[TR({mint:e,authority:n.authority,multiplier:n.multiplier})];case"PausableConfig":return[SR({mint:e,authority:n.authority})];case"GroupPointer":return[RR({mint:e,authority:n.authority,groupAddress:n.groupAddress})];case"GroupMemberPointer":return[gR({mint:e,authority:n.authority,memberAddress:n.memberAddress})];case"NonTransferable":return NR({mint:e});case"TransferHook":return[pR({mint:e,authority:n.authority,programId:n.programId})];case"PermanentDelegate":return OR({mint:e,delegate:n.delegate});case"ConfidentialTransferFee":return[AR({mint:e,authority:n.authority,withdrawWithheldAuthorityElGamalPubkey:n.elgamalPubkey})];case"MintCloseAuthority":return IR({closeAuthority:n.closeAuthority,mint:e});default:return[]}})}function Xh(e,t,n){return n.flatMap(o=>{switch(o.__kind){case"TokenMetadata":let r=Ge(o.updateAuthority)?o.updateAuthority:ut(o.updateAuthority);return lo(r)?[]:[hR({metadata:e,updateAuthority:r.value,mint:e,mintAuthority:t,name:o.name,symbol:o.symbol,uri:o.uri})];case"TokenGroup":return[DR({group:e,updateAuthority:Ge(o.updateAuthority)?o.updateAuthority:ut(o.updateAuthority),mint:e,mintAuthority:t,maxSize:o.maxSize})];default:return[]}})}function Zh(e,t,n,o){return n.flatMap(r=>{switch(r.__kind){case"MemoTransfer":return[r.requireIncomingTransferMemos?lR({owner:t,token:e,multiSigners:o}):uR({owner:t,token:e,multiSigners:o})];case"CpiGuard":return[r.lockCpi?dR({owner:t,token:e,multiSigners:o}):sR({owner:t,token:e,multiSigners:o})];default:return[]}})}var yo=165;function qh(e){if(e==null)return yo;let t=We(k(Ye(),{size:"remainder"}),[de(i().encode(2))]);return yo+t.encode(e).length}var Lo=82;function Jh(e){if(e==null)return Lo;let t=We(k(Ye(),{size:"remainder"}),[de(nt(i(),83).encode(1))]);return Lo+t.encode(e).length}export{b_ as a,y_ as b,L_ as c,w_ as d,O as e,wr as f,Q_ as g,g as h,jr as i,x as j,C as k,i as l,A as m,um as n,Sm as o,Om as p,Tm as q,Dm as r,hm as s,dg as t,Cm as u,zm as v,xm as w,Ym as x,Sn as y,He as z,je as A,iE as B,On as C,wo as D,Uo as E,cE as F,le as G,Ae as H,sE as I,ve as J,be as K,uE as L,Ye as M,Tn as N,dE as O,lE as P,AE as Q,Dn as R,Po as S,zo as T,_E as U,xo as V,Fo as W,fE as X,gE as Y,RE as Z,In as _,Nn as $,mE as aa,vg as ba,Bo as ca,EE as da,Wo as ea,Go as fa,bg as ga,IE as ha,yg as ia,Lg as ja,ko as ka,NE as la,Vo as ma,SE as na,wg as oa,OE as pa,Ug as qa,TE as ra,Pg as sa,Ho as ta,DE as ua,jo as va,hE as wa,zg as xa,CE as ya,xg as za,Ne as Aa,Fg as Ba,pE as Ca,R as Da,Bg as Ea,ME as Fa,Wg as Ga,vE as Ha,Gg as Ia,bE as Ja,yE as Ka,kg as La,Vg as Ma,Hg as Na,jg as Oa,Yg as Pa,$g as Qa,Kg as Ra,Xg as Sa,Zg as Ta,qg as Ua,Jg as Va,Qg as Wa,eR as Xa,tR as Ya,nR as Za,rR as _a,oR as $a,aR as ab,iR as bb,cR as cb,LE as db,wE as eb,Ko as fb,UE as gb,Xo as hb,Zo as ib,PE as jb,zE as kb,xE as lb,qo as mb,FE as nb,Jo as ob,BE as pb,Qo as qb,ea as rb,WE as sb,GE as tb,kE as ub,ta as vb,VE as wb,na as xb,ra as yb,HE as zb,jE as Ab,YE as Bb,oa as Cb,$E as Db,aa as Eb,ia as Fb,KE as Gb,XE as Hb,ZE as Ib,ca as Jb,qE as Kb,sa as Lb,JE as Mb,ua as Nb,da as Ob,QE as Pb,eI as Qb,tI as Rb,la as Sb,nI as Tb,Aa as Ub,_a as Vb,rI as Wb,oI as Xb,aI as Yb,fa as Zb,iI as _b,ga as $b,Ra as ac,cI as bc,sI as cc,uI as dc,ma as ec,dI as fc,Ea as gc,Ia as hc,lI as ic,AI as jc,_I as kc,Na as lc,fI as mc,Sa as nc,gI as oc,Oa as pc,Ta as qc,RI as rc,mI as sc,EI as tc,Da as uc,II as vc,ha as wc,NI as xc,Ca as yc,pa as zc,SI as Ac,OI as Bc,TI as Cc,Ma as Dc,DI as Ec,va as Fc,hI as Gc,ba as Hc,ya as Ic,CI as Jc,pI as Kc,MI as Lc,La as Mc,vI as Nc,wa as Oc,bI as Pc,Ua as Qc,Pa as Rc,yI as Sc,LI as Tc,wI as Uc,za as Vc,UI as Wc,xa as Xc,PI as Yc,Fa as Zc,Ba as _c,zI as $c,xI as ad,FI as bd,Ve as cd,Wa as dd,BI as ed,hn as fd,Ga as gd,WI as hd,GI as id,kI as jd,VI as kd,ka as ld,HI as md,Cn as nd,Va as od,jI as pd,YI as qd,$I as rd,KI as sd,Ha as td,XI as ud,ja as vd,Ya as wd,ZI as xd,qI as yd,JI as zd,$a as Ad,QI as Bd,Ka as Cd,eN as Dd,Xa as Ed,Za as Fd,tN as Gd,nN as Hd,rN as Id,qa as Jd,oN as Kd,Ja as Ld,aN as Md,Qa as Nd,ei as Od,iN as Pd,sR as Qd,cN as Rd,ti as Sd,sN as Td,ni as Ud,uN as Vd,ri as Wd,oi as Xd,dN as Yd,lN as Zd,AN as _d,ai as $d,_N as ae,ii as be,fN as ce,ci as de,si as ee,gN as fe,uR as ge,RN as he,ui as ie,mN as je,di as ke,EN as le,li as me,Ai as ne,IN as oe,NN as pe,SN as qe,_i as re,ON as se,fi as te,gi as ue,TN as ve,DN as we,hN as xe,Ri as ye,CN as ze,mi as Ae,pN as Be,Ei as Ce,Ii as De,MN as Ee,vN as Fe,bN as Ge,Ni as He,yN as Ie,Si as Je,LN as Ke,Oi as Le,Ti as Me,wN as Ne,UN as Oe,PN as Pe,Di as Qe,zN as Re,hi as Se,xN as Te,Ci as Ue,pi as Ve,FN as We,dR as Xe,BN as Ye,Mi as Ze,WN as _e,vi as $e,GN as af,bi as bf,yi as cf,kN as df,VN as ef,HN as ff,Li as gf,jN as hf,wi as if,YN as jf,Ui as kf,Pi as lf,$N as mf,lR as nf,KN as of,zi as pf,XN as qf,xi as rf,ZN as sf,Fi as tf,Bi as uf,qN as vf,JN as wf,QN as xf,Wi as yf,eS as zf,Gi as Af,ki as Bf,tS as Cf,nS as Df,rS as Ef,Vi as Ff,oS as Gf,Hi as Hf,ji as If,aS as Jf,iS as Kf,cS as Lf,Yi as Mf,sS as Nf,$i as Of,uS as Pf,Ki as Qf,Xi as Rf,dS as Sf,lS as Tf,AS as Uf,Zi as Vf,_S as Wf,qi as Xf,fS as Yf,Ji as Zf,Qi as _f,gS as $f,RS as ag,mS as bg,ec as cg,ES as dg,tc as eg,nc as fg,IS as gg,NS as hg,SS as ig,rc as jg,OS as kg,oc as lg,ac as mg,TS as ng,DS as og,hS as pg,ic as qg,CS as rg,cc as sg,sc as tg,pS as ug,MS as vg,vS as wg,uc as xg,bS as yg,dc as zg,yS as Ag,lc as Bg,Ac as Cg,LS as Dg,AR as Eg,wS as Fg,_c as Gg,US as Hg,fc as Ig,PS as Jg,gc as Kg,Rc as Lg,zS as Mg,_R as Ng,xS as Og,mc as Pg,FS as Qg,Ec as Rg,BS as Sg,Ic as Tg,Nc as Ug,WS as Vg,fR as Wg,GS as Xg,Sc as Yg,kS as Zg,Oc as _g,VS as $g,Tc as ah,Dc as bh,HS as ch,gR as dh,jS as eh,hc as fh,YS as gh,Cc as hh,$S as ih,pc as jh,Mc as kh,KS as lh,RR as mh,XS as nh,vc as oh,ZS as ph,bc as qh,yc as rh,qS as sh,JS as th,QS as uh,Lc as vh,eO as wh,wc as xh,tO as yh,Uc as zh,Pc as Ah,nO as Bh,mR as Ch,rO as Dh,zc as Eh,oO as Fh,xc as Gh,aO as Hh,Fc as Ih,Bc as Jh,iO as Kh,ER as Lh,cO as Mh,Wc as Nh,sO as Oh,Gc as Ph,kc as Qh,uO as Rh,dO as Sh,lO as Th,Vc as Uh,AO as Vh,Hc as Wh,jc as Xh,_O as Yh,fO as Zh,gO as _h,Yc as $h,RO as ai,$c as bi,Kc as ci,mO as di,IR as ei,EO as fi,Xc as gi,IO as hi,Zc as ii,qc as ji,NO as ki,SO as li,OO as mi,Jc as ni,TO as oi,Qc as pi,es as qi,DO as ri,hO as si,CO as ti,ts as ui,pO as vi,ns as wi,rs as xi,MO as yi,NR as zi,vO as Ai,os as Bi,bO as Ci,as as Di,yO as Ei,is as Fi,cs as Gi,LO as Hi,SR as Ii,wO as Ji,ss as Ki,UO as Li,us as Mi,ds as Ni,PO as Oi,OR as Pi,zO as Qi,ls as Ri,xO as Si,As as Ti,FO as Ui,_s as Vi,fs as Wi,BO as Xi,TR as Yi,WO as Zi,gs as _i,GO as $i,Rs as aj,ms as bj,kO as cj,DR as dj,VO as ej,Es as fj,HO as gj,Is as hj,Ns as ij,jO as jj,YO as kj,$O as lj,Ss as mj,KO as nj,Os as oj,Ts as pj,XO as qj,hR as rj,ZO as sj,Ds as tj,qO as uj,hs as vj,JO as wj,Cs as xj,ps as yj,QO as zj,CR as Aj,eT as Bj,Ms as Cj,tT as Dj,vs as Ej,nT as Fj,bs as Gj,ys as Hj,rT as Ij,pR as Jj,oT as Kj,Ls as Lj,aT as Mj,ws as Nj,Us as Oj,iT as Pj,cT as Qj,sT as Rj,Ps as Sj,uT as Tj,zs as Uj,xs as Vj,dT as Wj,lT as Xj,AT as Yj,Fs as Zj,_T as _j,Bs as $j,fT as ak,Ws as bk,Gs as ck,gT as dk,RT as ek,mT as fk,ks as gk,ET as hk,Vs as ik,Hs as jk,IT as kk,NT as lk,ST as mk,js as nk,OT as ok,pn as pk,Ys as qk,TT as rk,DT as sk,hT as tk,CT as uk,$s as vk,pT as wk,Ks as xk,Xs as yk,MT as zk,vT as Ak,bT as Bk,Zs as Ck,yT as Dk,qs as Ek,LT as Fk,Js as Gk,Qs as Hk,wT as Ik,UT as Jk,PT as Kk,eu as Lk,zT as Mk,tu as Nk,nu as Ok,xT as Pk,FT as Qk,BT as Rk,ru as Sk,WT as Tk,ou as Uk,au as Vk,GT as Wk,kT as Xk,VT as Yk,iu as Zk,HT as _k,cu as $k,jT as al,su as bl,uu as cl,YT as dl,$T as el,KT as fl,du as gl,XT as hl,lu as il,Au as jl,ZT as kl,qT as ll,JT as ml,_u as nl,QT as ol,fu as pl,gu as ql,eD as rl,tD as sl,nD as tl,Ru as ul,rD as vl,mu as wl,Eu as xl,oD as yl,aD as zl,iD as Al,Iu as Bl,cD as Cl,Nu as Dl,Su as El,sD as Fl,uD as Gl,dD as Hl,Ou as Il,lD as Jl,Tu as Kl,AD as Ll,Du as Ml,hu as Nl,_D as Ol,fD as Pl,gD as Ql,Cu as Rl,RD as Sl,pu as Tl,Mu as Ul,mD as Vl,ED as Wl,ID as Xl,vu as Yl,ND as Zl,bu as _l,SD as $l,yu as am,Lu as bm,OD as cm,TD as dm,DD as em,wu as fm,hD as gm,Uu as hm,CD as im,Pu as jm,zu as km,pD as lm,MD as mm,vD as nm,xu as om,bD as pm,Fu as qm,yD as rm,Bu as sm,Wu as tm,LD as um,wD as vm,UD as wm,Gu as xm,PD as ym,ku as zm,zD as Am,Vu as Bm,Hu as Cm,xD as Dm,FD as Em,BD as Fm,ju as Gm,WD as Hm,Yu as Im,GD as Jm,$u as Km,Ku as Lm,kD as Mm,VD as Nm,HD as Om,Xu as Pm,jD as Qm,Zu as Rm,YD as Sm,qu as Tm,Ju as Um,$D as Vm,KD as Wm,XD as Xm,Qu as Ym,ZD as Zm,ed as _m,qD as $m,td as an,nd as bn,JD as cn,QD as dn,eh as en,rd as fn,th as gn,od as hn,ad as in,nh as jn,rh as kn,oh as ln,id as mn,ah as nn,cd as on,sd as pn,ih as qn,ch as rn,sh as sn,ud as tn,uh as un,dd as vn,ld as wn,dh as xn,lh as yn,Ah as zn,Ad as An,_h as Bn,_d as Cn,fd as Dn,fh as En,gh as Fn,Rh as Gn,gd as Hn,mh as In,Rd as Jn,Eh as Kn,md as Ln,Ed as Mn,Ih as Nn,Nh as On,Sh as Pn,Id as Qn,Oh as Rn,Nd as Sn,Sd as Tn,Th as Un,Dh as Vn,hh as Wn,Od as Xn,Ch as Yn,Td as Zn,ph as _n,Dd as $n,hd as ao,Mh as bo,vh as co,bh as do,Cd as eo,yh as fo,pd as go,Lh as ho,Md as io,vd as jo,wh as ko,Uh as lo,Ph as mo,bd as no,zh as oo,yd as po,xh as qo,Ld as ro,wd as so,Fh as to,Bh as uo,Wh as vo,Ud as wo,Gh as xo,Pd as yo,kh as zo,zd as Ao,xd as Bo,Vh as Co,Hh as Do,jh as Eo,bR as Fo,yR as Go,LR as Ho,wR as Io,Yh as Jo,$h as Ko,Kh as Lo,Xh as Mo,Zh as No,qh as Oo,Jh as Po};