import { __module as d } from "./index-_virtual32.js";
var p;
function g() {
  return p ? d.exports : (p = 1, (function(i, f) {
    function s(o) {
      if (o && typeof o == "object") {
        var t = o.which || o.keyCode || o.charCode;
        t && (o = t);
      }
      if (typeof o == "number") return l[o];
      var a = String(o), e = n[a.toLowerCase()];
      if (e) return e;
      var e = u[a.toLowerCase()];
      if (e) return e;
      if (a.length === 1) return a.charCodeAt(0);
    }
    s.isEventKey = function(t, a) {
      if (t && typeof t == "object") {
        var e = t.which || t.keyCode || t.charCode;
        if (e == null)
          return !1;
        if (typeof a == "string") {
          var c = n[a.toLowerCase()];
          if (c)
            return c === e;
          var c = u[a.toLowerCase()];
          if (c)
            return c === e;
        } else if (typeof a == "number")
          return a === e;
        return !1;
      }
    }, f = i.exports = s;
    var n = f.code = f.codes = {
      backspace: 8,
      tab: 9,
      enter: 13,
      shift: 16,
      ctrl: 17,
      alt: 18,
      "pause/break": 19,
      "caps lock": 20,
      esc: 27,
      space: 32,
      "page up": 33,
      "page down": 34,
      end: 35,
      home: 36,
      left: 37,
      up: 38,
      right: 39,
      down: 40,
      insert: 45,
      delete: 46,
      command: 91,
      "left command": 91,
      "right command": 93,
      "numpad *": 106,
      "numpad +": 107,
      "numpad -": 109,
      "numpad .": 110,
      "numpad /": 111,
      "num lock": 144,
      "scroll lock": 145,
      "my computer": 182,
      "my calculator": 183,
      ";": 186,
      "=": 187,
      ",": 188,
      "-": 189,
      ".": 190,
      "/": 191,
      "`": 192,
      "[": 219,
      "\\": 220,
      "]": 221,
      "'": 222
    }, u = f.aliases = {
      windows: 91,
      "⇧": 16,
      "⌥": 18,
      "⌃": 17,
      "⌘": 91,
      ctl: 17,
      control: 17,
      option: 18,
      pause: 19,
      break: 19,
      caps: 20,
      return: 13,
      escape: 27,
      spc: 32,
      spacebar: 32,
      pgup: 33,
      pgdn: 34,
      ins: 45,
      del: 46,
      cmd: 91
    };
    for (r = 97; r < 123; r++) n[String.fromCharCode(r)] = r - 32;
    for (var r = 48; r < 58; r++) n[r - 48] = r;
    for (r = 1; r < 13; r++) n["f" + r] = r + 111;
    for (r = 0; r < 10; r++) n["numpad " + r] = r + 96;
    var l = f.names = f.title = {};
    for (r in n) l[n[r]] = r;
    for (var m in u)
      n[m] = u[m];
  })(d, d.exports), d.exports);
}
export {
  g as __require
};
