import { i, a as c } from "./detectBrowser-Bc7rk5fI.mjs";
function f(t) {
  t.preventDefault(), t.stopPropagation();
}
function l(t) {
  return "nativeEvent" in t;
}
function A(t) {
  return t.mozInputSource === 0 && t.isTrusted ? !0 : i && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
}
function O(t) {
  return c ? !1 : !i && t.width === 0 && t.height === 0 || i && t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
  t.width < 1 && t.height < 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "touch";
}
function S(t, s) {
  return ["mouse", "pen"].includes(t);
}
function h(t) {
  const s = t.type;
  return s === "click" || s === "mousedown" || s === "keydown" || s === "keyup";
}
const o = "ArrowUp", r = "ArrowDown", n = "ArrowLeft", e = "ArrowRight", u = "Home", a = "End", p = /* @__PURE__ */ new Set([n, e]), E = /* @__PURE__ */ new Set([o, r]), w = /* @__PURE__ */ new Set([...p, ...E]);
[...w];
const T = /* @__PURE__ */ new Set([o, r, n, e, u, a]);
export {
  r as A,
  T as C,
  a as E,
  u as H,
  o as a,
  e as b,
  n as c,
  O as d,
  S as e,
  h as f,
  l as g,
  A as i,
  f as s
};
//# sourceMappingURL=composite-Br3kM5N9.mjs.map
