const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/biconomy-Cnjbd8vk.js","assets/thirdweb-Co3M1EyP.js","assets/openzeppelin-BkOrHWYI.js","assets/engine-SUOpVJdo.js"])))=>i.map(i=>d[i]);
import{_ as p,k as d}from"./thirdweb-Co3M1EyP.js";async function s({account:e,transaction:i,serializableTransaction:a,gasless:n}){if(a.value&&a.value>0n)throw new Error("Gasless transactions cannot have a value");let r;if(n.provider==="biconomy"){const{relayBiconomyTransaction:o}=await p(async()=>{const{relayBiconomyTransaction:t}=await import("./biconomy-Cnjbd8vk.js");return{relayBiconomyTransaction:t}},__vite__mapDeps([0,1]));r=await o({account:e,gasless:n,serializableTransaction:a,transaction:i})}if(n.provider==="openzeppelin"){const{relayOpenZeppelinTransaction:o}=await p(async()=>{const{relayOpenZeppelinTransaction:t}=await import("./openzeppelin-BkOrHWYI.js");return{relayOpenZeppelinTransaction:t}},__vite__mapDeps([2,1]));r=await o({account:e,gasless:n,serializableTransaction:a,transaction:i})}if(n.provider==="engine"){const{relayEngineTransaction:o}=await p(async()=>{const{relayEngineTransaction:t}=await import("./engine-SUOpVJdo.js");return{relayEngineTransaction:t}},__vite__mapDeps([3,1]));r=await o({account:e,gasless:n,serializableTransaction:a,transaction:i})}if(!r)throw new Error("Unsupported gasless provider");return d({address:e.address,chainId:i.chain.id,transactionHash:r.transactionHash}),r}export{s as sendGaslessTransaction};
