import{s as l}from"./8RsWtykp.js";async function c(o,n=null,i){let s;try{let t;if(n&&n.length>0){const a=l(n,"&ids=",8e3);t=`/items_info/${o}?ids=${a[0]}`}else t=`/items_info/${o}`;const e=await fetch(t,{method:"GET",signal:i==null?void 0:i.signal});e.ok?s=await e.json():(s=[],console.log("api.getItemsInfo -",e.status,e.statusText,await e.text()))}catch(t){s=[],typeof t=="string"&&t==="aborted"||console.log("api.getItemsInfo -",t)}return s}export{c as g};
