async function c(o,a){var t,s;let r=await fetch(o,a);if(!r.ok){let n=((s=(t=await r.json())==null?void 0:t.error)==null?void 0:s.message)||"An error occurred while fetching the data.",e=new Error(n);throw e.info=n,e.status=r.status,e}return r.json()}export{c as a};
