import{n as e,t}from"./xlsx-D0uP-Y4f.js";var n=async(n=[],r=`sheet`)=>{let i=t.book_new(),a={Data:n};for(let e in a){let n=t.json_to_sheet(a[e]);t.book_append_sheet(i,n,e)}let o=await e(i,{type:`array`}),s=document.createElement(`a`);s.style.display=`none`,document.body.appendChild(s);let c=new Blob([o],{type:`text/plain`});return s.href=URL.createObjectURL(c),s.href=URL.createObjectURL(c),s.download=`${r}.xlsx`,s.click()};export{n as t};