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