"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./unsignedTransaction-DA4tlY5u.js");require("./platform-CCG_jgOO.js");const t=require("./web3-DdUeM7iQ.js");class s extends Error{constructor(e){super(e)}}class u extends s{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}const n=r.LayoutExports.struct([r.LayoutExports.u32("mintAuthorityOption"),t.publicKey("mintAuthority"),t.u64("supply"),r.LayoutExports.u8("decimals"),t.bool("isInitialized"),r.LayoutExports.u32("freezeAuthorityOption"),t.publicKey("freezeAuthority")]);n.span;async function A(o,e,i=!1,O=r.TOKEN_PROGRAM_ID,a=r.ASSOCIATED_TOKEN_PROGRAM_ID){if(!i&&!r.PublicKey.isOnCurve(e.toBuffer()))throw new u;const[c]=await r.PublicKey.findProgramAddress([e.toBuffer(),O.toBuffer(),o.toBuffer()],a);return c}exports.ASSOCIATED_TOKEN_PROGRAM_ID=r.ASSOCIATED_TOKEN_PROGRAM_ID;exports.TOKEN_2022_PROGRAM_ID=r.TOKEN_2022_PROGRAM_ID;exports.TOKEN_PROGRAM_ID=r.TOKEN_PROGRAM_ID;exports.MintLayout=n;exports.TokenError=s;exports.TokenOwnerOffCurveError=u;exports.getAssociatedTokenAddress=A;
