var c=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var l=(e,s)=>{for(var t in s)c(e,t,{get:s[t],enumerable:!0})},x=(e,s,t,n)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of u(s))!y.call(e,r)&&r!==t&&c(e,r,{get:()=>s[r],enumerable:!(n=p(s,r))||n.enumerable});return e};var h=e=>x(c({},"__esModule",{value:!0}),e);var w=(e,s,t)=>new Promise((n,r)=>{var g=i=>{try{o(t.next(i))}catch(a){r(a)}},f=i=>{try{o(t.throw(i))}catch(a){r(a)}},o=i=>i.done?n(i.value):Promise.resolve(i.value).then(g,f);o((t=t.apply(e,s)).next())});var P={};l(P,{signMessage:()=>B});module.exports=h(P);var M=require("@ethersproject/bytes"),m=require("@ethersproject/strings");var B=(e,s,t)=>w(void 0,null,function*(){var n,r;if((n=e.provider)!=null&&n.wc){let g=(0,M.hexlify)((0,m.toUtf8Bytes)(t));return yield(r=e.provider)==null?void 0:r.wc.signPersonalMessage([g,s])}return e.getSigner(s).signMessage(t)});0&&(module.exports={signMessage});
