1function $(e){let s=[`${e.domain} wants you to sign in with your Ethereum account:`,e.address].join(` 2`);s=[s,e.statement].join(` 3 4`),e.statement&&(s+=` 5`);const n=[];if(e.uri){const i=`URI: ${e.uri}`;n.push(i)}const o=`Version: ${e.version}`;if(n.push(o),e.chain_id){const i=`Chain ID: ${e.chain_id}`||"1";n.push(i)}const c=`Nonce: ${e.nonce}`;n.push(c);const u=`Issued At: ${e.issued_at}`;n.push(u);const f=`Expiration Time: ${e.expiration_time}`;if(n.push(f),e.invalid_before){const i=`Not Before: ${e.invalid_before}`;n.push(i)}e.resources&&n.push(["Resources:",...e.resources.map(i=>`- ${i}`)].join(` 6`));const h=n.join(` 7`);return[s,h].join(` 8`)}async function d(e){const{payload:t,account:r}=e,s=await r.signMessage({message:$(t)});return{payload:t,signature:s}}export{d as signLoginPayload};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.