var u=(a,s,o)=>new Promise((c,n)=>{var r=t=>{try{d(o.next(t))}catch(l){n(l)}},e=t=>{try{d(o.throw(t))}catch(l){n(l)}},d=t=>t.done?c(t.value):Promise.resolve(t.value).then(r,e);d((o=o.apply(a,s)).next())});import{r as i}from"./index.9fabe127.js";function f(){const a=i(!1);return{exportLoading:a,exportData:(o,c)=>u(this,null,function*(){a.value=!0;const n=yield o(),r=URL.createObjectURL(n),e=document.createElement("a");e.style.display="none",e.href=r,e.download=c||"\u4E3D\u6C34\u5E02\u4FE1\u606F\u5316\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF",document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(r),a.value=!1})}}export{f as u};
