import{r as n,J as s,G as u,T as r,K as o}from"./index-CeSBbkQk.js";function m(e){return Object.keys(e).length===0}function a(e=null){const t=n.useContext(s);return!t||m(t)?e:t}const c=u();function h(e=c){return a(e)}function f(){const e=h(o);return e[r]||e}export{h as a,f as u};
