import{g as N,r as A,K as R,L as V,M as O,N as U,b as F,O as P,d as z,P as G,u as H,i as v,c as b,Q as e,R as q,S as B,T as d,U as E,w as W,I as Y,F as I,V as D,j as C,W as j,X,Y as J,Z as K,$ as Q}from"./D9Jh96F5.js";function L(t){return O()?(U(t),!0):!1}function T(t){return typeof t=="function"?t():N(t)}const $=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Z(t,s=1e3,h={}){const{immediate:r=!0,immediateCallback:o=!1}=h;let a=null;const u=A(!1);function c(){a&&(clearInterval(a),a=null)}function p(){u.value=!1,c()}function f(){const w=T(s);w<=0||(u.value=!0,o&&t(),c(),a=setInterval(t,w))}if(r&&$&&f(),R(s)||typeof s=="function"){const w=V(s,()=>{u.value&&$&&f()});L(w)}return L(p),{isActive:u,pause:p,resume:f}}const tt=$?window:void 0;function et(t,s={}){const{immediate:h=!0,fpsLimit:r=void 0,window:o=tt}=s,a=A(!1),u=r?1e3/r:null;let c=0,p=null;function f(n){if(!a.value||!o)return;c||(c=n);const m=n-c;if(u&&m