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F,mBACAF,QAAAzF,UAAA4F,sBAAA,EJgiBM,SAAU7G,EAAQF,IK9hBxB,WACA,uBAAAgH,OAIA,IACA,IAAA9G,EAAA,IAAA8G,OAAA7C,YAAA,QAA6C8C,YAAA,IAE7C,GADA/G,EAAAyE,kBAAA,IACAzE,EAAAgH,iBAGA,UAAAlC,MAAA,6BAEI,MAAD9E,GACH,IAAAF,EAAA,SAAAE,EAAAF,GACA,IAAAI,EAAAD,EAyBA,OAxBAH,EAAAA,GAAA,IACAoE,UAAApE,EAAAoE,QACApE,EAAAiH,aAAAjH,EAAAiH,YAEA7G,EAAAqE,SAAA0C,YAAA,gBACAC,gBACAlH,EACAF,EAAAoE,QACApE,EAAAiH,WACAjH,EAAAqH,QAEAlH,EAAAC,EAAAuE,eACAvE,EAAAuE,eAAA,WACAxE,EAAAM,KAAA,MACA,IACAI,OAAAC,eAAA,yBACAG,IAAA,WACA,YAGU,MAADf,GACT,KAAAgH,kBAAA,IAGA9G,CAAA,EAGAJ,EAAAmB,UAAA6F,OAAAM,MAAAnG,UACA6F,OAAA7C,YAAAnE,CAAA,EA5CA,EA4CA,KNjDA,UAAAuH,EAAAlH,IAAA,UAAAkH,EAAAC,GACAA,EAAAnH,QAAAL,KAEAyH,EAAA,aAAE,EAAF,uD","sources":["webpack:///../../../../../../../webpack/universalModuleDefinition","webpack:///../../../../../../../index.js","webpack:///../../../../../../../webpack/bootstrap 373a66ceeef801d639a1","webpack:///../../../../../../../src/index.js","webpack:///../../../../../../../node_modules/process/browser.js","webpack:///../../../../../../../node_modules/element-matches/index.js","webpack:///../../../../../../../node_modules/custom-event-polyfill/polyfill.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VueShortkey\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueShortkey\"] = factory();\n\telse\n\t\troot[\"VueShortkey\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VueShortkey\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueShortkey\"] = factory();\n\telse\n\t\troot[\"VueShortkey\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"../dist/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {var __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(2);\n\n__webpack_require__(3);\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nvar ShortKey = {};\nvar mapFunctions = {};\nvar objAvoided = [];\nvar elementAvoided = [];\nvar keyPressed = false;\n\nvar parseValue = function parseValue(value) {\n value = typeof value === 'string' ? JSON.parse(value.replace(/\\'/gi, '\"')) : value;\n if (value instanceof Array) {\n return { '': value };\n }\n return value;\n};\n\nvar bindValue = function bindValue(value, el, binding, vnode) {\n var push = binding.modifiers.push === true;\n var avoid = binding.modifiers.avoid === true;\n var focus = !binding.modifiers.focus === true;\n var once = binding.modifiers.once === true;\n if (avoid) {\n objAvoided = objAvoided.filter(function (itm) {\n return !itm === el;\n });\n objAvoided.push(el);\n } else {\n mappingFunctions({ b: value, push: push, once: once, focus: focus, el: vnode.elm });\n }\n};\n\nvar unbindValue = function unbindValue(value, el) {\n for (var key in value) {\n var k = ShortKey.encodeKey(value[key]);\n var idxElm = mapFunctions[k].el.indexOf(el);\n if (mapFunctions[k].el.length > 1 && idxElm > -1) {\n mapFunctions[k].el.splice(idxElm, 1);\n } else {\n delete mapFunctions[k];\n }\n }\n};\n\nShortKey.install = function (Vue, options) {\n elementAvoided = [].concat(_toConsumableArray(options && options.prevent ? options.prevent : []));\n Vue.directive('shortkey', {\n bind: function bind(el, binding, vnode) {\n // Mapping the commands\n var value = parseValue(binding.value);\n bindValue(value, el, binding, vnode);\n },\n update: function update(el, binding, vnode) {\n var oldValue = parseValue(binding.oldValue);\n unbindValue(oldValue, el);\n\n var newValue = parseValue(binding.value);\n bindValue(newValue, el, binding, vnode);\n },\n unbind: function unbind(el, binding) {\n var value = parseValue(binding.value);\n unbindValue(value, el);\n }\n });\n};\n\nShortKey.decodeKey = function (pKey) {\n return createShortcutIndex(pKey);\n};\nShortKey.encodeKey = function (pKey) {\n var shortKey = {};\n shortKey.shiftKey = pKey.includes('shift');\n shortKey.ctrlKey = pKey.includes('ctrl');\n shortKey.metaKey = pKey.includes('meta');\n shortKey.altKey = pKey.includes('alt');\n var indexedKeys = createShortcutIndex(shortKey);\n var vKey = pKey.filter(function (item) {\n return !['shift', 'ctrl', 'meta', 'alt'].includes(item);\n });\n indexedKeys += vKey.join('');\n return indexedKeys;\n};\n\nvar createShortcutIndex = function createShortcutIndex(pKey) {\n var k = '';\n if (pKey.key === 'Shift' || pKey.shiftKey) {\n k += 'shift';\n }\n if (pKey.key === 'Control' || pKey.ctrlKey) {\n k += 'ctrl';\n }\n if (pKey.key === 'Meta' || pKey.metaKey) {\n k += 'meta';\n }\n if (pKey.key === 'Alt' || pKey.altKey) {\n k += 'alt';\n }\n if (pKey.key === 'ArrowUp') {\n k += 'arrowup';\n }\n if (pKey.key === 'ArrowLeft') {\n k += 'arrowleft';\n }\n if (pKey.key === 'ArrowRight') {\n k += 'arrowright';\n }\n if (pKey.key === 'ArrowDown') {\n k += 'arrowdown';\n }\n if (pKey.key === 'AltGraph') {\n k += 'altgraph';\n }\n if (pKey.key === 'Escape') {\n k += 'esc';\n }\n if (pKey.key === 'Enter') {\n k += 'enter';\n }\n if (pKey.key === 'Tab') {\n k += 'tab';\n }\n if (pKey.key === ' ') {\n k += 'space';\n }\n if (pKey.key === 'PageUp') {\n k += 'pageup';\n }\n if (pKey.key === 'PageDown') {\n k += 'pagedown';\n }\n if (pKey.key === 'Home') {\n k += 'home';\n }\n if (pKey.key === 'End') {\n k += 'end';\n }\n if (pKey.key === 'Delete') {\n k += 'del';\n }\n if (pKey.key === 'Backspace') {\n k += 'backspace';\n }\n if (pKey.key === 'Insert') {\n k += 'insert';\n }\n if (pKey.key === 'NumLock') {\n k += 'numlock';\n }\n if (pKey.key === 'CapsLock') {\n k += 'capslock';\n }\n if (pKey.key === 'Pause') {\n k += 'pause';\n }\n if (pKey.key === 'ContextMenu') {\n k += 'contextmenu';\n }\n if (pKey.key === 'ScrollLock') {\n k += 'scrolllock';\n }\n if (pKey.key === 'BrowserHome') {\n k += 'browserhome';\n }\n if (pKey.key === 'MediaSelect') {\n k += 'mediaselect';\n }\n if (pKey.key && pKey.key !== ' ' && pKey.key.length === 1 || /F\\d{1,2}|\\//g.test(pKey.key)) k += pKey.key.toLowerCase();\n return k;\n};\n\nvar dispatchShortkeyEvent = function dispatchShortkeyEvent(pKey) {\n var e = new CustomEvent('shortkey', { bubbles: false });\n if (mapFunctions[pKey].key) e.srcKey = mapFunctions[pKey].key;\n var elm = mapFunctions[pKey].el;\n elm[elm.length - 1].dispatchEvent(e);\n};\n\nShortKey.keyDown = function (pKey) {\n if (!mapFunctions[pKey].once && !mapFunctions[pKey].push || mapFunctions[pKey].push && !keyPressed) {\n dispatchShortkeyEvent(pKey);\n }\n};\n\nif (process && Object({\"NODE_ENV\":\"production\"}) && \"production\" !== 'test') {\n ;(function () {\n document.addEventListener('keydown', function (pKey) {\n var decodedKey = ShortKey.decodeKey(pKey);\n // Check avoidable elements\n if (availableElement(decodedKey)) {\n pKey.preventDefault();\n pKey.stopPropagation();\n if (mapFunctions[decodedKey].focus) {\n ShortKey.keyDown(decodedKey);\n keyPressed = true;\n } else if (!keyPressed) {\n var elm = mapFunctions[decodedKey].el;\n elm[elm.length - 1].focus();\n keyPressed = true;\n }\n }\n }, true);\n\n document.addEventListener('keyup', function (pKey) {\n var decodedKey = ShortKey.decodeKey(pKey);\n if (availableElement(decodedKey)) {\n pKey.preventDefault();\n pKey.stopPropagation();\n if (mapFunctions[decodedKey].once || mapFunctions[decodedKey].push) {\n dispatchShortkeyEvent(decodedKey);\n }\n }\n keyPressed = false;\n }, true);\n })();\n}\n\nvar mappingFunctions = function mappingFunctions(_ref) {\n var b = _ref.b,\n push = _ref.push,\n once = _ref.once,\n focus = _ref.focus,\n el = _ref.el;\n\n for (var key in b) {\n var k = ShortKey.encodeKey(b[key]);\n var elm = mapFunctions[k] && mapFunctions[k].el ? mapFunctions[k].el : [];\n elm.push(el);\n mapFunctions[k] = {\n push: push,\n once: once,\n focus: focus,\n key: key,\n el: elm\n };\n }\n};\n\nvar availableElement = function availableElement(decodedKey) {\n var objectIsAvoided = !!objAvoided.find(function (r) {\n return r === document.activeElement;\n });\n var filterAvoided = !!elementAvoided.find(function (selector) {\n return document.activeElement && document.activeElement.matches(selector);\n });\n return !!mapFunctions[decodedKey] && !(objectIsAvoided || filterAvoided);\n};\n\nif (typeof module != 'undefined' && module.exports) {\n module.exports = ShortKey;\n} else if (true) {\n !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n return ShortKey;\n }).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n} else {\n window.ShortKey = ShortKey;\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\nif (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.webkitMatchesSelector;\n}\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n// Polyfill for creating CustomEvents on IE9/10/11\n\n// code pulled from:\n// https://github.com/d4tocchini/customevent-polyfill\n// https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent#Polyfill\n\n(function() {\n if (typeof window === 'undefined') {\n return;\n }\n\n try {\n var ce = new window.CustomEvent('test', { cancelable: true });\n ce.preventDefault();\n if (ce.defaultPrevented !== true) {\n // IE has problems with .preventDefault() on custom events\n // http://stackoverflow.com/questions/23349191\n throw new Error('Could not prevent default');\n }\n } catch (e) {\n var CustomEvent = function(event, params) {\n var evt, origPrevent;\n params = params || {};\n params.bubbles = !!params.bubbles;\n params.cancelable = !!params.cancelable;\n\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(\n event,\n params.bubbles,\n params.cancelable,\n params.detail\n );\n origPrevent = evt.preventDefault;\n evt.preventDefault = function() {\n origPrevent.call(this);\n try {\n Object.defineProperty(this, 'defaultPrevented', {\n get: function() {\n return true;\n }\n });\n } catch (e) {\n this.defaultPrevented = true;\n }\n };\n return evt;\n };\n\n CustomEvent.prototype = window.Event.prototype;\n window.CustomEvent = CustomEvent; // expose definition to window\n }\n})();\n\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// index.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"../dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 373a66ceeef801d639a1","import 'element-matches';\nimport 'custom-event-polyfill';\n\nlet ShortKey = {}\nlet mapFunctions = {}\nlet objAvoided = []\nlet elementAvoided = []\nlet keyPressed = false\n\nconst parseValue = (value) => {\n value = typeof value === 'string' ? JSON.parse(value.replace(/\\'/gi, '\"')) : value\n if (value instanceof Array) {\n return {'': value};\n }\n return value\n}\n\nconst bindValue = (value, el, binding, vnode) => {\n const push = binding.modifiers.push === true\n const avoid = binding.modifiers.avoid === true\n const focus = !binding.modifiers.focus === true\n const once = binding.modifiers.once === true\n if (avoid) {\n objAvoided = objAvoided.filter((itm) => {\n return !itm === el;\n })\n objAvoided.push(el)\n } else {\n mappingFunctions({b: value, push, once, focus, el: vnode.elm})\n }\n}\n\nconst unbindValue = (value, el) => {\n for (let key in value) {\n const k = ShortKey.encodeKey(value[key])\n const idxElm = mapFunctions[k].el.indexOf(el)\n if (mapFunctions[k].el.length > 1 && idxElm > -1) {\n mapFunctions[k].el.splice(idxElm, 1)\n } else {\n delete mapFunctions[k]\n }\n }\n}\n\nShortKey.install = (Vue, options) => {\n elementAvoided = [...(options && options.prevent ? options.prevent : [])]\n Vue.directive('shortkey', {\n bind: (el, binding, vnode) => {\n // Mapping the commands\n const value = parseValue(binding.value)\n bindValue(value, el, binding, vnode)\n },\n update: (el, binding, vnode) => {\n const oldValue = parseValue(binding.oldValue)\n unbindValue(oldValue, el)\n\n const newValue = parseValue(binding.value)\n bindValue(newValue, el, binding, vnode)\n },\n unbind: (el, binding) => {\n const value = parseValue(binding.value)\n unbindValue(value, el)\n }\n })\n}\n\nShortKey.decodeKey = (pKey) => createShortcutIndex(pKey)\nShortKey.encodeKey = (pKey) => {\n const shortKey = {}\n shortKey.shiftKey = pKey.includes('shift')\n shortKey.ctrlKey = pKey.includes('ctrl')\n shortKey.metaKey = pKey.includes('meta')\n shortKey.altKey = pKey.includes('alt')\n let indexedKeys = createShortcutIndex(shortKey)\n const vKey = pKey.filter((item) => !['shift', 'ctrl', 'meta', 'alt'].includes(item))\n indexedKeys += vKey.join('')\n return indexedKeys\n}\n\nconst createShortcutIndex = (pKey) => {\n let k = ''\n if (pKey.key === 'Shift' || pKey.shiftKey) { k += 'shift' }\n if (pKey.key === 'Control' || pKey.ctrlKey) { k += 'ctrl' }\n if (pKey.key === 'Meta'|| pKey.metaKey) { k += 'meta' }\n if (pKey.key === 'Alt' || pKey.altKey) { k += 'alt' }\n if (pKey.key === 'ArrowUp') { k += 'arrowup' }\n if (pKey.key === 'ArrowLeft') { k += 'arrowleft' }\n if (pKey.key === 'ArrowRight') { k += 'arrowright' }\n if (pKey.key === 'ArrowDown') { k += 'arrowdown' }\n if (pKey.key === 'AltGraph') { k += 'altgraph' }\n if (pKey.key === 'Escape') { k += 'esc' }\n if (pKey.key === 'Enter') { k += 'enter' }\n if (pKey.key === 'Tab') { k += 'tab' }\n if (pKey.key === ' ') { k += 'space' }\n if (pKey.key === 'PageUp') { k += 'pageup' }\n if (pKey.key === 'PageDown') { k += 'pagedown' }\n if (pKey.key === 'Home') { k += 'home' }\n if (pKey.key === 'End') { k += 'end' }\n if (pKey.key === 'Delete') { k += 'del' }\n if (pKey.key === 'Backspace') { k += 'backspace' }\n if (pKey.key === 'Insert') { k += 'insert' }\n if (pKey.key === 'NumLock') { k += 'numlock' }\n if (pKey.key === 'CapsLock') { k += 'capslock' }\n if (pKey.key === 'Pause') { k += 'pause' }\n if (pKey.key === 'ContextMenu') { k += 'contextmenu' }\n if (pKey.key === 'ScrollLock') { k += 'scrolllock' }\n if (pKey.key === 'BrowserHome') { k += 'browserhome' }\n if (pKey.key === 'MediaSelect') { k += 'mediaselect' }\n if ((pKey.key && pKey.key !== ' ' && pKey.key.length === 1) || /F\\d{1,2}|\\//g.test(pKey.key)) k += pKey.key.toLowerCase()\n return k\n}\n\nconst dispatchShortkeyEvent = (pKey) => {\n const e = new CustomEvent('shortkey', { bubbles: false })\n if (mapFunctions[pKey].key) e.srcKey = mapFunctions[pKey].key\n const elm = mapFunctions[pKey].el\n elm[elm.length - 1].dispatchEvent(e)\n}\n\nShortKey.keyDown = (pKey) => {\n if ((!mapFunctions[pKey].once && !mapFunctions[pKey].push) || (mapFunctions[pKey].push && !keyPressed)) {\n dispatchShortkeyEvent(pKey)\n }\n}\n\nif (process && process.env && process.env.NODE_ENV !== 'test') {\n ;(function () {\n document.addEventListener('keydown', (pKey) => {\n const decodedKey = ShortKey.decodeKey(pKey)\n // Check avoidable elements\n if (availableElement(decodedKey)) {\n pKey.preventDefault()\n pKey.stopPropagation()\n if (mapFunctions[decodedKey].focus) {\n ShortKey.keyDown(decodedKey)\n keyPressed = true\n } else if (!keyPressed) {\n const elm = mapFunctions[decodedKey].el\n elm[elm.length - 1].focus()\n keyPressed = true\n }\n }\n }, true)\n\n document.addEventListener('keyup', (pKey) => {\n const decodedKey = ShortKey.decodeKey(pKey)\n if (availableElement(decodedKey)) {\n pKey.preventDefault()\n pKey.stopPropagation()\n if (mapFunctions[decodedKey].once || mapFunctions[decodedKey].push) {\n dispatchShortkeyEvent(decodedKey);\n }\n }\n keyPressed = false\n }, true)\n })()\n}\n\nconst mappingFunctions = ({b, push, once, focus, el}) => {\n for (let key in b) {\n const k = ShortKey.encodeKey(b[key])\n const elm = mapFunctions[k] && mapFunctions[k].el ? mapFunctions[k].el : []\n elm.push(el)\n mapFunctions[k] = {\n push,\n once,\n focus,\n key,\n el: elm\n }\n }\n}\n\nconst availableElement = (decodedKey) => {\n const objectIsAvoided = !!objAvoided.find(r => r === document.activeElement)\n const filterAvoided = !!(elementAvoided.find(selector => document.activeElement && document.activeElement.matches(selector)))\n return !!mapFunctions[decodedKey] && !(objectIsAvoided || filterAvoided)\n}\n\nif (typeof module != 'undefined' && module.exports) {\n module.exports = ShortKey;\n} else if (typeof define == 'function' && define.amd) {\n define( function () { return ShortKey; } );\n} else {\n window.ShortKey = ShortKey;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/process/browser.js\n// module id = 1\n// module chunks = 0","if (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.webkitMatchesSelector;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/element-matches/index.js\n// module id = 2\n// module chunks = 0","// Polyfill for creating CustomEvents on IE9/10/11\n\n// code pulled from:\n// https://github.com/d4tocchini/customevent-polyfill\n// https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent#Polyfill\n\n(function() {\n if (typeof window === 'undefined') {\n return;\n }\n\n try {\n var ce = new window.CustomEvent('test', { cancelable: true });\n ce.preventDefault();\n if (ce.defaultPrevented !== true) {\n // IE has problems with .preventDefault() on custom events\n // http://stackoverflow.com/questions/23349191\n throw new Error('Could not prevent default');\n }\n } catch (e) {\n var CustomEvent = function(event, params) {\n var evt, origPrevent;\n params = params || {};\n params.bubbles = !!params.bubbles;\n params.cancelable = !!params.cancelable;\n\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(\n event,\n params.bubbles,\n params.cancelable,\n params.detail\n );\n origPrevent = evt.preventDefault;\n evt.preventDefault = function() {\n origPrevent.call(this);\n try {\n Object.defineProperty(this, 'defaultPrevented', {\n get: function() {\n return true;\n }\n });\n } catch (e) {\n this.defaultPrevented = true;\n }\n };\n return evt;\n };\n\n CustomEvent.prototype = window.Event.prototype;\n window.CustomEvent = CustomEvent; // expose definition to window\n }\n})();\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/custom-event-polyfill/polyfill.js\n// module id = 3\n// module chunks = 0"],"names":["t","self","e","r","n","exports","o","i","l","call","m","c","d","Object","defineProperty","configurable","enumerable","get","__esModule","prototype","hasOwnProperty","p","s","u","a","f","JSON","parse","replace","Array","modifiers","push","avoid","focus","once","filter","v","b","el","elm","y","encodeKey","indexOf","length","splice","install","concat","isArray","from","prevent","directive","bind","value","update","oldValue","unbind","decodeKey","shiftKey","includes","ctrlKey","metaKey","altKey","join","key","test","toLowerCase","h","CustomEvent","bubbles","srcKey","dispatchEvent","keyDown","NODE_ENV","document","addEventListener","preventDefault","stopPropagation","find","activeElement","matches","Error","setTimeout","run","clearTimeout","fun","array","nextTick","arguments","apply","title","browser","env","argv","version","versions","on","addListener","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","umask","Element","matchesSelector","msMatchesSelector","webkitMatchesSelector","window","cancelable","defaultPrevented","createEvent","initCustomEvent","detail","Event","_typeof","module","define"],"sourceRoot":""}