import{br as f,bs as t,bt as e,bu as c,bv as O,bw as b,P as o,bx as d,by as A}from"../main.js";import{bz as h}from"../main.js";class p extends Error{constructor(r){super(r)}}class y extends p{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}const l=f([t("mintAuthorityOption"),e("mintAuthority"),c("supply"),O("decimals"),b("isInitialized"),t("freezeAuthorityOption"),e("freezeAuthority")]);l.span;async function E(s,r,n=!1,u=d,a=A){if(!n&&!o.isOnCurve(r.toBuffer()))throw new y;const[i]=await o.findProgramAddress([r.toBuffer(),u.toBuffer(),s.toBuffer()],a);return i}export{A as ASSOCIATED_TOKEN_PROGRAM_ID,l as MintLayout,h as TOKEN_2022_PROGRAM_ID,d as TOKEN_PROGRAM_ID,p as TokenError,y as TokenOwnerOffCurveError,E as getAssociatedTokenAddress};
