const e=require(`../../crypto/poseidon.cjs`),t=require(`../../functions/web3/etherFunctions.cjs`),n=require(`./MerkleTree.cjs`);var r=(r,i,a,o)=>{if(!o||a){let r=n.MerkleTree.create(e.poseidonFunction,0n);return r.insert(BigInt(i),r.getStartIndex()),o||r.insert(t.randomBigInt(31),r.getStartIndex()+1n),r}return r};exports.getPatchedAccessTokenMerkleTree=r;