import { toBigInt as e } from "../functions/utils/amounts.utils.mjs";
import { ethers as t } from "ethers";
import { buildPoseidon as n } from "circomlibjs-hinkal-fork";
var r = new class {
	poseidon = void 0;
	async init() {
		this.poseidon ||= await n();
	}
	getPoseidon() {
		return this.poseidon;
	}
}();
function i(...t) {
	let n = r.getPoseidon();
	return e(n.F.toString(n(t)));
}
var a = (...e) => {
	let n = r.getPoseidon();
	return t.toBeHex(n.F.toString(n([...e])));
};
//#endregion
export { i as poseidonFunction, a as poseidonHash, r as poseidonHolder };
