function e(e,t,n=5e3){return new Promise((r,i)=>{let a=new AbortController,o=setTimeout(()=>{a.abort(),i(Error(`Request timed out`))},n);fetch(e,{...t,signal:a.signal}).then(e=>{clearTimeout(o),r(e)}).catch(e=>{clearTimeout(o),i(e)})})}export{e as t};
//# sourceMappingURL=fetch-with-timeout-Bh66T6IH.mjs.map