(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776093229687-6cfd5f17e7"}catch(l){}})();import{d as o}from"./m6px07lc.js";import{f as a,i}from"./7apc6kle.js";const p=o(),h={defaultOptions:{queries:{queryFn:c(),refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1,staleTime:5*1e3,cacheTime:typeof window>"u"?1:1/0}}};function c(n){return async({queryKey:r})=>{if(typeof r[0]!="string")throw new Error("Default fetcher requires query key to be a route string");try{return await(await a(r[0])).json()}catch(e){if(i(e)){const s=e.response.status,{statusCodeResponseMap:t}=n??{};if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]}throw e}}}export{p as Q,c,h as q};