import{b as d}from"/build/_shared/chunk-HTTIUZX4.js";import{A as c,a as m}from"/build/_shared/chunk-IYEHZB2Y.js";import{d as s}from"/build/_shared/chunk-4AMCPB2Y.js";var e=s(m(),1);var t=s(c(),1);function p({children:r="Loading"}){let{reducedMotion:n}=d();return n==="reduce"?(0,t.jsx)("div",{className:"animate-pulse",children:r}):(0,t.jsxs)("div",{className:"flex items-center gap-2 font-mono text-sm font-medium uppercase",role:"status",children:[(0,t.jsx)("div",{"aria-hidden":"true",children:(0,t.jsx)(f,{})}),r,(0,t.jsx)("div",{"aria-hidden":"true",children:(0,t.jsx)(f,{})})]})}var o="\u2588<\u2593\u2588 \u2592\u2591/\u2592\u2591 \u2588\u2591>\u2592\u2593/ \u2588\u2592\u2592 \u2593\u2592\u2593/\u2588<\u2591\u2592 \u2593/\u2591>",u=()=>o[Math.floor(Math.random()*o.length)];function f(){let[r,n]=(0,e.useState)(o[0]),[a,i]=(0,e.useState)(o[1]);return h(()=>{n(u()),i(u())},80),(0,t.jsxs)("span",{children:[r,a]})}function h(r,n=1e3){let a=(0,e.useRef)();(0,e.useEffect)(()=>{a.current=r},[r]),(0,e.useEffect)(()=>{function i(){a.current?.()}if(n!==null){let v=setInterval(i,n);return()=>clearInterval(v)}},[n])}export{p as a};
//# sourceMappingURL=/build/_shared/chunk-JWVFBRIV.js.map
