var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var w=(e,s)=>{for(var t in s)i(e,t,{get:s[t],enumerable:!0})},M=(e,s,t,n)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of c(s))!f.call(e,r)&&r!==t&&i(e,r,{get:()=>s[r],enumerable:!(n=a(s,r))||n.enumerable});return e};var m=e=>M(i({},"__esModule",{value:!0}),e);var u={};w(u,{signMessage:()=>p});module.exports=m(u);var g=require("@ethersproject/bytes"),o=require("@ethersproject/strings"),p=async(e,s,t)=>{if(e.provider?.wc){let n=(0,g.hexlify)((0,o.toUtf8Bytes)(t));return await e.provider?.wc.signPersonalMessage([n,s])}return e.getSigner(s).signMessage(t)};0&&(module.exports={signMessage});
