function startTradeBangersAuth(){
  const React=window.React; const {PrivyProvider,usePrivy,useWallets}=window.Privy;
  const BASE={id:8453,name:"Base",network:"base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org"}}};
  const BASE_SEPOLIA={id:84532,name:"Base Sepolia",network:"base-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org"}}};
  const short=(address)=>address?`${address.slice(0,6)}…${address.slice(-4)}`:"";
  function Account(){
    const {ready,authenticated,login,logout}=usePrivy(); const {wallets}=useWallets(); const wallet=(wallets||[]).find((item)=>item.walletClientType==="privy")||(wallets||[])[0];
    if(!ready)return React.createElement("span",null,"Loading account…");
    if(!authenticated)return React.createElement("button",{className:"privy-btn",type:"button",onClick:login},"Connect Privy");
    return React.createElement(React.Fragment,null,React.createElement("div",{className:"privy-user"},React.createElement("span",{className:"privy-user-addr"},wallet?short(wallet.address):"Privy connected"),React.createElement("span",{className:"privy-user-net"},wallet?wallet.chainId||"wallet":"account")),React.createElement("button",{className:"privy-btn privy-btn-ghost",type:"button",onClick:logout},"Disconnect Privy"));
  }
  function Root(){return React.createElement(PrivyProvider,{appId:"cmo6eynvo01c00cl4pkex2lh7",config:{loginMethods:["email","wallet"],embeddedWallets:{ethereum:{createOnLogin:"all-users"}},defaultChain:BASE_SEPOLIA,supportedChains:[BASE_SEPOLIA,BASE],appearance:{theme:"dark",accentColor:"#5fd6ff",logo:"/assets/brand/dreamweavers/infinity-mark-transparent-final.png",showWalletLoginFirst:false}}},React.createElement(Account));}
  const mount=document.getElementById("privy-auth-slot"); if(mount&&window.ReactDOMClient)window.ReactDOMClient.createRoot(mount).render(React.createElement(Root));
}
if(window.__libsReady)startTradeBangersAuth();else window.addEventListener("libs-ready",startTradeBangersAuth,{once:true});
