"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const resolveElements = require("./dist-es-utils-resolve-elements.cjs");
function setupGesture(elementOrSelector, options) {
  const elements = resolveElements.resolveElements(elementOrSelector);
  const gestureAbortController = new AbortController();
  const eventOptions = {
    passive: true,
    ...options,
    signal: gestureAbortController.signal
  };
  const cancel = () => gestureAbortController.abort();
  return [elements, eventOptions, cancel];
}
exports.setupGesture = setupGesture;
//# sourceMappingURL=dist-es-gestures-utils-setup.cjs.map
