var e=(e,t)=>{if(e.length!==t.length)throw Error(`Recipient addresses and amounts length mismatch`);return e.map((e,n)=>({recipientAddress:e,amount:t[n]}))},t=(e,t)=>e.reduce((e,n,r)=>{let i=t[r]?.recipientInfo;return i?(e.directRecipients.push(n),e.directRecipientInfos.push(i)):e.fallbackRecipients.push(n),e},{directRecipients:[],directRecipientInfos:[],fallbackRecipients:[]});exports.mapRecipientRequests=e,exports.splitRecipientsByAllocations=t;