import { useRef as r, useCallback as s } from "../../../../../preact@10.29.0/node_modules/preact/hooks/dist/hooks.module.js";
try {
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "009ce03f-6100-4f97-b658-7de54f12cfcf", e._sentryDebugIdIdentifier = "sentry-dbid-009ce03f-6100-4f97-b658-7de54f12cfcf");
} catch {
}
const u = (e, t) => {
  let n, d;
  return (...o) => {
    d = !0, n || (e(...o), d = !1), clearTimeout(n), n = setTimeout(() => d && e(...o), t);
  };
}, l = (e, t) => {
  const n = r();
  return s(
    (...d) => {
      const o = () => {
        clearTimeout(n.current), e(...d);
      };
      clearTimeout(n.current), n.current = setTimeout(o, t);
    },
    [e, t]
  );
}, c = u(
  (e, t) => e.addFieldEvent("Interacted with form field", t),
  500
);
export {
  u as a,
  c as d,
  l as u
};
