"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index_esm = require("../../../../min-dash/dist/index.esm.js");
var t = 67, n = 86, E = 89, c = 90, Y = ["c", "C", t], C = ["v", "V", n], y = ["y", "Y", E], K = ["z", "Z", c];
function s(r) {
  return r.ctrlKey || r.metaKey || r.shiftKey || r.altKey;
}
function f(r) {
  return r.altKey ? false : r.ctrlKey || r.metaKey;
}
function i(r, u) {
  return r = index_esm.isArray(r) ? r : [r], r.indexOf(u.key) !== -1 || r.indexOf(u.keyCode) !== -1;
}
function a(r) {
  return r.shiftKey;
}
function _(r) {
  return f(r) && i(Y, r);
}
function d(r) {
  return f(r) && i(C, r);
}
function D(r) {
  return f(r) && !a(r) && i(K, r);
}
function S(r) {
  return f(r) && (i(y, r) || i(K, r) && a(r));
}
exports.hasModifier = s;
exports.isCmd = f;
exports.isCopy = _;
exports.isKey = i;
exports.isPaste = d;
exports.isRedo = S;
exports.isShift = a;
exports.isUndo = D;
