var f=Object.create;var p=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var A=(t,e)=>{for(var o in e)p(t,o,{get:e[o],enumerable:!0})},s=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of k(e))!u.call(t,a)&&a!==o&&p(t,a,{get:()=>e[a],enumerable:!(r=P(e,a))||r.enumerable});return t};var C=(t,e,o)=>(o=t!=null?f(w(t)):{},s(e||!t||!t.__esModule?p(o,"default",{value:t,enumerable:!0}):o,t)),_=t=>s(p({},"__esModule",{value:!0}),t);var m=(t,e,o)=>new Promise((r,a)=>{var h=n=>{try{d(o.next(n))}catch(i){a(i)}},b=n=>{try{d(o.throw(n))}catch(i){a(i)}},d=n=>n.done?r(n.value):Promise.resolve(n.value).then(h,b);d((o=o.apply(t,e)).next())});var S={};A(S,{fetchSpaceLeaderBoard:()=>I});module.exports=_(S);var l=C(require("axios"),1);var c=require("react"),y=require("react/jsx-runtime"),N=(0,c.createContext)(void 0),v="production";var x=v==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var I=(t,e,o,r)=>m(void 0,null,function*(){try{return(yield l.default.get(`${x}/spaces/leaderboard?space_ids=${t}&offset=${e}&limit=${o}`,{headers:{"X-API-KEY":r}})).data}catch(a){throw a}});0&&(module.exports={fetchSpaceLeaderBoard});
