import{j as n}from"./jsx-runtime-CbGirg_M.js";import{r as s}from"./index-BoRhKTB8.js";import{a as d}from"./index-BN_canAo.js";import{c as f}from"./misc-D4V-U9nd.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"28ce3948dcef68c9e8b5be7c5619a3bd17c18150"}}catch{}})();function j({className:t,children:e="Loading"}){const{reducedMotion:r}=d();return r==="reduce"?n.jsx("div",{className:"animate-pulse",children:e}):n.jsxs("div",{className:f("flex items-center gap-2 font-mono text-sm font-medium uppercase",t),role:"status",children:[n.jsx("div",{"aria-hidden":"true",children:n.jsx(i,{})}),e,n.jsx("div",{"aria-hidden":"true",children:n.jsx(i,{})})]})}const a="█<▓█ ▒░/▒░ █░>▒▓/ █▒▒ ▓▒▓/█<░▒ ▓/░>",c=()=>a[Math.floor(Math.random()*a.length)];function i(){const[t,e]=s.useState(a[0]),[r,o]=s.useState(a[1]);return l(()=>{e(c()),o(c())},80),n.jsxs("span",{children:[t,r]})}function l(t,e=1e3){const r=s.useRef(null);s.useEffect(()=>{r.current=t},[t]),s.useEffect(()=>{function o(){r.current?.()}if(e!==null){const u=setInterval(o,e);return()=>clearInterval(u)}},[e])}export{j as L};
//# sourceMappingURL=loading-DGPrsY7f.js.map
