{"version":3,"sources":["webpack:///index.js","webpack:///webpack/bootstrap 43ad23118a6ccd747018","webpack:///./src/index.js","webpack:///./src/utils.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","_typeof","Symbol","iterator","obj","constructor","_utils","defaultOptions","passive","capture","supportedPassiveTypes","getDefaultPassiveOption","eventName","undefined","indexOf","getWritableOptions","options","passiveDescriptor","getOwnPropertyDescriptor","writable","set","assign","eventListenerOptionsSupported","addEvent","EventTarget","addEventListener","superMethod","type","listener","usesListenerOptions","useCapture","this","_original","value","supported","opts","window","removeEventListener","e"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAI,EAAAJ,EACAK,GAAA,EACAH,WAUA,OANAJ,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,GAAA,EAGAF,EAAAD,QAvBA,GAAAD,KA4BAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,SAAAP,EAAAQ,EAAAC,GACAZ,EAAAa,EAAAV,EAAAQ,IACAG,OAAAC,eAAAZ,EAAAQ,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAAf,GACA,GAAAQ,GAAAR,KAAAgB,WACA,WAA2B,MAAAhB,GAAA,SAC3B,WAAiC,MAAAA,GAEjC,OADAJ,GAAAU,EAAAE,EAAA,IAAAA,GACAA,GAIAZ,EAAAa,EAAA,SAAAQ,EAAAC,GAAsD,MAAAR,QAAAS,UAAAC,eAAAjB,KAAAc,EAAAC,IAGtDtB,EAAAyB,EAAA,GAGAzB,IAAA0B,EAAA,KDMM,SAAUtB,EAAQD,EAASH,GAEjC,YAGA,IAAI2B,GAA4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AAmB,WACrCG,IADgD,WAE9C0C,GAAY,IAIhBE,QAAOX,iBAAiB,OAAQ,KAAMU,GACtCC,OAAOC,oBAAoB,OAAQ,KAAMF,GACzC,MAAOG,IAET,MAAOJ","file":"index.js","sourcesContent":["/******/ (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 = \"\";\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\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _utils = __webpack_require__(1);\n\nvar defaultOptions = {\n passive: true,\n capture: false\n};\nvar supportedPassiveTypes = ['scroll', 'wheel', 'touchstart', 'touchmove', 'touchenter', 'touchend', 'touchleave', 'mouseout', 'mouseleave', 'mouseup', 'mousedown', 'mousemove', 'mouseenter', 'mousewheel', 'mouseover'];\nvar getDefaultPassiveOption = function getDefaultPassiveOption(passive, eventName) {\n if (passive !== undefined) return passive;\n\n return supportedPassiveTypes.indexOf(eventName) === -1 ? false : defaultOptions.passive;\n};\n\nvar getWritableOptions = function getWritableOptions(options) {\n var passiveDescriptor = Object.getOwnPropertyDescriptor(options, 'passive');\n\n return passiveDescriptor && passiveDescriptor.writable !== true && passiveDescriptor.set === undefined ? Object.assign({}, options) : options;\n};\n\nvar overwriteAddEvent = function overwriteAddEvent(superMethod) {\n EventTarget.prototype.addEventListener = function (type, listener, options) {\n var usesListenerOptions = (typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object' && options !== null;\n var useCapture = usesListenerOptions ? options.capture : options;\n\n options = usesListenerOptions ? getWritableOptions(options) : {};\n options.passive = getDefaultPassiveOption(options.passive, type);\n options.capture = useCapture === undefined ? defaultOptions.capture : useCapture;\n\n superMethod.call(this, type, listener, options);\n };\n\n EventTarget.prototype.addEventListener._original = superMethod;\n};\n\nvar supportsPassive = (0, _utils.eventListenerOptionsSupported)();\n\nif (supportsPassive) {\n var addEvent = EventTarget.prototype.addEventListener;\n overwriteAddEvent(addEvent);\n}\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar eventListenerOptionsSupported = exports.eventListenerOptionsSupported = function eventListenerOptionsSupported() {\n var supported = false;\n\n try {\n var opts = Object.defineProperty({}, 'passive', {\n get: function get() {\n supported = true;\n }\n });\n\n window.addEventListener('test', null, opts);\n window.removeEventListener('test', null, opts);\n } catch (e) {}\n\n return supported;\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 = \"\";\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 43ad23118a6ccd747018","import { eventListenerOptionsSupported } from './utils';\r\n\r\nconst defaultOptions = {\r\n passive: true,\r\n capture: false\r\n};\r\nconst supportedPassiveTypes = [\r\n 'scroll', 'wheel',\r\n 'touchstart', 'touchmove', 'touchenter', 'touchend', 'touchleave',\r\n 'mouseout', 'mouseleave', 'mouseup', 'mousedown', 'mousemove', 'mouseenter', 'mousewheel', 'mouseover'\r\n];\r\nconst getDefaultPassiveOption = (passive, eventName) => {\r\n if (passive !== undefined) return passive;\r\n\r\n return supportedPassiveTypes.indexOf(eventName) === -1 ? false : defaultOptions.passive;\r\n};\r\n\r\nconst getWritableOptions = (options) => {\r\n const passiveDescriptor = Object.getOwnPropertyDescriptor(options, 'passive');\r\n \r\n return passiveDescriptor && passiveDescriptor.writable !== true && passiveDescriptor.set === undefined\r\n ? Object.assign({}, options)\r\n : options;\r\n};\r\n\r\nconst overwriteAddEvent = (superMethod) => {\r\n EventTarget.prototype.addEventListener = function (type, listener, options) {\r\n const usesListenerOptions = typeof options === 'object' && options !== null;\r\n const useCapture = usesListenerOptions ? options.capture : options;\r\n\r\n options = usesListenerOptions ? getWritableOptions(options) : {};\r\n options.passive = getDefaultPassiveOption(options.passive, type);\r\n options.capture = useCapture === undefined ? defaultOptions.capture : useCapture;\r\n\r\n superMethod.call(this, type, listener, options);\r\n };\r\n\r\n EventTarget.prototype.addEventListener._original = superMethod;\r\n};\r\n\r\nconst supportsPassive = eventListenerOptionsSupported();\r\n\r\nif (supportsPassive) {\r\n const addEvent = EventTarget.prototype.addEventListener;\r\n overwriteAddEvent(addEvent);\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","export const eventListenerOptionsSupported = () => {\r\n let supported = false;\r\n\r\n try {\r\n const opts = Object.defineProperty({}, 'passive', {\r\n get() {\r\n supported = true;\r\n }\r\n });\r\n\r\n window.addEventListener('test', null, opts);\r\n window.removeEventListener('test', null, opts);\r\n } catch (e) {}\r\n\r\n return supported;\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils.js"],"sourceRoot":""}