const a=async(s,{method:e="GET",timeout:n=Number.POSITIVE_INFINITY})=>await new Promise((o,r)=>{var t=new XMLHttpRequest;t.open(e,s,!0),t.timeout=n,t.onload=function(){if(t.status===200){o({status:t.status,object:JSON.parse(t.responseText)});return}r(new Error(`The ask failed with status ${t.status}`))},t.onerror=function(){r(new Error("The ask failed."))},t.ontimeout=function(){r(new Error("The ask timed out."))},t.send()}),u=async({net_path:s})=>{const e=await a(s,{timeout:1e3}),n=e.object;return e.status,{enhanced:n}};export{u as r};
//# sourceMappingURL=Ledger_Info.API.JyzJYuRQ.js.map
