1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-19 06:47:00 +02:00
TableFilter/dist/tablefilter/tablefilter.js

16329 lines
1.9 MiB
JavaScript
Raw Normal View History

2019-09-06 06:15:54 +02:00
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/
/******/
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];
/******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if(installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ modules[moduleId] = moreModules[moduleId];
/******/ }
/******/ }
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
/******/
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/
/******/ };
/******/
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // Promise = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
/******/ "main": 0
/******/ };
/******/
/******/
/******/
/******/ // script path function
/******/ function jsonpScriptSrc(chunkId) {
2019-10-21 05:20:42 +02:00
/******/ return __webpack_require__.p + "tf-" + ({}[chunkId]||chunkId) + "-" + {"0":"48a4d967d43fda98bad8"}[chunkId] + ".js"
2019-09-06 06:15:54 +02:00
/******/ }
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ var promises = [];
/******/
/******/
/******/ // JSONP chunk loading for javascript
/******/
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunkData) {
/******/ promises.push(installedChunkData[2]);
/******/ } else {
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ promises.push(installedChunkData[2] = promise);
/******/
/******/ // start chunk loading
/******/ var script = document.createElement('script');
/******/ var onScriptComplete;
/******/
/******/ script.charset = 'utf-8';
/******/ script.timeout = 120;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = jsonpScriptSrc(chunkId);
/******/
/******/ // create error before stack unwound to get useful stacktrace later
/******/ var error = new Error();
/******/ onScriptComplete = function (event) {
/******/ // avoid mem leaks in IE.
/******/ script.onerror = script.onload = null;
/******/ clearTimeout(timeout);
/******/ var chunk = installedChunks[chunkId];
/******/ if(chunk !== 0) {
/******/ if(chunk) {
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
/******/ var realSrc = event && event.target && event.target.src;
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
/******/ error.name = 'ChunkLoadError';
/******/ error.type = errorType;
/******/ error.request = realSrc;
/******/ chunk[1](error);
/******/ }
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ var timeout = setTimeout(function(){
/******/ onScriptComplete({ type: 'timeout', target: script });
/******/ }, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
/******/ document.head.appendChild(script);
/******/ }
/******/ }
/******/ return Promise.all(promises);
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // on error function for async loading
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ jsonpArray.push = webpackJsonpCallback;
/******/ jsonpArray = jsonpArray.slice();
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
/******/ var parentJsonpFunction = oldJsonpFunction;
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "./src/tablefilter.js");
/******/ })
/************************************************************************/
/******/ ({
/***/ "./node_modules/diacritics/index.js":
/*!******************************************!*\
!*** ./node_modules/diacritics/index.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
exports.remove = removeDiacritics;
var replacementList = [
{
base: ' ',
chars: "\u00A0",
}, {
base: '0',
chars: "\u07C0",
}, {
base: 'A',
chars: "\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F",
}, {
base: 'AA',
chars: "\uA732",
}, {
base: 'AE',
chars: "\u00C6\u01FC\u01E2",
}, {
base: 'AO',
chars: "\uA734",
}, {
base: 'AU',
chars: "\uA736",
}, {
base: 'AV',
chars: "\uA738\uA73A",
}, {
base: 'AY',
chars: "\uA73C",
}, {
base: 'B',
chars: "\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0181",
}, {
base: 'C',
chars: "\u24b8\uff23\uA73E\u1E08\u0106\u0043\u0108\u010A\u010C\u00C7\u0187\u023B",
}, {
base: 'D',
chars: "\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018A\u0189\u1D05\uA779",
}, {
base: 'Dh',
chars: "\u00D0",
}, {
base: 'DZ',
chars: "\u01F1\u01C4",
}, {
base: 'Dz',
chars: "\u01F2\u01C5",
}, {
base: 'E',
chars: "\u025B\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E\u1D07",
}, {
base: 'F',
chars: "\uA77C\u24BB\uFF26\u1E1E\u0191\uA77B",
}, {
base: 'G',
chars: "\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E\u0262",
}, {
base: 'H',
chars: "\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D",
}, {
base: 'I',
chars: "\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197",
}, {
base: 'J',
chars: "\u24BF\uFF2A\u0134\u0248\u0237",
}, {
base: 'K',
chars: "\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2",
}, {
base: 'L',
chars: "\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780",
}, {
base: 'LJ',
chars: "\u01C7",
}, {
base: 'Lj',
chars: "\u01C8",
}, {
base: 'M',
chars: "\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C\u03FB",
}, {
base: 'N',
chars: "\uA7A4\u0220\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u019D\uA790\u1D0E",
}, {
base: 'NJ',
chars: "\u01CA",
}, {
base: 'Nj',
chars: "\u01CB",
}, {
base: 'O',
chars: "\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C",
}, {
base: 'OE',
chars: "\u0152",
}, {
base: 'OI',
chars: "\u01A2",
}, {
base: 'OO',
chars: "\uA74E",
}, {
base: 'OU',
chars: "\u0222",
}, {
base: 'P',
chars: "\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754",
}, {
base: 'Q',
chars: "\u24C6\uFF31\uA756\uA758\u024A",
}, {
base: 'R',
chars: "\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782",
}, {
base: 'S',
chars: "\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784",
}, {
base: 'T',
chars: "\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786",
}, {
base: 'Th',
chars: "\u00DE",
}, {
base: 'TZ',
chars: "\uA728",
}, {
base: 'U',
chars: "\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244",
}, {
base: 'V',
chars: "\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245",
}, {
base: 'VY',
chars: "\uA760",
}, {
base: 'W',
chars: "\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72",
}, {
base: 'X',
chars: "\u24CD\uFF38\u1E8A\u1E8C",
}, {
base: 'Y',
chars: "\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE",
}, {
base: 'Z',
chars: "\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762",
}, {
base: 'a',
chars: "\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250\u0251",
}, {
base: 'aa',
chars: "\uA733",
}, {
base: 'ae',
chars: "\u00E6\u01FD\u01E3",
}, {
base: 'ao',
chars: "\uA735",
}, {
base: 'au',
chars: "\uA737",
}, {
base: 'av',
chars: "\uA739\uA73B",
}, {
base: 'ay',
chars: "\uA73D",
}, {
base: 'b',
chars: "\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253\u0182",
}, {
base: 'c',
chars: "\uFF43\u24D2\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184",
}, {
base: 'd',
chars: "\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\u018B\u13E7\u0501\uA7AA",
}, {
base: 'dh',
chars: "\u00F0",
}, {
base: 'dz',
chars: "\u01F3\u01C6",
}, {
base: 'e',
chars: "\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u01DD",
}, {
base: 'f',
chars: "\u24D5\uFF46\u1E1F\u0192",
}, {
base: 'ff',
chars: "\uFB00",
}, {
base: 'fi',
chars: "\uFB01",
}, {
base: 'fl',
chars: "\uFB02",
}, {
base: 'ffi',
chars: "\uFB03",
}, {
base: 'ffl',
chars: "\uFB04",
}, {
base: 'g',
chars: "\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\uA77F\u1D79",
}, {
base: 'h',
chars: "\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265",
}, {
base: 'hv',
chars: "\u0195",
}, {
base: 'i',
chars: "\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131",
}, {
base: 'j',
chars: "\u24D9\uFF4A\u0135\u01F0\u0249",
}, {
base: 'k',
chars: "\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3",
}, {
base: 'l',
chars: "\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747\u026D",
}, {
base: 'lj',
chars: "\u01C9",
}, {
base: 'm',
chars: "\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F",
}, {
base: 'n',
chars: "\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u043B\u0509",
}, {
base: 'nj',
chars: "\u01CC",
}, {
base: 'o',
chars: "\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\uA74B\uA74D\u0275\u0254\u1D11",
}, {
base: 'oe',
chars: "\u0153",
}, {
base: 'oi',
chars: "\u01A3",
}, {
base: 'oo',
chars: "\uA74F",
}, {
base: 'ou',
chars: "\u0223",
}, {
base: 'p',
chars: "\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755\u03C1",
}, {
base: 'q',
chars: "\u24E0\uFF51\u024B\uA757\uA759",
}, {
base: 'r',
chars: "\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783",
}, {
base: 's',
chars: "\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u0282",
}, {
base: 'ss',
chars: "\xDF",
}, {
base: 't',
chars: "\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787",
}, {
base: 'th',
chars: "\u00FE",
}, {
base: 'tz',
chars: "\uA729",
}, {
base: 'u',
chars: "\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289",
}, {
base: 'v',
chars: "\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C",
}, {
base: 'vy',
chars: "\uA761",
}, {
base: 'w',
chars: "\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73",
}, {
base: 'x',
chars: "\u24E7\uFF58\u1E8B\u1E8D",
}, {
base: 'y',
chars: "\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF",
}, {
base: 'z',
chars: "\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763",
}
];
var diacriticsMap = {};
for (var i = 0; i < replacementList.length; i += 1) {
var chars = replacementList[i].chars;
for (var j = 0; j < chars.length; j += 1) {
diacriticsMap[chars[j]] = replacementList[i].base;
}
}
function removeDiacritics(str) {
return str.replace(/[^\u0000-\u007e]/g, function(c) {
return diacriticsMap[c] || c;
});
}
exports.replacementList = replacementList;
exports.diacriticsMap = diacriticsMap;
/***/ }),
/***/ "./node_modules/sugar-core/sugar-core.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-core/sugar-core.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {/*
* Sugar v2.0.6
*
* Freely distributable and licensed under the MIT-style license.
* Copyright (c) Andrew Plummer
* https://sugarjs.com/
*
* ---------------------------- */
(function() {
'use strict';
/***
* @module Core
* @description Core functionality including the ability to define methods and
* extend onto natives.
*
***/
// The global to export.
var Sugar;
// The name of Sugar in the global namespace.
var SUGAR_GLOBAL = 'Sugar';
// Natives available on initialization. Letting Object go first to ensure its
// global is set by the time the rest are checking for chainable Object methods.
var NATIVE_NAMES = 'Object Number String Array Date RegExp Function';
// Static method flag
var STATIC = 0x1;
// Instance method flag
var INSTANCE = 0x2;
// IE8 has a broken defineProperty but no defineProperties so this saves a try/catch.
var PROPERTY_DESCRIPTOR_SUPPORT = !!(Object.defineProperty && Object.defineProperties);
var globalContext = getGlobal();
// Whether object instance methods can be mapped to the prototype.
var allowObjectPrototype = false;
// A map from Array to SugarArray.
var namespacesByName = {};
// A map from [object Object] to namespace.
var namespacesByClassString = {};
// Defining properties.
// istanbul ignore next
var defineProperty = PROPERTY_DESCRIPTOR_SUPPORT ? Object.defineProperty : definePropertyShim;
// A default chainable class for unknown types.
var DefaultChainable = getNewChainableClass('Chainable');
// Global methods
function getGlobal() {
// Get global context by keyword here to avoid issues with libraries
// that can potentially alter this script's context object.
return testGlobal(typeof global !== 'undefined' && global) ||
testGlobal(typeof window !== 'undefined' && window);
}
function testGlobal(obj) {
// Note that Rhino uses a different "global" keyword so perform an
// extra check here to ensure that it's actually the global object.
return obj && obj.Object === Object ? obj : null;
}
function setupGlobal() {
Sugar = globalContext[SUGAR_GLOBAL];
// istanbul ignore if
if (Sugar) {
// Reuse already defined Sugar global object.
return;
}
Sugar = function(arg) {
forEachProperty(Sugar, function(sugarNamespace, name) {
// Although only the only enumerable properties on the global
// object are Sugar namespaces, environments that can't set
// non-enumerable properties will step through the utility methods
// as well here, so use this check to only allow true namespaces.
if (hasOwn(namespacesByName, name)) {
sugarNamespace.extend(arg);
}
});
return Sugar;
};
// istanbul ignore else
if ( true && module.exports) {
// Node or webpack environment
module.exports = Sugar;
} else {
// Unwrapped browser environment
try {
globalContext[SUGAR_GLOBAL] = Sugar;
} catch (e) {
// Contexts such as QML have a read-only global context.
}
}
forEachProperty(NATIVE_NAMES.split(' '), function(name) {
createNamespace(name);
});
setGlobalProperties();
}
/***
* @method createNamespace(name)
* @returns SugarNamespace
* @namespace Sugar
* @short Creates a new Sugar namespace.
* @extra This method is for plugin developers who want to define methods to be
* used with natives that Sugar does not handle by default. The new
* namespace will appear on the `Sugar` global with all the methods of
* normal namespaces, including the ability to define new methods. When
* extended, any defined methods will be mapped to `name` in the global
* context.
*
* @example
*
* Sugar.createNamespace('Boolean');
*
* @param {string} name - The namespace name.
*
***/
function createNamespace(name) {
// Is the current namespace Object?
var isObject = name === 'Object';
// A Sugar namespace is also a chainable class: Sugar.Array, etc.
var sugarNamespace = getNewChainableClass(name, true);
/***
* @method extend([opts])
* @returns Sugar
* @namespace Sugar
* @short Extends Sugar defined methods onto natives.
* @extra This method can be called on individual namespaces like
* `Sugar.Array` or on the `Sugar` global itself, in which case
* [opts] will be forwarded to each `extend` call. For more,
* see `extending`.
*
* @options
*
* methods An array of method names to explicitly extend.
*
* except An array of method names or global namespaces (`Array`,
* `String`) to explicitly exclude. Namespaces should be the
* actual global objects, not strings.
*
* namespaces An array of global namespaces (`Array`, `String`) to
* explicitly extend. Namespaces should be the actual
* global objects, not strings.
*
* enhance A shortcut to disallow all "enhance" flags at once
* (flags listed below). For more, see `enhanced methods`.
* Default is `true`.
*
* enhanceString A boolean allowing String enhancements. Default is `true`.
*
* enhanceArray A boolean allowing Array enhancements. Default is `true`.
*
* objectPrototype A boolean allowing Sugar to extend Object.prototype
* with instance methods. This option is off by default
* and should generally not be used except with caution.
* For more, see `object methods`.
*
* @example
*
* Sugar.Array.extend();
* Sugar.extend();
*
* @option {Array<string>} [methods]
* @option {Array<string|NativeConstructor>} [except]
* @option {Array<NativeConstructor>} [namespaces]
* @option {boolean} [enhance]
* @option {boolean} [enhanceString]
* @option {boolean} [enhanceArray]
* @option {boolean} [objectPrototype]
* @param {ExtendOptions} [opts]
*
***
* @method extend([opts])
* @returns SugarNamespace
* @namespace SugarNamespace
* @short Extends Sugar defined methods for a specific namespace onto natives.
* @param {ExtendOptions} [opts]
*
***/
var extend = function (opts) {
var nativeClass = globalContext[name], nativeProto = nativeClass.prototype;
var staticMethods = {}, instanceMethods = {}, methodsByName;
function objectRestricted(name, target) {
return isObject && target === nativeProto &&
(!allowObjectPrototype || name === 'get' || name === 'set');
}
function arrayOptionExists(field, val) {
var arr = opts[field];
if (arr) {
for (var i = 0, el; el = arr[i]; i++) {
if (el === val) {
return true;
}
}
}
return false;
}
function arrayOptionExcludes(field, val) {
return opts[field] && !arrayOptionExists(field, val);
}
function disallowedByFlags(methodName, target, flags) {
// Disallowing methods by flag currently only applies if methods already
// exist to avoid enhancing native methods, as aliases should still be
// extended (i.e. Array#all should still be extended even if Array#every
// is being disallowed by a flag).
if (!target[methodName] || !flags) {
return false;
}
for (var i = 0; i < flags.length; i++) {
if (opts[flags[i]] === false) {
return true;
}
}
}
function namespaceIsExcepted() {
return arrayOptionExists('except', nativeClass) ||
arrayOptionExcludes('namespaces', nativeClass);
}
function methodIsExcepted(methodName) {
return arrayOptionExists('except', methodName);
}
function canExtend(methodName, method, target) {
return !objectRestricted(methodName, target) &&
!disallowedByFlags(methodName, target, method.flags) &&
!methodIsExcepted(methodName);
}
opts = opts || {};
methodsByName = opts.methods;
if (namespaceIsExcepted()) {
return;
} else if (isObject && typeof opts.objectPrototype === 'boolean') {
// Store "objectPrototype" flag for future reference.
allowObjectPrototype = opts.objectPrototype;
}
forEachProperty(methodsByName || sugarNamespace, function(method, methodName) {
if (methodsByName) {
// If we have method names passed in an array,
// then we need to flip the key and value here
// and find the method in the Sugar namespace.
methodName = method;
method = sugarNamespace[methodName];
}
if (hasOwn(method, 'instance') && canExtend(methodName, method, nativeProto)) {
instanceMethods[methodName] = method.instance;
}
if(hasOwn(method, 'static') && canExtend(methodName, method, nativeClass)) {
staticMethods[methodName] = method;
}
});
// Accessing the extend target each time instead of holding a reference as
// it may have been overwritten (for example Date by Sinon). Also need to
// access through the global to allow extension of user-defined namespaces.
extendNative(nativeClass, staticMethods);
extendNative(nativeProto, instanceMethods);
if (!methodsByName) {
// If there are no method names passed, then
// all methods in the namespace will be extended
// to the native. This includes all future defined
// methods, so add a flag here to check later.
setProperty(sugarNamespace, 'active', true);
}
return sugarNamespace;
};
function defineWithOptionCollect(methodName, instance, args) {
setProperty(sugarNamespace, methodName, function(arg1, arg2, arg3) {
var opts = collectDefineOptions(arg1, arg2, arg3);
defineMethods(sugarNamespace, opts.methods, instance, args, opts.last);
return sugarNamespace;
});
}
/***
* @method defineStatic(methods)
* @returns SugarNamespace
* @namespace SugarNamespace
* @short Defines static methods on the namespace that can later be extended
* onto the native globals.
* @extra Accepts either a single object mapping names to functions, or name
* and function as two arguments. If `extend` was previously called
* with no arguments, the method will be immediately mapped to its
* native when defined.
*
* @example
*
* Sugar.Number.defineStatic({
* isOdd: function (num) {
* return num % 2 === 1;
* }
* });
*
* @signature defineStatic(methodName, methodFn)
* @param {Object} methods - Methods to be defined.
* @param {string} methodName - Name of a single method to be defined.
* @param {Function} methodFn - Function body of a single method to be defined.
***/
defineWithOptionCollect('defineStatic', STATIC);
/***
* @method defineInstance(methods)
* @returns SugarNamespace
* @namespace SugarNamespace
* @short Defines methods on the namespace that can later be extended as
* instance methods onto the native prototype.
* @extra Accepts either a single object mapping names to functions, or name
* and function as two arguments. All functions should accept the
* native for which they are mapped as their first argument, and should
* never refer to `this`. If `extend` was previously called with no
* arguments, the method will be immediately mapped to its native when
* defined.
*
* Methods cannot accept more than 4 arguments in addition to the
* native (5 arguments total). Any additional arguments will not be
* mapped. If the method needs to accept unlimited arguments, use
* `defineInstanceWithArguments`. Otherwise if more options are
* required, use an options object instead.
*
* @example
*
* Sugar.Number.defineInstance({
* square: function (num) {
* return num * num;
* }
* });
*
* @signature defineInstance(methodName, methodFn)
* @param {Object} methods - Methods to be defined.
* @param {string} methodName - Name of a single method to be defined.
* @param {Function} methodFn - Function body of a single method to be defined.
***/
defineWithOptionCollect('defineInstance', INSTANCE);
/***
* @method defineInstanceAndStatic(methods)
* @returns SugarNamespace
* @namespace SugarNamespace
* @short A shortcut to define both static and instance methods on the namespace.
* @extra This method is intended for use with `Object` instance methods. Sugar
* will not map any methods to `Object.prototype` by default, so defining
* instance methods as static helps facilitate their proper use.
*
* @example
*
* Sugar.Object.defineInstanceAndStatic({
* isAwesome: function (obj) {
* // check if obj is awesome!
* }
* });
*
* @signature defineInstanceAndStatic(methodName, methodFn)
* @param {Object} methods - Methods to be defined.
* @param {string} methodName - Name of a single method to be defined.
* @param {Function} methodFn - Function body of a single method to be defined.
***/
defineWithOptionCollect('defineInstanceAndStatic', INSTANCE | STATIC);
/***
* @method defineStaticWithArguments(methods)
* @returns SugarNamespace
* @namespace SugarNamespace
* @short Defines static methods that collect arguments.
* @extra This method is identical to `defineStatic`, except that when defined
* methods are called, they will collect any arguments past `n - 1`,
* where `n` is the number of arguments that the method accepts.
* Collected arguments will be passed to the method in an array
* as the last argument defined on the function.
*
* @example
*
* Sugar.Number.defineStaticWithArguments({
* addAll: function (num, args) {
* for (var i = 0; i < args.length; i++) {
* num += args[i];
* }
* return num;
* }
* });
*
* @signature defineStaticWithArguments(methodName, methodFn)
* @param {Object} methods - Methods to be defined.
* @param {string} methodName - Name of a single method to be defined.
* @param {Function} methodFn - Function body of a single method to be defined.
***/
defineWithOptionCollect('defineStaticWithArguments', STATIC, true);
/***
* @method defineInstanceWithArguments(methods)
* @returns SugarNamespace
* @namespace SugarNamespace
* @short Defines instance methods that collect arguments.
* @extra This method is identical to `defineInstance`, except that when
* defined methods are called, they will collect any arguments past
* `n - 1`, where `n` is the number of arguments that the method
* accepts. Collected arguments will be passed to the method as the
* last argument defined on the function.
*
* @example
*
* Sugar.Number.defineInstanceWithArguments({
* addAll: function (num, args) {
* for (var i = 0; i < args.length; i++) {
* num += args[i];
* }
* return num;
* }
* });
*
* @signature defineInstanceWithArguments(methodName, methodFn)
* @param {Object} methods - Methods to be defined.
* @param {string} methodName - Name of a single method to be defined.
* @param {Function} methodFn - Function body of a single method to be defined.
***/
defineWithOptionCollect('defineInstanceWithArguments', INSTANCE, true);
/***
* @method defineStaticPolyfill(methods)
* @returns SugarNamespace
* @namespace SugarNamespace
* @short Defines static methods that are mapped onto the native if they do
* not already exist.
* @extra Intended only for use creating polyfills that follow the ECMAScript
* spec. Accepts either a single object mapping names to functions, or
* name and function as two arguments. Note that polyfill methods will
* be immediately mapped onto their native prototype regardless of the
* use of `extend`.
*
* @example
*
* Sugar.Object.defineStaticPolyfill({
* keys: function (obj) {
* // get keys!
* }
* });
*
* @signature defineStaticPolyfill(methodName, methodFn)
* @param {Object} methods - Methods to be defined.
* @param {string} methodName - Name of a single method to be defined.
* @param {Function} methodFn - Function body of a single method to be defined.
***/
setProperty(sugarNamespace, 'defineStaticPolyfill', function(arg1, arg2, arg3) {
var opts = collectDefineOptions(arg1, arg2, arg3);
extendNative(globalContext[name], opts.methods, true, opts.last);
return sugarNamespace;
});
/***
* @method defineInstancePolyfill(methods)
* @returns SugarNamespace
* @namespace SugarNamespace
* @short Defines instance methods that are mapped onto the native prototype
* if they do not already exist.
* @extra Intended only for use creating polyfills that follow the ECMAScript
* spec. Accepts either a single object mapping names to functions, or
* name and function as two arguments. This method differs from
* `defineInstance` as there is no static signature (as the method
* is mapped as-is to the native), so it should refer to its `this`
* object. Note that polyfill methods will be immediately mapped onto
* their native prototype regardless of the use of `extend`.
*
* @example
*
* Sugar.Array.defineInstancePolyfill({
* indexOf: function (arr, el) {
* // index finding code here!
* }
* });
*
* @signature defineInstancePolyfill(methodName, methodFn)
* @param {Object} methods - Methods to be defined.
* @param {string} methodName - Name of a single method to be defined.
* @param {Function} methodFn - Function body of a single method to be defined.
***/
setProperty(sugarNamespace, 'defineInstancePolyfill', function(arg1, arg2, arg3) {
var opts = collectDefineOptions(arg1, arg2, arg3);
extendNative(globalContext[name].prototype, opts.methods, true, opts.last);
// Map instance polyfills to chainable as well.
forEachProperty(opts.methods, function(fn, methodName) {
defineChainableMethod(sugarNamespace, methodName, fn);
});
return sugarNamespace;
});
/***
* @method alias(toName, from)
* @returns SugarNamespace
* @namespace SugarNamespace
* @short Aliases one Sugar method to another.
*
* @example
*
* Sugar.Array.alias('all', 'every');
*
* @signature alias(toName, fn)
* @param {string} toName - Name for new method.
* @param {string|Function} from - Method to alias, or string shortcut.
***/
setProperty(sugarNamespace, 'alias', function(name, source) {
var method = typeof source === 'string' ? sugarNamespace[source] : source;
setMethod(sugarNamespace, name, method);
return sugarNamespace;
});
// Each namespace can extend only itself through its .extend method.
setProperty(sugarNamespace, 'extend', extend);
// Cache the class to namespace relationship for later use.
namespacesByName[name] = sugarNamespace;
namespacesByClassString['[object ' + name + ']'] = sugarNamespace;
mapNativeToChainable(name);
mapObjectChainablesToNamespace(sugarNamespace);
// Export
return Sugar[name] = sugarNamespace;
}
function setGlobalProperties() {
setProperty(Sugar, 'VERSION', '2.0.6');
setProperty(Sugar, 'extend', Sugar);
setProperty(Sugar, 'toString', toString);
setProperty(Sugar, 'createNamespace', createNamespace);
setProperty(Sugar, 'util', {
'hasOwn': hasOwn,
'getOwn': getOwn,
'setProperty': setProperty,
'classToString': classToString,
'defineProperty': defineProperty,
'forEachProperty': forEachProperty,
'mapNativeToChainable': mapNativeToChainable
});
}
function toString() {
return SUGAR_GLOBAL;
}
// Defining Methods
function defineMethods(sugarNamespace, methods, type, args, flags) {
forEachProperty(methods, function(method, methodName) {
var instanceMethod, staticMethod = method;
if (args) {
staticMethod = wrapMethodWithArguments(method);
}
if (flags) {
staticMethod.flags = flags;
}
// A method may define its own custom implementation, so
// make sure that's not the case before creating one.
if (type & INSTANCE && !method.instance) {
instanceMethod = wrapInstanceMethod(method, args);
setProperty(staticMethod, 'instance', instanceMethod);
}
if (type & STATIC) {
setProperty(staticMethod, 'static', true);
}
setMethod(sugarNamespace, methodName, staticMethod);
if (sugarNamespace.active) {
// If the namespace has been activated (.extend has been called),
// then map this method as well.
sugarNamespace.extend(methodName);
}
});
}
function collectDefineOptions(arg1, arg2, arg3) {
var methods, last;
if (typeof arg1 === 'string') {
methods = {};
methods[arg1] = arg2;
last = arg3;
} else {
methods = arg1;
last = arg2;
}
return {
last: last,
methods: methods
};
}
function wrapInstanceMethod(fn, args) {
return args ? wrapMethodWithArguments(fn, true) : wrapInstanceMethodFixed(fn);
}
function wrapMethodWithArguments(fn, instance) {
// Functions accepting enumerated arguments will always have "args" as the
// last argument, so subtract one from the function length to get the point
// at which to start collecting arguments. If this is an instance method on
// a prototype, then "this" will be pushed into the arguments array so start
// collecting 1 argument earlier.
var startCollect = fn.length - 1 - (instance ? 1 : 0);
return function() {
var args = [], collectedArgs = [], len;
if (instance) {
args.push(this);
}
len = Math.max(arguments.length, startCollect);
// Optimized: no leaking arguments
for (var i = 0; i < len; i++) {
if (i < startCollect) {
args.push(arguments[i]);
} else {
collectedArgs.push(arguments[i]);
}
}
args.push(collectedArgs);
return fn.apply(this, args);
};
}
function wrapInstanceMethodFixed(fn) {
switch(fn.length) {
// Wrapped instance methods will always be passed the instance
// as the first argument, but requiring the argument to be defined
// may cause confusion here, so return the same wrapped function regardless.
case 0:
case 1:
return function() {
return fn(this);
};
case 2:
return function(a) {
return fn(this, a);
};
case 3:
return function(a, b) {
return fn(this, a, b);
};
case 4:
return function(a, b, c) {
return fn(this, a, b, c);
};
case 5:
return function(a, b, c, d) {
return fn(this, a, b, c, d);
};
}
}
// Method helpers
function extendNative(target, source, polyfill, override) {
forEachProperty(source, function(method, name) {
if (polyfill && !override && target[name]) {
// Method exists, so bail.
return;
}
setProperty(target, name, method);
});
}
function setMethod(sugarNamespace, methodName, method) {
sugarNamespace[methodName] = method;
if (method.instance) {
defineChainableMethod(sugarNamespace, methodName, method.instance, true);
}
}
// Chainables
function getNewChainableClass(name) {
var fn = function SugarChainable(obj, arg) {
if (!(this instanceof fn)) {
return new fn(obj, arg);
}
if (this.constructor !== fn) {
// Allow modules to define their own constructors.
obj = this.constructor.apply(obj, arguments);
}
this.raw = obj;
};
setProperty(fn, 'toString', function() {
return SUGAR_GLOBAL + name;
});
setProperty(fn.prototype, 'valueOf', function() {
return this.raw;
});
return fn;
}
function defineChainableMethod(sugarNamespace, methodName, fn) {
var wrapped = wrapWithChainableResult(fn), existing, collision, dcp;
dcp = DefaultChainable.prototype;
existing = dcp[methodName];
// If the method was previously defined on the default chainable, then a
// collision exists, so set the method to a disambiguation function that will
// lazily evaluate the object and find it's associated chainable. An extra
// check is required to avoid false positives from Object inherited methods.
collision = existing && existing !== Object.prototype[methodName];
// The disambiguation function is only required once.
if (!existing || !existing.disambiguate) {
dcp[methodName] = collision ? disambiguateMethod(methodName) : wrapped;
}
// The target chainable always receives the wrapped method. Additionally,
// if the target chainable is Sugar.Object, then map the wrapped method
// to all other namespaces as well if they do not define their own method
// of the same name. This way, a Sugar.Number will have methods like
// isEqual that can be called on any object without having to traverse up
// the prototype chain and perform disambiguation, which costs cycles.
// Note that the "if" block below actually does nothing on init as Object
// goes first and no other namespaces exist yet. However it needs to be
// here as Object instance methods defined later also need to be mapped
// back onto existing namespaces.
sugarNamespace.prototype[methodName] = wrapped;
if (sugarNamespace === Sugar.Object) {
mapObjectChainableToAllNamespaces(methodName, wrapped);
}
}
function mapObjectChainablesToNamespace(sugarNamespace) {
forEachProperty(Sugar.Object && Sugar.Object.prototype, function(val, methodName) {
if (typeof val === 'function') {
setObjectChainableOnNamespace(sugarNamespace, methodName, val);
}
});
}
function mapObjectChainableToAllNamespaces(methodName, fn) {
forEachProperty(namespacesByName, function(sugarNamespace) {
setObjectChainableOnNamespace(sugarNamespace, methodName, fn);
});
}
function setObjectChainableOnNamespace(sugarNamespace, methodName, fn) {
var proto = sugarNamespace.prototype;
if (!hasOwn(proto, methodName)) {
proto[methodName] = fn;
}
}
function wrapWithChainableResult(fn) {
return function() {
return new DefaultChainable(fn.apply(this.raw, arguments));
};
}
function disambiguateMethod(methodName) {
var fn = function() {
var raw = this.raw, sugarNamespace;
if (raw != null) {
// Find the Sugar namespace for this unknown.
sugarNamespace = namespacesByClassString[classToString(raw)];
}
if (!sugarNamespace) {
// If no sugarNamespace can be resolved, then default
// back to Sugar.Object so that undefined and other
// non-supported types can still have basic object
// methods called on them, such as type checks.
sugarNamespace = Sugar.Object;
}
return new sugarNamespace(raw)[methodName].apply(this, arguments);
};
fn.disambiguate = true;
return fn;
}
function mapNativeToChainable(name, methodNames) {
var sugarNamespace = namespacesByName[name],
nativeProto = globalContext[name].prototype;
if (!methodNames && ownPropertyNames) {
methodNames = ownPropertyNames(nativeProto);
}
forEachProperty(methodNames, function(methodName) {
if (nativeMethodProhibited(methodName)) {
// Sugar chainables have their own constructors as well as "valueOf"
// methods, so exclude them here. The __proto__ argument should be trapped
// by the function check below, however simply accessing this property on
// Object.prototype causes QML to segfault, so pre-emptively excluding it.
return;
}
try {
var fn = nativeProto[methodName];
if (typeof fn !== 'function') {
// Bail on anything not a function.
return;
}
} catch (e) {
// Function.prototype has properties that
// will throw errors when accessed.
return;
}
defineChainableMethod(sugarNamespace, methodName, fn);
});
}
function nativeMethodProhibited(methodName) {
return methodName === 'constructor' ||
methodName === 'valueOf' ||
methodName === '__proto__';
}
// Util
// Internal references
var ownPropertyNames = Object.getOwnPropertyNames,
internalToString = Object.prototype.toString,
internalHasOwnProperty = Object.prototype.hasOwnProperty;
// Defining this as a variable here as the ES5 module
// overwrites it to patch DONTENUM.
var forEachProperty = function (obj, fn) {
for(var key in obj) {
if (!hasOwn(obj, key)) continue;
if (fn.call(obj, obj[key], key, obj) === false) break;
}
};
// istanbul ignore next
function definePropertyShim(obj, prop, descriptor) {
obj[prop] = descriptor.value;
}
function setProperty(target, name, value, enumerable) {
defineProperty(target, name, {
value: value,
enumerable: !!enumerable,
configurable: true,
writable: true
});
}
// PERF: Attempts to speed this method up get very Heisenbergy. Quickly
// returning based on typeof works for primitives, but slows down object
// types. Even === checks on null and undefined (no typeof) will end up
// basically breaking even. This seems to be as fast as it can go.
function classToString(obj) {
return internalToString.call(obj);
}
function hasOwn(obj, prop) {
return !!obj && internalHasOwnProperty.call(obj, prop);
}
function getOwn(obj, prop) {
if (hasOwn(obj, prop)) {
return obj[prop];
}
}
setupGlobal();
/***
* @module Common
* @description Internal utility and common methods.
***/
// Flag allowing native methods to be enhanced.
var ENHANCEMENTS_FLAG = 'enhance';
// For type checking, etc. Excludes object as this is more nuanced.
var NATIVE_TYPES = 'Boolean Number String Date RegExp Function Array Error Set Map';
// Do strings have no keys?
var NO_KEYS_IN_STRING_OBJECTS = !('0' in Object('a'));
// Prefix for private properties.
var PRIVATE_PROP_PREFIX = '_sugar_';
// Matches 1..2 style ranges in properties.
var PROPERTY_RANGE_REG = /^(.*?)\[([-\d]*)\.\.([-\d]*)\](.*)$/;
// WhiteSpace/LineTerminator as defined in ES5.1 plus Unicode characters in the Space, Separator category.
var TRIM_CHARS = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u2028\u2029\u3000\uFEFF';
// Regex for matching a formatted string.
var STRING_FORMAT_REG = /([{}])\1|{([^}]*)}|(%)%|(%(\w*))/g;
// Common chars
var HALF_WIDTH_ZERO = 0x30,
FULL_WIDTH_ZERO = 0xff10,
HALF_WIDTH_PERIOD = '.',
FULL_WIDTH_PERIOD = '',
HALF_WIDTH_COMMA = ',',
OPEN_BRACE = '{',
CLOSE_BRACE = '}';
// Namespace aliases
var sugarObject = Sugar.Object,
sugarArray = Sugar.Array,
sugarDate = Sugar.Date,
sugarString = Sugar.String,
sugarNumber = Sugar.Number,
sugarFunction = Sugar.Function,
sugarRegExp = Sugar.RegExp;
// Class checks
var isSerializable,
isBoolean, isNumber, isString,
isDate, isRegExp, isFunction,
isArray, isSet, isMap, isError;
function buildClassChecks() {
var knownTypes = {};
function addCoreTypes() {
var names = spaceSplit(NATIVE_TYPES);
isBoolean = buildPrimitiveClassCheck(names[0]);
isNumber = buildPrimitiveClassCheck(names[1]);
isString = buildPrimitiveClassCheck(names[2]);
isDate = buildClassCheck(names[3]);
isRegExp = buildClassCheck(names[4]);
// Wanted to enhance performance here by using simply "typeof"
// but Firefox has two major issues that make this impossible,
// one fixed, the other not, so perform a full class check here.
//
// 1. Regexes can be typeof "function" in FF < 3
// https://bugzilla.mozilla.org/show_bug.cgi?id=61911 (fixed)
//
// 2. HTMLEmbedElement and HTMLObjectElement are be typeof "function"
// https://bugzilla.mozilla.org/show_bug.cgi?id=268945 (won't fix)
isFunction = buildClassCheck(names[5]);
// istanbul ignore next
isArray = Array.isArray || buildClassCheck(names[6]);
isError = buildClassCheck(names[7]);
isSet = buildClassCheck(names[8], typeof Set !== 'undefined' && Set);
isMap = buildClassCheck(names[9], typeof Map !== 'undefined' && Map);
// Add core types as known so that they can be checked by value below,
// notably excluding Functions and adding Arguments and Error.
addKnownType('Arguments');
addKnownType(names[0]);
addKnownType(names[1]);
addKnownType(names[2]);
addKnownType(names[3]);
addKnownType(names[4]);
addKnownType(names[6]);
}
function addArrayTypes() {
var types = 'Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64';
forEach(spaceSplit(types), function(str) {
addKnownType(str + 'Array');
});
}
function addKnownType(className) {
var str = '[object '+ className +']';
knownTypes[str] = true;
}
function isKnownType(className) {
return knownTypes[className];
}
function buildClassCheck(className, globalObject) {
// istanbul ignore if
if (globalObject && isClass(new globalObject, 'Object')) {
return getConstructorClassCheck(globalObject);
} else {
return getToStringClassCheck(className);
}
}
// Map and Set may be [object Object] in certain IE environments.
// In this case we need to perform a check using the constructor
// instead of Object.prototype.toString.
// istanbul ignore next
function getConstructorClassCheck(obj) {
var ctorStr = String(obj);
return function(obj) {
return String(obj.constructor) === ctorStr;
};
}
function getToStringClassCheck(className) {
return function(obj, str) {
// perf: Returning up front on instanceof appears to be slower.
return isClass(obj, className, str);
};
}
function buildPrimitiveClassCheck(className) {
var type = className.toLowerCase();
return function(obj) {
var t = typeof obj;
return t === type || t === 'object' && isClass(obj, className);
};
}
addCoreTypes();
addArrayTypes();
isSerializable = function(obj, className) {
// Only known objects can be serialized. This notably excludes functions,
// host objects, Symbols (which are matched by reference), and instances
// of classes. The latter can arguably be matched by value, but
// distinguishing between these and host objects -- which should never be
// compared by value -- is very tricky so not dealing with it here.
return isKnownType(className) || isPlainObject(obj, className);
};
}
function isClass(obj, className, str) {
if (!str) {
str = classToString(obj);
}
return str === '[object '+ className +']';
}
// Wrapping the core's "define" methods to
// save a few bytes in the minified script.
function wrapNamespace(method) {
return function(sugarNamespace, arg1, arg2) {
sugarNamespace[method](arg1, arg2);
};
}
// Method define aliases
var alias = wrapNamespace('alias'),
defineStatic = wrapNamespace('defineStatic'),
defineInstance = wrapNamespace('defineInstance'),
defineStaticPolyfill = wrapNamespace('defineStaticPolyfill'),
defineInstancePolyfill = wrapNamespace('defineInstancePolyfill'),
defineInstanceAndStatic = wrapNamespace('defineInstanceAndStatic'),
defineInstanceWithArguments = wrapNamespace('defineInstanceWithArguments');
function defineInstanceSimilar(sugarNamespace, set, fn, flags) {
defineInstance(sugarNamespace, collectSimilarMethods(set, fn), flags);
}
function defineInstanceAndStaticSimilar(sugarNamespace, set, fn, flags) {
defineInstanceAndStatic(sugarNamespace, collectSimilarMethods(set, fn), flags);
}
function collectSimilarMethods(set, fn) {
var methods = {};
if (isString(set)) {
set = spaceSplit(set);
}
forEach(set, function(el, i) {
fn(methods, el, i);
});
return methods;
}
// This song and dance is to fix methods to a different length
// from what they actually accept in order to stay in line with
// spec. Additionally passing argument length, as some methods
// throw assertion errors based on this (undefined check is not
// enough). Fortunately for now spec is such that passing 3
// actual arguments covers all requirements. Note that passing
// the argument length also forces the compiler to not rewrite
// length of the compiled function.
function fixArgumentLength(fn) {
var staticFn = function(a) {
var args = arguments;
return fn(a, args[1], args[2], args.length - 1);
};
staticFn.instance = function(b) {
var args = arguments;
return fn(this, b, args[1], args.length);
};
return staticFn;
}
function defineAccessor(namespace, name, fn) {
setProperty(namespace, name, fn);
}
function defineOptionsAccessor(namespace, defaults) {
var obj = simpleClone(defaults);
function getOption(name) {
return obj[name];
}
function setOption(arg1, arg2) {
var options;
if (arguments.length === 1) {
options = arg1;
} else {
options = {};
options[arg1] = arg2;
}
forEachProperty(options, function(val, name) {
if (val === null) {
val = defaults[name];
}
obj[name] = val;
});
}
defineAccessor(namespace, 'getOption', getOption);
defineAccessor(namespace, 'setOption', setOption);
return getOption;
}
// For methods defined directly on the prototype like Range
function defineOnPrototype(ctor, methods) {
var proto = ctor.prototype;
forEachProperty(methods, function(val, key) {
proto[key] = val;
});
}
// Argument helpers
function assertArgument(exists) {
if (!exists) {
throw new TypeError('Argument required');
}
}
function assertCallable(obj) {
if (!isFunction(obj)) {
throw new TypeError('Function is not callable');
}
}
function assertArray(obj) {
if (!isArray(obj)) {
throw new TypeError('Array required');
}
}
function assertWritable(obj) {
if (isPrimitive(obj)) {
// If strict mode is active then primitives will throw an
// error when attempting to write properties. We can't be
// sure if strict mode is available, so pre-emptively
// throw an error here to ensure consistent behavior.
throw new TypeError('Property cannot be written');
}
}
// Coerces an object to a positive integer.
// Does not allow Infinity.
function coercePositiveInteger(n) {
n = +n || 0;
if (n < 0 || !isNumber(n) || !isFinite(n)) {
throw new RangeError('Invalid number');
}
return trunc(n);
}
// General helpers
function isDefined(o) {
return o !== undefined;
}
function isUndefined(o) {
return o === undefined;
}
function privatePropertyAccessor(key) {
var privateKey = PRIVATE_PROP_PREFIX + key;
return function(obj, val) {
if (arguments.length > 1) {
setProperty(obj, privateKey, val);
return obj;
}
return obj[privateKey];
};
}
function setChainableConstructor(sugarNamespace, createFn) {
sugarNamespace.prototype.constructor = function() {
return createFn.apply(this, arguments);
};
}
// Fuzzy matching helpers
function getMatcher(f) {
if (!isPrimitive(f)) {
var className = classToString(f);
if (isRegExp(f, className)) {
return regexMatcher(f);
} else if (isDate(f, className)) {
return dateMatcher(f);
} else if (isFunction(f, className)) {
return functionMatcher(f);
} else if (isPlainObject(f, className)) {
return fuzzyMatcher(f);
}
}
// Default is standard isEqual
return defaultMatcher(f);
}
function fuzzyMatcher(obj) {
var matchers = {};
return function(el, i, arr) {
var matched = true;
if (!isObjectType(el)) {
return false;
}
forEachProperty(obj, function(val, key) {
matchers[key] = getOwn(matchers, key) || getMatcher(val);
if (matchers[key].call(arr, el[key], i, arr) === false) {
matched = false;
}
return matched;
});
return matched;
};
}
function defaultMatcher(f) {
return function(el) {
return isEqual(el, f);
};
}
function regexMatcher(reg) {
reg = RegExp(reg);
return function(el) {
return reg.test(el);
};
}
function dateMatcher(d) {
var ms = d.getTime();
return function(el) {
return !!(el && el.getTime) && el.getTime() === ms;
};
}
function functionMatcher(fn) {
return function(el, i, arr) {
// Return true up front if match by reference
return el === fn || fn.call(arr, el, i, arr);
};
}
// Object helpers
function getKeys(obj) {
return Object.keys(obj);
}
function deepHasProperty(obj, key, any) {
return handleDeepProperty(obj, key, any, true);
}
function deepGetProperty(obj, key, any) {
return handleDeepProperty(obj, key, any, false);
}
function deepSetProperty(obj, key, val) {
handleDeepProperty(obj, key, false, false, true, false, val);
return obj;
}
function handleDeepProperty(obj, key, any, has, fill, fillLast, val) {
var ns, bs, ps, cbi, set, isLast, isPush, isIndex, nextIsIndex, exists;
ns = obj;
if (key == null) return;
if (isObjectType(key)) {
// Allow array and array-like accessors
bs = [key];
} else {
key = String(key);
if (key.indexOf('..') !== -1) {
return handleArrayIndexRange(obj, key, any, val);
}
bs = key.split('[');
}
set = isDefined(val);
for (var i = 0, blen = bs.length; i < blen; i++) {
ps = bs[i];
if (isString(ps)) {
ps = periodSplit(ps);
}
for (var j = 0, plen = ps.length; j < plen; j++) {
key = ps[j];
// Is this the last key?
isLast = i === blen - 1 && j === plen - 1;
// Index of the closing ]
cbi = key.indexOf(']');
// Is the key an array index?
isIndex = cbi !== -1;
// Is this array push syntax "[]"?
isPush = set && cbi === 0;
// If the bracket split was successful and this is the last element
// in the dot split, then we know the next key will be an array index.
nextIsIndex = blen > 1 && j === plen - 1;
if (isPush) {
// Set the index to the end of the array
key = ns.length;
} else if (isIndex) {
// Remove the closing ]
key = key.slice(0, -1);
}
// If the array index is less than 0, then
// add its length to allow negative indexes.
if (isIndex && key < 0) {
key = +key + ns.length;
}
// Bracket keys may look like users[5] or just [5], so the leading
// characters are optional. We can enter the namespace if this is the
// 2nd part, if there is only 1 part, or if there is an explicit key.
if (i || key || blen === 1) {
// TODO: need to be sure this check handles ''.length when
// we refactor.
exists = any ? key in Object(ns) : hasOwn(ns, key);
// Non-existent namespaces are only filled if they are intermediate
// (not at the end) or explicitly filling the last.
if (fill && (!isLast || fillLast) && !exists) {
// For our purposes, last only needs to be an array.
ns = ns[key] = nextIsIndex || (fillLast && isLast) ? [] : {};
continue;
}
if (has) {
if (isLast || !exists) {
return exists;
}
} else if (set && isLast) {
assertWritable(ns);
ns[key] = val;
}
ns = exists ? ns[key] : undefined;
}
}
}
return ns;
}
// Get object property with support for 0..1 style range notation.
function handleArrayIndexRange(obj, key, any, val) {
var match, start, end, leading, trailing, arr, set;
match = key.match(PROPERTY_RANGE_REG);
if (!match) {
return;
}
set = isDefined(val);
leading = match[1];
if (leading) {
arr = handleDeepProperty(obj, leading, any, false, set ? true : false, true);
} else {
arr = obj;
}
assertArray(arr);
trailing = match[4];
start = match[2] ? +match[2] : 0;
end = match[3] ? +match[3] : arr.length;
// A range of 0..1 is inclusive, so we need to add 1 to the end. If this
// pushes the index from -1 to 0, then set it to the full length of the
// array, otherwise it will return nothing.
end = end === -1 ? arr.length : end + 1;
if (set) {
for (var i = start; i < end; i++) {
handleDeepProperty(arr, i + trailing, any, false, true, false, val);
}
} else {
arr = arr.slice(start, end);
// If there are trailing properties, then they need to be mapped for each
// element in the array.
if (trailing) {
if (trailing.charAt(0) === HALF_WIDTH_PERIOD) {
// Need to chomp the period if one is trailing after the range. We
// can't do this at the regex level because it will be required if
// we're setting the value as it needs to be concatentated together
// with the array index to be set.
trailing = trailing.slice(1);
}
return map(arr, function(el) {
return handleDeepProperty(el, trailing);
});
}
}
return arr;
}
function getOwnKey(obj, key) {
if (hasOwn(obj, key)) {
return key;
}
}
function hasProperty(obj, prop) {
return !isPrimitive(obj) && prop in obj;
}
function isObjectType(obj, type) {
return !!obj && (type || typeof obj) === 'object';
}
function isPrimitive(obj, type) {
type = type || typeof obj;
return obj == null || type === 'string' || type === 'number' || type === 'boolean';
}
function isPlainObject(obj, className) {
return isObjectType(obj) &&
isClass(obj, 'Object', className) &&
hasValidPlainObjectPrototype(obj) &&
hasOwnEnumeratedProperties(obj);
}
function hasValidPlainObjectPrototype(obj) {
var hasToString = 'toString' in obj;
var hasConstructor = 'constructor' in obj;
// An object created with Object.create(null) has no methods in the
// prototype chain, so check if any are missing. The additional hasToString
// check is for false positives on some host objects in old IE which have
// toString but no constructor. If the object has an inherited constructor,
// then check if it is Object (the "isPrototypeOf" tapdance here is a more
// robust way of ensuring this if the global has been hijacked). Note that
// accessing the constructor directly (without "in" or "hasOwnProperty")
// will throw a permissions error in IE8 on cross-domain windows.
return (!hasConstructor && !hasToString) ||
(hasConstructor && !hasOwn(obj, 'constructor') &&
hasOwn(obj.constructor.prototype, 'isPrototypeOf'));
}
function hasOwnEnumeratedProperties(obj) {
// Plain objects are generally defined as having enumerated properties
// all their own, however in early IE environments without defineProperty,
// there may also be enumerated methods in the prototype chain, so check
// for both of these cases.
var objectProto = Object.prototype;
for (var key in obj) {
var val = obj[key];
if (!hasOwn(obj, key) && val !== objectProto[key]) {
return false;
}
}
return true;
}
function simpleRepeat(n, fn) {
for (var i = 0; i < n; i++) {
fn(i);
}
}
function simpleClone(obj) {
return simpleMerge({}, obj);
}
// TODO: Use Object.assign here going forward.
function simpleMerge(target, source) {
forEachProperty(source, function(val, key) {
target[key] = val;
});
return target;
}
// Make primtives types like strings into objects.
function coercePrimitiveToObject(obj) {
if (isPrimitive(obj)) {
obj = Object(obj);
}
// istanbul ignore next
if (NO_KEYS_IN_STRING_OBJECTS && isString(obj)) {
forceStringCoercion(obj);
}
return obj;
}
// Force strings to have their indexes set in
// environments that don't do this automatically.
// istanbul ignore next
function forceStringCoercion(obj) {
var i = 0, chr;
while (chr = obj.charAt(i)) {
obj[i++] = chr;
}
}
// Equality helpers
// Perf
function isEqual(a, b, stack) {
var aClass, bClass;
if (a === b) {
// Return quickly up front when matched by reference,
// but be careful about 0 !== -0.
return a !== 0 || 1 / a === 1 / b;
}
aClass = classToString(a);
bClass = classToString(b);
if (aClass !== bClass) {
return false;
}
if (isSerializable(a, aClass) && isSerializable(b, bClass)) {
return objectIsEqual(a, b, aClass, stack);
} else if (isSet(a, aClass) && isSet(b, bClass)) {
return a.size === b.size && isEqual(setToArray(a), setToArray(b), stack);
} else if (isMap(a, aClass) && isMap(b, bClass)) {
return a.size === b.size && isEqual(mapToArray(a), mapToArray(b), stack);
} else if (isError(a, aClass) && isError(b, bClass)) {
return a.toString() === b.toString();
}
return false;
}
// Perf
function objectIsEqual(a, b, aClass, stack) {
var aType = typeof a, bType = typeof b, propsEqual, count;
if (aType !== bType) {
return false;
}
if (isObjectType(a.valueOf())) {
if (a.length !== b.length) {
// perf: Quickly returning up front for arrays.
return false;
}
count = 0;
propsEqual = true;
iterateWithCyclicCheck(a, false, stack, function(key, val, cyc, stack) {
if (!cyc && (!(key in b) || !isEqual(val, b[key], stack))) {
propsEqual = false;
}
count++;
return propsEqual;
});
if (!propsEqual || count !== getKeys(b).length) {
return false;
}
}
// Stringifying the value handles NaN, wrapped primitives, dates, and errors in one go.
return a.valueOf().toString() === b.valueOf().toString();
}
// Serializes an object in a way that will provide a token unique
// to the type, class, and value of an object. Host objects, class
// instances etc, are not serializable, and are held in an array
// of references that will return the index as a unique identifier
// for the object. This array is passed from outside so that the
// calling function can decide when to dispose of this array.
function serializeInternal(obj, refs, stack) {
var type = typeof obj, sign = '', className, value, ref;
// Return up front on
if (1 / obj === -Infinity) {
sign = '-';
}
// Return quickly for primitives to save cycles
if (isPrimitive(obj, type) && !isRealNaN(obj)) {
return type + sign + obj;
}
className = classToString(obj);
if (!isSerializable(obj, className)) {
ref = indexOf(refs, obj);
if (ref === -1) {
ref = refs.length;
refs.push(obj);
}
return ref;
} else if (isObjectType(obj)) {
value = serializeDeep(obj, refs, stack) + obj.toString();
} else if (obj.valueOf) {
value = obj.valueOf();
}
return type + className + sign + value;
}
function serializeDeep(obj, refs, stack) {
var result = '';
iterateWithCyclicCheck(obj, true, stack, function(key, val, cyc, stack) {
result += cyc ? 'CYC' : key + serializeInternal(val, refs, stack);
});
return result;
}
function iterateWithCyclicCheck(obj, sortedKeys, stack, fn) {
function next(val, key) {
var cyc = false;
// Allowing a step into the structure before triggering this check to save
// cycles on standard JSON structures and also to try as hard as possible to
// catch basic properties that may have been modified.
if (stack.length > 1) {
var i = stack.length;
while (i--) {
if (stack[i] === val) {
cyc = true;
}
}
}
stack.push(val);
fn(key, val, cyc, stack);
stack.pop();
}
function iterateWithSortedKeys() {
// Sorted keys is required for serialization, where object order
// does not matter but stringified order does.
var arr = getKeys(obj).sort(), key;
for (var i = 0; i < arr.length; i++) {
key = arr[i];
next(obj[key], arr[i]);
}
}
// This method for checking for cyclic structures was egregiously stolen from
// the ingenious method by @kitcambridge from the Underscore script:
// https://github.com/documentcloud/underscore/issues/240
if (!stack) {
stack = [];
}
if (sortedKeys) {
iterateWithSortedKeys();
} else {
forEachProperty(obj, next);
}
}
// Array helpers
function isArrayIndex(n) {
return n >>> 0 == n && n != 0xFFFFFFFF;
}
function iterateOverSparseArray(arr, fn, fromIndex, loop) {
var indexes = getSparseArrayIndexes(arr, fromIndex, loop), index;
for (var i = 0, len = indexes.length; i < len; i++) {
index = indexes[i];
fn.call(arr, arr[index], index, arr);
}
return arr;
}
// It's unclear whether or not sparse arrays qualify as "simple enumerables".
// If they are not, however, the wrapping function will be deoptimized, so
// isolate here (also to share between es5 and array modules).
function getSparseArrayIndexes(arr, fromIndex, loop, fromRight) {
var indexes = [], i;
for (i in arr) {
// istanbul ignore next
if (isArrayIndex(i) && (loop || (fromRight ? i <= fromIndex : i >= fromIndex))) {
indexes.push(+i);
}
}
indexes.sort(function(a, b) {
var aLoop = a > fromIndex;
var bLoop = b > fromIndex;
// This block cannot be reached unless ES5 methods are being shimmed.
// istanbul ignore if
if (aLoop !== bLoop) {
return aLoop ? -1 : 1;
}
return a - b;
});
return indexes;
}
function getEntriesForIndexes(obj, find, loop, isString) {
var result, length = obj.length;
if (!isArray(find)) {
return entryAtIndex(obj, find, length, loop, isString);
}
result = new Array(find.length);
forEach(find, function(index, i) {
result[i] = entryAtIndex(obj, index, length, loop, isString);
});
return result;
}
function getNormalizedIndex(index, length, loop) {
if (index && loop) {
index = index % length;
}
if (index < 0) index = length + index;
return index;
}
function entryAtIndex(obj, index, length, loop, isString) {
index = getNormalizedIndex(index, length, loop);
return isString ? obj.charAt(index) : obj[index];
}
function mapWithShortcuts(el, f, context, mapArgs) {
if (!f) {
return el;
} else if (f.apply) {
return f.apply(context, mapArgs);
} else if (isArray(f)) {
return map(f, function(m) {
return mapWithShortcuts(el, m, context, mapArgs);
});
} else if (isFunction(el[f])) {
return el[f].call(el);
} else {
return deepGetProperty(el, f, true);
}
}
function spaceSplit(str) {
return str.split(' ');
}
function commaSplit(str) {
return str.split(HALF_WIDTH_COMMA);
}
function periodSplit(str) {
return str.split(HALF_WIDTH_PERIOD);
}
function forEach(arr, fn) {
for (var i = 0, len = arr.length; i < len; i++) {
if (!(i in arr)) {
return iterateOverSparseArray(arr, fn, i);
}
fn(arr[i], i);
}
}
function filter(arr, fn) {
var result = [];
for (var i = 0, len = arr.length; i < len; i++) {
var el = arr[i];
if (i in arr && fn(el, i)) {
result.push(el);
}
}
return result;
}
function map(arr, fn) {
// perf: Not using fixed array len here as it may be sparse.
var result = [];
for (var i = 0, len = arr.length; i < len; i++) {
if (i in arr) {
result.push(fn(arr[i], i));
}
}
return result;
}
function indexOf(arr, el) {
for (var i = 0, len = arr.length; i < len; i++) {
if (i in arr && arr[i] === el) return i;
}
return -1;
}
// Number helpers
// istanbul ignore next
var trunc = Math.trunc || function(n) {
if (n === 0 || !isFinite(n)) return n;
return n < 0 ? ceil(n) : floor(n);
};
function isRealNaN(obj) {
// This is only true of NaN
return obj != null && obj !== obj;
}
function withPrecision(val, precision, fn) {
var multiplier = pow(10, abs(precision || 0));
fn = fn || round;
if (precision < 0) multiplier = 1 / multiplier;
return fn(val * multiplier) / multiplier;
}
function padNumber(num, place, sign, base, replacement) {
var str = abs(num).toString(base || 10);
str = repeatString(replacement || '0', place - str.replace(/\.\d+/, '').length) + str;
if (sign || num < 0) {
str = (num < 0 ? '-' : '+') + str;
}
return str;
}
function getOrdinalSuffix(num) {
if (num >= 11 && num <= 13) {
return 'th';
} else {
switch(num % 10) {
case 1: return 'st';
case 2: return 'nd';
case 3: return 'rd';
default: return 'th';
}
}
}
// Fullwidth number helpers
var fullWidthNumberReg, fullWidthNumberMap, fullWidthNumbers;
function buildFullWidthNumber() {
var fwp = FULL_WIDTH_PERIOD, hwp = HALF_WIDTH_PERIOD, hwc = HALF_WIDTH_COMMA, fwn = '';
fullWidthNumberMap = {};
for (var i = 0, digit; i <= 9; i++) {
digit = chr(i + FULL_WIDTH_ZERO);
fwn += digit;
fullWidthNumberMap[digit] = chr(i + HALF_WIDTH_ZERO);
}
fullWidthNumberMap[hwc] = '';
fullWidthNumberMap[fwp] = hwp;
// Mapping this to itself to capture it easily
// in stringToNumber to detect decimals later.
fullWidthNumberMap[hwp] = hwp;
fullWidthNumberReg = allCharsReg(fwn + fwp + hwc + hwp);
fullWidthNumbers = fwn;
}
// Takes into account full-width characters, commas, and decimals.
function stringToNumber(str, base) {
var sanitized, isDecimal;
sanitized = str.replace(fullWidthNumberReg, function(chr) {
var replacement = getOwn(fullWidthNumberMap, chr);
if (replacement === HALF_WIDTH_PERIOD) {
isDecimal = true;
}
return replacement;
});
return isDecimal ? parseFloat(sanitized) : parseInt(sanitized, base || 10);
}
// Math aliases
var abs = Math.abs,
pow = Math.pow,
min = Math.min,
max = Math.max,
ceil = Math.ceil,
floor = Math.floor,
round = Math.round;
// String helpers
var chr = String.fromCharCode;
function trim(str) {
return str.trim();
}
function repeatString(str, num) {
var result = '';
str = str.toString();
while (num > 0) {
if (num & 1) {
result += str;
}
if (num >>= 1) {
str += str;
}
}
return result;
}
function simpleCapitalize(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
}
function createFormatMatcher(bracketMatcher, percentMatcher, precheck) {
var reg = STRING_FORMAT_REG;
var compileMemoized = memoizeFunction(compile);
function getToken(format, match) {
var get, token, literal, fn;
var bKey = match[2];
var pLit = match[3];
var pKey = match[5];
if (match[4] && percentMatcher) {
token = pKey;
get = percentMatcher;
} else if (bKey) {
token = bKey;
get = bracketMatcher;
} else if (pLit && percentMatcher) {
literal = pLit;
} else {
literal = match[1] || match[0];
}
if (get) {
assertPassesPrecheck(precheck, bKey, pKey);
fn = function(obj, opt) {
return get(obj, token, opt);
};
}
format.push(fn || getLiteral(literal));
}
function getSubstring(format, str, start, end) {
if (end > start) {
var sub = str.slice(start, end);
assertNoUnmatched(sub, OPEN_BRACE);
assertNoUnmatched(sub, CLOSE_BRACE);
format.push(function() {
return sub;
});
}
}
function getLiteral(str) {
return function() {
return str;
};
}
function assertPassesPrecheck(precheck, bt, pt) {
if (precheck && !precheck(bt, pt)) {
throw new TypeError('Invalid token '+ (bt || pt) +' in format string');
}
}
function assertNoUnmatched(str, chr) {
if (str.indexOf(chr) !== -1) {
throw new TypeError('Unmatched '+ chr +' in format string');
}
}
function compile(str) {
var format = [], lastIndex = 0, match;
reg.lastIndex = 0;
while(match = reg.exec(str)) {
getSubstring(format, str, lastIndex, match.index);
getToken(format, match);
lastIndex = reg.lastIndex;
}
getSubstring(format, str, lastIndex, str.length);
return format;
}
return function(str, obj, opt) {
var format = compileMemoized(str), result = '';
for (var i = 0; i < format.length; i++) {
result += format[i](obj, opt);
}
return result;
};
}
// Inflection helper
var Inflections = {};
function getAcronym(str) {
// istanbul ignore next
return Inflections.acronyms && Inflections.acronyms.find(str);
}
function getHumanWord(str) {
// istanbul ignore next
return Inflections.human && Inflections.human.find(str);
}
function runHumanRules(str) {
// istanbul ignore next
return Inflections.human && Inflections.human.runRules(str) || str;
}
// RegExp helpers
function allCharsReg(src) {
return RegExp('[' + src + ']', 'g');
}
function getRegExpFlags(reg, add) {
var flags = '';
add = add || '';
function checkFlag(prop, flag) {
if (prop || add.indexOf(flag) > -1) {
flags += flag;
}
}
checkFlag(reg.global, 'g');
checkFlag(reg.ignoreCase, 'i');
checkFlag(reg.multiline, 'm');
checkFlag(reg.sticky, 'y');
return flags;
}
function escapeRegExp(str) {
if (!isString(str)) str = String(str);
return str.replace(/([\\/'*+?|()[\]{}.^$-])/g,'\\$1');
}
// Date helpers
var _utc = privatePropertyAccessor('utc');
function callDateGet(d, method) {
return d['get' + (_utc(d) ? 'UTC' : '') + method]();
}
function callDateSet(d, method, value, safe) {
// "Safe" denotes not setting the date if the value is the same as what is
// currently set. In theory this should be a noop, however it will cause
// timezone shifts when in the middle of a DST fallback. This is unavoidable
// as the notation itself is ambiguous (i.e. there are two "1:00ams" on
// November 1st, 2015 in northern hemisphere timezones that follow DST),
// however when advancing or rewinding dates this can throw off calculations
// so avoiding this unintentional shifting on an opt-in basis.
if (safe && value === callDateGet(d, method, value)) {
return;
}
d['set' + (_utc(d) ? 'UTC' : '') + method](value);
}
// Memoization helpers
var INTERNAL_MEMOIZE_LIMIT = 1000;
// Note that attemps to consolidate this with Function#memoize
// ended up clunky as that is also serializing arguments. Separating
// these implementations turned out to be simpler.
function memoizeFunction(fn) {
var memo = {}, counter = 0;
return function(key) {
if (hasOwn(memo, key)) {
return memo[key];
}
// istanbul ignore if
if (counter === INTERNAL_MEMOIZE_LIMIT) {
memo = {};
counter = 0;
}
counter++;
return memo[key] = fn(key);
};
}
// ES6 helpers
function setToArray(set) {
var arr = new Array(set.size), i = 0;
set.forEach(function(val) {
arr[i++] = val;
});
return arr;
}
function mapToArray(map) {
var arr = new Array(map.size), i = 0;
map.forEach(function(val, key) {
arr[i++] = [key, val];
});
return arr;
}
buildClassChecks();
buildFullWidthNumber();
/***
* @module ES5
* @description Functions and polyfill methods that fix ES5 functionality. This
* module is excluded from default builds, and can be included if
* you need legacy browser support (IE8 and below).
*
***/
// Non-enumerable properties on Object.prototype. In early JScript implementations
// (< IE9) these will shadow object properties and break for..in loops.
var DONT_ENUM_PROPS = [
'valueOf',
'toString',
'constructor',
'isPrototypeOf',
'hasOwnProperty',
'toLocaleString',
'propertyIsEnumerable'
];
/***
* @fix
* @short Fixes DontEnum bug for iteration methods in < IE9.
***/
function buildDontEnumFix() {
if (!({toString:1}).propertyIsEnumerable('toString')) {
var forEachEnumerableProperty = forEachProperty;
forEachProperty = function(obj, fn) {
forEachEnumerableProperty(obj, fn);
for (var i = 0, key; key = DONT_ENUM_PROPS[i]; i++) {
if (hasOwn(obj, key)) {
if(fn.call(obj, obj[key], key, obj) === false) break;
}
}
};
}
}
/***
* @fix
* @short Adds native methods to chainables in < IE9.
***/
function buildChainableNativeMethodsFix() {
if (!Object.getOwnPropertyNames) {
defineNativeMethodsOnChainable();
}
}
// Polyfilled methods will automatically be added to the chainable prototype.
// However, Object.getOwnPropertyNames cannot be shimmed for non-enumerable
// properties, so if it does not exist, then the only way to access native
// methods previous to ES5 is to provide them as a list of tokens here.
function defineNativeMethodsOnChainable() {
var nativeTokens = {
'Function': 'apply,call',
'RegExp': 'compile,exec,test',
'Number': 'toExponential,toFixed,toLocaleString,toPrecision',
'Object': 'hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString',
'Array': 'concat,join,pop,push,reverse,shift,slice,sort,splice,toLocaleString,unshift',
'Date': 'getTime,getTimezoneOffset,setTime,toDateString,toGMTString,toLocaleDateString,toLocaleString,toLocaleTimeString,toTimeString,toUTCString',
'String': 'anchor,big,blink,bold,charAt,charCodeAt,concat,fixed,fontcolor,fontsize,indexOf,italics,lastIndexOf,link,localeCompare,match,replace,search,slice,small,split,strike,sub,substr,substring,sup,toLocaleLowerCase,toLocaleUpperCase,toLowerCase,toUpperCase'
};
var dateTokens = 'FullYear,Month,Date,Hours,Minutes,Seconds,Milliseconds'.split(',');
function addDateTokens(prefix, arr) {
for (var i = 0; i < dateTokens.length; i++) {
arr.push(prefix + dateTokens[i]);
}
}
forEachProperty(nativeTokens, function(str, name) {
var tokens = str.split(',');
if (name === 'Date') {
addDateTokens('get', tokens);
addDateTokens('set', tokens);
addDateTokens('getUTC', tokens);
addDateTokens('setUTC', tokens);
}
tokens.push('toString');
mapNativeToChainable(name, tokens);
});
}
buildDontEnumFix();
buildChainableNativeMethodsFix();
/*** @namespace Object ***/
function assertNonNull(obj) {
if (obj == null) {
throw new TypeError('Object required');
}
}
defineStaticPolyfill(sugarObject, {
'keys': function(obj) {
var keys = [];
assertNonNull(obj);
forEachProperty(coercePrimitiveToObject(obj), function(val, key) {
keys.push(key);
});
return keys;
}
});
/*** @namespace Array ***/
function arrayIndexOf(arr, search, fromIndex, fromRight) {
var length = arr.length, defaultFromIndex, index, increment;
increment = fromRight ? -1 : 1;
defaultFromIndex = fromRight ? length - 1 : 0;
fromIndex = trunc(fromIndex);
if (!fromIndex && fromIndex !== 0) {
fromIndex = defaultFromIndex;
}
if (fromIndex < 0) {
fromIndex = length + fromIndex;
}
if ((!fromRight && fromIndex < 0) || (fromRight && fromIndex >= length)) {
fromIndex = defaultFromIndex;
}
index = fromIndex;
while((fromRight && index >= 0) || (!fromRight && index < length)) {
if (!(index in arr)) {
return sparseIndexOf(arr, search, fromIndex, fromRight);
}
if (isArrayIndex(index) && arr[index] === search) {
return index;
}
index += increment;
}
return -1;
}
function sparseIndexOf(arr, search, fromIndex, fromRight) {
var indexes = getSparseArrayIndexes(arr, fromIndex, false, fromRight), index;
indexes.sort(function(a, b) {
return fromRight ? b - a : a - b;
});
while ((index = indexes.shift()) !== undefined) {
if (arr[index] === search) {
return +index;
}
}
return -1;
}
function arrayReduce(arr, fn, initialValue, fromRight) {
var length = arr.length, count = 0, defined = isDefined(initialValue), result, index;
assertCallable(fn);
if (length == 0 && !defined) {
throw new TypeError('Reduce called on empty array with no initial value');
} else if (defined) {
result = initialValue;
} else {
result = arr[fromRight ? length - 1 : count];
count++;
}
while(count < length) {
index = fromRight ? length - count - 1 : count;
if (index in arr) {
result = fn(result, arr[index], index, arr);
}
count++;
}
return result;
}
defineStaticPolyfill(sugarArray, {
/***
*
* @method isArray(obj)
* @returns Boolean
* @polyfill ES5
* @static
* @short Returns true if `obj` is an Array.
*
* @example
*
* Array.isArray(3) -> false
* Array.isArray(true) -> false
* Array.isArray('wasabi') -> false
* Array.isArray([1,2,3]) -> true
*
***/
'isArray': function(obj) {
return isArray(obj);
}
});
defineInstancePolyfill(sugarArray, {
'every': function(fn) {
// Force compiler to respect argument length.
var argLen = arguments.length, context = arguments[1];
var length = this.length, index = 0;
assertCallable(fn);
while(index < length) {
if (index in this && !fn.call(context, this[index], index, this)) {
return false;
}
index++;
}
return true;
},
'some': function(fn) {
// Force compiler to respect argument length.
var argLen = arguments.length, context = arguments[1];
var length = this.length, index = 0;
assertCallable(fn);
while(index < length) {
if (index in this && fn.call(context, this[index], index, this)) {
return true;
}
index++;
}
return false;
},
'map': function(fn) {
// Force compiler to respect argument length.
var argLen = arguments.length, context = arguments[1];
var length = this.length, index = 0, result = new Array(length);
assertCallable(fn);
while(index < length) {
if (index in this) {
result[index] = fn.call(context, this[index], index, this);
}
index++;
}
return result;
},
'filter': function(fn) {
// Force compiler to respect argument length.
var argLen = arguments.length, context = arguments[1];
var length = this.length, index = 0, result = [];
assertCallable(fn);
while(index < length) {
if (index in this && fn.call(context, this[index], index, this)) {
result.push(this[index]);
}
index++;
}
return result;
},
/***
* @method indexOf(search, [fromIndex] = 0)
* @returns Number
* @polyfill ES5
* @short Searches the array and returns the first index where `search` occurs,
* or `-1` if the element is not found.
* @extra [fromIndex] is the index from which to begin the search. This
* method performs a simple strict equality comparison on `search`.
* Sugar does not enhance this method to support `enhanced matching`.
* For such functionality, use the `findIndex` method instead.
*
* @example
*
* [1,2,3].indexOf(3) -> 1
* [1,2,3].indexOf(7) -> -1
*
***/
'indexOf': function(search) {
// Force compiler to respect argument length.
var argLen = arguments.length, fromIndex = arguments[1];
if (isString(this)) return this.indexOf(search, fromIndex);
return arrayIndexOf(this, search, fromIndex);
},
/***
* @method lastIndexOf(search, [fromIndex] = array.length - 1)
* @returns Number
* @polyfill ES5
* @short Searches the array from the end and returns the first index where
* `search` occurs, or `-1` if the element is not found.
* @extra [fromIndex] is the index from which to begin the search. This method
* performs a simple strict equality comparison on `search`.
* Sugar does not enhance this method to support `enhanced matching`.
*
* @example
*
* [1,2,1].lastIndexOf(1) -> 2
* [1,2,1].lastIndexOf(7) -> -1
*
***/
'lastIndexOf': function(search) {
// Force compiler to respect argument length.
var argLen = arguments.length, fromIndex = arguments[1];
if (isString(this)) return this.lastIndexOf(search, fromIndex);
return arrayIndexOf(this, search, fromIndex, true);
},
/***
* @method forEach([eachFn], [context])
* @polyfill ES5
* @short Iterates over the array, calling [eachFn] on each loop.
* @extra [context] becomes the `this` object.
*
* @callback eachFn
*
* el The element of the current iteration.
* i The index of the current iteration.
* arr A reference to the array.
*
* @example
*
* ['a','b','c'].forEach(function(a) {
* // Called 3 times: 'a','b','c'
* });
*
***/
'forEach': function(eachFn) {
// Force compiler to respect argument length.
var argLen = arguments.length, context = arguments[1];
var length = this.length, index = 0;
assertCallable(eachFn);
while(index < length) {
if (index in this) {
eachFn.call(context, this[index], index, this);
}
index++;
}
},
/***
* @method reduce(reduceFn, [init])
* @returns Mixed
* @polyfill ES5
* @short Reduces the array to a single result.
* @extra This operation is sometimes called "accumulation", as it takes the
* result of the last iteration of `reduceFn` and passes it as the first
* argument to the next iteration, "accumulating" that value as it goes.
* The return value of this method will be the return value of the final
* iteration of `reduceFn`. If [init] is passed, it will be the initial
* "accumulator" (the first argument). If [init] is not passed, then it
* will take the first element in the array, and `reduceFn` will not be
* called for that element.
*
* @callback reduceFn
*
* acc The "accumulator". Either [init], the result of the last iteration
* of `reduceFn`, or the first element of the array.
* el The current element for this iteration.
* idx The current index for this iteration.
* arr A reference to the array.
*
* @example
*
* [1,2,3].reduce(function(a, b) {
* return a - b; // 1 - 2 - 3
* });
*
* [1,2,3].reduce(function(a, b) {
* return a - b; // 100 - 1 - 2 - 3
* }, 100);
*
***/
'reduce': function(reduceFn) {
// Force compiler to respect argument length.
var argLen = arguments.length, context = arguments[1];
return arrayReduce(this, reduceFn, context);
},
/***
* @method reduceRight([reduceFn], [init])
* @returns Mixed
* @polyfill ES5
* @short Similar to `Array#reduce`, but operates on the elements in reverse.
*
* @callback reduceFn
*
* acc The "accumulator", either [init], the result of the last iteration
* of `reduceFn`, or the last element of the array.
* el The current element for this iteration.
* idx The current index for this iteration.
* arr A reference to the array.
*
* @example
*
* [1,2,3].reduceRight(function(a, b) {
* return a - b; // 3 - 2 - 1
* });
*
* [1,2,3].reduceRight(function(a, b) {
* return a - b; // 100 - 3 - 2 - 1
* }, 100);
*
*
***/
'reduceRight': function(reduceFn) {
// Force compiler to respect argument length.
var argLen = arguments.length, context = arguments[1];
return arrayReduce(this, reduceFn, context, true);
}
});
/*** @namespace String ***/
var TRIM_REG = RegExp('^[' + TRIM_CHARS + ']+|['+ TRIM_CHARS +']+$', 'g');
defineInstancePolyfill(sugarString, {
/***
* @method trim()
* @returns String
* @polyfill ES5
* @short Removes leading and trailing whitespace from the string.
* @extra Whitespace is defined as line breaks, tabs, and any character in the
* "Space, Separator" Unicode category, conforming to the the ES5 spec.
*
* @example
*
* ' wasabi '.trim() -> 'wasabi'
* ' wasabi '.trimLeft() -> 'wasabi '
* ' wasabi '.trimRight() -> ' wasabi'
*
***/
'trim': function() {
return this.toString().replace(TRIM_REG, '');
}
});
/*** @namespace Function ***/
defineInstancePolyfill(sugarFunction, {
/***
* @method bind(context, [arg1], ...)
* @returns Function
* @polyfill ES5
* @short Binds `context` as the `this` object for the function when it is
* called. Also allows currying an unlimited number of parameters.
* @extra "currying" means setting parameters ([arg1], [arg2], etc.) ahead of
* time so that they are passed when the function is called later. If
* you pass additional parameters when the function is actually called,
* they will be added to the end of the curried parameters.
*
* @example
*
* logThis.bind('woof')() -> logs 'woof' as its this object
* addArgs.bind(1, 2, 3)() -> returns 5 with 1 as the this object
* addArgs.bind(1)(2, 3, 4) -> returns 9
*
***/
'bind': function(context) {
// Optimized: no leaking arguments
var boundArgs = []; for(var $i = 1, $len = arguments.length; $i < $len; $i++) boundArgs.push(arguments[$i]);
var fn = this, bound;
assertCallable(this);
bound = function() {
// Optimized: no leaking arguments
var args = []; for(var $i = 0, $len = arguments.length; $i < $len; $i++) args.push(arguments[$i]);
return fn.apply(fn.prototype && this instanceof fn ? this : context, boundArgs.concat(args));
};
bound.prototype = this.prototype;
return bound;
}
});
/*** @namespace Date ***/
defineStaticPolyfill(sugarDate, {
/***
* @method now()
* @returns String
* @polyfill ES5
* @static
* @short Returns the current time as a Unix timestamp.
* @extra The number of milliseconds since January 1st, 1970 00:00:00 (UTC).
*
* @example
*
* Date.now() -> ex. 1311938296231
*
***/
'now': function() {
return new Date().getTime();
}
});
function hasISOSupport() {
var d = new Date(Date.UTC(2000, 0));
return !!d.toISOString && d.toISOString() === '2000-01-01T00:00:00.000Z';
}
defineInstancePolyfill(sugarDate, {
/***
* @method toISOString()
* @returns String
* @polyfill ES5
* @short Formats the string to ISO8601 format.
* @extra This will always format as UTC time.
*
* @example
*
* Date.create().toISOString() -> ex. 2011-07-05 12:24:55.528Z
*
***/
'toISOString': function() {
return padNumber(this.getUTCFullYear(), 4) + '-' +
padNumber(this.getUTCMonth() + 1, 2) + '-' +
padNumber(this.getUTCDate(), 2) + 'T' +
padNumber(this.getUTCHours(), 2) + ':' +
padNumber(this.getUTCMinutes(), 2) + ':' +
padNumber(this.getUTCSeconds(), 2) + '.' +
padNumber(this.getUTCMilliseconds(), 3) + 'Z';
},
/***
* @method toJSON([key])
* @returns String
* @polyfill ES5
* @short Returns a JSON representation of the date.
* @extra This is effectively an alias for `toISOString`. Will always return
* the date in UTC time. [key] is ignored.
*
* @example
*
* Date.create().toJSON() -> ex. 2011-07-05 12:24:55.528Z
*
***/
'toJSON': function(key) {
// Force compiler to respect argument length.
var argLen = arguments.length;
return this.toISOString(key);
}
}, !hasISOSupport());
}).call(this);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/allCharsReg.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/allCharsReg.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function allCharsReg(src) {
return RegExp('[' + src + ']', 'g');
}
module.exports = allCharsReg;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/callDateGet.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/callDateGet.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _utc = __webpack_require__(/*! ../var/_utc */ "./node_modules/sugar-date/common/var/_utc.js");
function callDateGet(d, method) {
return d['get' + (_utc(d) ? 'UTC' : '') + method]();
}
module.exports = callDateGet;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/callDateSet.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/callDateSet.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _utc = __webpack_require__(/*! ../var/_utc */ "./node_modules/sugar-date/common/var/_utc.js"),
callDateGet = __webpack_require__(/*! ./callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js");
function callDateSet(d, method, value, safe) {
// "Safe" denotes not setting the date if the value is the same as what is
// currently set. In theory this should be a noop, however it will cause
// timezone shifts when in the middle of a DST fallback. This is unavoidable
// as the notation itself is ambiguous (i.e. there are two "1:00ams" on
// November 1st, 2015 in northern hemisphere timezones that follow DST),
// however when advancing or rewinding dates this can throw off calculations
// so avoiding this unintentional shifting on an opt-in basis.
if (safe && value === callDateGet(d, method, value)) {
return;
}
d['set' + (_utc(d) ? 'UTC' : '') + method](value);
}
module.exports = callDateSet;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/collectSimilarMethods.js":
/*!**************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/collectSimilarMethods.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var forEach = __webpack_require__(/*! ./forEach */ "./node_modules/sugar-date/common/internal/forEach.js"),
spaceSplit = __webpack_require__(/*! ./spaceSplit */ "./node_modules/sugar-date/common/internal/spaceSplit.js"),
classChecks = __webpack_require__(/*! ../var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js");
var isString = classChecks.isString;
function collectSimilarMethods(set, fn) {
var methods = {};
if (isString(set)) {
set = spaceSplit(set);
}
forEach(set, function(el, i) {
fn(methods, el, i);
});
return methods;
}
module.exports = collectSimilarMethods;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/commaSplit.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/commaSplit.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var CommonChars = __webpack_require__(/*! ../var/CommonChars */ "./node_modules/sugar-date/common/var/CommonChars.js");
var HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;
function commaSplit(str) {
return str.split(HALF_WIDTH_COMMA);
}
module.exports = commaSplit;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/createFormatMatcher.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/createFormatMatcher.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var STRING_FORMAT_REG = __webpack_require__(/*! ../var/STRING_FORMAT_REG */ "./node_modules/sugar-date/common/var/STRING_FORMAT_REG.js"),
CommonChars = __webpack_require__(/*! ../var/CommonChars */ "./node_modules/sugar-date/common/var/CommonChars.js"),
memoizeFunction = __webpack_require__(/*! ./memoizeFunction */ "./node_modules/sugar-date/common/internal/memoizeFunction.js");
var OPEN_BRACE = CommonChars.OPEN_BRACE,
CLOSE_BRACE = CommonChars.CLOSE_BRACE;
function createFormatMatcher(bracketMatcher, percentMatcher, precheck) {
var reg = STRING_FORMAT_REG;
var compileMemoized = memoizeFunction(compile);
function getToken(format, match) {
var get, token, literal, fn;
var bKey = match[2];
var pLit = match[3];
var pKey = match[5];
if (match[4] && percentMatcher) {
token = pKey;
get = percentMatcher;
} else if (bKey) {
token = bKey;
get = bracketMatcher;
} else if (pLit && percentMatcher) {
literal = pLit;
} else {
literal = match[1] || match[0];
}
if (get) {
assertPassesPrecheck(precheck, bKey, pKey);
fn = function(obj, opt) {
return get(obj, token, opt);
};
}
format.push(fn || getLiteral(literal));
}
function getSubstring(format, str, start, end) {
if (end > start) {
var sub = str.slice(start, end);
assertNoUnmatched(sub, OPEN_BRACE);
assertNoUnmatched(sub, CLOSE_BRACE);
format.push(function() {
return sub;
});
}
}
function getLiteral(str) {
return function() {
return str;
};
}
function assertPassesPrecheck(precheck, bt, pt) {
if (precheck && !precheck(bt, pt)) {
throw new TypeError('Invalid token '+ (bt || pt) +' in format string');
}
}
function assertNoUnmatched(str, chr) {
if (str.indexOf(chr) !== -1) {
throw new TypeError('Unmatched '+ chr +' in format string');
}
}
function compile(str) {
var format = [], lastIndex = 0, match;
reg.lastIndex = 0;
while(match = reg.exec(str)) {
getSubstring(format, str, lastIndex, match.index);
getToken(format, match);
lastIndex = reg.lastIndex;
}
getSubstring(format, str, lastIndex, str.length);
return format;
}
return function(str, obj, opt) {
var format = compileMemoized(str), result = '';
for (var i = 0; i < format.length; i++) {
result += format[i](obj, opt);
}
return result;
};
}
module.exports = createFormatMatcher;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/defineAccessor.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/defineAccessor.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var setProperty = coreUtilityAliases.setProperty;
function defineAccessor(namespace, name, fn) {
setProperty(namespace, name, fn);
}
module.exports = defineAccessor;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/defineInstanceSimilar.js":
/*!**************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/defineInstanceSimilar.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var methodDefineAliases = __webpack_require__(/*! ../var/methodDefineAliases */ "./node_modules/sugar-date/common/var/methodDefineAliases.js"),
collectSimilarMethods = __webpack_require__(/*! ./collectSimilarMethods */ "./node_modules/sugar-date/common/internal/collectSimilarMethods.js");
var defineInstance = methodDefineAliases.defineInstance;
function defineInstanceSimilar(sugarNamespace, set, fn, flags) {
defineInstance(sugarNamespace, collectSimilarMethods(set, fn), flags);
}
module.exports = defineInstanceSimilar;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/defineOnPrototype.js":
/*!**********************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/defineOnPrototype.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var forEachProperty = coreUtilityAliases.forEachProperty;
function defineOnPrototype(ctor, methods) {
var proto = ctor.prototype;
forEachProperty(methods, function(val, key) {
proto[key] = val;
});
}
module.exports = defineOnPrototype;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/defineOptionsAccessor.js":
/*!**************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/defineOptionsAccessor.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var simpleClone = __webpack_require__(/*! ./simpleClone */ "./node_modules/sugar-date/common/internal/simpleClone.js"),
defineAccessor = __webpack_require__(/*! ./defineAccessor */ "./node_modules/sugar-date/common/internal/defineAccessor.js"),
coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var forEachProperty = coreUtilityAliases.forEachProperty;
function defineOptionsAccessor(namespace, defaults) {
var obj = simpleClone(defaults);
function getOption(name) {
return obj[name];
}
function setOption(arg1, arg2) {
var options;
if (arguments.length === 1) {
options = arg1;
} else {
options = {};
options[arg1] = arg2;
}
forEachProperty(options, function(val, name) {
if (val === null) {
val = defaults[name];
}
obj[name] = val;
});
}
defineAccessor(namespace, 'getOption', getOption);
defineAccessor(namespace, 'setOption', setOption);
return getOption;
}
module.exports = defineOptionsAccessor;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/escapeRegExp.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/escapeRegExp.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var classChecks = __webpack_require__(/*! ../var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js");
var isString = classChecks.isString;
function escapeRegExp(str) {
if (!isString(str)) str = String(str);
return str.replace(/([\\/'*+?|()[\]{}.^$-])/g,'\\$1');
}
module.exports = escapeRegExp;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/filter.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/common/internal/filter.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function filter(arr, fn) {
var result = [];
for (var i = 0, len = arr.length; i < len; i++) {
var el = arr[i];
if (i in arr && fn(el, i)) {
result.push(el);
}
}
return result;
}
module.exports = filter;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/forEach.js":
/*!************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/forEach.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var iterateOverSparseArray = __webpack_require__(/*! ./iterateOverSparseArray */ "./node_modules/sugar-date/common/internal/iterateOverSparseArray.js");
function forEach(arr, fn) {
for (var i = 0, len = arr.length; i < len; i++) {
if (!(i in arr)) {
return iterateOverSparseArray(arr, fn, i);
}
fn(arr[i], i);
}
}
module.exports = forEach;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/getKeys.js":
/*!************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/getKeys.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function getKeys(obj) {
return Object.keys(obj);
}
module.exports = getKeys;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/getOrdinalSuffix.js":
/*!*********************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/getOrdinalSuffix.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function getOrdinalSuffix(num) {
if (num >= 11 && num <= 13) {
return 'th';
} else {
switch(num % 10) {
case 1: return 'st';
case 2: return 'nd';
case 3: return 'rd';
default: return 'th';
}
}
}
module.exports = getOrdinalSuffix;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/getOwnKey.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/getOwnKey.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var hasOwn = coreUtilityAliases.hasOwn;
function getOwnKey(obj, key) {
if (hasOwn(obj, key)) {
return key;
}
}
module.exports = getOwnKey;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/getSparseArrayIndexes.js":
/*!**************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/getSparseArrayIndexes.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var isArrayIndex = __webpack_require__(/*! ./isArrayIndex */ "./node_modules/sugar-date/common/internal/isArrayIndex.js");
function getSparseArrayIndexes(arr, fromIndex, loop, fromRight) {
var indexes = [], i;
for (i in arr) {
// istanbul ignore next
if (isArrayIndex(i) && (loop || (fromRight ? i <= fromIndex : i >= fromIndex))) {
indexes.push(+i);
}
}
indexes.sort(function(a, b) {
var aLoop = a > fromIndex;
var bLoop = b > fromIndex;
// This block cannot be reached unless ES5 methods are being shimmed.
// istanbul ignore if
if (aLoop !== bLoop) {
return aLoop ? -1 : 1;
}
return a - b;
});
return indexes;
}
module.exports = getSparseArrayIndexes;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/hasOwnEnumeratedProperties.js":
/*!*******************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/hasOwnEnumeratedProperties.js ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var hasOwn = coreUtilityAliases.hasOwn;
function hasOwnEnumeratedProperties(obj) {
// Plain objects are generally defined as having enumerated properties
// all their own, however in early IE environments without defineProperty,
// there may also be enumerated methods in the prototype chain, so check
// for both of these cases.
var objectProto = Object.prototype;
for (var key in obj) {
var val = obj[key];
if (!hasOwn(obj, key) && val !== objectProto[key]) {
return false;
}
}
return true;
}
module.exports = hasOwnEnumeratedProperties;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/hasValidPlainObjectPrototype.js":
/*!*********************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/hasValidPlainObjectPrototype.js ***!
\*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var hasOwn = coreUtilityAliases.hasOwn;
function hasValidPlainObjectPrototype(obj) {
var hasToString = 'toString' in obj;
var hasConstructor = 'constructor' in obj;
// An object created with Object.create(null) has no methods in the
// prototype chain, so check if any are missing. The additional hasToString
// check is for false positives on some host objects in old IE which have
// toString but no constructor. If the object has an inherited constructor,
// then check if it is Object (the "isPrototypeOf" tapdance here is a more
// robust way of ensuring this if the global has been hijacked). Note that
// accessing the constructor directly (without "in" or "hasOwnProperty")
// will throw a permissions error in IE8 on cross-domain windows.
return (!hasConstructor && !hasToString) ||
(hasConstructor && !hasOwn(obj, 'constructor') &&
hasOwn(obj.constructor.prototype, 'isPrototypeOf'));
}
module.exports = hasValidPlainObjectPrototype;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/isArrayIndex.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/isArrayIndex.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function isArrayIndex(n) {
return n >>> 0 == n && n != 0xFFFFFFFF;
}
module.exports = isArrayIndex;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/isClass.js":
/*!************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/isClass.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var classToString = coreUtilityAliases.classToString;
function isClass(obj, className, str) {
if (!str) {
str = classToString(obj);
}
return str === '[object '+ className +']';
}
module.exports = isClass;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/isDefined.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/isDefined.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function isDefined(o) {
return o !== undefined;
}
module.exports = isDefined;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/isObjectType.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/isObjectType.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function isObjectType(obj, type) {
return !!obj && (type || typeof obj) === 'object';
}
module.exports = isObjectType;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/isPlainObject.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/isPlainObject.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var isClass = __webpack_require__(/*! ./isClass */ "./node_modules/sugar-date/common/internal/isClass.js"),
isObjectType = __webpack_require__(/*! ./isObjectType */ "./node_modules/sugar-date/common/internal/isObjectType.js"),
hasOwnEnumeratedProperties = __webpack_require__(/*! ./hasOwnEnumeratedProperties */ "./node_modules/sugar-date/common/internal/hasOwnEnumeratedProperties.js"),
hasValidPlainObjectPrototype = __webpack_require__(/*! ./hasValidPlainObjectPrototype */ "./node_modules/sugar-date/common/internal/hasValidPlainObjectPrototype.js");
function isPlainObject(obj, className) {
return isObjectType(obj) &&
isClass(obj, 'Object', className) &&
hasValidPlainObjectPrototype(obj) &&
hasOwnEnumeratedProperties(obj);
}
module.exports = isPlainObject;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/isUndefined.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/isUndefined.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function isUndefined(o) {
return o === undefined;
}
module.exports = isUndefined;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/iterateOverSparseArray.js":
/*!***************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/iterateOverSparseArray.js ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getSparseArrayIndexes = __webpack_require__(/*! ./getSparseArrayIndexes */ "./node_modules/sugar-date/common/internal/getSparseArrayIndexes.js");
function iterateOverSparseArray(arr, fn, fromIndex, loop) {
var indexes = getSparseArrayIndexes(arr, fromIndex, loop), index;
for (var i = 0, len = indexes.length; i < len; i++) {
index = indexes[i];
fn.call(arr, arr[index], index, arr);
}
return arr;
}
module.exports = iterateOverSparseArray;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/map.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/common/internal/map.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function map(arr, fn) {
// perf: Not using fixed array len here as it may be sparse.
var result = [];
for (var i = 0, len = arr.length; i < len; i++) {
if (i in arr) {
result.push(fn(arr[i], i));
}
}
return result;
}
module.exports = map;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/memoizeFunction.js":
/*!********************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/memoizeFunction.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var INTERNAL_MEMOIZE_LIMIT = __webpack_require__(/*! ../var/INTERNAL_MEMOIZE_LIMIT */ "./node_modules/sugar-date/common/var/INTERNAL_MEMOIZE_LIMIT.js"),
coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var hasOwn = coreUtilityAliases.hasOwn;
function memoizeFunction(fn) {
var memo = {}, counter = 0;
return function(key) {
if (hasOwn(memo, key)) {
return memo[key];
}
// istanbul ignore if
if (counter === INTERNAL_MEMOIZE_LIMIT) {
memo = {};
counter = 0;
}
counter++;
return memo[key] = fn(key);
};
}
module.exports = memoizeFunction;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/padNumber.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/padNumber.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var mathAliases = __webpack_require__(/*! ../var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
repeatString = __webpack_require__(/*! ./repeatString */ "./node_modules/sugar-date/common/internal/repeatString.js");
var abs = mathAliases.abs;
function padNumber(num, place, sign, base, replacement) {
var str = abs(num).toString(base || 10);
str = repeatString(replacement || '0', place - str.replace(/\.\d+/, '').length) + str;
if (sign || num < 0) {
str = (num < 0 ? '-' : '+') + str;
}
return str;
}
module.exports = padNumber;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/periodSplit.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/periodSplit.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var CommonChars = __webpack_require__(/*! ../var/CommonChars */ "./node_modules/sugar-date/common/var/CommonChars.js");
var HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD;
function periodSplit(str) {
return str.split(HALF_WIDTH_PERIOD);
}
module.exports = periodSplit;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/privatePropertyAccessor.js":
/*!****************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/privatePropertyAccessor.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var PRIVATE_PROP_PREFIX = __webpack_require__(/*! ../var/PRIVATE_PROP_PREFIX */ "./node_modules/sugar-date/common/var/PRIVATE_PROP_PREFIX.js"),
coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var setProperty = coreUtilityAliases.setProperty;
function privatePropertyAccessor(key) {
var privateKey = PRIVATE_PROP_PREFIX + key;
return function(obj, val) {
if (arguments.length > 1) {
setProperty(obj, privateKey, val);
return obj;
}
return obj[privateKey];
};
}
module.exports = privatePropertyAccessor;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/repeatString.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/repeatString.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function repeatString(str, num) {
var result = '';
str = str.toString();
while (num > 0) {
if (num & 1) {
result += str;
}
if (num >>= 1) {
str += str;
}
}
return result;
}
module.exports = repeatString;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/setChainableConstructor.js":
/*!****************************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/setChainableConstructor.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function setChainableConstructor(sugarNamespace, createFn) {
sugarNamespace.prototype.constructor = function() {
return createFn.apply(this, arguments);
};
}
module.exports = setChainableConstructor;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/simpleCapitalize.js":
/*!*********************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/simpleCapitalize.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function simpleCapitalize(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
}
module.exports = simpleCapitalize;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/simpleClone.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/simpleClone.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var simpleMerge = __webpack_require__(/*! ./simpleMerge */ "./node_modules/sugar-date/common/internal/simpleMerge.js");
function simpleClone(obj) {
return simpleMerge({}, obj);
}
module.exports = simpleClone;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/simpleMerge.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/simpleMerge.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var coreUtilityAliases = __webpack_require__(/*! ../var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var forEachProperty = coreUtilityAliases.forEachProperty;
function simpleMerge(target, source) {
forEachProperty(source, function(val, key) {
target[key] = val;
});
return target;
}
module.exports = simpleMerge;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/spaceSplit.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/spaceSplit.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function spaceSplit(str) {
return str.split(' ');
}
module.exports = spaceSplit;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/trim.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/common/internal/trim.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function trim(str) {
return str.trim();
}
module.exports = trim;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/withPrecision.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/withPrecision.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var mathAliases = __webpack_require__(/*! ../var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js");
var abs = mathAliases.abs,
pow = mathAliases.pow,
round = mathAliases.round;
function withPrecision(val, precision, fn) {
var multiplier = pow(10, abs(precision || 0));
fn = fn || round;
if (precision < 0) multiplier = 1 / multiplier;
return fn(val * multiplier) / multiplier;
}
module.exports = withPrecision;
/***/ }),
/***/ "./node_modules/sugar-date/common/internal/wrapNamespace.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/common/internal/wrapNamespace.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function wrapNamespace(method) {
return function(sugarNamespace, arg1, arg2) {
sugarNamespace[method](arg1, arg2);
};
}
module.exports = wrapNamespace;
/***/ }),
/***/ "./node_modules/sugar-date/common/var/CommonChars.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/common/var/CommonChars.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
HALF_WIDTH_ZERO: 0x30,
FULL_WIDTH_ZERO: 0xff10,
HALF_WIDTH_PERIOD: '.',
FULL_WIDTH_PERIOD: '',
HALF_WIDTH_COMMA: ',',
OPEN_BRACE: '{',
CLOSE_BRACE: '}'
};
/***/ }),
/***/ "./node_modules/sugar-date/common/var/INTERNAL_MEMOIZE_LIMIT.js":
/*!**********************************************************************!*\
!*** ./node_modules/sugar-date/common/var/INTERNAL_MEMOIZE_LIMIT.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = 1000;
/***/ }),
/***/ "./node_modules/sugar-date/common/var/NATIVE_TYPES.js":
/*!************************************************************!*\
!*** ./node_modules/sugar-date/common/var/NATIVE_TYPES.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = 'Boolean Number String Date RegExp Function Array Error Set Map';
/***/ }),
/***/ "./node_modules/sugar-date/common/var/PRIVATE_PROP_PREFIX.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/common/var/PRIVATE_PROP_PREFIX.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = '_sugar_';
/***/ }),
/***/ "./node_modules/sugar-date/common/var/STRING_FORMAT_REG.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/common/var/STRING_FORMAT_REG.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = /([{}])\1|{([^}]*)}|(%)%|(%(\w*))/g;
/***/ }),
/***/ "./node_modules/sugar-date/common/var/_utc.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/common/var/_utc.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var privatePropertyAccessor = __webpack_require__(/*! ../internal/privatePropertyAccessor */ "./node_modules/sugar-date/common/internal/privatePropertyAccessor.js");
module.exports = privatePropertyAccessor('utc');
/***/ }),
/***/ "./node_modules/sugar-date/common/var/chr.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/common/var/chr.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = String.fromCharCode;
/***/ }),
/***/ "./node_modules/sugar-date/common/var/classChecks.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/common/var/classChecks.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var NATIVE_TYPES = __webpack_require__(/*! ./NATIVE_TYPES */ "./node_modules/sugar-date/common/var/NATIVE_TYPES.js"),
forEach = __webpack_require__(/*! ../internal/forEach */ "./node_modules/sugar-date/common/internal/forEach.js"),
isClass = __webpack_require__(/*! ../internal/isClass */ "./node_modules/sugar-date/common/internal/isClass.js"),
spaceSplit = __webpack_require__(/*! ../internal/spaceSplit */ "./node_modules/sugar-date/common/internal/spaceSplit.js"),
isPlainObject = __webpack_require__(/*! ../internal/isPlainObject */ "./node_modules/sugar-date/common/internal/isPlainObject.js");
var isSerializable,
isBoolean, isNumber, isString,
isDate, isRegExp, isFunction,
isArray, isSet, isMap, isError;
function buildClassChecks() {
var knownTypes = {};
function addCoreTypes() {
var names = spaceSplit(NATIVE_TYPES);
isBoolean = buildPrimitiveClassCheck(names[0]);
isNumber = buildPrimitiveClassCheck(names[1]);
isString = buildPrimitiveClassCheck(names[2]);
isDate = buildClassCheck(names[3]);
isRegExp = buildClassCheck(names[4]);
// Wanted to enhance performance here by using simply "typeof"
// but Firefox has two major issues that make this impossible,
// one fixed, the other not, so perform a full class check here.
//
// 1. Regexes can be typeof "function" in FF < 3
// https://bugzilla.mozilla.org/show_bug.cgi?id=61911 (fixed)
//
// 2. HTMLEmbedElement and HTMLObjectElement are be typeof "function"
// https://bugzilla.mozilla.org/show_bug.cgi?id=268945 (won't fix)
isFunction = buildClassCheck(names[5]);
// istanbul ignore next
isArray = Array.isArray || buildClassCheck(names[6]);
isError = buildClassCheck(names[7]);
isSet = buildClassCheck(names[8], typeof Set !== 'undefined' && Set);
isMap = buildClassCheck(names[9], typeof Map !== 'undefined' && Map);
// Add core types as known so that they can be checked by value below,
// notably excluding Functions and adding Arguments and Error.
addKnownType('Arguments');
addKnownType(names[0]);
addKnownType(names[1]);
addKnownType(names[2]);
addKnownType(names[3]);
addKnownType(names[4]);
addKnownType(names[6]);
}
function addArrayTypes() {
var types = 'Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64';
forEach(spaceSplit(types), function(str) {
addKnownType(str + 'Array');
});
}
function addKnownType(className) {
var str = '[object '+ className +']';
knownTypes[str] = true;
}
function isKnownType(className) {
return knownTypes[className];
}
function buildClassCheck(className, globalObject) {
// istanbul ignore if
if (globalObject && isClass(new globalObject, 'Object')) {
return getConstructorClassCheck(globalObject);
} else {
return getToStringClassCheck(className);
}
}
// Map and Set may be [object Object] in certain IE environments.
// In this case we need to perform a check using the constructor
// instead of Object.prototype.toString.
// istanbul ignore next
function getConstructorClassCheck(obj) {
var ctorStr = String(obj);
return function(obj) {
return String(obj.constructor) === ctorStr;
};
}
function getToStringClassCheck(className) {
return function(obj, str) {
// perf: Returning up front on instanceof appears to be slower.
return isClass(obj, className, str);
};
}
function buildPrimitiveClassCheck(className) {
var type = className.toLowerCase();
return function(obj) {
var t = typeof obj;
return t === type || t === 'object' && isClass(obj, className);
};
}
addCoreTypes();
addArrayTypes();
isSerializable = function(obj, className) {
// Only known objects can be serialized. This notably excludes functions,
// host objects, Symbols (which are matched by reference), and instances
// of classes. The latter can arguably be matched by value, but
// distinguishing between these and host objects -- which should never be
// compared by value -- is very tricky so not dealing with it here.
return isKnownType(className) || isPlainObject(obj, className);
};
}
buildClassChecks();
module.exports = {
isSerializable: isSerializable,
isBoolean: isBoolean,
isNumber: isNumber,
isString: isString,
isDate: isDate,
isRegExp: isRegExp,
isFunction: isFunction,
isArray: isArray,
isSet: isSet,
isMap: isMap,
isError: isError
};
/***/ }),
/***/ "./node_modules/sugar-date/common/var/coreUtilityAliases.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/common/var/coreUtilityAliases.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
module.exports = {
hasOwn: Sugar.util.hasOwn,
getOwn: Sugar.util.getOwn,
setProperty: Sugar.util.setProperty,
classToString: Sugar.util.classToString,
defineProperty: Sugar.util.defineProperty,
forEachProperty: Sugar.util.forEachProperty,
mapNativeToChainable: Sugar.util.mapNativeToChainable
};
/***/ }),
/***/ "./node_modules/sugar-date/common/var/fullwidthNumberHelpers.js":
/*!**********************************************************************!*\
!*** ./node_modules/sugar-date/common/var/fullwidthNumberHelpers.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var CommonChars = __webpack_require__(/*! ./CommonChars */ "./node_modules/sugar-date/common/var/CommonChars.js"),
chr = __webpack_require__(/*! ./chr */ "./node_modules/sugar-date/common/var/chr.js"),
allCharsReg = __webpack_require__(/*! ../internal/allCharsReg */ "./node_modules/sugar-date/common/internal/allCharsReg.js");
var HALF_WIDTH_ZERO = CommonChars.HALF_WIDTH_ZERO,
FULL_WIDTH_ZERO = CommonChars.FULL_WIDTH_ZERO,
HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD,
FULL_WIDTH_PERIOD = CommonChars.FULL_WIDTH_PERIOD,
HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;
var fullWidthNumberReg, fullWidthNumberMap, fullWidthNumbers;
function buildFullWidthNumber() {
var fwp = FULL_WIDTH_PERIOD, hwp = HALF_WIDTH_PERIOD, hwc = HALF_WIDTH_COMMA, fwn = '';
fullWidthNumberMap = {};
for (var i = 0, digit; i <= 9; i++) {
digit = chr(i + FULL_WIDTH_ZERO);
fwn += digit;
fullWidthNumberMap[digit] = chr(i + HALF_WIDTH_ZERO);
}
fullWidthNumberMap[hwc] = '';
fullWidthNumberMap[fwp] = hwp;
// Mapping this to itself to capture it easily
// in stringToNumber to detect decimals later.
fullWidthNumberMap[hwp] = hwp;
fullWidthNumberReg = allCharsReg(fwn + fwp + hwc + hwp);
fullWidthNumbers = fwn;
}
buildFullWidthNumber();
module.exports = {
fullWidthNumberReg: fullWidthNumberReg,
fullWidthNumberMap: fullWidthNumberMap,
fullWidthNumbers: fullWidthNumbers
};
/***/ }),
/***/ "./node_modules/sugar-date/common/var/mathAliases.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/common/var/mathAliases.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
abs: Math.abs,
pow: Math.pow,
min: Math.min,
max: Math.max,
ceil: Math.ceil,
floor: Math.floor,
round: Math.round
};
/***/ }),
/***/ "./node_modules/sugar-date/common/var/methodDefineAliases.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/common/var/methodDefineAliases.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var wrapNamespace = __webpack_require__(/*! ../internal/wrapNamespace */ "./node_modules/sugar-date/common/internal/wrapNamespace.js");
module.exports = {
alias: wrapNamespace('alias'),
defineStatic: wrapNamespace('defineStatic'),
defineInstance: wrapNamespace('defineInstance'),
defineStaticPolyfill: wrapNamespace('defineStaticPolyfill'),
defineInstancePolyfill: wrapNamespace('defineInstancePolyfill'),
defineInstanceAndStatic: wrapNamespace('defineInstanceAndStatic'),
defineInstanceWithArguments: wrapNamespace('defineInstanceWithArguments')
};
/***/ }),
/***/ "./node_modules/sugar-date/common/var/namespaceAliases.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/common/var/namespaceAliases.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
module.exports = {
sugarObject: Sugar.Object,
sugarArray: Sugar.Array,
sugarDate: Sugar.Date,
sugarString: Sugar.String,
sugarNumber: Sugar.Number,
sugarFunction: Sugar.Function,
sugarRegExp: Sugar.RegExp
};
/***/ }),
/***/ "./node_modules/sugar-date/common/var/trunc.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/common/var/trunc.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var mathAliases = __webpack_require__(/*! ./mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js");
var ceil = mathAliases.ceil,
floor = mathAliases.floor;
var trunc = Math.trunc || function(n) {
if (n === 0 || !isFinite(n)) return n;
return n < 0 ? ceil(n) : floor(n);
};
module.exports = trunc;
/***/ }),
/***/ "./node_modules/sugar-date/date/addDays.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/date/addDays.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.addDays;
/***/ }),
/***/ "./node_modules/sugar-date/date/addHours.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/addHours.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.addHours;
/***/ }),
/***/ "./node_modules/sugar-date/date/addLocale.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/addLocale.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
LocaleHelpers = __webpack_require__(/*! ./var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js");
var localeManager = LocaleHelpers.localeManager;
Sugar.Date.defineStatic({
'addLocale': function(code, set) {
return localeManager.add(code, set);
}
});
module.exports = Sugar.Date.addLocale;
/***/ }),
/***/ "./node_modules/sugar-date/date/addMilliseconds.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/date/addMilliseconds.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.addMilliseconds;
/***/ }),
/***/ "./node_modules/sugar-date/date/addMinutes.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/addMinutes.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.addMinutes;
/***/ }),
/***/ "./node_modules/sugar-date/date/addMonths.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/addMonths.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.addMonths;
/***/ }),
/***/ "./node_modules/sugar-date/date/addSeconds.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/addSeconds.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.addSeconds;
/***/ }),
/***/ "./node_modules/sugar-date/date/addWeeks.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/addWeeks.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.addWeeks;
/***/ }),
/***/ "./node_modules/sugar-date/date/addYears.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/addYears.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.addYears;
/***/ }),
/***/ "./node_modules/sugar-date/date/advance.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/date/advance.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
advanceDateWithArgs = __webpack_require__(/*! ./internal/advanceDateWithArgs */ "./node_modules/sugar-date/date/internal/advanceDateWithArgs.js");
Sugar.Date.defineInstanceWithArguments({
'advance': function(d, args) {
return advanceDateWithArgs(d, args, 1);
}
});
module.exports = Sugar.Date.advance;
/***/ }),
/***/ "./node_modules/sugar-date/date/beginningOfDay.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/date/beginningOfDay.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.beginningOfDay;
/***/ }),
/***/ "./node_modules/sugar-date/date/beginningOfISOWeek.js":
/*!************************************************************!*\
!*** ./node_modules/sugar-date/date/beginningOfISOWeek.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
resetTime = __webpack_require__(/*! ./internal/resetTime */ "./node_modules/sugar-date/date/internal/resetTime.js"),
getWeekday = __webpack_require__(/*! ./internal/getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js"),
setWeekday = __webpack_require__(/*! ./internal/setWeekday */ "./node_modules/sugar-date/date/internal/setWeekday.js");
Sugar.Date.defineInstance({
'beginningOfISOWeek': function(date) {
var day = getWeekday(date);
if (day === 0) {
day = -6;
} else if (day !== 1) {
day = 1;
}
setWeekday(date, day);
return resetTime(date);
}
});
module.exports = Sugar.Date.beginningOfISOWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/beginningOfMonth.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/date/beginningOfMonth.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.beginningOfMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/beginningOfWeek.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/date/beginningOfWeek.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.beginningOfWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/beginningOfYear.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/date/beginningOfYear.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.beginningOfYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var buildDateUnitMethods = __webpack_require__(/*! ../internal/buildDateUnitMethods */ "./node_modules/sugar-date/date/internal/buildDateUnitMethods.js");
buildDateUnitMethods();
/***/ }),
/***/ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js":
/*!**************************************************************************!*\
!*** ./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var buildNumberUnitMethods = __webpack_require__(/*! ../internal/buildNumberUnitMethods */ "./node_modules/sugar-date/date/internal/buildNumberUnitMethods.js");
buildNumberUnitMethods();
/***/ }),
/***/ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var buildRelativeAliases = __webpack_require__(/*! ../internal/buildRelativeAliases */ "./node_modules/sugar-date/date/internal/buildRelativeAliases.js");
buildRelativeAliases();
/***/ }),
/***/ "./node_modules/sugar-date/date/build/setDateChainableConstructorCall.js":
/*!*******************************************************************************!*\
!*** ./node_modules/sugar-date/date/build/setDateChainableConstructorCall.js ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var setDateChainableConstructor = __webpack_require__(/*! ../internal/setDateChainableConstructor */ "./node_modules/sugar-date/date/internal/setDateChainableConstructor.js");
setDateChainableConstructor();
/***/ }),
/***/ "./node_modules/sugar-date/date/clone.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/date/clone.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
cloneDate = __webpack_require__(/*! ./internal/cloneDate */ "./node_modules/sugar-date/date/internal/cloneDate.js");
Sugar.Date.defineInstance({
'clone': function(date) {
return cloneDate(date);
}
});
module.exports = Sugar.Date.clone;
/***/ }),
/***/ "./node_modules/sugar-date/date/create.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/date/create.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
createDate = __webpack_require__(/*! ./internal/createDate */ "./node_modules/sugar-date/date/internal/createDate.js");
__webpack_require__(/*! ./build/setDateChainableConstructorCall */ "./node_modules/sugar-date/date/build/setDateChainableConstructorCall.js");
Sugar.Date.defineStatic({
'create': function(d, options) {
return createDate(d, options);
}
});
module.exports = Sugar.Date.create;
/***/ }),
/***/ "./node_modules/sugar-date/date/daysAgo.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/date/daysAgo.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.daysAgo;
/***/ }),
/***/ "./node_modules/sugar-date/date/daysFromNow.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/daysFromNow.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.daysFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/date/daysInMonth.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/daysInMonth.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
getDaysInMonth = __webpack_require__(/*! ./internal/getDaysInMonth */ "./node_modules/sugar-date/date/internal/getDaysInMonth.js");
Sugar.Date.defineInstance({
'daysInMonth': function(date) {
return getDaysInMonth(date);
}
});
module.exports = Sugar.Date.daysInMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/daysSince.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/daysSince.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.daysSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/daysUntil.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/daysUntil.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.daysUntil;
/***/ }),
/***/ "./node_modules/sugar-date/date/endOfDay.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/endOfDay.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.endOfDay;
/***/ }),
/***/ "./node_modules/sugar-date/date/endOfISOWeek.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/endOfISOWeek.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
DateUnitIndexes = __webpack_require__(/*! ./var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
getWeekday = __webpack_require__(/*! ./internal/getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js"),
setWeekday = __webpack_require__(/*! ./internal/setWeekday */ "./node_modules/sugar-date/date/internal/setWeekday.js"),
moveToEndOfUnit = __webpack_require__(/*! ./internal/moveToEndOfUnit */ "./node_modules/sugar-date/date/internal/moveToEndOfUnit.js");
var DAY_INDEX = DateUnitIndexes.DAY_INDEX;
Sugar.Date.defineInstance({
'endOfISOWeek': function(date) {
if (getWeekday(date) !== 0) {
setWeekday(date, 7);
}
return moveToEndOfUnit(date, DAY_INDEX);
}
});
module.exports = Sugar.Date.endOfISOWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/endOfMonth.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/endOfMonth.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.endOfMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/endOfWeek.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/endOfWeek.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.endOfWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/endOfYear.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/endOfYear.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.endOfYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/format.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/date/format.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
dateFormat = __webpack_require__(/*! ./internal/dateFormat */ "./node_modules/sugar-date/date/internal/dateFormat.js");
Sugar.Date.defineInstance({
'format': function(date, f, localeCode) {
return dateFormat(date, f, localeCode);
}
});
module.exports = Sugar.Date.format;
/***/ }),
/***/ "./node_modules/sugar-date/date/get.js":
/*!*********************************************!*\
!*** ./node_modules/sugar-date/date/get.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
createDateWithContext = __webpack_require__(/*! ./internal/createDateWithContext */ "./node_modules/sugar-date/date/internal/createDateWithContext.js");
Sugar.Date.defineInstance({
'get': function(date, d, options) {
return createDateWithContext(date, d, options);
}
});
module.exports = Sugar.Date.get;
/***/ }),
/***/ "./node_modules/sugar-date/date/getAllLocaleCodes.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/date/getAllLocaleCodes.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
LocaleHelpers = __webpack_require__(/*! ./var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
getKeys = __webpack_require__(/*! ../common/internal/getKeys */ "./node_modules/sugar-date/common/internal/getKeys.js");
var localeManager = LocaleHelpers.localeManager;
Sugar.Date.defineStatic({
'getAllLocaleCodes': function() {
return getKeys(localeManager.getAll());
}
});
module.exports = Sugar.Date.getAllLocaleCodes;
/***/ }),
/***/ "./node_modules/sugar-date/date/getAllLocales.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/date/getAllLocales.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
LocaleHelpers = __webpack_require__(/*! ./var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js");
var localeManager = LocaleHelpers.localeManager;
Sugar.Date.defineStatic({
'getAllLocales': function() {
return localeManager.getAll();
}
});
module.exports = Sugar.Date.getAllLocales;
/***/ }),
/***/ "./node_modules/sugar-date/date/getISOWeek.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/getISOWeek.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
getWeekNumber = __webpack_require__(/*! ./internal/getWeekNumber */ "./node_modules/sugar-date/date/internal/getWeekNumber.js");
Sugar.Date.defineInstance({
'getISOWeek': function(date) {
return getWeekNumber(date, true);
}
});
module.exports = Sugar.Date.getISOWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/getLocale.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/getLocale.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
LocaleHelpers = __webpack_require__(/*! ./var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js");
var localeManager = LocaleHelpers.localeManager;
Sugar.Date.defineStatic({
'getLocale': function(code) {
return localeManager.get(code, !code);
}
});
module.exports = Sugar.Date.getLocale;
/***/ }),
/***/ "./node_modules/sugar-date/date/getOption.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/getOption.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
_dateOptions = __webpack_require__(/*! ./var/_dateOptions */ "./node_modules/sugar-date/date/var/_dateOptions.js");
module.exports = Sugar.Date.getOption;
/***/ }),
/***/ "./node_modules/sugar-date/date/getUTCOffset.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/getUTCOffset.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
getUTCOffset = __webpack_require__(/*! ./internal/getUTCOffset */ "./node_modules/sugar-date/date/internal/getUTCOffset.js");
Sugar.Date.defineInstance({
'getUTCOffset': function(date, iso) {
return getUTCOffset(date, iso);
}
});
module.exports = Sugar.Date.getUTCOffset;
/***/ }),
/***/ "./node_modules/sugar-date/date/getUTCWeekday.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/date/getUTCWeekday.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
Sugar.Date.defineInstance({
'getUTCWeekday': function(date) {
return date.getUTCDay();
}
});
module.exports = Sugar.Date.getUTCWeekday;
/***/ }),
/***/ "./node_modules/sugar-date/date/getWeekday.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/getWeekday.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
getWeekday = __webpack_require__(/*! ./internal/getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js");
Sugar.Date.defineInstance({
'getWeekday': function(date) {
return getWeekday(date);
}
});
module.exports = Sugar.Date.getWeekday;
/***/ }),
/***/ "./node_modules/sugar-date/date/hoursAgo.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/hoursAgo.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.hoursAgo;
/***/ }),
/***/ "./node_modules/sugar-date/date/hoursFromNow.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/hoursFromNow.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.hoursFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/date/hoursSince.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/hoursSince.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.hoursSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/hoursUntil.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/hoursUntil.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.hoursUntil;
/***/ }),
/***/ "./node_modules/sugar-date/date/index.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/date/index.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// Static Methods
__webpack_require__(/*! ./addLocale */ "./node_modules/sugar-date/date/addLocale.js");
__webpack_require__(/*! ./create */ "./node_modules/sugar-date/date/create.js");
__webpack_require__(/*! ./getAllLocaleCodes */ "./node_modules/sugar-date/date/getAllLocaleCodes.js");
__webpack_require__(/*! ./getAllLocales */ "./node_modules/sugar-date/date/getAllLocales.js");
__webpack_require__(/*! ./getLocale */ "./node_modules/sugar-date/date/getLocale.js");
__webpack_require__(/*! ./removeLocale */ "./node_modules/sugar-date/date/removeLocale.js");
__webpack_require__(/*! ./setLocale */ "./node_modules/sugar-date/date/setLocale.js");
// Instance Methods
__webpack_require__(/*! ../number/day */ "./node_modules/sugar-date/number/day.js");
__webpack_require__(/*! ../number/dayAfter */ "./node_modules/sugar-date/number/dayAfter.js");
__webpack_require__(/*! ../number/dayAgo */ "./node_modules/sugar-date/number/dayAgo.js");
__webpack_require__(/*! ../number/dayBefore */ "./node_modules/sugar-date/number/dayBefore.js");
__webpack_require__(/*! ../number/dayFromNow */ "./node_modules/sugar-date/number/dayFromNow.js");
__webpack_require__(/*! ../number/days */ "./node_modules/sugar-date/number/days.js");
__webpack_require__(/*! ../number/daysAfter */ "./node_modules/sugar-date/number/daysAfter.js");
__webpack_require__(/*! ../number/daysAgo */ "./node_modules/sugar-date/number/daysAgo.js");
__webpack_require__(/*! ../number/daysBefore */ "./node_modules/sugar-date/number/daysBefore.js");
__webpack_require__(/*! ../number/daysFromNow */ "./node_modules/sugar-date/number/daysFromNow.js");
__webpack_require__(/*! ../number/duration */ "./node_modules/sugar-date/number/duration.js");
__webpack_require__(/*! ../number/hour */ "./node_modules/sugar-date/number/hour.js");
__webpack_require__(/*! ../number/hourAfter */ "./node_modules/sugar-date/number/hourAfter.js");
__webpack_require__(/*! ../number/hourAgo */ "./node_modules/sugar-date/number/hourAgo.js");
__webpack_require__(/*! ../number/hourBefore */ "./node_modules/sugar-date/number/hourBefore.js");
__webpack_require__(/*! ../number/hourFromNow */ "./node_modules/sugar-date/number/hourFromNow.js");
__webpack_require__(/*! ../number/hours */ "./node_modules/sugar-date/number/hours.js");
__webpack_require__(/*! ../number/hoursAfter */ "./node_modules/sugar-date/number/hoursAfter.js");
__webpack_require__(/*! ../number/hoursAgo */ "./node_modules/sugar-date/number/hoursAgo.js");
__webpack_require__(/*! ../number/hoursBefore */ "./node_modules/sugar-date/number/hoursBefore.js");
__webpack_require__(/*! ../number/hoursFromNow */ "./node_modules/sugar-date/number/hoursFromNow.js");
__webpack_require__(/*! ../number/millisecond */ "./node_modules/sugar-date/number/millisecond.js");
__webpack_require__(/*! ../number/millisecondAfter */ "./node_modules/sugar-date/number/millisecondAfter.js");
__webpack_require__(/*! ../number/millisecondAgo */ "./node_modules/sugar-date/number/millisecondAgo.js");
__webpack_require__(/*! ../number/millisecondBefore */ "./node_modules/sugar-date/number/millisecondBefore.js");
__webpack_require__(/*! ../number/millisecondFromNow */ "./node_modules/sugar-date/number/millisecondFromNow.js");
__webpack_require__(/*! ../number/milliseconds */ "./node_modules/sugar-date/number/milliseconds.js");
__webpack_require__(/*! ../number/millisecondsAfter */ "./node_modules/sugar-date/number/millisecondsAfter.js");
__webpack_require__(/*! ../number/millisecondsAgo */ "./node_modules/sugar-date/number/millisecondsAgo.js");
__webpack_require__(/*! ../number/millisecondsBefore */ "./node_modules/sugar-date/number/millisecondsBefore.js");
__webpack_require__(/*! ../number/millisecondsFromNow */ "./node_modules/sugar-date/number/millisecondsFromNow.js");
__webpack_require__(/*! ../number/minute */ "./node_modules/sugar-date/number/minute.js");
__webpack_require__(/*! ../number/minuteAfter */ "./node_modules/sugar-date/number/minuteAfter.js");
__webpack_require__(/*! ../number/minuteAgo */ "./node_modules/sugar-date/number/minuteAgo.js");
__webpack_require__(/*! ../number/minuteBefore */ "./node_modules/sugar-date/number/minuteBefore.js");
__webpack_require__(/*! ../number/minuteFromNow */ "./node_modules/sugar-date/number/minuteFromNow.js");
__webpack_require__(/*! ../number/minutes */ "./node_modules/sugar-date/number/minutes.js");
__webpack_require__(/*! ../number/minutesAfter */ "./node_modules/sugar-date/number/minutesAfter.js");
__webpack_require__(/*! ../number/minutesAgo */ "./node_modules/sugar-date/number/minutesAgo.js");
__webpack_require__(/*! ../number/minutesBefore */ "./node_modules/sugar-date/number/minutesBefore.js");
__webpack_require__(/*! ../number/minutesFromNow */ "./node_modules/sugar-date/number/minutesFromNow.js");
__webpack_require__(/*! ../number/month */ "./node_modules/sugar-date/number/month.js");
__webpack_require__(/*! ../number/monthAfter */ "./node_modules/sugar-date/number/monthAfter.js");
__webpack_require__(/*! ../number/monthAgo */ "./node_modules/sugar-date/number/monthAgo.js");
__webpack_require__(/*! ../number/monthBefore */ "./node_modules/sugar-date/number/monthBefore.js");
__webpack_require__(/*! ../number/monthFromNow */ "./node_modules/sugar-date/number/monthFromNow.js");
__webpack_require__(/*! ../number/months */ "./node_modules/sugar-date/number/months.js");
__webpack_require__(/*! ../number/monthsAfter */ "./node_modules/sugar-date/number/monthsAfter.js");
__webpack_require__(/*! ../number/monthsAgo */ "./node_modules/sugar-date/number/monthsAgo.js");
__webpack_require__(/*! ../number/monthsBefore */ "./node_modules/sugar-date/number/monthsBefore.js");
__webpack_require__(/*! ../number/monthsFromNow */ "./node_modules/sugar-date/number/monthsFromNow.js");
__webpack_require__(/*! ../number/second */ "./node_modules/sugar-date/number/second.js");
__webpack_require__(/*! ../number/secondAfter */ "./node_modules/sugar-date/number/secondAfter.js");
__webpack_require__(/*! ../number/secondAgo */ "./node_modules/sugar-date/number/secondAgo.js");
__webpack_require__(/*! ../number/secondBefore */ "./node_modules/sugar-date/number/secondBefore.js");
__webpack_require__(/*! ../number/secondFromNow */ "./node_modules/sugar-date/number/secondFromNow.js");
__webpack_require__(/*! ../number/seconds */ "./node_modules/sugar-date/number/seconds.js");
__webpack_require__(/*! ../number/secondsAfter */ "./node_modules/sugar-date/number/secondsAfter.js");
__webpack_require__(/*! ../number/secondsAgo */ "./node_modules/sugar-date/number/secondsAgo.js");
__webpack_require__(/*! ../number/secondsBefore */ "./node_modules/sugar-date/number/secondsBefore.js");
__webpack_require__(/*! ../number/secondsFromNow */ "./node_modules/sugar-date/number/secondsFromNow.js");
__webpack_require__(/*! ../number/week */ "./node_modules/sugar-date/number/week.js");
__webpack_require__(/*! ../number/weekAfter */ "./node_modules/sugar-date/number/weekAfter.js");
__webpack_require__(/*! ../number/weekAgo */ "./node_modules/sugar-date/number/weekAgo.js");
__webpack_require__(/*! ../number/weekBefore */ "./node_modules/sugar-date/number/weekBefore.js");
__webpack_require__(/*! ../number/weekFromNow */ "./node_modules/sugar-date/number/weekFromNow.js");
__webpack_require__(/*! ../number/weeks */ "./node_modules/sugar-date/number/weeks.js");
__webpack_require__(/*! ../number/weeksAfter */ "./node_modules/sugar-date/number/weeksAfter.js");
__webpack_require__(/*! ../number/weeksAgo */ "./node_modules/sugar-date/number/weeksAgo.js");
__webpack_require__(/*! ../number/weeksBefore */ "./node_modules/sugar-date/number/weeksBefore.js");
__webpack_require__(/*! ../number/weeksFromNow */ "./node_modules/sugar-date/number/weeksFromNow.js");
__webpack_require__(/*! ../number/year */ "./node_modules/sugar-date/number/year.js");
__webpack_require__(/*! ../number/yearAfter */ "./node_modules/sugar-date/number/yearAfter.js");
__webpack_require__(/*! ../number/yearAgo */ "./node_modules/sugar-date/number/yearAgo.js");
__webpack_require__(/*! ../number/yearBefore */ "./node_modules/sugar-date/number/yearBefore.js");
__webpack_require__(/*! ../number/yearFromNow */ "./node_modules/sugar-date/number/yearFromNow.js");
__webpack_require__(/*! ../number/years */ "./node_modules/sugar-date/number/years.js");
__webpack_require__(/*! ../number/yearsAfter */ "./node_modules/sugar-date/number/yearsAfter.js");
__webpack_require__(/*! ../number/yearsAgo */ "./node_modules/sugar-date/number/yearsAgo.js");
__webpack_require__(/*! ../number/yearsBefore */ "./node_modules/sugar-date/number/yearsBefore.js");
__webpack_require__(/*! ../number/yearsFromNow */ "./node_modules/sugar-date/number/yearsFromNow.js");
__webpack_require__(/*! ./addDays */ "./node_modules/sugar-date/date/addDays.js");
__webpack_require__(/*! ./addHours */ "./node_modules/sugar-date/date/addHours.js");
__webpack_require__(/*! ./addMilliseconds */ "./node_modules/sugar-date/date/addMilliseconds.js");
__webpack_require__(/*! ./addMinutes */ "./node_modules/sugar-date/date/addMinutes.js");
__webpack_require__(/*! ./addMonths */ "./node_modules/sugar-date/date/addMonths.js");
__webpack_require__(/*! ./addSeconds */ "./node_modules/sugar-date/date/addSeconds.js");
__webpack_require__(/*! ./addWeeks */ "./node_modules/sugar-date/date/addWeeks.js");
__webpack_require__(/*! ./addYears */ "./node_modules/sugar-date/date/addYears.js");
__webpack_require__(/*! ./advance */ "./node_modules/sugar-date/date/advance.js");
__webpack_require__(/*! ./beginningOfDay */ "./node_modules/sugar-date/date/beginningOfDay.js");
__webpack_require__(/*! ./beginningOfISOWeek */ "./node_modules/sugar-date/date/beginningOfISOWeek.js");
__webpack_require__(/*! ./beginningOfMonth */ "./node_modules/sugar-date/date/beginningOfMonth.js");
__webpack_require__(/*! ./beginningOfWeek */ "./node_modules/sugar-date/date/beginningOfWeek.js");
__webpack_require__(/*! ./beginningOfYear */ "./node_modules/sugar-date/date/beginningOfYear.js");
__webpack_require__(/*! ./clone */ "./node_modules/sugar-date/date/clone.js");
__webpack_require__(/*! ./daysAgo */ "./node_modules/sugar-date/date/daysAgo.js");
__webpack_require__(/*! ./daysFromNow */ "./node_modules/sugar-date/date/daysFromNow.js");
__webpack_require__(/*! ./daysInMonth */ "./node_modules/sugar-date/date/daysInMonth.js");
__webpack_require__(/*! ./daysSince */ "./node_modules/sugar-date/date/daysSince.js");
__webpack_require__(/*! ./daysUntil */ "./node_modules/sugar-date/date/daysUntil.js");
__webpack_require__(/*! ./endOfDay */ "./node_modules/sugar-date/date/endOfDay.js");
__webpack_require__(/*! ./endOfISOWeek */ "./node_modules/sugar-date/date/endOfISOWeek.js");
__webpack_require__(/*! ./endOfMonth */ "./node_modules/sugar-date/date/endOfMonth.js");
__webpack_require__(/*! ./endOfWeek */ "./node_modules/sugar-date/date/endOfWeek.js");
__webpack_require__(/*! ./endOfYear */ "./node_modules/sugar-date/date/endOfYear.js");
__webpack_require__(/*! ./format */ "./node_modules/sugar-date/date/format.js");
__webpack_require__(/*! ./get */ "./node_modules/sugar-date/date/get.js");
__webpack_require__(/*! ./getISOWeek */ "./node_modules/sugar-date/date/getISOWeek.js");
__webpack_require__(/*! ./getUTCOffset */ "./node_modules/sugar-date/date/getUTCOffset.js");
__webpack_require__(/*! ./getUTCWeekday */ "./node_modules/sugar-date/date/getUTCWeekday.js");
__webpack_require__(/*! ./getWeekday */ "./node_modules/sugar-date/date/getWeekday.js");
__webpack_require__(/*! ./hoursAgo */ "./node_modules/sugar-date/date/hoursAgo.js");
__webpack_require__(/*! ./hoursFromNow */ "./node_modules/sugar-date/date/hoursFromNow.js");
__webpack_require__(/*! ./hoursSince */ "./node_modules/sugar-date/date/hoursSince.js");
__webpack_require__(/*! ./hoursUntil */ "./node_modules/sugar-date/date/hoursUntil.js");
__webpack_require__(/*! ./is */ "./node_modules/sugar-date/date/is.js");
__webpack_require__(/*! ./isAfter */ "./node_modules/sugar-date/date/isAfter.js");
__webpack_require__(/*! ./isBefore */ "./node_modules/sugar-date/date/isBefore.js");
__webpack_require__(/*! ./isBetween */ "./node_modules/sugar-date/date/isBetween.js");
__webpack_require__(/*! ./isFriday */ "./node_modules/sugar-date/date/isFriday.js");
__webpack_require__(/*! ./isFuture */ "./node_modules/sugar-date/date/isFuture.js");
__webpack_require__(/*! ./isLastMonth */ "./node_modules/sugar-date/date/isLastMonth.js");
__webpack_require__(/*! ./isLastWeek */ "./node_modules/sugar-date/date/isLastWeek.js");
__webpack_require__(/*! ./isLastYear */ "./node_modules/sugar-date/date/isLastYear.js");
__webpack_require__(/*! ./isLeapYear */ "./node_modules/sugar-date/date/isLeapYear.js");
__webpack_require__(/*! ./isMonday */ "./node_modules/sugar-date/date/isMonday.js");
__webpack_require__(/*! ./isNextMonth */ "./node_modules/sugar-date/date/isNextMonth.js");
__webpack_require__(/*! ./isNextWeek */ "./node_modules/sugar-date/date/isNextWeek.js");
__webpack_require__(/*! ./isNextYear */ "./node_modules/sugar-date/date/isNextYear.js");
__webpack_require__(/*! ./isPast */ "./node_modules/sugar-date/date/isPast.js");
__webpack_require__(/*! ./isSaturday */ "./node_modules/sugar-date/date/isSaturday.js");
__webpack_require__(/*! ./isSunday */ "./node_modules/sugar-date/date/isSunday.js");
__webpack_require__(/*! ./isThisMonth */ "./node_modules/sugar-date/date/isThisMonth.js");
__webpack_require__(/*! ./isThisWeek */ "./node_modules/sugar-date/date/isThisWeek.js");
__webpack_require__(/*! ./isThisYear */ "./node_modules/sugar-date/date/isThisYear.js");
__webpack_require__(/*! ./isThursday */ "./node_modules/sugar-date/date/isThursday.js");
__webpack_require__(/*! ./isToday */ "./node_modules/sugar-date/date/isToday.js");
__webpack_require__(/*! ./isTomorrow */ "./node_modules/sugar-date/date/isTomorrow.js");
__webpack_require__(/*! ./isTuesday */ "./node_modules/sugar-date/date/isTuesday.js");
__webpack_require__(/*! ./isUTC */ "./node_modules/sugar-date/date/isUTC.js");
__webpack_require__(/*! ./isValid */ "./node_modules/sugar-date/date/isValid.js");
__webpack_require__(/*! ./isWednesday */ "./node_modules/sugar-date/date/isWednesday.js");
__webpack_require__(/*! ./isWeekday */ "./node_modules/sugar-date/date/isWeekday.js");
__webpack_require__(/*! ./isWeekend */ "./node_modules/sugar-date/date/isWeekend.js");
__webpack_require__(/*! ./isYesterday */ "./node_modules/sugar-date/date/isYesterday.js");
__webpack_require__(/*! ./iso */ "./node_modules/sugar-date/date/iso.js");
__webpack_require__(/*! ./millisecondsAgo */ "./node_modules/sugar-date/date/millisecondsAgo.js");
__webpack_require__(/*! ./millisecondsFromNow */ "./node_modules/sugar-date/date/millisecondsFromNow.js");
__webpack_require__(/*! ./millisecondsSince */ "./node_modules/sugar-date/date/millisecondsSince.js");
__webpack_require__(/*! ./millisecondsUntil */ "./node_modules/sugar-date/date/millisecondsUntil.js");
__webpack_require__(/*! ./minutesAgo */ "./node_modules/sugar-date/date/minutesAgo.js");
__webpack_require__(/*! ./minutesFromNow */ "./node_modules/sugar-date/date/minutesFromNow.js");
__webpack_require__(/*! ./minutesSince */ "./node_modules/sugar-date/date/minutesSince.js");
__webpack_require__(/*! ./minutesUntil */ "./node_modules/sugar-date/date/minutesUntil.js");
__webpack_require__(/*! ./monthsAgo */ "./node_modules/sugar-date/date/monthsAgo.js");
__webpack_require__(/*! ./monthsFromNow */ "./node_modules/sugar-date/date/monthsFromNow.js");
__webpack_require__(/*! ./monthsSince */ "./node_modules/sugar-date/date/monthsSince.js");
__webpack_require__(/*! ./monthsUntil */ "./node_modules/sugar-date/date/monthsUntil.js");
__webpack_require__(/*! ./relative */ "./node_modules/sugar-date/date/relative.js");
__webpack_require__(/*! ./relativeTo */ "./node_modules/sugar-date/date/relativeTo.js");
__webpack_require__(/*! ./reset */ "./node_modules/sugar-date/date/reset.js");
__webpack_require__(/*! ./rewind */ "./node_modules/sugar-date/date/rewind.js");
__webpack_require__(/*! ./secondsAgo */ "./node_modules/sugar-date/date/secondsAgo.js");
__webpack_require__(/*! ./secondsFromNow */ "./node_modules/sugar-date/date/secondsFromNow.js");
__webpack_require__(/*! ./secondsSince */ "./node_modules/sugar-date/date/secondsSince.js");
__webpack_require__(/*! ./secondsUntil */ "./node_modules/sugar-date/date/secondsUntil.js");
__webpack_require__(/*! ./set */ "./node_modules/sugar-date/date/set.js");
__webpack_require__(/*! ./setISOWeek */ "./node_modules/sugar-date/date/setISOWeek.js");
__webpack_require__(/*! ./setUTC */ "./node_modules/sugar-date/date/setUTC.js");
__webpack_require__(/*! ./setWeekday */ "./node_modules/sugar-date/date/setWeekday.js");
__webpack_require__(/*! ./weeksAgo */ "./node_modules/sugar-date/date/weeksAgo.js");
__webpack_require__(/*! ./weeksFromNow */ "./node_modules/sugar-date/date/weeksFromNow.js");
__webpack_require__(/*! ./weeksSince */ "./node_modules/sugar-date/date/weeksSince.js");
__webpack_require__(/*! ./weeksUntil */ "./node_modules/sugar-date/date/weeksUntil.js");
__webpack_require__(/*! ./yearsAgo */ "./node_modules/sugar-date/date/yearsAgo.js");
__webpack_require__(/*! ./yearsFromNow */ "./node_modules/sugar-date/date/yearsFromNow.js");
__webpack_require__(/*! ./yearsSince */ "./node_modules/sugar-date/date/yearsSince.js");
__webpack_require__(/*! ./yearsUntil */ "./node_modules/sugar-date/date/yearsUntil.js");
// Accessors
__webpack_require__(/*! ./getOption */ "./node_modules/sugar-date/date/getOption.js");
__webpack_require__(/*! ./setOption */ "./node_modules/sugar-date/date/setOption.js");
module.exports = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/advanceDate.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/advanceDate.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var updateDate = __webpack_require__(/*! ./updateDate */ "./node_modules/sugar-date/date/internal/updateDate.js");
function advanceDate(d, unit, num, reset) {
var set = {};
set[unit] = num;
return updateDate(d, set, reset, 1);
}
module.exports = advanceDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/advanceDateWithArgs.js":
/*!**********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/advanceDateWithArgs.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var updateDate = __webpack_require__(/*! ./updateDate */ "./node_modules/sugar-date/date/internal/updateDate.js"),
collectUpdateDateArguments = __webpack_require__(/*! ./collectUpdateDateArguments */ "./node_modules/sugar-date/date/internal/collectUpdateDateArguments.js");
function advanceDateWithArgs(d, args, dir) {
args = collectUpdateDateArguments(args, true);
return updateDate(d, args[0], args[1], dir);
}
module.exports = advanceDateWithArgs;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/arrayToRegAlternates.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/arrayToRegAlternates.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var map = __webpack_require__(/*! ../../common/internal/map */ "./node_modules/sugar-date/common/internal/map.js"),
escapeRegExp = __webpack_require__(/*! ../../common/internal/escapeRegExp */ "./node_modules/sugar-date/common/internal/escapeRegExp.js");
function arrayToRegAlternates(arr) {
var joined = arr.join('');
if (!arr || !arr.length) {
return '';
}
if (joined.length === arr.length) {
return '[' + joined + ']';
}
// map handles sparse arrays so no need to compact the array here.
return map(arr, escapeRegExp).join('|');
}
module.exports = arrayToRegAlternates;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/assertDateIsValid.js":
/*!********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/assertDateIsValid.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var dateIsValid = __webpack_require__(/*! ./dateIsValid */ "./node_modules/sugar-date/date/internal/dateIsValid.js");
function assertDateIsValid(d) {
if (!dateIsValid(d)) {
throw new TypeError('Date is not valid');
}
}
module.exports = assertDateIsValid;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/buildDateUnitMethods.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/buildDateUnitMethods.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnits = __webpack_require__(/*! ../var/DateUnits */ "./node_modules/sugar-date/date/var/DateUnits.js"),
DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
forEach = __webpack_require__(/*! ../../common/internal/forEach */ "./node_modules/sugar-date/common/internal/forEach.js"),
createDate = __webpack_require__(/*! ./createDate */ "./node_modules/sugar-date/date/internal/createDate.js"),
compareDate = __webpack_require__(/*! ./compareDate */ "./node_modules/sugar-date/date/internal/compareDate.js"),
advanceDate = __webpack_require__(/*! ./advanceDate */ "./node_modules/sugar-date/date/internal/advanceDate.js"),
moveToEndOfUnit = __webpack_require__(/*! ./moveToEndOfUnit */ "./node_modules/sugar-date/date/internal/moveToEndOfUnit.js"),
namespaceAliases = __webpack_require__(/*! ../../common/var/namespaceAliases */ "./node_modules/sugar-date/common/var/namespaceAliases.js"),
simpleCapitalize = __webpack_require__(/*! ../../common/internal/simpleCapitalize */ "./node_modules/sugar-date/common/internal/simpleCapitalize.js"),
moveToBeginningOfUnit = __webpack_require__(/*! ./moveToBeginningOfUnit */ "./node_modules/sugar-date/date/internal/moveToBeginningOfUnit.js"),
defineInstanceSimilar = __webpack_require__(/*! ../../common/internal/defineInstanceSimilar */ "./node_modules/sugar-date/common/internal/defineInstanceSimilar.js"),
getTimeDistanceForUnit = __webpack_require__(/*! ./getTimeDistanceForUnit */ "./node_modules/sugar-date/date/internal/getTimeDistanceForUnit.js");
var sugarDate = namespaceAliases.sugarDate,
HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,
DAY_INDEX = DateUnitIndexes.DAY_INDEX;
function buildDateUnitMethods() {
defineInstanceSimilar(sugarDate, DateUnits, function(methods, unit, index) {
var name = unit.name, caps = simpleCapitalize(name);
if (index > DAY_INDEX) {
forEach(['Last','This','Next'], function(shift) {
methods['is' + shift + caps] = function(d, localeCode) {
return compareDate(d, shift + ' ' + name, 0, localeCode, { locale: 'en' });
};
});
}
if (index > HOURS_INDEX) {
methods['beginningOf' + caps] = function(d, localeCode) {
return moveToBeginningOfUnit(d, index, localeCode);
};
methods['endOf' + caps] = function(d, localeCode) {
return moveToEndOfUnit(d, index, localeCode);
};
}
methods['add' + caps + 's'] = function(d, num, reset) {
return advanceDate(d, name, num, reset);
};
var since = function(date, d, options) {
return getTimeDistanceForUnit(date, createDate(d, options, true), unit);
};
var until = function(date, d, options) {
return getTimeDistanceForUnit(createDate(d, options, true), date, unit);
};
methods[name + 'sAgo'] = methods[name + 'sUntil'] = until;
methods[name + 'sSince'] = methods[name + 'sFromNow'] = since;
});
}
module.exports = buildDateUnitMethods;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/buildNumberUnitMethods.js":
/*!*************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/buildNumberUnitMethods.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnits = __webpack_require__(/*! ../var/DateUnits */ "./node_modules/sugar-date/date/var/DateUnits.js"),
createDate = __webpack_require__(/*! ./createDate */ "./node_modules/sugar-date/date/internal/createDate.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
advanceDate = __webpack_require__(/*! ./advanceDate */ "./node_modules/sugar-date/date/internal/advanceDate.js"),
namespaceAliases = __webpack_require__(/*! ../../common/var/namespaceAliases */ "./node_modules/sugar-date/common/var/namespaceAliases.js"),
defineInstanceSimilar = __webpack_require__(/*! ../../common/internal/defineInstanceSimilar */ "./node_modules/sugar-date/common/internal/defineInstanceSimilar.js");
var sugarNumber = namespaceAliases.sugarNumber,
round = mathAliases.round;
function buildNumberUnitMethods() {
defineInstanceSimilar(sugarNumber, DateUnits, function(methods, unit) {
var name = unit.name, base, after, before;
base = function(n) {
return round(n * unit.multiplier);
};
after = function(n, d, options) {
return advanceDate(createDate(d, options, true), name, n);
};
before = function(n, d, options) {
return advanceDate(createDate(d, options, true), name, -n);
};
methods[name] = base;
methods[name + 's'] = base;
methods[name + 'Before'] = before;
methods[name + 'sBefore'] = before;
methods[name + 'Ago'] = before;
methods[name + 'sAgo'] = before;
methods[name + 'After'] = after;
methods[name + 'sAfter'] = after;
methods[name + 'FromNow'] = after;
methods[name + 'sFromNow'] = after;
});
}
module.exports = buildNumberUnitMethods;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/buildRelativeAliases.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/buildRelativeAliases.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocaleHelpers = __webpack_require__(/*! ../var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
spaceSplit = __webpack_require__(/*! ../../common/internal/spaceSplit */ "./node_modules/sugar-date/common/internal/spaceSplit.js"),
fullCompareDate = __webpack_require__(/*! ./fullCompareDate */ "./node_modules/sugar-date/date/internal/fullCompareDate.js"),
namespaceAliases = __webpack_require__(/*! ../../common/var/namespaceAliases */ "./node_modules/sugar-date/common/var/namespaceAliases.js"),
defineInstanceSimilar = __webpack_require__(/*! ../../common/internal/defineInstanceSimilar */ "./node_modules/sugar-date/common/internal/defineInstanceSimilar.js");
var English = LocaleHelpers.English,
sugarDate = namespaceAliases.sugarDate;
function buildRelativeAliases() {
var special = spaceSplit('Today Yesterday Tomorrow Weekday Weekend Future Past');
var weekdays = English.weekdays.slice(0, 7);
var months = English.months.slice(0, 12);
var together = special.concat(weekdays).concat(months);
defineInstanceSimilar(sugarDate, together, function(methods, name) {
methods['is'+ name] = function(d) {
return fullCompareDate(d, name);
};
});
}
module.exports = buildRelativeAliases;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/callDateSetWithWeek.js":
/*!**********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/callDateSetWithWeek.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateSet = __webpack_require__(/*! ../../common/internal/callDateSet */ "./node_modules/sugar-date/common/internal/callDateSet.js"),
setISOWeekNumber = __webpack_require__(/*! ./setISOWeekNumber */ "./node_modules/sugar-date/date/internal/setISOWeekNumber.js");
function callDateSetWithWeek(d, method, value, safe) {
if (method === 'ISOWeek') {
setISOWeekNumber(d, value);
} else {
callDateSet(d, method, value, safe);
}
}
module.exports = callDateSetWithWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/cloneDate.js":
/*!************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/cloneDate.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _utc = __webpack_require__(/*! ../../common/var/_utc */ "./node_modules/sugar-date/common/var/_utc.js");
function cloneDate(d) {
// Rhino environments have a bug where new Date(d) truncates
// milliseconds so need to call getTime() here.
var clone = new Date(d.getTime());
_utc(clone, !!_utc(d));
return clone;
}
module.exports = cloneDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/collectDateParamsFromArguments.js":
/*!*********************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/collectDateParamsFromArguments.js ***!
\*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
isDefined = __webpack_require__(/*! ../../common/internal/isDefined */ "./node_modules/sugar-date/common/internal/isDefined.js"),
walkUnitDown = __webpack_require__(/*! ./walkUnitDown */ "./node_modules/sugar-date/date/internal/walkUnitDown.js");
var YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;
function collectDateParamsFromArguments(args) {
var params = {}, index = 0;
walkUnitDown(YEAR_INDEX, function(unit) {
var arg = args[index++];
if (isDefined(arg)) {
params[unit.name] = arg;
}
});
return params;
}
module.exports = collectDateParamsFromArguments;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/collectUpdateDateArguments.js":
/*!*****************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/collectUpdateDateArguments.js ***!
\*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
simpleClone = __webpack_require__(/*! ../../common/internal/simpleClone */ "./node_modules/sugar-date/common/internal/simpleClone.js"),
isObjectType = __webpack_require__(/*! ../../common/internal/isObjectType */ "./node_modules/sugar-date/common/internal/isObjectType.js"),
getDateParamsFromString = __webpack_require__(/*! ./getDateParamsFromString */ "./node_modules/sugar-date/date/internal/getDateParamsFromString.js"),
collectDateParamsFromArguments = __webpack_require__(/*! ./collectDateParamsFromArguments */ "./node_modules/sugar-date/date/internal/collectDateParamsFromArguments.js");
var isNumber = classChecks.isNumber,
isString = classChecks.isString;
function collectUpdateDateArguments(args, allowDuration) {
var arg1 = args[0], arg2 = args[1], params, reset;
if (allowDuration && isString(arg1)) {
params = getDateParamsFromString(arg1);
reset = arg2;
} else if (isNumber(arg1) && isNumber(arg2)) {
params = collectDateParamsFromArguments(args);
} else {
params = isObjectType(arg1) ? simpleClone(arg1) : arg1;
reset = arg2;
}
return [params, reset];
}
module.exports = collectUpdateDateArguments;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/compareDate.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/compareDate.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var MINUTES = __webpack_require__(/*! ../var/MINUTES */ "./node_modules/sugar-date/date/var/MINUTES.js"),
DateUnits = __webpack_require__(/*! ../var/DateUnits */ "./node_modules/sugar-date/date/var/DateUnits.js"),
DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
_utc = __webpack_require__(/*! ../../common/var/_utc */ "./node_modules/sugar-date/common/var/_utc.js"),
tzOffset = __webpack_require__(/*! ./tzOffset */ "./node_modules/sugar-date/date/internal/tzOffset.js"),
cloneDate = __webpack_require__(/*! ./cloneDate */ "./node_modules/sugar-date/date/internal/cloneDate.js"),
isDefined = __webpack_require__(/*! ../../common/internal/isDefined */ "./node_modules/sugar-date/common/internal/isDefined.js"),
advanceDate = __webpack_require__(/*! ./advanceDate */ "./node_modules/sugar-date/date/internal/advanceDate.js"),
dateIsValid = __webpack_require__(/*! ./dateIsValid */ "./node_modules/sugar-date/date/internal/dateIsValid.js"),
moveToEndOfUnit = __webpack_require__(/*! ./moveToEndOfUnit */ "./node_modules/sugar-date/date/internal/moveToEndOfUnit.js"),
getExtendedDate = __webpack_require__(/*! ./getExtendedDate */ "./node_modules/sugar-date/date/internal/getExtendedDate.js"),
moveToBeginningOfUnit = __webpack_require__(/*! ./moveToBeginningOfUnit */ "./node_modules/sugar-date/date/internal/moveToBeginningOfUnit.js");
var MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;
function compareDate(date, d, margin, localeCode, options) {
var loMargin = 0, hiMargin = 0, timezoneShift, compareEdges, override, min, max, p, t;
function getTimezoneShift() {
// If there is any specificity in the date then we're implicitly not
// checking absolute time, so ignore timezone shifts.
if (p.set && p.set.specificity) {
return 0;
}
return (tzOffset(p.date) - tzOffset(date)) * MINUTES;
}
function addSpecificUnit() {
var unit = DateUnits[p.set.specificity];
return advanceDate(cloneDate(p.date), unit.name, 1).getTime() - 1;
}
if (_utc(date)) {
options = options || {};
options.fromUTC = true;
options.setUTC = true;
}
p = getExtendedDate(null, d, options, true);
if (margin > 0) {
loMargin = hiMargin = margin;
override = true;
}
if (!dateIsValid(p.date)) return false;
if (p.set && p.set.specificity) {
if (isDefined(p.set.edge) || isDefined(p.set.shift)) {
compareEdges = true;
moveToBeginningOfUnit(p.date, p.set.specificity, localeCode);
}
if (compareEdges || p.set.specificity === MONTH_INDEX) {
max = moveToEndOfUnit(cloneDate(p.date), p.set.specificity, localeCode).getTime();
} else {
max = addSpecificUnit();
}
if (!override && isDefined(p.set.sign) && p.set.specificity) {
// If the time is relative, there can occasionally be an disparity between
// the relative date and "now", which it is being compared to, so set an
// extra margin to account for this.
loMargin = 50;
hiMargin = -50;
}
}
t = date.getTime();
min = p.date.getTime();
max = max || min;
timezoneShift = getTimezoneShift();
// istanbul ignore if
if (timezoneShift) {
min -= timezoneShift;
max -= timezoneShift;
}
return t >= (min - loMargin) && t <= (max + hiMargin);
}
module.exports = compareDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/compareDay.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/compareDay.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var setDate = __webpack_require__(/*! ./setDate */ "./node_modules/sugar-date/date/internal/setDate.js"),
getDate = __webpack_require__(/*! ./getDate */ "./node_modules/sugar-date/date/internal/getDate.js"),
getYear = __webpack_require__(/*! ./getYear */ "./node_modules/sugar-date/date/internal/getYear.js"),
getMonth = __webpack_require__(/*! ./getMonth */ "./node_modules/sugar-date/date/internal/getMonth.js"),
getNewDate = __webpack_require__(/*! ./getNewDate */ "./node_modules/sugar-date/date/internal/getNewDate.js");
function compareDay(d, shift) {
var comp = getNewDate();
if (shift) {
setDate(comp, getDate(comp) + shift);
}
return getYear(d) === getYear(comp) &&
getMonth(d) === getMonth(comp) &&
getDate(d) === getDate(comp);
}
module.exports = compareDay;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/createDate.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/createDate.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getExtendedDate = __webpack_require__(/*! ./getExtendedDate */ "./node_modules/sugar-date/date/internal/getExtendedDate.js");
function createDate(d, options, forceClone) {
return getExtendedDate(null, d, options, forceClone).date;
}
module.exports = createDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/createDateWithContext.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/createDateWithContext.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getExtendedDate = __webpack_require__(/*! ./getExtendedDate */ "./node_modules/sugar-date/date/internal/getExtendedDate.js");
function createDateWithContext(contextDate, d, options, forceClone) {
return getExtendedDate(contextDate, d, options, forceClone).date;
}
module.exports = createDateWithContext;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/dateFormat.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/dateFormat.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var CoreOutputFormats = __webpack_require__(/*! ../var/CoreOutputFormats */ "./node_modules/sugar-date/date/var/CoreOutputFormats.js"),
formattingTokens = __webpack_require__(/*! ../var/formattingTokens */ "./node_modules/sugar-date/date/var/formattingTokens.js"),
assertDateIsValid = __webpack_require__(/*! ./assertDateIsValid */ "./node_modules/sugar-date/date/internal/assertDateIsValid.js");
var dateFormatMatcher = formattingTokens.dateFormatMatcher;
function dateFormat(d, format, localeCode) {
assertDateIsValid(d);
format = CoreOutputFormats[format] || format || '{long}';
return dateFormatMatcher(format, d, localeCode);
}
module.exports = dateFormat;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/dateIsValid.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/dateIsValid.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function dateIsValid(d) {
return !isNaN(d.getTime());
}
module.exports = dateIsValid;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/dateRelative.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/dateRelative.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocaleHelpers = __webpack_require__(/*! ../var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
dateFormat = __webpack_require__(/*! ./dateFormat */ "./node_modules/sugar-date/date/internal/dateFormat.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
assertDateIsValid = __webpack_require__(/*! ./assertDateIsValid */ "./node_modules/sugar-date/date/internal/assertDateIsValid.js"),
getAdjustedUnitForDate = __webpack_require__(/*! ./getAdjustedUnitForDate */ "./node_modules/sugar-date/date/internal/getAdjustedUnitForDate.js");
var isFunction = classChecks.isFunction,
localeManager = LocaleHelpers.localeManager;
function dateRelative(d, dRelative, arg1, arg2) {
var adu, format, type, localeCode, fn;
assertDateIsValid(d);
if (isFunction(arg1)) {
fn = arg1;
} else {
localeCode = arg1;
fn = arg2;
}
adu = getAdjustedUnitForDate(d, dRelative);
if (fn) {
format = fn.apply(d, adu.concat(localeManager.get(localeCode)));
if (format) {
return dateFormat(d, format, localeCode);
}
}
// Adjust up if time is in ms, as this doesn't
// look very good for a standard relative date.
if (adu[1] === 0) {
adu[1] = 1;
adu[0] = 1;
}
if (dRelative) {
type = 'duration';
} else if (adu[2] > 0) {
type = 'future';
} else {
type = 'past';
}
return localeManager.get(localeCode).getRelativeFormat(adu, type);
}
module.exports = dateRelative;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/defaultNewDate.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/defaultNewDate.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function defaultNewDate() {
return new Date;
}
module.exports = defaultNewDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/deleteDateParam.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/deleteDateParam.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getDateParamKey = __webpack_require__(/*! ./getDateParamKey */ "./node_modules/sugar-date/date/internal/getDateParamKey.js");
function deleteDateParam(params, key) {
delete params[getDateParamKey(params, key)];
}
module.exports = deleteDateParam;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/fullCompareDate.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/fullCompareDate.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocaleHelpers = __webpack_require__(/*! ../var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
trim = __webpack_require__(/*! ../../common/internal/trim */ "./node_modules/sugar-date/common/internal/trim.js"),
getMonth = __webpack_require__(/*! ./getMonth */ "./node_modules/sugar-date/date/internal/getMonth.js"),
isDefined = __webpack_require__(/*! ../../common/internal/isDefined */ "./node_modules/sugar-date/common/internal/isDefined.js"),
getNewDate = __webpack_require__(/*! ./getNewDate */ "./node_modules/sugar-date/date/internal/getNewDate.js"),
compareDay = __webpack_require__(/*! ./compareDay */ "./node_modules/sugar-date/date/internal/compareDay.js"),
getWeekday = __webpack_require__(/*! ./getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js"),
dateIsValid = __webpack_require__(/*! ./dateIsValid */ "./node_modules/sugar-date/date/internal/dateIsValid.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
compareDate = __webpack_require__(/*! ./compareDate */ "./node_modules/sugar-date/date/internal/compareDate.js");
var isString = classChecks.isString,
English = LocaleHelpers.English;
function fullCompareDate(date, d, margin) {
var tmp;
if (!dateIsValid(date)) return;
if (isString(d)) {
d = trim(d).toLowerCase();
switch(true) {
case d === 'future': return date.getTime() > getNewDate().getTime();
case d === 'past': return date.getTime() < getNewDate().getTime();
case d === 'today': return compareDay(date);
case d === 'tomorrow': return compareDay(date, 1);
case d === 'yesterday': return compareDay(date, -1);
case d === 'weekday': return getWeekday(date) > 0 && getWeekday(date) < 6;
case d === 'weekend': return getWeekday(date) === 0 || getWeekday(date) === 6;
case (isDefined(tmp = English.weekdayMap[d])):
return getWeekday(date) === tmp;
case (isDefined(tmp = English.monthMap[d])):
return getMonth(date) === tmp;
}
}
return compareDate(date, d, margin);
}
module.exports = fullCompareDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getAdjustedUnit.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getAdjustedUnit.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
iterateOverDateUnits = __webpack_require__(/*! ./iterateOverDateUnits */ "./node_modules/sugar-date/date/internal/iterateOverDateUnits.js");
var abs = mathAliases.abs;
function getAdjustedUnit(ms, fn) {
var unitIndex = 0, value = 0;
iterateOverDateUnits(function(unit, i) {
value = abs(fn(unit));
if (value >= 1) {
unitIndex = i;
return false;
}
});
return [value, unitIndex, ms];
}
module.exports = getAdjustedUnit;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getAdjustedUnitForDate.js":
/*!*************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getAdjustedUnitForDate.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getNewDate = __webpack_require__(/*! ./getNewDate */ "./node_modules/sugar-date/date/internal/getNewDate.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
getAdjustedUnit = __webpack_require__(/*! ./getAdjustedUnit */ "./node_modules/sugar-date/date/internal/getAdjustedUnit.js"),
getTimeDistanceForUnit = __webpack_require__(/*! ./getTimeDistanceForUnit */ "./node_modules/sugar-date/date/internal/getTimeDistanceForUnit.js");
var abs = mathAliases.abs;
function getAdjustedUnitForDate(d, dRelative) {
var ms;
if (!dRelative) {
dRelative = getNewDate();
if (d > dRelative) {
// If our date is greater than the one that we got from getNewDate, it
// means that we are finding the unit for a date that is in the future
// relative to now. However, often the incoming date was created in
// the same cycle as our comparison, but our "now" date will have been
// created an instant after it, creating situations where "5 minutes from
// now" becomes "4 minutes from now" in the same tick. To prevent this,
// subtract a buffer of 10ms to compensate.
dRelative = new Date(dRelative.getTime() - 10);
}
}
ms = d - dRelative;
return getAdjustedUnit(ms, function(u) {
return abs(getTimeDistanceForUnit(d, dRelative, u));
});
}
module.exports = getAdjustedUnitForDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getAdjustedUnitForNumber.js":
/*!***************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getAdjustedUnitForNumber.js ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var trunc = __webpack_require__(/*! ../../common/var/trunc */ "./node_modules/sugar-date/common/var/trunc.js"),
withPrecision = __webpack_require__(/*! ../../common/internal/withPrecision */ "./node_modules/sugar-date/common/internal/withPrecision.js"),
getAdjustedUnit = __webpack_require__(/*! ./getAdjustedUnit */ "./node_modules/sugar-date/date/internal/getAdjustedUnit.js");
function getAdjustedUnitForNumber(ms) {
return getAdjustedUnit(ms, function(unit) {
return trunc(withPrecision(ms / unit.multiplier, 1));
});
}
module.exports = getAdjustedUnitForNumber;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getArrayWithOffset.js":
/*!*********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getArrayWithOffset.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function getArrayWithOffset(arr, n, alternate, offset) {
var val;
if (alternate > 1) {
val = arr[n + (alternate - 1) * offset];
}
return val || arr[n];
}
module.exports = getArrayWithOffset;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getDate.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getDate.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js");
function getDate(d) {
return callDateGet(d, 'Date');
}
module.exports = getDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getDateParam.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getDateParam.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getDateParamKey = __webpack_require__(/*! ./getDateParamKey */ "./node_modules/sugar-date/date/internal/getDateParamKey.js"),
coreUtilityAliases = __webpack_require__(/*! ../../common/var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js");
var getOwn = coreUtilityAliases.getOwn;
function getDateParam(params, key) {
return getOwn(params, getDateParamKey(params, key));
}
module.exports = getDateParam;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getDateParamKey.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getDateParamKey.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getOwnKey = __webpack_require__(/*! ../../common/internal/getOwnKey */ "./node_modules/sugar-date/common/internal/getOwnKey.js");
function getDateParamKey(params, key) {
return getOwnKey(params, key) ||
getOwnKey(params, key + 's') ||
(key === 'day' && getOwnKey(params, 'date'));
}
module.exports = getDateParamKey;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getDateParamsFromString.js":
/*!**************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getDateParamsFromString.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var isUndefined = __webpack_require__(/*! ../../common/internal/isUndefined */ "./node_modules/sugar-date/common/internal/isUndefined.js");
function getDateParamsFromString(str) {
var match, num, params = {};
match = str.match(/^(-?\d*[\d.]\d*)?\s?(\w+?)s?$/i);
if (match) {
if (isUndefined(num)) {
num = match[1] ? +match[1] : 1;
}
params[match[2].toLowerCase()] = num;
}
return params;
}
module.exports = getDateParamsFromString;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getDaysInMonth.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getDaysInMonth.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getYear = __webpack_require__(/*! ./getYear */ "./node_modules/sugar-date/date/internal/getYear.js"),
getMonth = __webpack_require__(/*! ./getMonth */ "./node_modules/sugar-date/date/internal/getMonth.js"),
callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js");
function getDaysInMonth(d) {
return 32 - callDateGet(new Date(getYear(d), getMonth(d), 32), 'Date');
}
module.exports = getDaysInMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getDaysSince.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getDaysSince.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnits = __webpack_require__(/*! ../var/DateUnits */ "./node_modules/sugar-date/date/var/DateUnits.js"),
DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
getTimeDistanceForUnit = __webpack_require__(/*! ./getTimeDistanceForUnit */ "./node_modules/sugar-date/date/internal/getTimeDistanceForUnit.js");
var DAY_INDEX = DateUnitIndexes.DAY_INDEX;
function getDaysSince(d1, d2) {
return getTimeDistanceForUnit(d1, d2, DateUnits[DAY_INDEX]);
}
module.exports = getDaysSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getEnglishVariant.js":
/*!********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getEnglishVariant.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var EnglishLocaleBaseDefinition = __webpack_require__(/*! ../var/EnglishLocaleBaseDefinition */ "./node_modules/sugar-date/date/var/EnglishLocaleBaseDefinition.js"),
simpleMerge = __webpack_require__(/*! ../../common/internal/simpleMerge */ "./node_modules/sugar-date/common/internal/simpleMerge.js"),
simpleClone = __webpack_require__(/*! ../../common/internal/simpleClone */ "./node_modules/sugar-date/common/internal/simpleClone.js");
function getEnglishVariant(v) {
return simpleMerge(simpleClone(EnglishLocaleBaseDefinition), v);
}
module.exports = getEnglishVariant;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getExtendedDate.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getExtendedDate.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var MINUTES = __webpack_require__(/*! ../var/MINUTES */ "./node_modules/sugar-date/date/var/MINUTES.js"),
ABBREVIATED_YEAR_REG = __webpack_require__(/*! ../var/ABBREVIATED_YEAR_REG */ "./node_modules/sugar-date/date/var/ABBREVIATED_YEAR_REG.js"),
LocaleHelpers = __webpack_require__(/*! ../var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
_utc = __webpack_require__(/*! ../../common/var/_utc */ "./node_modules/sugar-date/common/var/_utc.js"),
trunc = __webpack_require__(/*! ../../common/var/trunc */ "./node_modules/sugar-date/common/var/trunc.js"),
forEach = __webpack_require__(/*! ../../common/internal/forEach */ "./node_modules/sugar-date/common/internal/forEach.js"),
tzOffset = __webpack_require__(/*! ./tzOffset */ "./node_modules/sugar-date/date/internal/tzOffset.js"),
isDefined = __webpack_require__(/*! ../../common/internal/isDefined */ "./node_modules/sugar-date/common/internal/isDefined.js"),
resetTime = __webpack_require__(/*! ./resetTime */ "./node_modules/sugar-date/date/internal/resetTime.js"),
getNewDate = __webpack_require__(/*! ./getNewDate */ "./node_modules/sugar-date/date/internal/getNewDate.js"),
updateDate = __webpack_require__(/*! ./updateDate */ "./node_modules/sugar-date/date/internal/updateDate.js"),
setWeekday = __webpack_require__(/*! ./setWeekday */ "./node_modules/sugar-date/date/internal/setWeekday.js"),
simpleMerge = __webpack_require__(/*! ../../common/internal/simpleMerge */ "./node_modules/sugar-date/common/internal/simpleMerge.js"),
advanceDate = __webpack_require__(/*! ./advanceDate */ "./node_modules/sugar-date/date/internal/advanceDate.js"),
isUndefined = __webpack_require__(/*! ../../common/internal/isUndefined */ "./node_modules/sugar-date/common/internal/isUndefined.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
dateIsValid = __webpack_require__(/*! ./dateIsValid */ "./node_modules/sugar-date/date/internal/dateIsValid.js"),
simpleClone = __webpack_require__(/*! ../../common/internal/simpleClone */ "./node_modules/sugar-date/common/internal/simpleClone.js"),
isObjectType = __webpack_require__(/*! ../../common/internal/isObjectType */ "./node_modules/sugar-date/common/internal/isObjectType.js"),
moveToEndOfUnit = __webpack_require__(/*! ./moveToEndOfUnit */ "./node_modules/sugar-date/date/internal/moveToEndOfUnit.js"),
deleteDateParam = __webpack_require__(/*! ./deleteDateParam */ "./node_modules/sugar-date/date/internal/deleteDateParam.js"),
coreUtilityAliases = __webpack_require__(/*! ../../common/var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js"),
moveToBeginningOfUnit = __webpack_require__(/*! ./moveToBeginningOfUnit */ "./node_modules/sugar-date/date/internal/moveToBeginningOfUnit.js"),
iterateOverDateParams = __webpack_require__(/*! ./iterateOverDateParams */ "./node_modules/sugar-date/date/internal/iterateOverDateParams.js"),
getYearFromAbbreviation = __webpack_require__(/*! ./getYearFromAbbreviation */ "./node_modules/sugar-date/date/internal/getYearFromAbbreviation.js"),
iterateOverHigherDateParams = __webpack_require__(/*! ./iterateOverHigherDateParams */ "./node_modules/sugar-date/date/internal/iterateOverHigherDateParams.js");
var isNumber = classChecks.isNumber,
isString = classChecks.isString,
isDate = classChecks.isDate,
getOwn = coreUtilityAliases.getOwn,
English = LocaleHelpers.English,
localeManager = LocaleHelpers.localeManager,
DAY_INDEX = DateUnitIndexes.DAY_INDEX,
WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,
MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,
YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;
function getExtendedDate(contextDate, d, opt, forceClone) {
// Locals
var date, set, loc, afterCallbacks, relative, weekdayDir;
// Options
var optPrefer, optLocale, optFromUTC, optSetUTC, optParams, optClone;
afterCallbacks = [];
setupOptions(opt);
function setupOptions(opt) {
opt = isString(opt) ? { locale: opt } : opt || {};
optPrefer = +!!getOwn(opt, 'future') - +!!getOwn(opt, 'past');
optLocale = getOwn(opt, 'locale');
optFromUTC = getOwn(opt, 'fromUTC');
optSetUTC = getOwn(opt, 'setUTC');
optParams = getOwn(opt, 'params');
optClone = getOwn(opt, 'clone');
}
function parseFormatValues(match, dif) {
var set = optParams || {};
forEach(dif.to, function(param, i) {
var str = match[i + 1], val;
if (!str) return;
val = parseIrregular(str, param);
if (isUndefined(val)) {
val = loc.parseValue(str, param);
}
set[param] = val;
});
return set;
}
function parseIrregular(str, param) {
if (param === 'utc') {
return 1;
} else if (param === 'year') {
var match = str.match(ABBREVIATED_YEAR_REG);
if (match) {
return getYearFromAbbreviation(match[1], date, optPrefer);
}
}
}
// Force the UTC flags to be true if the source date
// date is UTC, as they will be overwritten later.
function cloneDateByFlag(d, clone) {
if (_utc(d) && !isDefined(optFromUTC)) {
optFromUTC = true;
}
if (_utc(d) && !isDefined(optSetUTC)) {
optSetUTC = true;
}
if (clone) {
d = new Date(d.getTime());
}
return d;
}
function afterDateSet(fn) {
afterCallbacks.push(fn);
}
function fireCallbacks() {
forEach(afterCallbacks, function(fn) {
fn.call();
});
}
function parseStringDate(str) {
str = str.toLowerCase();
// The act of getting the locale will initialize
// if it is missing and add the required formats.
loc = localeManager.get(optLocale);
for (var i = 0, dif, match; dif = loc.compiledFormats[i]; i++) {
match = str.match(dif.reg);
if (match) {
// Note that caching the format will modify the compiledFormats array
// which is not a good idea to do inside its for loop, however we
// know at this point that we have a matched format and that we will
// break out below, so simpler to do it here.
loc.cacheFormat(dif, i);
set = parseFormatValues(match, dif);
if (isDefined(set.timestamp)) {
date.setTime(set.timestamp);
break;
}
if (isDefined(set.ampm)) {
handleAmpm(set.ampm);
}
if (set.utc || isDefined(set.tzHour)) {
handleTimezoneOffset(set.tzHour, set.tzMinute);
}
if (isDefined(set.shift) && isUndefined(set.unit)) {
// "next january", "next monday", etc
handleUnitlessShift();
}
if (isDefined(set.num) && isUndefined(set.unit)) {
// "the second of January", etc
handleUnitlessNum(set.num);
}
if (set.midday) {
// "noon" and "midnight"
handleMidday(set.midday);
}
if (isDefined(set.day)) {
// Relative day localizations such as "today" and "tomorrow".
handleRelativeDay(set.day);
}
if (isDefined(set.unit)) {
// "3 days ago", etc
handleRelativeUnit(set.unit);
}
if (set.edge) {
// "the end of January", etc
handleEdge(set.edge, set);
}
break;
}
}
if (!set) {
// TODO: remove in next major version
// Fall back to native parsing
date = new Date(str);
if (optFromUTC && dateIsValid(date)) {
// Falling back to system date here which cannot be parsed as UTC,
// so if we're forcing UTC then simply add the offset.
date.setTime(date.getTime() + (tzOffset(date) * MINUTES));
}
} else if (relative) {
updateDate(date, set, false, 1);
} else {
updateDate(date, set, true, 0, optPrefer, weekdayDir, contextDate);
}
fireCallbacks();
return date;
}
function handleAmpm(ampm) {
if (ampm === 1 && set.hour < 12) {
// If the time is 1pm-11pm advance the time by 12 hours.
set.hour += 12;
} else if (ampm === 0 && set.hour === 12) {
// If it is 12:00am then set the hour to 0.
set.hour = 0;
}
}
function handleTimezoneOffset(tzHour, tzMinute) {
// Adjust for timezone offset
_utc(date, true);
// Sign is parsed as part of the hour, so flip
// the minutes if it's negative.
if (tzHour < 0) {
tzMinute *= -1;
}
var offset = tzHour * 60 + (tzMinute || 0);
if (offset) {
set.minute = (set.minute || 0) - offset;
}
}
function handleUnitlessShift() {
if (isDefined(set.month)) {
// "next January"
set.unit = YEAR_INDEX;
} else if (isDefined(set.weekday)) {
// "next Monday"
set.unit = WEEK_INDEX;
}
}
function handleUnitlessNum(num) {
if (isDefined(set.weekday)) {
// "The second Tuesday of March"
setOrdinalWeekday(num);
} else if (isDefined(set.month)) {
// "The second of March"
set.date = set.num;
}
}
function handleMidday(hour) {
set.hour = hour % 24;
if (hour > 23) {
// If the date has hours past 24, we need to prevent it from traversing
// into a new day as that would make it being part of a new week in
// ambiguous dates such as "Monday".
afterDateSet(function() {
advanceDate(date, 'date', trunc(hour / 24));
});
}
}
function handleRelativeDay() {
resetTime(date);
if (isUndefined(set.unit)) {
set.unit = DAY_INDEX;
set.num = set.day;
delete set.day;
}
}
function handleRelativeUnit(unitIndex) {
var num;
if (isDefined(set.num)) {
num = set.num;
} else if (isDefined(set.edge) && isUndefined(set.shift)) {
num = 0;
} else {
num = 1;
}
// If a weekday is defined, there are 3 possible formats being applied:
//
// 1. "the day after monday": unit is days
// 2. "next monday": short for "next week monday", unit is weeks
// 3. "the 2nd monday of next month": unit is months
//
// In the first case, we need to set the weekday up front, as the day is
// relative to it. The second case also needs to be handled up front for
// formats like "next monday at midnight" which will have its weekday reset
// if not set up front. The last case will set up the params necessary to
// shift the weekday and allow separateAbsoluteUnits below to handle setting
// it after the date has been shifted.
if(isDefined(set.weekday)) {
if(unitIndex === MONTH_INDEX) {
setOrdinalWeekday(num);
num = 1;
} else {
updateDate(date, { weekday: set.weekday }, true);
delete set.weekday;
}
}
if (set.half) {
// Allow localized "half" as a standalone colloquialism. Purposely avoiding
// the locale number system to reduce complexity. The units "month" and
// "week" are purposely excluded in the English date formats below, as
// "half a week" and "half a month" are meaningless as exact dates.
num *= set.half;
}
if (isDefined(set.shift)) {
// Shift and unit, ie "next month", "last week", etc.
num *= set.shift;
} else if (set.sign) {
// Unit and sign, ie "months ago", "weeks from now", etc.
num *= set.sign;
}
if (isDefined(set.day)) {
// "the day after tomorrow"
num += set.day;
delete set.day;
}
// Formats like "the 15th of last month" or "6:30pm of next week"
// contain absolute units in addition to relative ones, so separate
// them here, remove them from the params, and set up a callback to
// set them after the relative ones have been set.
separateAbsoluteUnits(unitIndex);
// Finally shift the unit.
set[English.units[unitIndex]] = num;
relative = true;
}
function handleEdge(edge, params) {
var edgeIndex = params.unit, weekdayOfMonth;
if (!edgeIndex) {
// If we have "the end of January", then we need to find the unit index.
iterateOverHigherDateParams(params, function(unitName, val, unit, i) {
if (unitName === 'weekday' && isDefined(params.month)) {
// If both a month and weekday exist, then we have a format like
// "the last tuesday in November, 2012", where the "last" is still
// relative to the end of the month, so prevent the unit "weekday"
// from taking over.
return;
}
edgeIndex = i;
});
}
if (edgeIndex === MONTH_INDEX && isDefined(params.weekday)) {
// If a weekday in a month exists (as described above),
// then set it up to be set after the date has been shifted.
weekdayOfMonth = params.weekday;
delete params.weekday;
}
afterDateSet(function() {
var stopIndex;
// "edge" values that are at the very edge are "2" so the beginning of the
// year is -2 and the end of the year is 2. Conversely, the "last day" is
// actually 00:00am so it is 1. -1 is reserved but unused for now.
if (edge < 0) {
moveToBeginningOfUnit(date, edgeIndex, optLocale);
} else if (edge > 0) {
if (edge === 1) {
stopIndex = DAY_INDEX;
moveToBeginningOfUnit(date, DAY_INDEX);
}
moveToEndOfUnit(date, edgeIndex, optLocale, stopIndex);
}
if (isDefined(weekdayOfMonth)) {
setWeekday(date, weekdayOfMonth, -edge);
resetTime(date);
}
});
if (edgeIndex === MONTH_INDEX) {
params.specificity = DAY_INDEX;
} else {
params.specificity = edgeIndex - 1;
}
}
function setOrdinalWeekday(num) {
// If we have "the 2nd Tuesday of June", then pass the "weekdayDir"
// flag along to updateDate so that the date does not accidentally traverse
// into the previous month. This needs to be independent of the "prefer"
// flag because we are only ensuring that the weekday is in the future, not
// the entire date.
set.weekday = 7 * (num - 1) + set.weekday;
set.date = 1;
weekdayDir = 1;
}
function separateAbsoluteUnits(unitIndex) {
var params;
iterateOverDateParams(set, function(name, val, unit, i) {
// If there is a time unit set that is more specific than
// the matched unit we have a string like "5:30am in 2 minutes",
// which is meaningless, so invalidate the date...
if (i >= unitIndex) {
date.setTime(NaN);
return false;
} else if (i < unitIndex) {
// ...otherwise set the params to set the absolute date
// as a callback after the relative date has been set.
params = params || {};
params[name] = val;
deleteDateParam(set, name);
}
});
if (params) {
afterDateSet(function() {
updateDate(date, params, true, 0, false, weekdayDir);
if (optParams) {
simpleMerge(optParams, params);
}
});
if (set.edge) {
// "the end of March of next year"
handleEdge(set.edge, params);
delete set.edge;
}
}
}
if (contextDate && d) {
// If a context date is passed ("get" and "unitsFromNow"),
// then use it as the starting point.
date = cloneDateByFlag(contextDate, true);
} else {
date = getNewDate();
}
_utc(date, optFromUTC);
if (isString(d)) {
date = parseStringDate(d);
} else if (isDate(d)) {
date = cloneDateByFlag(d, optClone || forceClone);
} else if (isObjectType(d)) {
set = simpleClone(d);
updateDate(date, set, true);
} else if (isNumber(d) || d === null) {
date.setTime(d);
}
// A date created by parsing a string presumes that the format *itself* is
// UTC, but not that the date, once created, should be manipulated as such. In
// other words, if you are creating a date object from a server time
// "2012-11-15T12:00:00Z", in the majority of cases you are using it to create
// a date that will, after creation, be manipulated as local, so reset the utc
// flag here unless "setUTC" is also set.
_utc(date, !!optSetUTC);
return {
set: set,
date: date
};
}
module.exports = getExtendedDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getHigherUnitIndex.js":
/*!*********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getHigherUnitIndex.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js");
var DAY_INDEX = DateUnitIndexes.DAY_INDEX,
MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;
function getHigherUnitIndex(index) {
return index === DAY_INDEX ? MONTH_INDEX : index + 1;
}
module.exports = getHigherUnitIndex;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getHours.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getHours.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js");
function getHours(d) {
return callDateGet(d, 'Hours');
}
module.exports = getHours;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getLowerUnitIndex.js":
/*!********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getLowerUnitIndex.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js");
var HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,
DAY_INDEX = DateUnitIndexes.DAY_INDEX,
WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,
MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;
function getLowerUnitIndex(index) {
if (index === MONTH_INDEX) {
return DAY_INDEX;
} else if (index === WEEK_INDEX) {
return HOURS_INDEX;
}
return index - 1;
}
module.exports = getLowerUnitIndex;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getMeridiemToken.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getMeridiemToken.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocaleHelpers = __webpack_require__(/*! ../var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
trunc = __webpack_require__(/*! ../../common/var/trunc */ "./node_modules/sugar-date/common/var/trunc.js"),
getHours = __webpack_require__(/*! ./getHours */ "./node_modules/sugar-date/date/internal/getHours.js");
var localeManager = LocaleHelpers.localeManager;
function getMeridiemToken(d, localeCode) {
var hours = getHours(d);
return localeManager.get(localeCode).ampm[trunc(hours / 12)] || '';
}
module.exports = getMeridiemToken;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getMonth.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getMonth.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js");
function getMonth(d) {
return callDateGet(d, 'Month');
}
module.exports = getMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getNewDate.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getNewDate.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _dateOptions = __webpack_require__(/*! ../var/_dateOptions */ "./node_modules/sugar-date/date/var/_dateOptions.js");
function getNewDate() {
return _dateOptions('newDateInternal')();
}
module.exports = getNewDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getNewLocale.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getNewLocale.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LOCALE_ARRAY_FIELDS = __webpack_require__(/*! ../var/LOCALE_ARRAY_FIELDS */ "./node_modules/sugar-date/date/var/LOCALE_ARRAY_FIELDS.js"),
ISODefaults = __webpack_require__(/*! ../var/ISODefaults */ "./node_modules/sugar-date/date/var/ISODefaults.js"),
CoreParsingTokens = __webpack_require__(/*! ../var/CoreParsingTokens */ "./node_modules/sugar-date/date/var/CoreParsingTokens.js"),
CoreParsingFormats = __webpack_require__(/*! ../var/CoreParsingFormats */ "./node_modules/sugar-date/date/var/CoreParsingFormats.js"),
LocalizedParsingTokens = __webpack_require__(/*! ../var/LocalizedParsingTokens */ "./node_modules/sugar-date/date/var/LocalizedParsingTokens.js"),
map = __webpack_require__(/*! ../../common/internal/map */ "./node_modules/sugar-date/common/internal/map.js"),
filter = __webpack_require__(/*! ../../common/internal/filter */ "./node_modules/sugar-date/common/internal/filter.js"),
forEach = __webpack_require__(/*! ../../common/internal/forEach */ "./node_modules/sugar-date/common/internal/forEach.js"),
isDefined = __webpack_require__(/*! ../../common/internal/isDefined */ "./node_modules/sugar-date/common/internal/isDefined.js"),
commaSplit = __webpack_require__(/*! ../../common/internal/commaSplit */ "./node_modules/sugar-date/common/internal/commaSplit.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
isUndefined = __webpack_require__(/*! ../../common/internal/isUndefined */ "./node_modules/sugar-date/common/internal/isUndefined.js"),
simpleMerge = __webpack_require__(/*! ../../common/internal/simpleMerge */ "./node_modules/sugar-date/common/internal/simpleMerge.js"),
getOrdinalSuffix = __webpack_require__(/*! ../../common/internal/getOrdinalSuffix */ "./node_modules/sugar-date/common/internal/getOrdinalSuffix.js"),
getArrayWithOffset = __webpack_require__(/*! ./getArrayWithOffset */ "./node_modules/sugar-date/date/internal/getArrayWithOffset.js"),
getRegNonCapturing = __webpack_require__(/*! ./getRegNonCapturing */ "./node_modules/sugar-date/date/internal/getRegNonCapturing.js"),
coreUtilityAliases = __webpack_require__(/*! ../../common/var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js"),
iterateOverDateUnits = __webpack_require__(/*! ./iterateOverDateUnits */ "./node_modules/sugar-date/date/internal/iterateOverDateUnits.js"),
arrayToRegAlternates = __webpack_require__(/*! ./arrayToRegAlternates */ "./node_modules/sugar-date/date/internal/arrayToRegAlternates.js"),
fullwidthNumberHelpers = __webpack_require__(/*! ../../common/var/fullwidthNumberHelpers */ "./node_modules/sugar-date/common/var/fullwidthNumberHelpers.js"),
getAdjustedUnitForNumber = __webpack_require__(/*! ./getAdjustedUnitForNumber */ "./node_modules/sugar-date/date/internal/getAdjustedUnitForNumber.js"),
getParsingTokenWithSuffix = __webpack_require__(/*! ./getParsingTokenWithSuffix */ "./node_modules/sugar-date/date/internal/getParsingTokenWithSuffix.js");
var hasOwn = coreUtilityAliases.hasOwn,
getOwn = coreUtilityAliases.getOwn,
forEachProperty = coreUtilityAliases.forEachProperty,
fullWidthNumberMap = fullwidthNumberHelpers.fullWidthNumberMap,
fullWidthNumbers = fullwidthNumberHelpers.fullWidthNumbers,
pow = mathAliases.pow,
max = mathAliases.max,
ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,
ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR,
isString = classChecks.isString,
isFunction = classChecks.isFunction;
function getNewLocale(def) {
function Locale(def) {
this.init(def);
}
Locale.prototype = {
getMonthName: function(n, alternate) {
if (this.monthSuffix) {
return (n + 1) + this.monthSuffix;
}
return getArrayWithOffset(this.months, n, alternate, 12);
},
getWeekdayName: function(n, alternate) {
return getArrayWithOffset(this.weekdays, n, alternate, 7);
},
// TODO: rename to parse in next major version
parseValue: function(str, param) {
var map = this[param + 'Map'];
if (hasOwn(map, str)) {
return map[str];
}
return this.parseNumber(str, param);
},
// TODO: analyze performance of parsing first vs checking
// numeralMap first.
parseNumber: function(str, param) {
var val;
// Simple numerals such as "one" are mapped directly in
// the numeral map so catch up front if there is a match.
if (hasOwn(this.numeralMap, str)) {
val = this.numeralMap[str];
}
// TODO: perf test isNaN vs other methods
if (isNaN(val)) {
val = this.parseRegularNumerals(str);
}
if (isNaN(val)) {
val = this.parseIrregularNumerals(str);
}
if (param === 'month') {
// Months are the only numeric date field
// whose value is not the same as its number.
val -= 1;
}
return val;
},
// TODO: perf test returning up front if no regular decimals exist
parseRegularNumerals: function(str) {
// Allow decimals as commas and the minus-sign as per ISO-8601.
str = str.replace(/^/, '-').replace(/,/, '.');
// The unary plus operator here shows better performance and handles
// every format that parseFloat does with the exception of trailing
// characters, which are guaranteed not to be in our string at this point.
return +str;
},
parseIrregularNumerals: function(str) {
var place = 1, num = 0, lastWasPlace, isPlace, numeral, digit, arr;
// Note that "numerals" that need to be converted through this method are
// all considered to be single characters in order to handle CJK. This
// method is by no means unique to CJK, but the complexity of handling
// inflections in non-CJK languages adds too much overhead for not enough
// value, so avoiding for now.
arr = str.split('');
for (var i = arr.length - 1; numeral = arr[i]; i--) {
digit = getOwn(this.numeralMap, numeral);
if (isUndefined(digit)) {
digit = getOwn(fullWidthNumberMap, numeral) || 0;
}
isPlace = digit > 0 && digit % 10 === 0;
if (isPlace) {
if (lastWasPlace) {
num += place;
}
if (i) {
place = digit;
} else {
num += digit;
}
} else {
num += digit * place;
place *= 10;
}
lastWasPlace = isPlace;
}
return num;
},
getOrdinal: function(n) {
var suffix = this.ordinalSuffix;
return suffix || getOrdinalSuffix(n);
},
getRelativeFormat: function(adu, type) {
return this.convertAdjustedToFormat(adu, type);
},
getDuration: function(ms) {
return this.convertAdjustedToFormat(getAdjustedUnitForNumber(max(0, ms)), 'duration');
},
getFirstDayOfWeek: function() {
var val = this.firstDayOfWeek;
return isDefined(val) ? val : ISO_FIRST_DAY_OF_WEEK;
},
getFirstDayOfWeekYear: function() {
return this.firstDayOfWeekYear || ISO_FIRST_DAY_OF_WEEK_YEAR;
},
convertAdjustedToFormat: function(adu, type) {
var sign, unit, mult,
num = adu[0],
u = adu[1],
ms = adu[2],
format = this[type] || this.relative;
if (isFunction(format)) {
return format.call(this, num, u, ms, type);
}
mult = !this.plural || num === 1 ? 0 : 1;
unit = this.units[mult * 8 + u] || this.units[u];
sign = this[ms > 0 ? 'fromNow' : 'ago'];
return format.replace(/\{(.*?)\}/g, function(full, match) {
switch(match) {
case 'num': return num;
case 'unit': return unit;
case 'sign': return sign;
}
});
},
cacheFormat: function(dif, i) {
this.compiledFormats.splice(i, 1);
this.compiledFormats.unshift(dif);
},
addFormat: function(format) {
var loc = this, src, to;
function getTokenSrc(token) {
var suffix, src, tmp,
opt = token.match(/\?$/),
nc = token.match(/^(\d+)\??$/),
slice = token.match(/(\d)(?:-(\d))?/),
param = token.replace(/[^a-z]+$/i, '');
// Allowing alias tokens such as {time}
if (tmp = getOwn(loc.parsingAliases, param)) {
src = formatToSrc(tmp);
if (opt) {
src = getRegNonCapturing(src, true);
}
return src;
}
if (nc) {
src = loc.tokens[nc[1]];
} else if (tmp = getOwn(CoreParsingTokens, param)) {
src = tmp.src;
param = tmp.param || param;
} else {
tmp = getOwn(loc.parsingTokens, param) || getOwn(loc, param);
// Both the "months" array and the "month" parsing token can be accessed
// by either {month} or {months}, falling back as necessary, however
// regardless of whether or not a fallback occurs, the final field to
// be passed to addRawFormat must be normalized as singular.
param = param.replace(/s$/, '');
if (!tmp) {
tmp = getOwn(loc.parsingTokens, param) || getOwn(loc, param + 's');
}
if (isString(tmp)) {
src = tmp;
suffix = loc[param + 'Suffix'];
} else {
// This is a hack to temporarily disallow parsing of single character
// weekdays until the format can be changed to allow for this.
if (param === 'weekday' && loc.code === 'ko') {
tmp = filter(tmp, function(str) {
return str.length > 1;
});
}
if (slice) {
tmp = filter(tmp, function(m, i) {
var mod = i % (loc.units ? 8 : tmp.length);
return mod >= slice[1] && mod <= (slice[2] || slice[1]);
});
}
src = arrayToRegAlternates(tmp);
}
}
if (!src) {
return '';
}
if (nc) {
// Non-capturing tokens like {0}
src = getRegNonCapturing(src);
} else {
// Capturing group and add to parsed tokens
to.push(param);
src = '(' + src + ')';
}
if (suffix) {
// Date/time suffixes such as those in CJK
src = getParsingTokenWithSuffix(param, src, suffix);
}
if (opt) {
src += '?';
}
return src;
}
function formatToSrc(str) {
// Make spaces optional
str = str.replace(/ /g, ' ?');
str = str.replace(/\{([^,]+?)\}/g, function(match, token) {
var tokens = token.split('|');
if (tokens.length > 1) {
return getRegNonCapturing(map(tokens, getTokenSrc).join('|'));
} else {
return getTokenSrc(token);
}
});
return str;
}
function parseInputFormat() {
to = [];
src = formatToSrc(format);
}
parseInputFormat();
loc.addRawFormat(src, to);
},
addRawFormat: function(format, to) {
this.compiledFormats.unshift({
reg: RegExp('^ *' + format + ' *$', 'i'),
to: to
});
},
init: function(def) {
var loc = this;
// -- Initialization helpers
function initFormats() {
loc.compiledFormats = [];
loc.parsingAliases = {};
loc.parsingTokens = {};
}
function initDefinition() {
simpleMerge(loc, def);
}
function initArrayFields() {
forEach(LOCALE_ARRAY_FIELDS, function(name) {
var val = loc[name];
if (isString(val)) {
loc[name] = commaSplit(val);
} else if (!val) {
loc[name] = [];
}
});
}
// -- Value array build helpers
function buildValueArray(name, mod, map, fn) {
var field = name, all = [], setMap;
if (!loc[field]) {
field += 's';
}
if (!map) {
map = {};
setMap = true;
}
forAllAlternates(field, function(alt, j, i) {
var idx = j * mod + i, val;
val = fn ? fn(i) : i;
map[alt] = val;
map[alt.toLowerCase()] = val;
all[idx] = alt;
});
loc[field] = all;
if (setMap) {
loc[name + 'Map'] = map;
}
}
function forAllAlternates(field, fn) {
forEach(loc[field], function(str, i) {
forEachAlternate(str, function(alt, j) {
fn(alt, j, i);
});
});
}
function forEachAlternate(str, fn) {
var arr = map(str.split('+'), function(split) {
return split.replace(/(.+):(.+)$/, function(full, base, suffixes) {
return map(suffixes.split('|'), function(suffix) {
return base + suffix;
}).join('|');
});
}).join('|');
forEach(arr.split('|'), fn);
}
function buildNumerals() {
var map = {};
buildValueArray('numeral', 10, map);
buildValueArray('article', 1, map, function() {
return 1;
});
buildValueArray('placeholder', 4, map, function(n) {
return pow(10, n + 1);
});
loc.numeralMap = map;
}
function buildTimeFormats() {
loc.parsingAliases['time'] = getTimeFormat();
loc.parsingAliases['tzOffset'] = getTZOffsetFormat();
}
function getTimeFormat(standalone) {
var src, sep;
sep = getTimeSeparatorSrc(standalone);
if (loc.ampmFront) {
// "ampmFront" exists mostly for CJK locales, which also presume that
// time suffixes exist, allowing this to be a simpler regex.
src = '{ampm?} {hour} (?:{minute} (?::?{second})?)?';
} else if(loc.ampm.length) {
src = '{hour}(?:'+sep+'{minute?}(?:'+sep+'{second?})? {ampm?}| {ampm})';
} else {
src = '{hour}(?:'+sep+'{minute?}(?:'+sep+'{second?})?)';
}
return src;
}
function getTimeSeparatorSrc() {
if (loc.timeSeparator) {
return '[:' + loc.timeSeparator + ']';
} else {
return ':';
}
}
function getTZOffsetFormat() {
return '(?:{Z}|{GMT?}(?:{tzHour}(?::?{tzMinute}(?: \\([\\w\\s]+\\))?)?)?)?';
}
function buildParsingTokens() {
forEachProperty(LocalizedParsingTokens, function(token, name) {
var src = token.base ? getCoreTokensForBase(token.base) : token.src, arr;
if (token.requiresNumerals || loc.numeralUnits) {
src += getNumeralSrc();
}
arr = loc[name + 's'];
if (arr && arr.length) {
src += '|' + arrayToRegAlternates(arr);
}
loc.parsingTokens[name] = src;
});
}
function getCoreTokensForBase(base) {
return map(base.split('|'), function(key) {
return CoreParsingTokens[key].src;
}).join('|');
}
function getNumeralSrc() {
var all, src = '';
all = loc.numerals.concat(loc.placeholders).concat(loc.articles);
if (loc.allowsFullWidth) {
all = all.concat(fullWidthNumbers.split(''));
}
if (all.length) {
src = '|(?:' + arrayToRegAlternates(all) + ')+';
}
return src;
}
function buildTimeSuffixes() {
iterateOverDateUnits(function(unit, i) {
var token = loc.timeSuffixes[i];
if (token) {
loc[(unit.alias || unit.name) + 'Suffix'] = token;
}
});
}
function buildModifiers() {
forEach(loc.modifiers, function(modifier) {
var name = modifier.name, mapKey = name + 'Map', map;
map = loc[mapKey] || {};
forEachAlternate(modifier.src, function(alt, j) {
var token = getOwn(loc.parsingTokens, name), val = modifier.value;
map[alt] = val;
loc.parsingTokens[name] = token ? token + '|' + alt : alt;
if (modifier.name === 'sign' && j === 0) {
// Hooking in here to set the first "fromNow" or "ago" modifier
// directly on the locale, so that it can be reused in the
// relative format.
loc[val === 1 ? 'fromNow' : 'ago'] = alt;
}
});
loc[mapKey] = map;
});
}
// -- Format adding helpers
function addCoreFormats() {
forEach(CoreParsingFormats, function(df) {
var src = df.src;
if (df.localeCheck && !df.localeCheck(loc)) {
return;
}
if (df.mdy && loc.mdy) {
// Use the mm/dd/yyyy variant if it
// exists and the locale requires it
src = df.mdy;
}
if (df.time) {
// Core formats that allow time require the time
// reg on both sides, so add both versions here.
loc.addFormat(getFormatWithTime(src, true));
loc.addFormat(getFormatWithTime(src));
} else {
loc.addFormat(src);
}
});
loc.addFormat('{time}');
}
function addLocaleFormats() {
addFormatSet('parse');
addFormatSet('timeParse', true);
addFormatSet('timeFrontParse', true, true);
}
function addFormatSet(field, allowTime, timeFront) {
forEach(loc[field], function(format) {
if (allowTime) {
format = getFormatWithTime(format, timeFront);
}
loc.addFormat(format);
});
}
function getFormatWithTime(baseFormat, timeBefore) {
if (timeBefore) {
return getTimeBefore() + baseFormat;
}
return baseFormat + getTimeAfter();
}
function getTimeBefore() {
return getRegNonCapturing('{time}[,\\s\\u3000]', true);
}
function getTimeAfter() {
var markers = ',?[\\s\\u3000]', localized;
localized = arrayToRegAlternates(loc.timeMarkers);
if (localized) {
markers += '| (?:' + localized + ') ';
}
markers = getRegNonCapturing(markers, loc.timeMarkerOptional);
return getRegNonCapturing(markers + '{time}{tzOffset}', true);
}
initFormats();
initDefinition();
initArrayFields();
buildValueArray('month', 12);
buildValueArray('weekday', 7);
buildValueArray('unit', 8);
buildValueArray('ampm', 2);
buildNumerals();
buildTimeFormats();
buildParsingTokens();
buildTimeSuffixes();
buildModifiers();
// The order of these formats is important. Order is reversed so formats
// that are initialized later will take precedence. Generally, this means
// that more specific formats should come later.
addCoreFormats();
addLocaleFormats();
}
};
return new Locale(def);
}
module.exports = getNewLocale;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getParsingTokenWithSuffix.js":
/*!****************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getParsingTokenWithSuffix.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocalizedParsingTokens = __webpack_require__(/*! ../var/LocalizedParsingTokens */ "./node_modules/sugar-date/date/var/LocalizedParsingTokens.js"),
getRegNonCapturing = __webpack_require__(/*! ./getRegNonCapturing */ "./node_modules/sugar-date/date/internal/getRegNonCapturing.js");
function getParsingTokenWithSuffix(field, src, suffix) {
var token = LocalizedParsingTokens[field];
if (token.requiresSuffix) {
src = getRegNonCapturing(src + getRegNonCapturing(suffix));
} else if (token.requiresSuffixOr) {
src += getRegNonCapturing(token.requiresSuffixOr + '|' + suffix);
} else {
src += getRegNonCapturing(suffix, true);
}
return src;
}
module.exports = getParsingTokenWithSuffix;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getRegNonCapturing.js":
/*!*********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getRegNonCapturing.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function getRegNonCapturing(src, opt) {
if (src.length > 1) {
src = '(?:' + src + ')';
}
if (opt) {
src += '?';
}
return src;
}
module.exports = getRegNonCapturing;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getTimeDistanceForUnit.js":
/*!*************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getTimeDistanceForUnit.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var trunc = __webpack_require__(/*! ../../common/var/trunc */ "./node_modules/sugar-date/common/var/trunc.js"),
cloneDate = __webpack_require__(/*! ./cloneDate */ "./node_modules/sugar-date/date/internal/cloneDate.js"),
advanceDate = __webpack_require__(/*! ./advanceDate */ "./node_modules/sugar-date/date/internal/advanceDate.js");
function getTimeDistanceForUnit(d1, d2, unit) {
var fwd = d2 > d1, num, tmp;
if (!fwd) {
tmp = d2;
d2 = d1;
d1 = tmp;
}
num = d2 - d1;
if (unit.multiplier > 1) {
num = trunc(num / unit.multiplier);
}
// For higher order with potential ambiguity, use the numeric calculation
// as a starting point, then iterate until we pass the target date. Decrement
// starting point by 1 to prevent overshooting the date due to inconsistencies
// in ambiguous units numerically. For example, calculating the number of days
// from the beginning of the year to August 5th at 11:59:59 by doing a simple
// d2 - d1 will produce different results depending on whether or not a
// timezone shift was encountered due to DST, however that should not have an
// effect on our calculation here, so subtract by 1 to ensure that the
// starting point has not already overshot our target date.
if (unit.ambiguous) {
d1 = cloneDate(d1);
if (num) {
num -= 1;
advanceDate(d1, unit.name, num);
}
while (d1 < d2) {
advanceDate(d1, unit.name, 1);
if (d1 > d2) {
break;
}
num += 1;
}
}
return fwd ? -num : num;
}
module.exports = getTimeDistanceForUnit;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getUTCOffset.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getUTCOffset.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _utc = __webpack_require__(/*! ../../common/var/_utc */ "./node_modules/sugar-date/common/var/_utc.js"),
trunc = __webpack_require__(/*! ../../common/var/trunc */ "./node_modules/sugar-date/common/var/trunc.js"),
tzOffset = __webpack_require__(/*! ./tzOffset */ "./node_modules/sugar-date/date/internal/tzOffset.js"),
padNumber = __webpack_require__(/*! ../../common/internal/padNumber */ "./node_modules/sugar-date/common/internal/padNumber.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js");
var abs = mathAliases.abs;
function getUTCOffset(d, iso) {
var offset = _utc(d) ? 0 : tzOffset(d), hours, mins, colon;
colon = iso === true ? ':' : '';
if (!offset && iso) return 'Z';
hours = padNumber(trunc(-offset / 60), 2, true);
mins = padNumber(abs(offset % 60), 2);
return hours + colon + mins;
}
module.exports = getUTCOffset;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getUnitIndexForParamName.js":
/*!***************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getUnitIndexForParamName.js ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var iterateOverDateParams = __webpack_require__(/*! ./iterateOverDateParams */ "./node_modules/sugar-date/date/internal/iterateOverDateParams.js");
function getUnitIndexForParamName(name) {
var params = {}, unitIndex;
params[name] = 1;
iterateOverDateParams(params, function(name, val, unit, i) {
unitIndex = i;
return false;
});
return unitIndex;
}
module.exports = getUnitIndexForParamName;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getWeekNumber.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getWeekNumber.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var ISODefaults = __webpack_require__(/*! ../var/ISODefaults */ "./node_modules/sugar-date/date/var/ISODefaults.js"),
setDate = __webpack_require__(/*! ./setDate */ "./node_modules/sugar-date/date/internal/setDate.js"),
getDate = __webpack_require__(/*! ./getDate */ "./node_modules/sugar-date/date/internal/getDate.js"),
cloneDate = __webpack_require__(/*! ./cloneDate */ "./node_modules/sugar-date/date/internal/cloneDate.js"),
isUndefined = __webpack_require__(/*! ../../common/internal/isUndefined */ "./node_modules/sugar-date/common/internal/isUndefined.js"),
moveToEndOfWeek = __webpack_require__(/*! ./moveToEndOfWeek */ "./node_modules/sugar-date/date/internal/moveToEndOfWeek.js"),
moveToBeginningOfWeek = __webpack_require__(/*! ./moveToBeginningOfWeek */ "./node_modules/sugar-date/date/internal/moveToBeginningOfWeek.js"),
moveToFirstDayOfWeekYear = __webpack_require__(/*! ./moveToFirstDayOfWeekYear */ "./node_modules/sugar-date/date/internal/moveToFirstDayOfWeekYear.js");
var ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,
ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;
function getWeekNumber(d, allowPrevious, firstDayOfWeek, firstDayOfWeekYear) {
var isoWeek, n = 0;
if (isUndefined(firstDayOfWeek)) {
firstDayOfWeek = ISO_FIRST_DAY_OF_WEEK;
}
if (isUndefined(firstDayOfWeekYear)) {
firstDayOfWeekYear = ISO_FIRST_DAY_OF_WEEK_YEAR;
}
// Moving to the end of the week allows for forward year traversal, ie
// Dec 29 2014 is actually week 01 of 2015.
isoWeek = moveToEndOfWeek(cloneDate(d), firstDayOfWeek);
moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);
if (allowPrevious && d < isoWeek) {
// If the date is still before the start of the year, then it should be
// the last week of the previous year, ie Jan 1 2016 is actually week 53
// of 2015, so move to the beginning of the week to traverse the year.
isoWeek = moveToBeginningOfWeek(cloneDate(d), firstDayOfWeek);
moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);
}
while (isoWeek <= d) {
// Doing a very simple walk to get the week number.
setDate(isoWeek, getDate(isoWeek) + 7);
n++;
}
return n;
}
module.exports = getWeekNumber;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getWeekYear.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getWeekYear.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocaleHelpers = __webpack_require__(/*! ../var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
getYear = __webpack_require__(/*! ./getYear */ "./node_modules/sugar-date/date/internal/getYear.js"),
getMonth = __webpack_require__(/*! ./getMonth */ "./node_modules/sugar-date/date/internal/getMonth.js"),
getWeekNumber = __webpack_require__(/*! ./getWeekNumber */ "./node_modules/sugar-date/date/internal/getWeekNumber.js");
var localeManager = LocaleHelpers.localeManager;
function getWeekYear(d, localeCode, iso) {
var year, month, firstDayOfWeek, firstDayOfWeekYear, week, loc;
year = getYear(d);
month = getMonth(d);
if (month === 0 || month === 11) {
if (!iso) {
loc = localeManager.get(localeCode);
firstDayOfWeek = loc.getFirstDayOfWeek(localeCode);
firstDayOfWeekYear = loc.getFirstDayOfWeekYear(localeCode);
}
week = getWeekNumber(d, false, firstDayOfWeek, firstDayOfWeekYear);
if (month === 0 && week === 0) {
year -= 1;
} else if (month === 11 && week === 1) {
year += 1;
}
}
return year;
}
module.exports = getWeekYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getWeekday.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getWeekday.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js");
function getWeekday(d) {
return callDateGet(d, 'Day');
}
module.exports = getWeekday;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getYear.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getYear.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js");
function getYear(d) {
return callDateGet(d, 'FullYear');
}
module.exports = getYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/getYearFromAbbreviation.js":
/*!**************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/getYearFromAbbreviation.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getYear = __webpack_require__(/*! ./getYear */ "./node_modules/sugar-date/date/internal/getYear.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js");
var abs = mathAliases.abs;
function getYearFromAbbreviation(str, d, prefer) {
// Following IETF here, adding 1900 or 2000 depending on the last two digits.
// Note that this makes no accordance for what should happen after 2050, but
// intentionally ignoring this for now. https://www.ietf.org/rfc/rfc2822.txt
var val = +str, delta;
val += val < 50 ? 2000 : 1900;
if (prefer) {
delta = val - getYear(d);
if (delta / abs(delta) !== prefer) {
val += prefer * 100;
}
}
return val;
}
module.exports = getYearFromAbbreviation;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/isUTC.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/isUTC.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _utc = __webpack_require__(/*! ../../common/var/_utc */ "./node_modules/sugar-date/common/var/_utc.js"),
tzOffset = __webpack_require__(/*! ./tzOffset */ "./node_modules/sugar-date/date/internal/tzOffset.js");
function isUTC(d) {
return !!_utc(d) || tzOffset(d) === 0;
}
module.exports = isUTC;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/iterateOverDateParams.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/iterateOverDateParams.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
isDefined = __webpack_require__(/*! ../../common/internal/isDefined */ "./node_modules/sugar-date/common/internal/isDefined.js"),
getDateParam = __webpack_require__(/*! ./getDateParam */ "./node_modules/sugar-date/date/internal/getDateParam.js"),
iterateOverDateUnits = __webpack_require__(/*! ./iterateOverDateUnits */ "./node_modules/sugar-date/date/internal/iterateOverDateUnits.js");
var DAY_INDEX = DateUnitIndexes.DAY_INDEX;
function iterateOverDateParams(params, fn, startIndex, endIndex) {
function run(name, unit, i) {
var val = getDateParam(params, name);
if (isDefined(val)) {
fn(name, val, unit, i);
}
}
iterateOverDateUnits(function (unit, i) {
var result = run(unit.name, unit, i);
if (result !== false && i === DAY_INDEX) {
// Check for "weekday", which has a distinct meaning
// in the context of setting a date, but has the same
// meaning as "day" as a unit of time.
result = run('weekday', unit, i);
}
return result;
}, startIndex, endIndex);
}
module.exports = iterateOverDateParams;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/iterateOverDateUnits.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/iterateOverDateUnits.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnits = __webpack_require__(/*! ../var/DateUnits */ "./node_modules/sugar-date/date/var/DateUnits.js"),
DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
isUndefined = __webpack_require__(/*! ../../common/internal/isUndefined */ "./node_modules/sugar-date/common/internal/isUndefined.js");
var YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;
function iterateOverDateUnits(fn, startIndex, endIndex) {
endIndex = endIndex || 0;
if (isUndefined(startIndex)) {
startIndex = YEAR_INDEX;
}
for (var index = startIndex; index >= endIndex; index--) {
if (fn(DateUnits[index], index) === false) {
break;
}
}
}
module.exports = iterateOverDateUnits;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/iterateOverHigherDateParams.js":
/*!******************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/iterateOverHigherDateParams.js ***!
\******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
iterateOverDateParams = __webpack_require__(/*! ./iterateOverDateParams */ "./node_modules/sugar-date/date/internal/iterateOverDateParams.js");
var DAY_INDEX = DateUnitIndexes.DAY_INDEX,
YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;
function iterateOverHigherDateParams(params, fn) {
iterateOverDateParams(params, fn, YEAR_INDEX, DAY_INDEX);
}
module.exports = iterateOverHigherDateParams;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/moveToBeginningOfUnit.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/moveToBeginningOfUnit.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocaleHelpers = __webpack_require__(/*! ../var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
getLowerUnitIndex = __webpack_require__(/*! ./getLowerUnitIndex */ "./node_modules/sugar-date/date/internal/getLowerUnitIndex.js"),
moveToBeginningOfWeek = __webpack_require__(/*! ./moveToBeginningOfWeek */ "./node_modules/sugar-date/date/internal/moveToBeginningOfWeek.js"),
setUnitAndLowerToEdge = __webpack_require__(/*! ./setUnitAndLowerToEdge */ "./node_modules/sugar-date/date/internal/setUnitAndLowerToEdge.js");
var WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,
localeManager = LocaleHelpers.localeManager;
function moveToBeginningOfUnit(d, unitIndex, localeCode) {
if (unitIndex === WEEK_INDEX) {
moveToBeginningOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());
}
return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));
}
module.exports = moveToBeginningOfUnit;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/moveToBeginningOfWeek.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/moveToBeginningOfWeek.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var setWeekday = __webpack_require__(/*! ./setWeekday */ "./node_modules/sugar-date/date/internal/setWeekday.js"),
getWeekday = __webpack_require__(/*! ./getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js");
var floor = mathAliases.floor;
function moveToBeginningOfWeek(d, firstDayOfWeek) {
setWeekday(d, floor((getWeekday(d) - firstDayOfWeek) / 7) * 7 + firstDayOfWeek);
return d;
}
module.exports = moveToBeginningOfWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/moveToEndOfUnit.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/moveToEndOfUnit.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocaleHelpers = __webpack_require__(/*! ../var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
moveToEndOfWeek = __webpack_require__(/*! ./moveToEndOfWeek */ "./node_modules/sugar-date/date/internal/moveToEndOfWeek.js"),
getLowerUnitIndex = __webpack_require__(/*! ./getLowerUnitIndex */ "./node_modules/sugar-date/date/internal/getLowerUnitIndex.js"),
setUnitAndLowerToEdge = __webpack_require__(/*! ./setUnitAndLowerToEdge */ "./node_modules/sugar-date/date/internal/setUnitAndLowerToEdge.js");
var WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,
localeManager = LocaleHelpers.localeManager;
function moveToEndOfUnit(d, unitIndex, localeCode, stopIndex) {
if (unitIndex === WEEK_INDEX) {
moveToEndOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());
}
return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex), stopIndex, true);
}
module.exports = moveToEndOfUnit;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/moveToEndOfWeek.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/moveToEndOfWeek.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var setWeekday = __webpack_require__(/*! ./setWeekday */ "./node_modules/sugar-date/date/internal/setWeekday.js"),
getWeekday = __webpack_require__(/*! ./getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js");
var ceil = mathAliases.ceil;
function moveToEndOfWeek(d, firstDayOfWeek) {
var target = firstDayOfWeek - 1;
setWeekday(d, ceil((getWeekday(d) - target) / 7) * 7 + target);
return d;
}
module.exports = moveToEndOfWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/moveToFirstDayOfWeekYear.js":
/*!***************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/moveToFirstDayOfWeekYear.js ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
setDate = __webpack_require__(/*! ./setDate */ "./node_modules/sugar-date/date/internal/setDate.js"),
setUnitAndLowerToEdge = __webpack_require__(/*! ./setUnitAndLowerToEdge */ "./node_modules/sugar-date/date/internal/setUnitAndLowerToEdge.js"),
moveToBeginningOfWeek = __webpack_require__(/*! ./moveToBeginningOfWeek */ "./node_modules/sugar-date/date/internal/moveToBeginningOfWeek.js");
var MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;
function moveToFirstDayOfWeekYear(d, firstDayOfWeek, firstDayOfWeekYear) {
setUnitAndLowerToEdge(d, MONTH_INDEX);
setDate(d, firstDayOfWeekYear);
moveToBeginningOfWeek(d, firstDayOfWeek);
}
module.exports = moveToFirstDayOfWeekYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/resetLowerUnits.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/resetLowerUnits.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getLowerUnitIndex = __webpack_require__(/*! ./getLowerUnitIndex */ "./node_modules/sugar-date/date/internal/getLowerUnitIndex.js"),
setUnitAndLowerToEdge = __webpack_require__(/*! ./setUnitAndLowerToEdge */ "./node_modules/sugar-date/date/internal/setUnitAndLowerToEdge.js");
function resetLowerUnits(d, unitIndex) {
return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));
}
module.exports = resetLowerUnits;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/resetTime.js":
/*!************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/resetTime.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
setUnitAndLowerToEdge = __webpack_require__(/*! ./setUnitAndLowerToEdge */ "./node_modules/sugar-date/date/internal/setUnitAndLowerToEdge.js");
var HOURS_INDEX = DateUnitIndexes.HOURS_INDEX;
function resetTime(d) {
return setUnitAndLowerToEdge(d, HOURS_INDEX);
}
module.exports = resetTime;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/setDate.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/setDate.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateSet = __webpack_require__(/*! ../../common/internal/callDateSet */ "./node_modules/sugar-date/common/internal/callDateSet.js");
function setDate(d, val) {
callDateSet(d, 'Date', val);
}
module.exports = setDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/setDateChainableConstructor.js":
/*!******************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/setDateChainableConstructor.js ***!
\******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var createDate = __webpack_require__(/*! ./createDate */ "./node_modules/sugar-date/date/internal/createDate.js"),
namespaceAliases = __webpack_require__(/*! ../../common/var/namespaceAliases */ "./node_modules/sugar-date/common/var/namespaceAliases.js"),
setChainableConstructor = __webpack_require__(/*! ../../common/internal/setChainableConstructor */ "./node_modules/sugar-date/common/internal/setChainableConstructor.js");
var sugarDate = namespaceAliases.sugarDate;
function setDateChainableConstructor() {
setChainableConstructor(sugarDate, createDate);
}
module.exports = setDateChainableConstructor;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/setISOWeekNumber.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/setISOWeekNumber.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var ISODefaults = __webpack_require__(/*! ../var/ISODefaults */ "./node_modules/sugar-date/date/var/ISODefaults.js"),
getDate = __webpack_require__(/*! ./getDate */ "./node_modules/sugar-date/date/internal/getDate.js"),
setDate = __webpack_require__(/*! ./setDate */ "./node_modules/sugar-date/date/internal/setDate.js"),
setYear = __webpack_require__(/*! ./setYear */ "./node_modules/sugar-date/date/internal/setYear.js"),
getYear = __webpack_require__(/*! ./getYear */ "./node_modules/sugar-date/date/internal/getYear.js"),
getMonth = __webpack_require__(/*! ./getMonth */ "./node_modules/sugar-date/date/internal/getMonth.js"),
setMonth = __webpack_require__(/*! ./setMonth */ "./node_modules/sugar-date/date/internal/setMonth.js"),
cloneDate = __webpack_require__(/*! ./cloneDate */ "./node_modules/sugar-date/date/internal/cloneDate.js"),
getWeekday = __webpack_require__(/*! ./getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js"),
setWeekday = __webpack_require__(/*! ./setWeekday */ "./node_modules/sugar-date/date/internal/setWeekday.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
moveToFirstDayOfWeekYear = __webpack_require__(/*! ./moveToFirstDayOfWeekYear */ "./node_modules/sugar-date/date/internal/moveToFirstDayOfWeekYear.js");
var isNumber = classChecks.isNumber,
ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,
ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;
function setISOWeekNumber(d, num) {
if (isNumber(num)) {
// Intentionally avoiding updateDate here to prevent circular dependencies.
var isoWeek = cloneDate(d), dow = getWeekday(d);
moveToFirstDayOfWeekYear(isoWeek, ISO_FIRST_DAY_OF_WEEK, ISO_FIRST_DAY_OF_WEEK_YEAR);
setDate(isoWeek, getDate(isoWeek) + 7 * (num - 1));
setYear(d, getYear(isoWeek));
setMonth(d, getMonth(isoWeek));
setDate(d, getDate(isoWeek));
setWeekday(d, dow || 7);
}
return d.getTime();
}
module.exports = setISOWeekNumber;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/setMonth.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/setMonth.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateSet = __webpack_require__(/*! ../../common/internal/callDateSet */ "./node_modules/sugar-date/common/internal/callDateSet.js");
function setMonth(d, val) {
callDateSet(d, 'Month', val);
}
module.exports = setMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/setUnitAndLowerToEdge.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/setUnitAndLowerToEdge.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var isDefined = __webpack_require__(/*! ../../common/internal/isDefined */ "./node_modules/sugar-date/common/internal/isDefined.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
callDateSet = __webpack_require__(/*! ../../common/internal/callDateSet */ "./node_modules/sugar-date/common/internal/callDateSet.js"),
walkUnitDown = __webpack_require__(/*! ./walkUnitDown */ "./node_modules/sugar-date/date/internal/walkUnitDown.js");
var isFunction = classChecks.isFunction;
function setUnitAndLowerToEdge(d, startIndex, stopIndex, end) {
walkUnitDown(startIndex, function(unit, i) {
var val = end ? unit.end : unit.start;
if (isFunction(val)) {
val = val(d);
}
callDateSet(d, unit.method, val);
return !isDefined(stopIndex) || i > stopIndex;
});
return d;
}
module.exports = setUnitAndLowerToEdge;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/setWeekday.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/setWeekday.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var setDate = __webpack_require__(/*! ./setDate */ "./node_modules/sugar-date/date/internal/setDate.js"),
getDate = __webpack_require__(/*! ./getDate */ "./node_modules/sugar-date/date/internal/getDate.js"),
getWeekday = __webpack_require__(/*! ./getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js");
var isNumber = classChecks.isNumber,
abs = mathAliases.abs;
function setWeekday(d, dow, dir) {
if (!isNumber(dow)) return;
var currentWeekday = getWeekday(d);
if (dir) {
// Allow a "direction" parameter to determine whether a weekday can
// be set beyond the current weekday in either direction.
var ndir = dir > 0 ? 1 : -1;
var offset = dow % 7 - currentWeekday;
if (offset && offset / abs(offset) !== ndir) {
dow += 7 * ndir;
}
}
setDate(d, getDate(d) + dow - currentWeekday);
return d.getTime();
}
module.exports = setWeekday;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/setYear.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/setYear.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var callDateSet = __webpack_require__(/*! ../../common/internal/callDateSet */ "./node_modules/sugar-date/common/internal/callDateSet.js");
function setYear(d, val) {
callDateSet(d, 'FullYear', val);
}
module.exports = setYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/tzOffset.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/date/internal/tzOffset.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function tzOffset(d) {
return d.getTimezoneOffset();
}
module.exports = tzOffset;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/updateDate.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/updateDate.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnits = __webpack_require__(/*! ../var/DateUnits */ "./node_modules/sugar-date/date/var/DateUnits.js"),
DateUnitIndexes = __webpack_require__(/*! ../var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
trunc = __webpack_require__(/*! ../../common/var/trunc */ "./node_modules/sugar-date/common/var/trunc.js"),
setDate = __webpack_require__(/*! ./setDate */ "./node_modules/sugar-date/date/internal/setDate.js"),
getDate = __webpack_require__(/*! ./getDate */ "./node_modules/sugar-date/date/internal/getDate.js"),
getMonth = __webpack_require__(/*! ./getMonth */ "./node_modules/sugar-date/date/internal/getMonth.js"),
getNewDate = __webpack_require__(/*! ./getNewDate */ "./node_modules/sugar-date/date/internal/getNewDate.js"),
setWeekday = __webpack_require__(/*! ./setWeekday */ "./node_modules/sugar-date/date/internal/setWeekday.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
resetLowerUnits = __webpack_require__(/*! ./resetLowerUnits */ "./node_modules/sugar-date/date/internal/resetLowerUnits.js"),
getLowerUnitIndex = __webpack_require__(/*! ./getLowerUnitIndex */ "./node_modules/sugar-date/date/internal/getLowerUnitIndex.js"),
getHigherUnitIndex = __webpack_require__(/*! ./getHigherUnitIndex */ "./node_modules/sugar-date/date/internal/getHigherUnitIndex.js"),
callDateSetWithWeek = __webpack_require__(/*! ./callDateSetWithWeek */ "./node_modules/sugar-date/date/internal/callDateSetWithWeek.js"),
iterateOverDateParams = __webpack_require__(/*! ./iterateOverDateParams */ "./node_modules/sugar-date/date/internal/iterateOverDateParams.js");
var DAY_INDEX = DateUnitIndexes.DAY_INDEX,
WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,
MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,
YEAR_INDEX = DateUnitIndexes.YEAR_INDEX,
round = mathAliases.round,
isNumber = classChecks.isNumber;
function updateDate(d, params, reset, advance, prefer, weekdayDir, contextDate) {
var upperUnitIndex;
function setUpperUnit(unitName, unitIndex) {
if (prefer && !upperUnitIndex) {
if (unitName === 'weekday') {
upperUnitIndex = WEEK_INDEX;
} else {
upperUnitIndex = getHigherUnitIndex(unitIndex);
}
}
}
function setSpecificity(unitIndex) {
// Other functions may preemptively set the specificity before arriving
// here so concede to them if they have already set more specific units.
if (unitIndex > params.specificity) {
return;
}
params.specificity = unitIndex;
}
function canDisambiguate() {
if (!upperUnitIndex || upperUnitIndex > YEAR_INDEX) {
return;
}
switch(prefer) {
case -1: return d >= (contextDate || getNewDate());
case 1: return d <= (contextDate || getNewDate());
}
}
function disambiguateHigherUnit() {
var unit = DateUnits[upperUnitIndex];
advance = prefer;
setUnit(unit.name, 1, unit, upperUnitIndex);
}
function handleFraction(unit, unitIndex, fraction) {
if (unitIndex) {
var lowerUnit = DateUnits[getLowerUnitIndex(unitIndex)];
var val = round(unit.multiplier / lowerUnit.multiplier * fraction);
params[lowerUnit.name] = val;
}
}
function monthHasShifted(d, targetMonth) {
if (targetMonth < 0) {
targetMonth = targetMonth % 12 + 12;
}
return targetMonth % 12 !== getMonth(d);
}
function setUnit(unitName, value, unit, unitIndex) {
var method = unit.method, checkMonth, fraction;
setUpperUnit(unitName, unitIndex);
setSpecificity(unitIndex);
fraction = value % 1;
if (fraction) {
handleFraction(unit, unitIndex, fraction);
value = trunc(value);
}
if (unitName === 'weekday') {
if (!advance) {
// Weekdays are always considered absolute units so simply set them
// here even if it is an "advance" operation. This is to help avoid
// ambiguous meanings in "advance" as well as to neatly allow formats
// like "Wednesday of next week" without more complex logic.
setWeekday(d, value, weekdayDir);
}
return;
}
checkMonth = unitIndex === MONTH_INDEX && getDate(d) > 28;
// If we are advancing or rewinding, then we need we need to set the
// absolute time if the unit is "hours" or less. This is due to the fact
// that setting by method is ambiguous during DST shifts. For example,
// 1:00am on November 1st 2015 occurs twice in North American timezones
// with DST, the second time being after the clocks are rolled back at
// 2:00am. When springing forward this is automatically handled as there
// is no 2:00am so the date automatically jumps to 3:00am. However, when
// rolling back, setHours(2) will always choose the first "2am" even if
// the date is currently set to the second, causing unintended jumps.
// This ambiguity is unavoidable when setting dates as the notation is
// ambiguous. However when advancing, we clearly want the resulting date
// to be an acutal hour ahead, which can only be accomplished by setting
// the absolute time. Conversely, any unit higher than "hours" MUST use
// the internal set methods, as they are ambiguous as absolute units of
// time. Years may be 365 or 366 days depending on leap years, months are
// all over the place, and even days may be 23-25 hours depending on DST
// shifts. Finally, note that the kind of jumping described above will
// occur when calling ANY "set" method on the date and will occur even if
// the value being set is identical to the one currently set (i.e.
// setHours(2) on a date at 2am may not be a noop). This is precarious,
// so avoiding this situation in callDateSet by checking up front that
// the value is not the same before setting.
if (advance && !unit.ambiguous) {
d.setTime(d.getTime() + (value * advance * unit.multiplier));
return;
} else if (advance) {
if (unitIndex === WEEK_INDEX) {
value *= 7;
method = DateUnits[DAY_INDEX].method;
}
value = (value * advance) + callDateGet(d, method);
}
callDateSetWithWeek(d, method, value, advance);
if (checkMonth && monthHasShifted(d, value)) {
// As we are setting the units in reverse order, there is a chance that
// our date may accidentally traverse into a new month, such as setting
// { month: 1, date 15 } on January 31st. Check for this here and reset
// the date to the last day of the previous month if this has happened.
setDate(d, 0);
}
}
if (isNumber(params) && advance) {
// If param is a number and advancing, the number is in milliseconds.
params = { millisecond: params };
} else if (isNumber(params)) {
// Otherwise just set the timestamp and return.
d.setTime(params);
return d;
}
iterateOverDateParams(params, setUnit);
if (reset && params.specificity) {
resetLowerUnits(d, params.specificity);
}
// If past or future is preferred, then the process of "disambiguation" will
// ensure that an ambiguous time/date ("4pm", "thursday", "June", etc.) will
// be in the past or future. Weeks are only considered ambiguous if there is
// a weekday, i.e. "thursday" is an ambiguous week, but "the 4th" is an
// ambiguous month.
if (canDisambiguate()) {
disambiguateHigherUnit();
}
return d;
}
module.exports = updateDate;
/***/ }),
/***/ "./node_modules/sugar-date/date/internal/walkUnitDown.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/internal/walkUnitDown.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DateUnits = __webpack_require__(/*! ../var/DateUnits */ "./node_modules/sugar-date/date/var/DateUnits.js"),
getLowerUnitIndex = __webpack_require__(/*! ./getLowerUnitIndex */ "./node_modules/sugar-date/date/internal/getLowerUnitIndex.js");
function walkUnitDown(unitIndex, fn) {
while (unitIndex >= 0) {
if (fn(DateUnits[unitIndex], unitIndex) === false) {
break;
}
unitIndex = getLowerUnitIndex(unitIndex);
}
}
module.exports = walkUnitDown;
/***/ }),
/***/ "./node_modules/sugar-date/date/is.js":
/*!********************************************!*\
!*** ./node_modules/sugar-date/date/is.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
fullCompareDate = __webpack_require__(/*! ./internal/fullCompareDate */ "./node_modules/sugar-date/date/internal/fullCompareDate.js");
Sugar.Date.defineInstance({
'is': function(date, d, margin) {
return fullCompareDate(date, d, margin);
}
});
module.exports = Sugar.Date.is;
/***/ }),
/***/ "./node_modules/sugar-date/date/isAfter.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/date/isAfter.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
createDate = __webpack_require__(/*! ./internal/createDate */ "./node_modules/sugar-date/date/internal/createDate.js");
Sugar.Date.defineInstance({
'isAfter': function(date, d, margin) {
return date.getTime() > createDate(d).getTime() - (margin || 0);
}
});
module.exports = Sugar.Date.isAfter;
/***/ }),
/***/ "./node_modules/sugar-date/date/isBefore.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/isBefore.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
createDate = __webpack_require__(/*! ./internal/createDate */ "./node_modules/sugar-date/date/internal/createDate.js");
Sugar.Date.defineInstance({
'isBefore': function(date, d, margin) {
return date.getTime() < createDate(d).getTime() + (margin || 0);
}
});
module.exports = Sugar.Date.isBefore;
/***/ }),
/***/ "./node_modules/sugar-date/date/isBetween.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/isBetween.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
createDate = __webpack_require__(/*! ./internal/createDate */ "./node_modules/sugar-date/date/internal/createDate.js"),
mathAliases = __webpack_require__(/*! ../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js");
var min = mathAliases.min,
max = mathAliases.max;
Sugar.Date.defineInstance({
'isBetween': function(date, d1, d2, margin) {
var t = date.getTime();
var t1 = createDate(d1).getTime();
var t2 = createDate(d2).getTime();
var lo = min(t1, t2);
var hi = max(t1, t2);
margin = margin || 0;
return (lo - margin <= t) && (hi + margin >= t);
}
});
module.exports = Sugar.Date.isBetween;
/***/ }),
/***/ "./node_modules/sugar-date/date/isFriday.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/isFriday.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isFriday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isFuture.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/isFuture.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isFuture;
/***/ }),
/***/ "./node_modules/sugar-date/date/isLastMonth.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/isLastMonth.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isLastMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/isLastWeek.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isLastWeek.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isLastWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/isLastYear.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isLastYear.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isLastYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/isLeapYear.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isLeapYear.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
getYear = __webpack_require__(/*! ./internal/getYear */ "./node_modules/sugar-date/date/internal/getYear.js");
Sugar.Date.defineInstance({
'isLeapYear': function(date) {
var year = getYear(date);
return (year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0);
}
});
module.exports = Sugar.Date.isLeapYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/isMonday.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/isMonday.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isMonday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isNextMonth.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/isNextMonth.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isNextMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/isNextWeek.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isNextWeek.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isNextWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/isNextYear.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isNextYear.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isNextYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/isPast.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/date/isPast.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isPast;
/***/ }),
/***/ "./node_modules/sugar-date/date/isSaturday.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isSaturday.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isSaturday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isSunday.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/isSunday.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isSunday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isThisMonth.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/isThisMonth.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isThisMonth;
/***/ }),
/***/ "./node_modules/sugar-date/date/isThisWeek.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isThisWeek.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isThisWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/isThisYear.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isThisYear.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.isThisYear;
/***/ }),
/***/ "./node_modules/sugar-date/date/isThursday.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isThursday.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isThursday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isToday.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/date/isToday.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isToday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isTomorrow.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/isTomorrow.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isTomorrow;
/***/ }),
/***/ "./node_modules/sugar-date/date/isTuesday.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/isTuesday.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isTuesday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isUTC.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/date/isUTC.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
isUTC = __webpack_require__(/*! ./internal/isUTC */ "./node_modules/sugar-date/date/internal/isUTC.js");
Sugar.Date.defineInstance({
'isUTC': function(date) {
return isUTC(date);
}
});
module.exports = Sugar.Date.isUTC;
/***/ }),
/***/ "./node_modules/sugar-date/date/isValid.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/date/isValid.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
dateIsValid = __webpack_require__(/*! ./internal/dateIsValid */ "./node_modules/sugar-date/date/internal/dateIsValid.js");
Sugar.Date.defineInstance({
'isValid': function(date) {
return dateIsValid(date);
}
});
module.exports = Sugar.Date.isValid;
/***/ }),
/***/ "./node_modules/sugar-date/date/isWednesday.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/isWednesday.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isWednesday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isWeekday.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/isWeekday.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isWeekday;
/***/ }),
/***/ "./node_modules/sugar-date/date/isWeekend.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/isWeekend.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isWeekend;
/***/ }),
/***/ "./node_modules/sugar-date/date/isYesterday.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/isYesterday.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildRelativeAliasesCall */ "./node_modules/sugar-date/date/build/buildRelativeAliasesCall.js");
module.exports = Sugar.Date.isYesterday;
/***/ }),
/***/ "./node_modules/sugar-date/date/iso.js":
/*!*********************************************!*\
!*** ./node_modules/sugar-date/date/iso.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
Sugar.Date.defineInstance({
'iso': function(date) {
return date.toISOString();
}
});
module.exports = Sugar.Date.iso;
/***/ }),
/***/ "./node_modules/sugar-date/date/millisecondsAgo.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/date/millisecondsAgo.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.millisecondsAgo;
/***/ }),
/***/ "./node_modules/sugar-date/date/millisecondsFromNow.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/millisecondsFromNow.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.millisecondsFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/date/millisecondsSince.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/date/millisecondsSince.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.millisecondsSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/millisecondsUntil.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/date/millisecondsUntil.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.millisecondsUntil;
/***/ }),
/***/ "./node_modules/sugar-date/date/minutesAgo.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/minutesAgo.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.minutesAgo;
/***/ }),
/***/ "./node_modules/sugar-date/date/minutesFromNow.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/date/minutesFromNow.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.minutesFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/date/minutesSince.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/minutesSince.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.minutesSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/minutesUntil.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/minutesUntil.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.minutesUntil;
/***/ }),
/***/ "./node_modules/sugar-date/date/monthsAgo.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/monthsAgo.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.monthsAgo;
/***/ }),
/***/ "./node_modules/sugar-date/date/monthsFromNow.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/date/monthsFromNow.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.monthsFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/date/monthsSince.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/monthsSince.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.monthsSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/monthsUntil.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/monthsUntil.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.monthsUntil;
/***/ }),
/***/ "./node_modules/sugar-date/date/range.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/date/range.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
DateRangeConstructor = __webpack_require__(/*! ../range/var/DateRangeConstructor */ "./node_modules/sugar-date/range/var/DateRangeConstructor.js");
Sugar.Date.defineStatic({
'range': DateRangeConstructor
});
module.exports = Sugar.Date.range;
/***/ }),
/***/ "./node_modules/sugar-date/date/relative.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/relative.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
dateRelative = __webpack_require__(/*! ./internal/dateRelative */ "./node_modules/sugar-date/date/internal/dateRelative.js");
Sugar.Date.defineInstance({
'relative': function(date, localeCode, relativeFn) {
return dateRelative(date, null, localeCode, relativeFn);
}
});
module.exports = Sugar.Date.relative;
/***/ }),
/***/ "./node_modules/sugar-date/date/relativeTo.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/relativeTo.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
createDate = __webpack_require__(/*! ./internal/createDate */ "./node_modules/sugar-date/date/internal/createDate.js"),
dateRelative = __webpack_require__(/*! ./internal/dateRelative */ "./node_modules/sugar-date/date/internal/dateRelative.js");
Sugar.Date.defineInstance({
'relativeTo': function(date, d, localeCode) {
return dateRelative(date, createDate(d), localeCode);
}
});
module.exports = Sugar.Date.relativeTo;
/***/ }),
/***/ "./node_modules/sugar-date/date/removeLocale.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/removeLocale.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
LocaleHelpers = __webpack_require__(/*! ./var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js");
var localeManager = LocaleHelpers.localeManager;
Sugar.Date.defineStatic({
'removeLocale': function(code) {
return localeManager.remove(code);
}
});
module.exports = Sugar.Date.removeLocale;
/***/ }),
/***/ "./node_modules/sugar-date/date/reset.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/date/reset.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
DateUnitIndexes = __webpack_require__(/*! ./var/DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
moveToBeginningOfUnit = __webpack_require__(/*! ./internal/moveToBeginningOfUnit */ "./node_modules/sugar-date/date/internal/moveToBeginningOfUnit.js"),
getUnitIndexForParamName = __webpack_require__(/*! ./internal/getUnitIndexForParamName */ "./node_modules/sugar-date/date/internal/getUnitIndexForParamName.js");
var DAY_INDEX = DateUnitIndexes.DAY_INDEX;
Sugar.Date.defineInstance({
'reset': function(date, unit, localeCode) {
var unitIndex = unit ? getUnitIndexForParamName(unit) : DAY_INDEX;
moveToBeginningOfUnit(date, unitIndex, localeCode);
return date;
}
});
module.exports = Sugar.Date.reset;
/***/ }),
/***/ "./node_modules/sugar-date/date/rewind.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/date/rewind.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
advanceDateWithArgs = __webpack_require__(/*! ./internal/advanceDateWithArgs */ "./node_modules/sugar-date/date/internal/advanceDateWithArgs.js");
Sugar.Date.defineInstanceWithArguments({
'rewind': function(d, args) {
return advanceDateWithArgs(d, args, -1);
}
});
module.exports = Sugar.Date.rewind;
/***/ }),
/***/ "./node_modules/sugar-date/date/secondsAgo.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/secondsAgo.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.secondsAgo;
/***/ }),
/***/ "./node_modules/sugar-date/date/secondsFromNow.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/date/secondsFromNow.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.secondsFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/date/secondsSince.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/secondsSince.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.secondsSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/secondsUntil.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/secondsUntil.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.secondsUntil;
/***/ }),
/***/ "./node_modules/sugar-date/date/set.js":
/*!*********************************************!*\
!*** ./node_modules/sugar-date/date/set.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
updateDate = __webpack_require__(/*! ./internal/updateDate */ "./node_modules/sugar-date/date/internal/updateDate.js"),
collectUpdateDateArguments = __webpack_require__(/*! ./internal/collectUpdateDateArguments */ "./node_modules/sugar-date/date/internal/collectUpdateDateArguments.js");
Sugar.Date.defineInstanceWithArguments({
'set': function(d, args) {
args = collectUpdateDateArguments(args);
return updateDate(d, args[0], args[1]);
}
});
module.exports = Sugar.Date.set;
/***/ }),
/***/ "./node_modules/sugar-date/date/setISOWeek.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/setISOWeek.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
setISOWeekNumber = __webpack_require__(/*! ./internal/setISOWeekNumber */ "./node_modules/sugar-date/date/internal/setISOWeekNumber.js");
Sugar.Date.defineInstance({
'setISOWeek': function(date, num) {
return setISOWeekNumber(date, num);
}
});
module.exports = Sugar.Date.setISOWeek;
/***/ }),
/***/ "./node_modules/sugar-date/date/setLocale.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/setLocale.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
LocaleHelpers = __webpack_require__(/*! ./var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js");
var localeManager = LocaleHelpers.localeManager;
Sugar.Date.defineStatic({
'setLocale': function(code) {
return localeManager.set(code);
}
});
module.exports = Sugar.Date.setLocale;
/***/ }),
/***/ "./node_modules/sugar-date/date/setOption.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/date/setOption.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
_dateOptions = __webpack_require__(/*! ./var/_dateOptions */ "./node_modules/sugar-date/date/var/_dateOptions.js");
module.exports = Sugar.Date.setOption;
/***/ }),
/***/ "./node_modules/sugar-date/date/setUTC.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/date/setUTC.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
_utc = __webpack_require__(/*! ../common/var/_utc */ "./node_modules/sugar-date/common/var/_utc.js");
Sugar.Date.defineInstance({
'setUTC': function(date, on) {
return _utc(date, on);
}
});
module.exports = Sugar.Date.setUTC;
/***/ }),
/***/ "./node_modules/sugar-date/date/setWeekday.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/setWeekday.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
setWeekday = __webpack_require__(/*! ./internal/setWeekday */ "./node_modules/sugar-date/date/internal/setWeekday.js");
Sugar.Date.defineInstance({
'setWeekday': function(date, dow) {
return setWeekday(date, dow);
}
});
module.exports = Sugar.Date.setWeekday;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/ABBREVIATED_YEAR_REG.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/date/var/ABBREVIATED_YEAR_REG.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = /^'?(\d{1,2})$/;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/AmericanEnglishDefinition.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/date/var/AmericanEnglishDefinition.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getEnglishVariant = __webpack_require__(/*! ../internal/getEnglishVariant */ "./node_modules/sugar-date/date/internal/getEnglishVariant.js");
var AmericanEnglishDefinition = getEnglishVariant({
'mdy': true,
'firstDayOfWeek': 0,
'firstDayOfWeekYear': 1,
'short': '{MM}/{dd}/{yyyy}',
'medium': '{Month} {d}, {yyyy}',
'long': '{Month} {d}, {yyyy} {time}',
'full': '{Weekday}, {Month} {d}, {yyyy} {time}',
'stamp': '{Dow} {Mon} {d} {yyyy} {time}',
'time': '{h}:{mm} {TT}'
});
module.exports = AmericanEnglishDefinition;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/BritishEnglishDefinition.js":
/*!**********************************************************************!*\
!*** ./node_modules/sugar-date/date/var/BritishEnglishDefinition.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getEnglishVariant = __webpack_require__(/*! ../internal/getEnglishVariant */ "./node_modules/sugar-date/date/internal/getEnglishVariant.js");
var BritishEnglishDefinition = getEnglishVariant({
'short': '{dd}/{MM}/{yyyy}',
'medium': '{d} {Month} {yyyy}',
'long': '{d} {Month} {yyyy} {H}:{mm}',
'full': '{Weekday}, {d} {Month}, {yyyy} {time}',
'stamp': '{Dow} {d} {Mon} {yyyy} {time}'
});
module.exports = BritishEnglishDefinition;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/CanadianEnglishDefinition.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/date/var/CanadianEnglishDefinition.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getEnglishVariant = __webpack_require__(/*! ../internal/getEnglishVariant */ "./node_modules/sugar-date/date/internal/getEnglishVariant.js");
var CanadianEnglishDefinition = getEnglishVariant({
'short': '{yyyy}-{MM}-{dd}',
'medium': '{d} {Month}, {yyyy}',
'long': '{d} {Month}, {yyyy} {H}:{mm}',
'full': '{Weekday}, {d} {Month}, {yyyy} {time}',
'stamp': '{Dow} {d} {Mon} {yyyy} {time}'
});
module.exports = CanadianEnglishDefinition;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/CoreOutputFormats.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/var/CoreOutputFormats.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var CoreOutputFormats = {
'ISO8601': '{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{SSS}{Z}',
'RFC1123': '{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {ZZ}',
'RFC1036': '{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {ZZ}'
};
module.exports = CoreOutputFormats;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/CoreParsingFormats.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/date/var/CoreParsingFormats.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var CoreParsingFormats = [
{
// 12-1978
// 08-1978 (MDY)
src: '{MM}[-.\\/]{yyyy}'
},
{
// 12/08/1978
// 08/12/1978 (MDY)
time: true,
src: '{dd}[-\\/]{MM}(?:[-\\/]{yyyy|yy|y})?',
mdy: '{MM}[-\\/]{dd}(?:[-\\/]{yyyy|yy|y})?'
},
{
// 12.08.1978
// 08.12.1978 (MDY)
time: true,
src: '{dd}\\.{MM}(?:\\.{yyyy|yy|y})?',
mdy: '{MM}\\.{dd}(?:\\.{yyyy|yy|y})?',
localeCheck: function(loc) {
// Do not allow this format if the locale
// uses a period as a time separator.
return loc.timeSeparator !== '.';
}
},
{
// 1975-08-25
time: true,
src: '{yyyy}[-.\\/]{MM}(?:[-.\\/]{dd})?'
},
{
// .NET JSON
src: '\\\\/Date\\({timestamp}(?:[-+]\\d{4,4})?\\)\\\\/'
},
{
// ISO-8601
src: '{iyyyy}(?:-?{MM}(?:-?{dd}(?:T{ihh}(?::?{imm}(?::?{ss})?)?)?)?)?{tzOffset?}'
}
];
module.exports = CoreParsingFormats;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/CoreParsingTokens.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/var/CoreParsingTokens.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var CoreParsingTokens = {
'yyyy': {
param: 'year',
src: '[-+]?\\d{4,6}'
},
'yy': {
param: 'year',
src: '\\d{2}'
},
'y': {
param: 'year',
src: '\\d'
},
'ayy': {
param: 'year',
src: '\'\\d{2}'
},
'MM': {
param: 'month',
src: '(?:1[012]|0?[1-9])'
},
'dd': {
param: 'date',
src: '(?:3[01]|[12][0-9]|0?[1-9])'
},
'hh': {
param: 'hour',
src: '(?:2[0-4]|[01]?[0-9])'
},
'mm': {
param: 'minute',
src: '[0-5]\\d'
},
'ss': {
param: 'second',
src: '[0-5]\\d(?:[,.]\\d+)?'
},
'tzHour': {
src: '[-+](?:2[0-4]|[01]?[0-9])'
},
'tzMinute': {
src: '[0-5]\\d'
},
'iyyyy': {
param: 'year',
src: '(?:[-+]?\\d{4}|[-+]\\d{5,6})'
},
'ihh': {
param: 'hour',
src: '(?:2[0-4]|[01][0-9])(?:[,.]\\d+)?'
},
'imm': {
param: 'minute',
src: '[0-5]\\d(?:[,.]\\d+)?'
},
'GMT': {
param: 'utc',
src: 'GMT'
},
'Z': {
param: 'utc',
src: 'Z'
},
'timestamp': {
src: '\\d+'
}
};
module.exports = CoreParsingTokens;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/DATE_OPTIONS.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/date/var/DATE_OPTIONS.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var defaultNewDate = __webpack_require__(/*! ../internal/defaultNewDate */ "./node_modules/sugar-date/date/internal/defaultNewDate.js");
var DATE_OPTIONS = {
'newDateInternal': defaultNewDate
};
module.exports = DATE_OPTIONS;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/DateUnitIndexes.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/date/var/DateUnitIndexes.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
HOURS_INDEX: 3,
DAY_INDEX: 4,
WEEK_INDEX: 5,
MONTH_INDEX: 6,
YEAR_INDEX: 7
};
/***/ }),
/***/ "./node_modules/sugar-date/date/var/DateUnits.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/date/var/DateUnits.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getDaysInMonth = __webpack_require__(/*! ../internal/getDaysInMonth */ "./node_modules/sugar-date/date/internal/getDaysInMonth.js");
var DateUnits = [
{
name: 'millisecond',
method: 'Milliseconds',
multiplier: 1,
start: 0,
end: 999
},
{
name: 'second',
method: 'Seconds',
multiplier: 1000,
start: 0,
end: 59
},
{
name: 'minute',
method: 'Minutes',
multiplier: 60 * 1000,
start: 0,
end: 59
},
{
name: 'hour',
method: 'Hours',
multiplier: 60 * 60 * 1000,
start: 0,
end: 23
},
{
name: 'day',
alias: 'date',
method: 'Date',
ambiguous: true,
multiplier: 24 * 60 * 60 * 1000,
start: 1,
end: function(d) {
return getDaysInMonth(d);
}
},
{
name: 'week',
method: 'ISOWeek',
ambiguous: true,
multiplier: 7 * 24 * 60 * 60 * 1000
},
{
name: 'month',
method: 'Month',
ambiguous: true,
multiplier: 30.4375 * 24 * 60 * 60 * 1000,
start: 0,
end: 11
},
{
name: 'year',
method: 'FullYear',
ambiguous: true,
multiplier: 365.25 * 24 * 60 * 60 * 1000,
start: 0
}
];
module.exports = DateUnits;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/EnglishLocaleBaseDefinition.js":
/*!*************************************************************************!*\
!*** ./node_modules/sugar-date/date/var/EnglishLocaleBaseDefinition.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var EnglishLocaleBaseDefinition = {
'code': 'en',
'plural': true,
'timeMarkers': 'at',
'ampm': 'AM|A.M.|a,PM|P.M.|p',
'units': 'millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s',
'months': 'Jan:uary|,Feb:ruary|,Mar:ch|,Apr:il|,May,Jun:e|,Jul:y|,Aug:ust|,Sep:tember|t|,Oct:ober|,Nov:ember|,Dec:ember|',
'weekdays': 'Sun:day|,Mon:day|,Tue:sday|,Wed:nesday|,Thu:rsday|,Fri:day|,Sat:urday|+weekend',
'numerals': 'zero,one|first,two|second,three|third,four:|th,five|fifth,six:|th,seven:|th,eight:|h,nin:e|th,ten:|th',
'articles': 'a,an,the',
'tokens': 'the,st|nd|rd|th,of|in,a|an,on',
'time': '{H}:{mm}',
'past': '{num} {unit} {sign}',
'future': '{num} {unit} {sign}',
'duration': '{num} {unit}',
'modifiers': [
{ 'name': 'half', 'src': 'half', 'value': .5 },
{ 'name': 'midday', 'src': 'noon', 'value': 12 },
{ 'name': 'midday', 'src': 'midnight', 'value': 24 },
{ 'name': 'day', 'src': 'yesterday', 'value': -1 },
{ 'name': 'day', 'src': 'today|tonight', 'value': 0 },
{ 'name': 'day', 'src': 'tomorrow', 'value': 1 },
{ 'name': 'sign', 'src': 'ago|before', 'value': -1 },
{ 'name': 'sign', 'src': 'from now|after|from|in|later', 'value': 1 },
{ 'name': 'edge', 'src': 'first day|first|beginning', 'value': -2 },
{ 'name': 'edge', 'src': 'last day', 'value': 1 },
{ 'name': 'edge', 'src': 'end|last', 'value': 2 },
{ 'name': 'shift', 'src': 'last', 'value': -1 },
{ 'name': 'shift', 'src': 'the|this', 'value': 0 },
{ 'name': 'shift', 'src': 'next', 'value': 1 }
],
'parse': [
'(?:just)? now',
'{shift} {unit:5-7}',
'{months?} {year}',
'{midday} {4?} {day|weekday}',
'{months},?[-.\\/\\s]?{year?}',
'{edge} of (?:day)? {day|weekday}',
'{0} {num}{1?} {weekday} {2} {months},? {year?}',
'{shift?} {day?} {weekday?} (?:at)? {midday}',
'{sign?} {3?} {half} {3?} {unit:3-4|unit:7} {sign?}',
'{0?} {edge} {weekday?} {2} {shift?} {unit:4-7?} {months?},? {year?}'
],
'timeParse': [
'{day|weekday}',
'{shift} {unit:5?} {weekday}',
'{0?} {date}{1?} {2?} {months?}',
'{weekday} {2?} {shift} {unit:5}',
'{0?} {num} {2?} {months}\\.?,? {year?}',
'{num?} {unit:4-5} {sign} {day|weekday}',
'{0|months} {date?}{1?} of {shift} {unit:6-7}',
'{0?} {num}{1?} {weekday} of {shift} {unit:6}',
'{year?}[-.\\/\\s]?{months}[-.\\/\\s]{date}',
'{date}[-.\\/\\s]{months}(?:[-.\\/\\s]{year|yy})?',
'{weekday?}\\.?,? {months}\\.?,? {date}{1?},? {year?}',
'{weekday?}\\.?,? {date} {months} {year}'
],
'timeFrontParse': [
'{sign} {num} {unit}',
'{num} {unit} {sign}',
'{4?} {day|weekday}'
]
};
module.exports = EnglishLocaleBaseDefinition;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/FormatTokensBase.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/date/var/FormatTokensBase.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var TIMEZONE_ABBREVIATION_REG = __webpack_require__(/*! ./TIMEZONE_ABBREVIATION_REG */ "./node_modules/sugar-date/date/var/TIMEZONE_ABBREVIATION_REG.js"),
LocaleHelpers = __webpack_require__(/*! ./LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
DateUnitIndexes = __webpack_require__(/*! ./DateUnitIndexes */ "./node_modules/sugar-date/date/var/DateUnitIndexes.js"),
trunc = __webpack_require__(/*! ../../common/var/trunc */ "./node_modules/sugar-date/common/var/trunc.js"),
getDate = __webpack_require__(/*! ../internal/getDate */ "./node_modules/sugar-date/date/internal/getDate.js"),
getYear = __webpack_require__(/*! ../internal/getYear */ "./node_modules/sugar-date/date/internal/getYear.js"),
getHours = __webpack_require__(/*! ../internal/getHours */ "./node_modules/sugar-date/date/internal/getHours.js"),
getMonth = __webpack_require__(/*! ../internal/getMonth */ "./node_modules/sugar-date/date/internal/getMonth.js"),
cloneDate = __webpack_require__(/*! ../internal/cloneDate */ "./node_modules/sugar-date/date/internal/cloneDate.js"),
padNumber = __webpack_require__(/*! ../../common/internal/padNumber */ "./node_modules/sugar-date/common/internal/padNumber.js"),
getWeekday = __webpack_require__(/*! ../internal/getWeekday */ "./node_modules/sugar-date/date/internal/getWeekday.js"),
callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js"),
mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
getWeekYear = __webpack_require__(/*! ../internal/getWeekYear */ "./node_modules/sugar-date/date/internal/getWeekYear.js"),
getUTCOffset = __webpack_require__(/*! ../internal/getUTCOffset */ "./node_modules/sugar-date/date/internal/getUTCOffset.js"),
getDaysSince = __webpack_require__(/*! ../internal/getDaysSince */ "./node_modules/sugar-date/date/internal/getDaysSince.js"),
getWeekNumber = __webpack_require__(/*! ../internal/getWeekNumber */ "./node_modules/sugar-date/date/internal/getWeekNumber.js"),
getMeridiemToken = __webpack_require__(/*! ../internal/getMeridiemToken */ "./node_modules/sugar-date/date/internal/getMeridiemToken.js"),
setUnitAndLowerToEdge = __webpack_require__(/*! ../internal/setUnitAndLowerToEdge */ "./node_modules/sugar-date/date/internal/setUnitAndLowerToEdge.js");
var localeManager = LocaleHelpers.localeManager,
MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,
ceil = mathAliases.ceil;
var FormatTokensBase = [
{
ldml: 'Dow',
strf: 'a',
lowerToken: 'dow',
get: function(d, localeCode) {
return localeManager.get(localeCode).getWeekdayName(getWeekday(d), 2);
}
},
{
ldml: 'Weekday',
strf: 'A',
lowerToken: 'weekday',
allowAlternates: true,
get: function(d, localeCode, alternate) {
return localeManager.get(localeCode).getWeekdayName(getWeekday(d), alternate);
}
},
{
ldml: 'Mon',
strf: 'b h',
lowerToken: 'mon',
get: function(d, localeCode) {
return localeManager.get(localeCode).getMonthName(getMonth(d), 2);
}
},
{
ldml: 'Month',
strf: 'B',
lowerToken: 'month',
allowAlternates: true,
get: function(d, localeCode, alternate) {
return localeManager.get(localeCode).getMonthName(getMonth(d), alternate);
}
},
{
strf: 'C',
get: function(d) {
return getYear(d).toString().slice(0, 2);
}
},
{
ldml: 'd date day',
strf: 'd',
strfPadding: 2,
ldmlPaddedToken: 'dd',
ordinalToken: 'do',
get: function(d) {
return getDate(d);
}
},
{
strf: 'e',
get: function(d) {
return padNumber(getDate(d), 2, false, 10, ' ');
}
},
{
ldml: 'H 24hr',
strf: 'H',
strfPadding: 2,
ldmlPaddedToken: 'HH',
get: function(d) {
return getHours(d);
}
},
{
ldml: 'h hours 12hr',
strf: 'I',
strfPadding: 2,
ldmlPaddedToken: 'hh',
get: function(d) {
return getHours(d) % 12 || 12;
}
},
{
ldml: 'D',
strf: 'j',
strfPadding: 3,
ldmlPaddedToken: 'DDD',
get: function(d) {
var s = setUnitAndLowerToEdge(cloneDate(d), MONTH_INDEX);
return getDaysSince(d, s) + 1;
}
},
{
ldml: 'M',
strf: 'm',
strfPadding: 2,
ordinalToken: 'Mo',
ldmlPaddedToken: 'MM',
get: function(d) {
return getMonth(d) + 1;
}
},
{
ldml: 'm minutes',
strf: 'M',
strfPadding: 2,
ldmlPaddedToken: 'mm',
get: function(d) {
return callDateGet(d, 'Minutes');
}
},
{
ldml: 'Q',
get: function(d) {
return ceil((getMonth(d) + 1) / 3);
}
},
{
ldml: 'TT',
strf: 'p',
get: function(d, localeCode) {
return getMeridiemToken(d, localeCode);
}
},
{
ldml: 'tt',
strf: 'P',
get: function(d, localeCode) {
return getMeridiemToken(d, localeCode).toLowerCase();
}
},
{
ldml: 'T',
lowerToken: 't',
get: function(d, localeCode) {
return getMeridiemToken(d, localeCode).charAt(0);
}
},
{
ldml: 's seconds',
strf: 'S',
strfPadding: 2,
ldmlPaddedToken: 'ss',
get: function(d) {
return callDateGet(d, 'Seconds');
}
},
{
ldml: 'S ms',
strfPadding: 3,
ldmlPaddedToken: 'SSS',
get: function(d) {
return callDateGet(d, 'Milliseconds');
}
},
{
ldml: 'e',
strf: 'u',
ordinalToken: 'eo',
get: function(d) {
return getWeekday(d) || 7;
}
},
{
strf: 'U',
strfPadding: 2,
get: function(d) {
// Sunday first, 0-53
return getWeekNumber(d, false, 0);
}
},
{
ldml: 'W',
strf: 'V',
strfPadding: 2,
ordinalToken: 'Wo',
ldmlPaddedToken: 'WW',
get: function(d) {
// Monday first, 1-53 (ISO8601)
return getWeekNumber(d, true);
}
},
{
strf: 'w',
get: function(d) {
return getWeekday(d);
}
},
{
ldml: 'w',
ordinalToken: 'wo',
ldmlPaddedToken: 'ww',
get: function(d, localeCode) {
// Locale dependent, 1-53
var loc = localeManager.get(localeCode),
dow = loc.getFirstDayOfWeek(localeCode),
doy = loc.getFirstDayOfWeekYear(localeCode);
return getWeekNumber(d, true, dow, doy);
}
},
{
strf: 'W',
strfPadding: 2,
get: function(d) {
// Monday first, 0-53
return getWeekNumber(d, false);
}
},
{
ldmlPaddedToken: 'gggg',
ldmlTwoDigitToken: 'gg',
get: function(d, localeCode) {
return getWeekYear(d, localeCode);
}
},
{
strf: 'G',
strfPadding: 4,
strfTwoDigitToken: 'g',
ldmlPaddedToken: 'GGGG',
ldmlTwoDigitToken: 'GG',
get: function(d, localeCode) {
return getWeekYear(d, localeCode, true);
}
},
{
ldml: 'year',
ldmlPaddedToken: 'yyyy',
ldmlTwoDigitToken: 'yy',
strf: 'Y',
strfPadding: 4,
strfTwoDigitToken: 'y',
get: function(d) {
return getYear(d);
}
},
{
ldml: 'ZZ',
strf: 'z',
get: function(d) {
return getUTCOffset(d);
}
},
{
ldml: 'X',
get: function(d) {
return trunc(d.getTime() / 1000);
}
},
{
ldml: 'x',
get: function(d) {
return d.getTime();
}
},
{
ldml: 'Z',
get: function(d) {
return getUTCOffset(d, true);
}
},
{
ldml: 'z',
strf: 'Z',
get: function(d) {
// Note that this is not accurate in all browsing environments!
// https://github.com/moment/moment/issues/162
// It will continue to be supported for Node and usage with the
// understanding that it may be blank.
var match = d.toString().match(TIMEZONE_ABBREVIATION_REG);
// istanbul ignore next
return match ? match[1] : '';
}
},
{
strf: 'D',
alias: '%m/%d/%y'
},
{
strf: 'F',
alias: '%Y-%m-%d'
},
{
strf: 'r',
alias: '%I:%M:%S %p'
},
{
strf: 'R',
alias: '%H:%M'
},
{
strf: 'T',
alias: '%H:%M:%S'
},
{
strf: 'x',
alias: '{short}'
},
{
strf: 'X',
alias: '{time}'
},
{
strf: 'c',
alias: '{stamp}'
}
];
module.exports = FormatTokensBase;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/ISODefaults.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/date/var/ISODefaults.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
ISO_FIRST_DAY_OF_WEEK: 1,
ISO_FIRST_DAY_OF_WEEK_YEAR: 4
};
/***/ }),
/***/ "./node_modules/sugar-date/date/var/LOCALE_ARRAY_FIELDS.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/date/var/LOCALE_ARRAY_FIELDS.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LOCALE_ARRAY_FIELDS = [
'months', 'weekdays', 'units', 'numerals', 'placeholders',
'articles', 'tokens', 'timeMarkers', 'ampm', 'timeSuffixes',
'parse', 'timeParse', 'timeFrontParse', 'modifiers'
];
module.exports = LOCALE_ARRAY_FIELDS;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/LazyLoadedLocales.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/date/var/LazyLoadedLocales.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var BritishEnglishDefinition = __webpack_require__(/*! ./BritishEnglishDefinition */ "./node_modules/sugar-date/date/var/BritishEnglishDefinition.js"),
AmericanEnglishDefinition = __webpack_require__(/*! ./AmericanEnglishDefinition */ "./node_modules/sugar-date/date/var/AmericanEnglishDefinition.js"),
CanadianEnglishDefinition = __webpack_require__(/*! ./CanadianEnglishDefinition */ "./node_modules/sugar-date/date/var/CanadianEnglishDefinition.js");
var LazyLoadedLocales = {
'en-US': AmericanEnglishDefinition,
'en-GB': BritishEnglishDefinition,
'en-AU': BritishEnglishDefinition,
'en-CA': CanadianEnglishDefinition
};
module.exports = LazyLoadedLocales;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/LocaleHelpers.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/date/var/LocaleHelpers.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LazyLoadedLocales = __webpack_require__(/*! ./LazyLoadedLocales */ "./node_modules/sugar-date/date/var/LazyLoadedLocales.js"),
AmericanEnglishDefinition = __webpack_require__(/*! ./AmericanEnglishDefinition */ "./node_modules/sugar-date/date/var/AmericanEnglishDefinition.js"),
getNewLocale = __webpack_require__(/*! ../internal/getNewLocale */ "./node_modules/sugar-date/date/internal/getNewLocale.js");
var English, localeManager;
function buildLocales() {
function LocaleManager(loc) {
this.locales = {};
this.add(loc);
}
LocaleManager.prototype = {
get: function(code, fallback) {
var loc = this.locales[code];
if (!loc && LazyLoadedLocales[code]) {
loc = this.add(code, LazyLoadedLocales[code]);
} else if (!loc && code) {
loc = this.locales[code.slice(0, 2)];
}
return loc || fallback === false ? loc : this.current;
},
getAll: function() {
return this.locales;
},
set: function(code) {
var loc = this.get(code, false);
if (!loc) {
throw new TypeError('Invalid Locale: ' + code);
}
return this.current = loc;
},
add: function(code, def) {
if (!def) {
def = code;
code = def.code;
} else {
def.code = code;
}
var loc = def.compiledFormats ? def : getNewLocale(def);
this.locales[code] = loc;
if (!this.current) {
this.current = loc;
}
return loc;
},
remove: function(code) {
if (this.current.code === code) {
this.current = this.get('en');
}
return delete this.locales[code];
}
};
// Sorry about this guys...
English = getNewLocale(AmericanEnglishDefinition);
localeManager = new LocaleManager(English);
}
buildLocales();
module.exports = {
English: English,
localeManager: localeManager
};
/***/ }),
/***/ "./node_modules/sugar-date/date/var/LocalizedParsingTokens.js":
/*!********************************************************************!*\
!*** ./node_modules/sugar-date/date/var/LocalizedParsingTokens.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocalizedParsingTokens = {
'year': {
base: 'yyyy|ayy',
requiresSuffix: true
},
'month': {
base: 'MM',
requiresSuffix: true
},
'date': {
base: 'dd',
requiresSuffix: true
},
'hour': {
base: 'hh',
requiresSuffixOr: ':'
},
'minute': {
base: 'mm'
},
'second': {
base: 'ss'
},
'num': {
src: '\\d+',
requiresNumerals: true
}
};
module.exports = LocalizedParsingTokens;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/MINUTES.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/date/var/MINUTES.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = 60 * 1000;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/TIMEZONE_ABBREVIATION_REG.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/date/var/TIMEZONE_ABBREVIATION_REG.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = /\(([-+]\d{2,4}|\w{3,5})\)$/;
/***/ }),
/***/ "./node_modules/sugar-date/date/var/_dateOptions.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/date/var/_dateOptions.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DATE_OPTIONS = __webpack_require__(/*! ./DATE_OPTIONS */ "./node_modules/sugar-date/date/var/DATE_OPTIONS.js"),
namespaceAliases = __webpack_require__(/*! ../../common/var/namespaceAliases */ "./node_modules/sugar-date/common/var/namespaceAliases.js"),
defineOptionsAccessor = __webpack_require__(/*! ../../common/internal/defineOptionsAccessor */ "./node_modules/sugar-date/common/internal/defineOptionsAccessor.js");
var sugarDate = namespaceAliases.sugarDate;
module.exports = defineOptionsAccessor(sugarDate, DATE_OPTIONS);
/***/ }),
/***/ "./node_modules/sugar-date/date/var/formattingTokens.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/date/var/formattingTokens.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LocaleHelpers = __webpack_require__(/*! ./LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js"),
FormatTokensBase = __webpack_require__(/*! ./FormatTokensBase */ "./node_modules/sugar-date/date/var/FormatTokensBase.js"),
CoreOutputFormats = __webpack_require__(/*! ./CoreOutputFormats */ "./node_modules/sugar-date/date/var/CoreOutputFormats.js"),
forEach = __webpack_require__(/*! ../../common/internal/forEach */ "./node_modules/sugar-date/common/internal/forEach.js"),
padNumber = __webpack_require__(/*! ../../common/internal/padNumber */ "./node_modules/sugar-date/common/internal/padNumber.js"),
spaceSplit = __webpack_require__(/*! ../../common/internal/spaceSplit */ "./node_modules/sugar-date/common/internal/spaceSplit.js"),
namespaceAliases = __webpack_require__(/*! ../../common/var/namespaceAliases */ "./node_modules/sugar-date/common/var/namespaceAliases.js"),
coreUtilityAliases = __webpack_require__(/*! ../../common/var/coreUtilityAliases */ "./node_modules/sugar-date/common/var/coreUtilityAliases.js"),
createFormatMatcher = __webpack_require__(/*! ../../common/internal/createFormatMatcher */ "./node_modules/sugar-date/common/internal/createFormatMatcher.js"),
defineInstanceSimilar = __webpack_require__(/*! ../../common/internal/defineInstanceSimilar */ "./node_modules/sugar-date/common/internal/defineInstanceSimilar.js");
var localeManager = LocaleHelpers.localeManager,
hasOwn = coreUtilityAliases.hasOwn,
getOwn = coreUtilityAliases.getOwn,
forEachProperty = coreUtilityAliases.forEachProperty,
sugarDate = namespaceAliases.sugarDate;
var ldmlTokens, strfTokens;
function buildDateFormatTokens() {
function addFormats(target, tokens, fn) {
if (tokens) {
forEach(spaceSplit(tokens), function(token) {
target[token] = fn;
});
}
}
function buildLowercase(get) {
return function(d, localeCode) {
return get(d, localeCode).toLowerCase();
};
}
function buildOrdinal(get) {
return function(d, localeCode) {
var n = get(d, localeCode);
return n + localeManager.get(localeCode).getOrdinal(n);
};
}
function buildPadded(get, padding) {
return function(d, localeCode) {
return padNumber(get(d, localeCode), padding);
};
}
function buildTwoDigits(get) {
return function(d, localeCode) {
return get(d, localeCode) % 100;
};
}
function buildAlias(alias) {
return function(d, localeCode) {
return dateFormatMatcher(alias, d, localeCode);
};
}
function buildAlternates(f) {
for (var n = 1; n <= 5; n++) {
buildAlternate(f, n);
}
}
function buildAlternate(f, n) {
var alternate = function(d, localeCode) {
return f.get(d, localeCode, n);
};
addFormats(ldmlTokens, f.ldml + n, alternate);
if (f.lowerToken) {
ldmlTokens[f.lowerToken + n] = buildLowercase(alternate);
}
}
function getIdentityFormat(name) {
return function(d, localeCode) {
var loc = localeManager.get(localeCode);
return dateFormatMatcher(loc[name], d, localeCode);
};
}
ldmlTokens = {};
strfTokens = {};
forEach(FormatTokensBase, function(f) {
var get = f.get, getPadded;
if (f.lowerToken) {
ldmlTokens[f.lowerToken] = buildLowercase(get);
}
if (f.ordinalToken) {
ldmlTokens[f.ordinalToken] = buildOrdinal(get, f);
}
if (f.ldmlPaddedToken) {
ldmlTokens[f.ldmlPaddedToken] = buildPadded(get, f.ldmlPaddedToken.length);
}
if (f.ldmlTwoDigitToken) {
ldmlTokens[f.ldmlTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);
}
if (f.strfTwoDigitToken) {
strfTokens[f.strfTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);
}
if (f.strfPadding) {
getPadded = buildPadded(get, f.strfPadding);
}
if (f.alias) {
get = buildAlias(f.alias);
}
if (f.allowAlternates) {
buildAlternates(f);
}
addFormats(ldmlTokens, f.ldml, get);
addFormats(strfTokens, f.strf, getPadded || get);
});
forEachProperty(CoreOutputFormats, function(src, name) {
addFormats(ldmlTokens, name, buildAlias(src));
});
defineInstanceSimilar(sugarDate, 'short medium long full', function(methods, name) {
var fn = getIdentityFormat(name);
addFormats(ldmlTokens, name, fn);
methods[name] = fn;
});
addFormats(ldmlTokens, 'time', getIdentityFormat('time'));
addFormats(ldmlTokens, 'stamp', getIdentityFormat('stamp'));
}
var dateFormatMatcher;
function buildDateFormatMatcher() {
function getLdml(d, token, localeCode) {
return getOwn(ldmlTokens, token)(d, localeCode);
}
function getStrf(d, token, localeCode) {
return getOwn(strfTokens, token)(d, localeCode);
}
function checkDateToken(ldml, strf) {
return hasOwn(ldmlTokens, ldml) || hasOwn(strfTokens, strf);
}
// Format matcher for LDML or STRF tokens.
dateFormatMatcher = createFormatMatcher(getLdml, getStrf, checkDateToken);
}
buildDateFormatTokens();
buildDateFormatMatcher();
module.exports = {
ldmlTokens: ldmlTokens,
strfTokens: strfTokens,
dateFormatMatcher: dateFormatMatcher
};
/***/ }),
/***/ "./node_modules/sugar-date/date/weeksAgo.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/weeksAgo.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.weeksAgo;
/***/ }),
/***/ "./node_modules/sugar-date/date/weeksFromNow.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/weeksFromNow.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.weeksFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/date/weeksSince.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/weeksSince.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.weeksSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/weeksUntil.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/weeksUntil.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.weeksUntil;
/***/ }),
/***/ "./node_modules/sugar-date/date/yearsAgo.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/date/yearsAgo.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.yearsAgo;
/***/ }),
/***/ "./node_modules/sugar-date/date/yearsFromNow.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/date/yearsFromNow.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.yearsFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/date/yearsSince.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/yearsSince.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.yearsSince;
/***/ }),
/***/ "./node_modules/sugar-date/date/yearsUntil.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/date/yearsUntil.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ./build/buildDateUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildDateUnitMethodsCall.js");
module.exports = Sugar.Date.yearsUntil;
/***/ }),
/***/ "./node_modules/sugar-date/index.js":
/*!******************************************!*\
!*** ./node_modules/sugar-date/index.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./date */ "./node_modules/sugar-date/date/index.js");
__webpack_require__(/*! ./range */ "./node_modules/sugar-date/range/index.js");
module.exports = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
/***/ }),
/***/ "./node_modules/sugar-date/locales/ca.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/ca.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Catalan locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('ca')
*
*/
addLocale('ca', {
'plural': true,
'units': 'milisegon:|s,segon:|s,minut:|s,hor:a|es,di:a|es,setman:a|es,mes:|os,any:|s',
'months': 'gen:er|,febr:er|,mar:ç|,abr:il|,mai:g|,jun:y|,jul:iol|,ag:ost|,set:embre|,oct:ubre|,nov:embre|,des:embre|',
'weekdays': 'diumenge|dg,dilluns|dl,dimarts|dt,dimecres|dc,dijous|dj,divendres|dv,dissabte|ds',
'numerals': 'zero,un,dos,tres,quatre,cinc,sis,set,vuit,nou,deu',
'tokens': 'el,la,de',
'short': '{dd}/{MM}/{yyyy}',
'medium': '{d} {month} {yyyy}',
'long': '{d} {month} {yyyy} {time}',
'full': '{weekday} {d} {month} {yyyy} {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{sign} {num} {unit}',
'future': '{sign} {num} {unit}',
'duration': '{num} {unit}',
'timeMarkers': 'a las',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': "abans d'ahir", 'value': -2 },
{ 'name': 'day', 'src': 'ahir', 'value': -1 },
{ 'name': 'day', 'src': 'avui', 'value': 0 },
{ 'name': 'day', 'src': 'demà|dema', 'value': 1 },
{ 'name': 'sign', 'src': 'fa', 'value': -1 },
{ 'name': 'sign', 'src': 'en', 'value': 1 },
{ 'name': 'shift', 'src': 'passat', 'value': -1 },
{ 'name': 'shift', 'src': 'el proper|la propera', 'value': 1 }
],
'parse': [
'{sign} {num} {unit}',
'{num} {unit} {sign}',
'{0?}{1?} {unit:5-7} {shift}',
'{0?}{1?} {shift} {unit:5-7}'
],
'timeParse': [
'{shift} {weekday}',
'{weekday} {shift}',
'{date?} {2?} {months}\\.? {2?} {year?}'
]
});
// This package does not export anything as it is
// simply registering the "ca" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/da.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/da.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Danish locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('da')
*
*/
addLocale('da', {
'plural': true,
'units': 'millisekund:|er,sekund:|er,minut:|ter,tim:e|er,dag:|e,ug:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',
'months': 'jan:uar|,feb:ruar|,mar:ts|,apr:il|,maj,jun:i|,jul:i|,aug:ust|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',
'weekdays': 'søn:dag|+son:dag|,man:dag|,tir:sdag|,ons:dag|,tor:sdag|,fre:dag|,lør:dag|+lor:dag|',
'numerals': 'nul,en|et,to,tre,fire,fem,seks,syv,otte,ni,ti',
'tokens': 'den,for',
'articles': 'den',
'short': '{dd}-{MM}-{yyyy}',
'medium': '{d}. {month} {yyyy}',
'long': '{d}. {month} {yyyy} {time}',
'full': '{weekday} d. {d}. {month} {yyyy} {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{num} {unit} {sign}',
'future': '{sign} {num} {unit}',
'duration': '{num} {unit}',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },
{ 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },
{ 'name': 'day', 'src': 'i dag|idag', 'value': 0 },
{ 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },
{ 'name': 'day', 'src': 'over morgon|overmorgen|i over morgen|i overmorgen|iovermorgen', 'value': 2 },
{ 'name': 'sign', 'src': 'siden', 'value': -1 },
{ 'name': 'sign', 'src': 'om', 'value': 1 },
{ 'name': 'shift', 'src': 'i sidste|sidste', 'value': -1 },
{ 'name': 'shift', 'src': 'denne', 'value': 0 },
{ 'name': 'shift', 'src': 'næste|naeste', 'value': 1 }
],
'parse': [
'{months} {year?}',
'{num} {unit} {sign}',
'{sign} {num} {unit}',
'{1?} {num} {unit} {sign}',
'{shift} {unit:5-7}'
],
'timeParse': [
'{day|weekday}',
'{date} {months?}\\.? {year?}'
],
'timeFrontParse': [
'{shift} {weekday}',
'{0?} {weekday?},? {date}\\.? {months?}\\.? {year?}'
]
});
// This package does not export anything as it is
// simply registering the "da" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/de.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/de.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* German locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('de')
*
*/
addLocale('de', {
'plural': true,
'units': 'Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en|e',
'months': 'Jan:uar|,Feb:ruar|,M:är|ärz|ar|arz,Apr:il|,Mai,Juni,Juli,Aug:ust|,Sept:ember|,Okt:ober|,Nov:ember|,Dez:ember|',
'weekdays': 'So:nntag|,Mo:ntag|,Di:enstag|,Mi:ttwoch|,Do:nnerstag|,Fr:eitag|,Sa:mstag|',
'numerals': 'null,ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn',
'tokens': 'der',
'short': '{dd}.{MM}.{yyyy}',
'medium': '{d}. {Month} {yyyy}',
'long': '{d}. {Month} {yyyy} {time}',
'full': '{Weekday}, {d}. {Month} {yyyy} {time}',
'stamp': '{Dow} {d} {Mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{sign} {num} {unit}',
'future': '{sign} {num} {unit}',
'duration': '{num} {unit}',
'timeMarkers': 'um',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'vorgestern', 'value': -2 },
{ 'name': 'day', 'src': 'gestern', 'value': -1 },
{ 'name': 'day', 'src': 'heute', 'value': 0 },
{ 'name': 'day', 'src': 'morgen', 'value': 1 },
{ 'name': 'day', 'src': 'übermorgen|ubermorgen|uebermorgen', 'value': 2 },
{ 'name': 'sign', 'src': 'vor:|her', 'value': -1 },
{ 'name': 'sign', 'src': 'in', 'value': 1 },
{ 'name': 'shift', 'src': 'letzte:|r|n|s', 'value': -1 },
{ 'name': 'shift', 'src': 'nächste:|r|n|s+nachste:|r|n|s+naechste:|r|n|s+kommende:n|r', 'value': 1 }
],
'parse': [
'{months} {year?}',
'{sign} {num} {unit}',
'{num} {unit} {sign}',
'{shift} {unit:5-7}'
],
'timeParse': [
'{shift?} {day|weekday}',
'{weekday?},? {date}\\.? {months?}\\.? {year?}'
],
'timeFrontParse': [
'{shift} {weekday}',
'{weekday?},? {date}\\.? {months?}\\.? {year?}'
]
});
// This package does not export anything as it is
// simply registering the "de" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/es.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/es.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Spanish locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('es')
*
*/
addLocale('es', {
'plural': true,
'units': 'milisegundo:|s,segundo:|s,minuto:|s,hora:|s,día|días|dia|dias,semana:|s,mes:|es,año|años|ano|anos',
'months': 'ene:ro|,feb:rero|,mar:zo|,abr:il|,may:o|,jun:io|,jul:io|,ago:sto|,sep:tiembre|,oct:ubre|,nov:iembre|,dic:iembre|',
'weekdays': 'dom:ingo|,lun:es|,mar:tes|,mié:rcoles|+mie:rcoles|,jue:ves|,vie:rnes|,sáb:ado|+sab:ado|',
'numerals': 'cero,uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez',
'tokens': 'el,la,de',
'short': '{dd}/{MM}/{yyyy}',
'medium': '{d} de {Month} de {yyyy}',
'long': '{d} de {Month} de {yyyy} {time}',
'full': '{weekday}, {d} de {month} de {yyyy} {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{sign} {num} {unit}',
'future': '{sign} {num} {unit}',
'duration': '{num} {unit}',
'timeMarkers': 'a las',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'anteayer', 'value': -2 },
{ 'name': 'day', 'src': 'ayer', 'value': -1 },
{ 'name': 'day', 'src': 'hoy', 'value': 0 },
{ 'name': 'day', 'src': 'mañana|manana', 'value': 1 },
{ 'name': 'sign', 'src': 'hace', 'value': -1 },
{ 'name': 'sign', 'src': 'dentro de', 'value': 1 },
{ 'name': 'shift', 'src': 'pasad:o|a', 'value': -1 },
{ 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }
],
'parse': [
'{months} {2?} {year?}',
'{sign} {num} {unit}',
'{num} {unit} {sign}',
'{0?}{1?} {unit:5-7} {shift}',
'{0?}{1?} {shift} {unit:5-7}'
],
'timeParse': [
'{shift?} {day|weekday} {shift?}',
'{date} {2?} {months?}\\.? {2?} {year?}'
],
'timeFrontParse': [
'{shift?} {weekday} {shift?}',
'{date} {2?} {months?}\\.? {2?} {year?}'
]
});
// This package does not export anything as it is
// simply registering the "es" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/fi.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/fi.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Finnish locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('fi')
*
*/
addLocale('fi', {
'plural': true,
'units': 'millisekun:ti|tia|nin|teja|tina,sekun:ti|tia|nin|teja|tina,minuut:ti|tia|in|teja|tina,tun:ti|tia|nin|teja|tina,päiv:ä|ää|än|iä|änä,viik:ko|koa|on|olla|koja|kona,kuukau:si|tta|den+kuussa,vuo:si|tta|den|sia|tena|nna',
'months': 'tammi:kuuta||kuu,helmi:kuuta||kuu,maalis:kuuta||kuu,huhti:kuuta||kuu,touko:kuuta||kuu,kesä:kuuta||kuu,heinä:kuuta||kuu,elo:kuuta||kuu,syys:kuuta||kuu,loka:kuuta||kuu,marras:kuuta||kuu,joulu:kuuta||kuu',
'weekdays': 'su:nnuntai||nnuntaina,ma:anantai||anantaina,ti:istai||istaina,ke:skiviikko||skiviikkona,to:rstai||rstaina,pe:rjantai||rjantaina,la:uantai||uantaina',
'numerals': 'nolla,yksi|ensimmäinen,kaksi|toinen,kolm:e|as,neljä:|s,vii:si|des,kuu:si|des,seitsemä:n|s,kahdeksa:n|s,yhdeksä:n|s,kymmene:n|s',
'short': '{d}.{M}.{yyyy}',
'medium': '{d}. {month} {yyyy}',
'long': '{d}. {month} {yyyy} klo {time}',
'full': '{weekday} {d}. {month} {yyyy} klo {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}.{mm}',
'timeMarkers': 'klo,kello',
'timeSeparator': '.',
'ordinalSuffix': '.',
'relative': function(num, unit, ms, format) {
var units = this['units'];
function numberWithUnit(mult) {
return num + ' ' + units[(8 * mult) + unit];
}
function baseUnit() {
return numberWithUnit(num === 1 ? 0 : 1);
}
switch(format) {
case 'duration': return baseUnit();
case 'past': return baseUnit() + ' sitten';
case 'future': return numberWithUnit(2) + ' kuluttua';
}
},
'modifiers': [
{ 'name': 'day', 'src': 'toissa päivänä', 'value': -2 },
{ 'name': 'day', 'src': 'eilen|eilistä', 'value': -1 },
{ 'name': 'day', 'src': 'tänään', 'value': 0 },
{ 'name': 'day', 'src': 'huomenna|huomista', 'value': 1 },
{ 'name': 'day', 'src': 'ylihuomenna|ylihuomista', 'value': 2 },
{ 'name': 'sign', 'src': 'sitten|aiemmin', 'value': -1 },
{ 'name': 'sign', 'src': 'päästä|kuluttua|myöhemmin', 'value': 1 },
{ 'name': 'edge', 'src': 'lopussa', 'value': 2 },
{ 'name': 'edge', 'src': 'ensimmäinen|ensimmäisenä', 'value': -2 },
{ 'name': 'shift', 'src': 'edel:linen|lisenä', 'value': -1 },
{ 'name': 'shift', 'src': 'viime', 'value': -1 },
{ 'name': 'shift', 'src': 'tä:llä|ssä|nä|mä', 'value': 0 },
{ 'name': 'shift', 'src': 'seuraava|seuraavana|tuleva|tulevana|ensi', 'value': 1 }
],
'parse': [
'{months} {year?}',
'{shift} {unit:5-7}'
],
'timeParse': [
'{shift?} {day|weekday}',
'{weekday?},? {date}\\.? {months?}\\.? {year?}'
],
'timeFrontParse': [
'{shift?} {day|weekday}',
'{num?} {unit} {sign}',
'{weekday?},? {date}\\.? {months?}\\.? {year?}'
]
});
// This package does not export anything as it is
// simply registering the "fi" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/fr.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/fr.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* French locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('fr')
*
*/
addLocale('fr', {
'plural': true,
'units': 'milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|née|nee',
'months': 'janv:ier|,févr:ier|+fevr:ier|,mars,avr:il|,mai,juin,juil:let|,août,sept:embre|,oct:obre|,nov:embre|,déc:embre|+dec:embre|',
'weekdays': 'dim:anche|,lun:di|,mar:di|,mer:credi|,jeu:di|,ven:dredi|,sam:edi|',
'numerals': 'zéro,un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix',
'tokens': "l'|la|le,er",
'short': '{dd}/{MM}/{yyyy}',
'medium': '{d} {month} {yyyy}',
'long': '{d} {month} {yyyy} {time}',
'full': '{weekday} {d} {month} {yyyy} {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{sign} {num} {unit}',
'future': '{sign} {num} {unit}',
'duration': '{num} {unit}',
'timeMarkers': 'à',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'hier', 'value': -1 },
{ 'name': 'day', 'src': "aujourd'hui", 'value': 0 },
{ 'name': 'day', 'src': 'demain', 'value': 1 },
{ 'name': 'sign', 'src': 'il y a', 'value': -1 },
{ 'name': 'sign', 'src': "dans|d'ici", 'value': 1 },
{ 'name': 'shift', 'src': 'derni:èr|er|ère|ere', 'value': -1 },
{ 'name': 'shift', 'src': 'prochain:|e', 'value': 1 }
],
'parse': [
'{months} {year?}',
'{sign} {num} {unit}',
'{0?} {unit:5-7} {shift}'
],
'timeParse': [
'{day|weekday} {shift?}',
'{weekday?},? {0?} {date}{1?} {months}\\.? {year?}'
],
'timeFrontParse': [
'{0?} {weekday} {shift}',
'{weekday?},? {0?} {date}{1?} {months}\\.? {year?}'
]
});
// This package does not export anything as it is
// simply registering the "fr" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/index.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/locales/index.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./ca */ "./node_modules/sugar-date/locales/ca.js");
__webpack_require__(/*! ./da */ "./node_modules/sugar-date/locales/da.js");
__webpack_require__(/*! ./de */ "./node_modules/sugar-date/locales/de.js");
__webpack_require__(/*! ./es */ "./node_modules/sugar-date/locales/es.js");
__webpack_require__(/*! ./fi */ "./node_modules/sugar-date/locales/fi.js");
__webpack_require__(/*! ./fr */ "./node_modules/sugar-date/locales/fr.js");
__webpack_require__(/*! ./it */ "./node_modules/sugar-date/locales/it.js");
__webpack_require__(/*! ./ja */ "./node_modules/sugar-date/locales/ja.js");
__webpack_require__(/*! ./ko */ "./node_modules/sugar-date/locales/ko.js");
__webpack_require__(/*! ./nl */ "./node_modules/sugar-date/locales/nl.js");
__webpack_require__(/*! ./no */ "./node_modules/sugar-date/locales/no.js");
__webpack_require__(/*! ./pl */ "./node_modules/sugar-date/locales/pl.js");
__webpack_require__(/*! ./pt */ "./node_modules/sugar-date/locales/pt.js");
__webpack_require__(/*! ./ru */ "./node_modules/sugar-date/locales/ru.js");
__webpack_require__(/*! ./sv */ "./node_modules/sugar-date/locales/sv.js");
__webpack_require__(/*! ./zh-CN */ "./node_modules/sugar-date/locales/zh-CN.js");
__webpack_require__(/*! ./zh-TW */ "./node_modules/sugar-date/locales/zh-TW.js");
module.exports = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
/***/ }),
/***/ "./node_modules/sugar-date/locales/it.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/it.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Italian locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('it')
*
*/
addLocale('it', {
'plural': true,
'units': 'millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i',
'months': 'gen:naio|,feb:braio|,mar:zo|,apr:ile|,mag:gio|,giu:gno|,lug:lio|,ago:sto|,set:tembre|,ott:obre|,nov:embre|,dic:embre|',
'weekdays': 'dom:enica|,lun:edì||edi,mar:tedì||tedi,mer:coledì||coledi,gio:vedì||vedi,ven:erdì||erdi,sab:ato|',
'numerals': "zero,un:|a|o|',due,tre,quattro,cinque,sei,sette,otto,nove,dieci",
'tokens': "l'|la|il",
'short': '{dd}/{MM}/{yyyy}',
'medium': '{d} {month} {yyyy}',
'long': '{d} {month} {yyyy} {time}',
'full': '{weekday}, {d} {month} {yyyy} {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{num} {unit} {sign}',
'future': '{num} {unit} {sign}',
'duration': '{num} {unit}',
'timeMarkers': 'alle',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'ieri', 'value': -1 },
{ 'name': 'day', 'src': 'oggi', 'value': 0 },
{ 'name': 'day', 'src': 'domani', 'value': 1 },
{ 'name': 'day', 'src': 'dopodomani', 'value': 2 },
{ 'name': 'sign', 'src': 'fa', 'value': -1 },
{ 'name': 'sign', 'src': 'da adesso', 'value': 1 },
{ 'name': 'shift', 'src': 'scors:o|a', 'value': -1 },
{ 'name': 'shift', 'src': 'prossim:o|a', 'value': 1 }
],
'parse': [
'{months} {year?}',
'{num} {unit} {sign}',
'{0?} {unit:5-7} {shift}',
'{0?} {shift} {unit:5-7}'
],
'timeParse': [
'{day|weekday} {shift?}',
'{weekday?},? {date} {months?}\\.? {year?}'
],
'timeFrontParse': [
'{day|weekday} {shift?}',
'{weekday?},? {date} {months?}\\.? {year?}'
]
});
// This package does not export anything as it is
// simply registering the "it" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/ja.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/ja.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Japanese locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('ja')
*
*/
addLocale('ja', {
'ampmFront': true,
'numeralUnits': true,
'allowsFullWidth': true,
'timeMarkerOptional': true,
'firstDayOfWeek': 0,
'firstDayOfWeekYear': 1,
'units': 'ミリ秒,秒,分,時間,日,週間|週,ヶ月|ヵ月|月,年|年度',
'weekdays': '日:曜日||曜,月:曜日||曜,火:曜日||曜,水:曜日||曜,木:曜日||曜,金:曜日||曜,土:曜日||曜',
'numerals': ',一,二,三,四,五,六,七,八,九',
'placeholders': '十,百,千,万',
'timeSuffixes': ',秒,分,時,日,,月,年度?',
'short': '{yyyy}/{MM}/{dd}',
'medium': '{yyyy}年{M}月{d}日',
'long': '{yyyy}年{M}月{d}日{time}',
'full': '{yyyy}年{M}月{d}日{time} {weekday}',
'stamp': '{yyyy}年{M}月{d}日 {H}:{mm} {dow}',
'time': '{tt}{h}時{mm}分',
'past': '{num}{unit}{sign}',
'future': '{num}{unit}{sign}',
'duration': '{num}{unit}',
'ampm': '午前,午後',
'modifiers': [
{ 'name': 'day', 'src': '一昨々日|前々々日', 'value': -3 },
{ 'name': 'day', 'src': '一昨日|おととい|前々日', 'value': -2 },
{ 'name': 'day', 'src': '昨日|前日', 'value': -1 },
{ 'name': 'day', 'src': '今日|当日|本日', 'value': 0 },
{ 'name': 'day', 'src': '明日|翌日|次日', 'value': 1 },
{ 'name': 'day', 'src': '明後日|翌々日', 'value': 2 },
{ 'name': 'day', 'src': '明々後日|翌々々日', 'value': 3 },
{ 'name': 'sign', 'src': '前', 'value': -1 },
{ 'name': 'sign', 'src': '後', 'value': 1 },
{ 'name': 'edge', 'src': '始|初日|頭', 'value': -2 },
{ 'name': 'edge', 'src': '末|尻', 'value': 2 },
{ 'name': 'edge', 'src': '末日', 'value': 1 },
{ 'name': 'shift', 'src': '一昨々|前々々', 'value': -3 },
{ 'name': 'shift', 'src': '一昨|前々|先々', 'value': -2 },
{ 'name': 'shift', 'src': '先|昨|去|前', 'value': -1 },
{ 'name': 'shift', 'src': '今|本|当', 'value': 0 },
{ 'name': 'shift', 'src': '来|明|翌|次', 'value': 1 },
{ 'name': 'shift', 'src': '明後|翌々|次々|再来|さ来', 'value': 2 },
{ 'name': 'shift', 'src': '明々後|翌々々', 'value': 3 }
],
'parse': [
'{month}{edge}',
'{num}{unit}{sign}',
'{year?}{month}',
'{year}'
],
'timeParse': [
'{day|weekday}',
'{shift}{unit:5}{weekday?}',
'{shift}{unit:7}{month}{edge}',
'{shift}{unit:7}{month?}{date?}',
'{shift}{unit:6}{edge?}{date?}',
'{year?}{month?}{date}'
]
});
// This package does not export anything as it is
// simply registering the "ja" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/ko.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/ko.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Korean locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('ko')
*
*/
addLocale('ko', {
'ampmFront': true,
'numeralUnits': true,
'units': '밀리초,초,분,시간,일,주,개월|달,년|해',
'weekdays': '일:요일|,월:요일|,화:요일|,수:요일|,목:요일|,금:요일|,토:요일|',
'numerals': '영|제로,일|한,이,삼,사,오,육,칠,팔,구,십',
'short': '{yyyy}.{MM}.{dd}',
'medium': '{yyyy}년 {M}월 {d}일',
'long': '{yyyy}년 {M}월 {d}일 {time}',
'full': '{yyyy}년 {M}월 {d}일 {weekday} {time}',
'stamp': '{yyyy}년 {M}월 {d}일 {H}:{mm} {dow}',
'time': '{tt} {h}시 {mm}분',
'past': '{num}{unit} {sign}',
'future': '{num}{unit} {sign}',
'duration': '{num}{unit}',
'timeSuffixes': ',초,분,시,일,,월,년',
'ampm': '오전,오후',
'modifiers': [
{ 'name': 'day', 'src': '그저께', 'value': -2 },
{ 'name': 'day', 'src': '어제', 'value': -1 },
{ 'name': 'day', 'src': '오늘', 'value': 0 },
{ 'name': 'day', 'src': '내일', 'value': 1 },
{ 'name': 'day', 'src': '모레', 'value': 2 },
{ 'name': 'sign', 'src': '전', 'value': -1 },
{ 'name': 'sign', 'src': '후', 'value': 1 },
{ 'name': 'shift', 'src': '지난|작', 'value': -1 },
{ 'name': 'shift', 'src': '이번|올', 'value': 0 },
{ 'name': 'shift', 'src': '다음|내', 'value': 1 }
],
'parse': [
'{num}{unit} {sign}',
'{shift?} {unit:5-7}',
'{year?} {month}',
'{year}'
],
'timeParse': [
'{day|weekday}',
'{shift} {unit:5?} {weekday}',
'{year?} {month?} {date} {weekday?}'
]
});
// This package does not export anything as it is
// simply registering the "ko" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/nl.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/nl.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Dutch locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('nl')
*
*/
addLocale('nl', {
'plural': true,
'units': 'milliseconde:|n,seconde:|n,minu:ut|ten,uur,dag:|en,we:ek|ken,maand:|en,jaar',
'months': 'jan:uari|,feb:ruari|,maart|mrt,apr:il|,mei,jun:i|,jul:i|,aug:ustus|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',
'weekdays': 'zondag|zo,maandag|ma,dinsdag|di,woensdag|wo|woe,donderdag|do,vrijdag|vr|vrij,zaterdag|za',
'numerals': 'nul,een,twee,drie,vier,vijf,zes,zeven,acht,negen,tien',
'short': '{dd}-{MM}-{yyyy}',
'medium': '{d} {month} {yyyy}',
'long': '{d} {Month} {yyyy} {time}',
'full': '{weekday} {d} {Month} {yyyy} {time}',
'stamp': '{dow} {d} {Mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{num} {unit} {sign}',
'future': '{num} {unit} {sign}',
'duration': '{num} {unit}',
'timeMarkers': "'s,om",
'modifiers': [
{ 'name': 'day', 'src': 'gisteren', 'value': -1 },
{ 'name': 'day', 'src': 'vandaag', 'value': 0 },
{ 'name': 'day', 'src': 'morgen', 'value': 1 },
{ 'name': 'day', 'src': 'overmorgen', 'value': 2 },
{ 'name': 'sign', 'src': 'geleden', 'value': -1 },
{ 'name': 'sign', 'src': 'vanaf nu', 'value': 1 },
{ 'name': 'shift', 'src': 'laatste|vorige|afgelopen', 'value': -1 },
{ 'name': 'shift', 'src': 'volgend:|e', 'value': 1 }
],
'parse': [
'{months} {year?}',
'{num} {unit} {sign}',
'{0?} {unit:5-7} {shift}',
'{0?} {shift} {unit:5-7}'
],
'timeParse': [
'{shift?} {day|weekday}',
'{weekday?},? {date} {months?}\\.? {year?}'
],
'timeFrontParse': [
'{shift?} {day|weekday}',
'{weekday?},? {date} {months?}\\.? {year?}'
]
});
// This package does not export anything as it is
// simply registering the "nl" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/no.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/no.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Norwegian locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('no')
*
*/
addLocale('no', {
'plural': true,
'units': 'millisekund:|er,sekund:|er,minutt:|er,tim:e|er,dag:|er,uk:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',
'months': 'januar,februar,mars,april,mai,juni,juli,august,september,oktober,november,desember',
'weekdays': 'søndag|sondag,mandag,tirsdag,onsdag,torsdag,fredag,lørdag|lordag',
'numerals': 'en|et,to,tre,fire,fem,seks,sju|syv,åtte,ni,ti',
'tokens': 'den,for',
'articles': 'den',
'short':'d. {d}. {month} {yyyy}',
'long': 'den {d}. {month} {yyyy} {H}:{mm}',
'full': '{Weekday} den {d}. {month} {yyyy} {H}:{mm}:{ss}',
'past': '{num} {unit} {sign}',
'future': '{sign} {num} {unit}',
'duration': '{num} {unit}',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },
{ 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },
{ 'name': 'day', 'src': 'i dag|idag', 'value': 0 },
{ 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },
{ 'name': 'day', 'src': 'overimorgen|overmorgen|over i morgen', 'value': 2 },
{ 'name': 'sign', 'src': 'siden', 'value': -1 },
{ 'name': 'sign', 'src': 'om', 'value': 1 },
{ 'name': 'shift', 'src': 'i siste|siste', 'value': -1 },
{ 'name': 'shift', 'src': 'denne', 'value': 0 },
{ 'name': 'shift', 'src': 'neste', 'value': 1 }
],
'parse': [
'{num} {unit} {sign}',
'{sign} {num} {unit}',
'{1?} {num} {unit} {sign}',
'{shift} {unit:5-7}'
],
'timeParse': [
'{date} {month}',
'{shift} {weekday}',
'{0?} {weekday?},? {date?} {month}\\.? {year}'
]
});
// This package does not export anything as it is
// simply registering the "no" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/pl.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/pl.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Polish locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('pl')
*
*/
addLocale('pl', {
'plural': true,
'units': 'milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzień|dni|dni,tydzień|tygodnie|tygodni,miesiąc|miesiące|miesięcy,rok|lata|lat',
'months': 'sty:cznia||czeń,lut:ego||y,mar:ca||zec,kwi:etnia||ecień,maj:a|,cze:rwca||rwiec,lip:ca||iec,sie:rpnia||rpień,wrz:eśnia||esień,paź:dziernika||dziernik,lis:topada||topad,gru:dnia||dzień',
'weekdays': 'nie:dziela||dzielę,pon:iedziałek|,wt:orek|,śr:oda||odę,czw:artek|,piątek|pt,sobota|sb|sobotę',
'numerals': 'zero,jeden|jedną,dwa|dwie,trzy,cztery,pięć,sześć,siedem,osiem,dziewięć,dziesięć',
'tokens': 'w|we,roku',
'short': '{dd}.{MM}.{yyyy}',
'medium': '{d} {month} {yyyy}',
'long': '{d} {month} {yyyy} {time}',
'full' : '{weekday}, {d} {month} {yyyy} {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}:{mm}',
'timeMarkers': 'o',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'przedwczoraj', 'value': -2 },
{ 'name': 'day', 'src': 'wczoraj', 'value': -1 },
{ 'name': 'day', 'src': 'dzisiaj|dziś', 'value': 0 },
{ 'name': 'day', 'src': 'jutro', 'value': 1 },
{ 'name': 'day', 'src': 'pojutrze', 'value': 2 },
{ 'name': 'sign', 'src': 'temu|przed', 'value': -1 },
{ 'name': 'sign', 'src': 'za', 'value': 1 },
{ 'name': 'shift', 'src': 'zeszły|zeszła|ostatni|ostatnia', 'value': -1 },
{ 'name': 'shift', 'src': 'następny|następna|następnego|przyszły|przyszła|przyszłego', 'value': 1 }
],
'relative': function (num, unit, ms, format) {
// special cases for relative days
var DAY = 4;
if (unit === DAY) {
if (num === 1 && format === 'past') return 'wczoraj';
if (num === 1 && format === 'future') return 'jutro';
if (num === 2 && format === 'past') return 'przedwczoraj';
if (num === 2 && format === 'future') return 'pojutrze';
}
var mult;
var last = +num.toFixed(0).slice(-1);
var last2 = +num.toFixed(0).slice(-2);
switch (true) {
case num === 1: mult = 0; break;
case last2 >= 12 && last2 <= 14: mult = 2; break;
case last >= 2 && last <= 4: mult = 1; break;
default: mult = 2;
}
var text = this['units'][(mult * 8) + unit];
var prefix = num + ' ';
// changing to accusative case for 'past' and 'future' formats
// (only singular feminine unit words are different in accusative, each of which ends with 'a')
if ((format === 'past' || format === 'future') && num === 1) {
text = text.replace(/a$/, 'ę');
}
text = prefix + text;
switch (format) {
case 'duration': return text;
case 'past': return text + ' temu';
case 'future': return 'za ' + text;
}
},
'parse': [
'{num} {unit} {sign}',
'{sign} {num} {unit}',
'{months} {year?}',
'{shift} {unit:5-7}',
'{0} {shift?} {weekday}'
],
'timeFrontParse': [
'{day|weekday}',
'{date} {months} {year?} {1?}',
'{0?} {shift?} {weekday}'
]
});
// This package does not export anything as it is
// simply registering the "pl" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/pt.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/pt.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Portuguese locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('pt')
*
*/
addLocale('pt', {
'plural': true,
'units': 'milisegundo:|s,segundo:|s,minuto:|s,hora:|s,dia:|s,semana:|s,mês|mêses|mes|meses,ano:|s',
'months': 'jan:eiro|,fev:ereiro|,mar:ço|,abr:il|,mai:o|,jun:ho|,jul:ho|,ago:sto|,set:embro|,out:ubro|,nov:embro|,dez:embro|',
'weekdays': 'dom:ingo|,seg:unda-feira|,ter:ça-feira|,qua:rta-feira|,qui:nta-feira|,sex:ta-feira|,sáb:ado||ado',
'numerals': 'zero,um:|a,dois|duas,três|tres,quatro,cinco,seis,sete,oito,nove,dez',
'tokens': 'a,de',
'short': '{dd}/{MM}/{yyyy}',
'medium': '{d} de {Month} de {yyyy}',
'long': '{d} de {Month} de {yyyy} {time}',
'full': '{Weekday}, {d} de {Month} de {yyyy} {time}',
'stamp': '{Dow} {d} {Mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{num} {unit} {sign}',
'future': '{sign} {num} {unit}',
'duration': '{num} {unit}',
'timeMarkers': 'às',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'anteontem', 'value': -2 },
{ 'name': 'day', 'src': 'ontem', 'value': -1 },
{ 'name': 'day', 'src': 'hoje', 'value': 0 },
{ 'name': 'day', 'src': 'amanh:ã|a', 'value': 1 },
{ 'name': 'sign', 'src': 'atrás|atras|há|ha', 'value': -1 },
{ 'name': 'sign', 'src': 'daqui a', 'value': 1 },
{ 'name': 'shift', 'src': 'passad:o|a', 'value': -1 },
{ 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }
],
'parse': [
'{months} {1?} {year?}',
'{num} {unit} {sign}',
'{sign} {num} {unit}',
'{0?} {unit:5-7} {shift}',
'{0?} {shift} {unit:5-7}'
],
'timeParse': [
'{shift?} {day|weekday}',
'{0?} {shift} {weekday}',
'{date} {1?} {months?} {1?} {year?}'
],
'timeFrontParse': [
'{shift?} {day|weekday}',
'{date} {1?} {months?} {1?} {year?}'
]
});
// This package does not export anything as it is
// simply registering the "pt" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/ru.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/ru.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Russian locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('ru')
*
*/
addLocale('ru', {
'firstDayOfWeekYear': 1,
'units': 'миллисекунд:а|у|ы|,секунд:а|у|ы|,минут:а|у|ы|,час:||а|ов,день|день|дня|дней,недел:я|ю|и|ь|е,месяц:||а|ев|е,год|год|года|лет|году',
'months': 'янв:аря||.|арь,фев:раля||р.|раль,мар:та||т,апр:еля||.|ель,мая|май,июн:я||ь,июл:я||ь,авг:уста||.|уст,сен:тября||т.|тябрь,окт:ября||.|ябрь,ноя:бря||брь,дек:абря||.|абрь',
'weekdays': 'воскресенье|вс,понедельник|пн,вторник|вт,среда|ср,четверг|чт,пятница|пт,суббота|сб',
'numerals': 'ноль,од:ин|ну,дв:а|е,три,четыре,пять,шесть,семь,восемь,девять,десять',
'tokens': 'в|на,г\\.?(?:ода)?',
'short': '{dd}.{MM}.{yyyy}',
'medium': '{d} {month} {yyyy} г.',
'long': '{d} {month} {yyyy} г., {time}',
'full': '{weekday}, {d} {month} {yyyy} г., {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}:{mm}',
'timeMarkers': 'в',
'ampm': ' утра, вечера',
'modifiers': [
{ 'name': 'day', 'src': 'позавчера', 'value': -2 },
{ 'name': 'day', 'src': 'вчера', 'value': -1 },
{ 'name': 'day', 'src': 'сегодня', 'value': 0 },
{ 'name': 'day', 'src': 'завтра', 'value': 1 },
{ 'name': 'day', 'src': 'послезавтра', 'value': 2 },
{ 'name': 'sign', 'src': 'назад', 'value': -1 },
{ 'name': 'sign', 'src': 'через', 'value': 1 },
{ 'name': 'shift', 'src': 'прошл:ый|ой|ом', 'value': -1 },
{ 'name': 'shift', 'src': 'следующ:ий|ей|ем', 'value': 1 }
],
'relative': function(num, unit, ms, format) {
var numberWithUnit, last = num.toString().slice(-1), mult;
switch(true) {
case num >= 11 && num <= 15: mult = 3; break;
case last == 1: mult = 1; break;
case last >= 2 && last <= 4: mult = 2; break;
default: mult = 3;
}
numberWithUnit = num + ' ' + this['units'][(mult * 8) + unit];
switch(format) {
case 'duration': return numberWithUnit;
case 'past': return numberWithUnit + ' назад';
case 'future': return 'через ' + numberWithUnit;
}
},
'parse': [
'{num} {unit} {sign}',
'{sign} {num} {unit}',
'{months} {year?}',
'{0?} {shift} {unit:5-7}'
],
'timeParse': [
'{day|weekday}',
'{0?} {shift} {weekday}',
'{date} {months?} {year?} {1?}'
],
'timeFrontParse': [
'{0?} {shift} {weekday}',
'{date} {months?} {year?} {1?}'
]
});
// This package does not export anything as it is
// simply registering the "ru" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/sv.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/locales/sv.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Swedish locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('sv')
*
*/
addLocale('sv', {
'plural': true,
'units': 'millisekund:|er,sekund:|er,minut:|er,timm:e|ar,dag:|ar,veck:a|or|an,månad:|er|en+manad:|er|en,år:||et+ar:||et',
'months': 'jan:uari|,feb:ruari|,mar:s|,apr:il|,maj,jun:i|,jul:i|,aug:usti|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',
'weekdays': 'sön:dag|+son:dag|,mån:dag||dagen+man:dag||dagen,tis:dag|,ons:dag|,tor:sdag|,fre:dag|,lör:dag||dag',
'numerals': 'noll,en|ett,två|tva,tre,fyra,fem,sex,sju,åtta|atta,nio,tio',
'tokens': 'den,för|for',
'articles': 'den',
'short': '{yyyy}-{MM}-{dd}',
'medium': '{d} {month} {yyyy}',
'long': '{d} {month} {yyyy} {time}',
'full': '{weekday} {d} {month} {yyyy} {time}',
'stamp': '{dow} {d} {mon} {yyyy} {time}',
'time': '{H}:{mm}',
'past': '{num} {unit} {sign}',
'future': '{sign} {num} {unit}',
'duration': '{num} {unit}',
'ampm': 'am,pm',
'modifiers': [
{ 'name': 'day', 'src': 'förrgår|i förrgår|iförrgår|forrgar|i forrgar|iforrgar', 'value': -2 },
{ 'name': 'day', 'src': 'går|i går|igår|gar|i gar|igar', 'value': -1 },
{ 'name': 'day', 'src': 'dag|i dag|idag', 'value': 0 },
{ 'name': 'day', 'src': 'morgon|i morgon|imorgon', 'value': 1 },
{ 'name': 'day', 'src': 'över morgon|övermorgon|i över morgon|i övermorgon|iövermorgon|over morgon|overmorgon|i over morgon|i overmorgon|iovermorgon', 'value': 2 },
{ 'name': 'sign', 'src': 'sedan|sen', 'value': -1 },
{ 'name': 'sign', 'src': 'om', 'value': 1 },
{ 'name': 'shift', 'src': 'i förra|förra|i forra|forra', 'value': -1 },
{ 'name': 'shift', 'src': 'denna', 'value': 0 },
{ 'name': 'shift', 'src': 'nästa|nasta', 'value': 1 }
],
'parse': [
'{months} {year?}',
'{num} {unit} {sign}',
'{sign} {num} {unit}',
'{1?} {num} {unit} {sign}',
'{shift} {unit:5-7}'
],
'timeParse': [
'{day|weekday}',
'{shift} {weekday}',
'{0?} {weekday?},? {date} {months?}\\.? {year?}'
],
'timeFrontParse': [
'{day|weekday}',
'{shift} {weekday}',
'{0?} {weekday?},? {date} {months?}\\.? {year?}'
]
});
// This package does not export anything as it is
// simply registering the "sv" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/zh-CN.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/locales/zh-CN.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Simplified Chinese locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('zh-CN')
*
*/
addLocale('zh-CN', {
'ampmFront': true,
'numeralUnits': true,
'allowsFullWidth': true,
'timeMarkerOptional': true,
'units': '毫秒,秒钟,分钟,小时,天,个星期|周,个月,年',
'weekdays': '星期日|日|周日|星期天,星期一|一|周一,星期二|二|周二,星期三|三|周三,星期四|四|周四,星期五|五|周五,星期六|六|周六',
'numerals': ',一,二,三,四,五,六,七,八,九',
'placeholders': '十,百,千,万',
'short': '{yyyy}-{MM}-{dd}',
'medium': '{yyyy}年{M}月{d}日',
'long': '{yyyy}年{M}月{d}日{time}',
'full': '{yyyy}年{M}月{d}日{weekday}{time}',
'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',
'time': '{tt}{h}点{mm}分',
'past': '{num}{unit}{sign}',
'future': '{num}{unit}{sign}',
'duration': '{num}{unit}',
'timeSuffixes': ',秒,分钟?,点|时,日|号,,月,年',
'ampm': '上午,下午',
'modifiers': [
{ 'name': 'day', 'src': '大前天', 'value': -3 },
{ 'name': 'day', 'src': '前天', 'value': -2 },
{ 'name': 'day', 'src': '昨天', 'value': -1 },
{ 'name': 'day', 'src': '今天', 'value': 0 },
{ 'name': 'day', 'src': '明天', 'value': 1 },
{ 'name': 'day', 'src': '后天', 'value': 2 },
{ 'name': 'day', 'src': '大后天', 'value': 3 },
{ 'name': 'sign', 'src': '前', 'value': -1 },
{ 'name': 'sign', 'src': '后', 'value': 1 },
{ 'name': 'shift', 'src': '上|去', 'value': -1 },
{ 'name': 'shift', 'src': '这', 'value': 0 },
{ 'name': 'shift', 'src': '下|明', 'value': 1 }
],
'parse': [
'{num}{unit}{sign}',
'{shift}{unit:5-7}',
'{year?}{month}',
'{year}'
],
'timeParse': [
'{day|weekday}',
'{shift}{weekday}',
'{year?}{month?}{date}'
]
});
// This package does not export anything as it is
// simply registering the "zh-CN" locale.
/***/ }),
/***/ "./node_modules/sugar-date/locales/zh-TW.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/locales/zh-TW.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addLocale = __webpack_require__(/*! ../date/addLocale */ "./node_modules/sugar-date/date/addLocale.js");
/*
* Traditional Chinese locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('zh-TW')
*
*/
addLocale('zh-TW', {
'ampmFront': true,
'numeralUnits': true,
'allowsFullWidth': true,
'timeMarkerOptional': true,
'units': '毫秒,秒鐘,分鐘,小時,天,個星期|週,個月,年',
'weekdays': '星期日|日|週日|星期天,星期一|一|週一,星期二|二|週二,星期三|三|週三,星期四|四|週四,星期五|五|週五,星期六|六|週六',
'numerals': ',一,二,三,四,五,六,七,八,九',
'placeholders': '十,百,千,万',
'short': '{yyyy}/{MM}/{dd}',
'medium': '{yyyy}年{M}月{d}日',
'long': '{yyyy}年{M}月{d}日{time}',
'full': '{yyyy}年{M}月{d}日{weekday}{time}',
'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',
'time': '{tt}{h}點{mm}分',
'past': '{num}{unit}{sign}',
'future': '{num}{unit}{sign}',
'duration': '{num}{unit}',
'timeSuffixes': ',秒,分鐘?,點|時,日|號,,月,年',
'ampm': '上午,下午',
'modifiers': [
{ 'name': 'day', 'src': '大前天', 'value': -3 },
{ 'name': 'day', 'src': '前天', 'value': -2 },
{ 'name': 'day', 'src': '昨天', 'value': -1 },
{ 'name': 'day', 'src': '今天', 'value': 0 },
{ 'name': 'day', 'src': '明天', 'value': 1 },
{ 'name': 'day', 'src': '後天', 'value': 2 },
{ 'name': 'day', 'src': '大後天', 'value': 3 },
{ 'name': 'sign', 'src': '前', 'value': -1 },
{ 'name': 'sign', 'src': '後', 'value': 1 },
{ 'name': 'shift', 'src': '上|去', 'value': -1 },
{ 'name': 'shift', 'src': '這', 'value': 0 },
{ 'name': 'shift', 'src': '下|明', 'value': 1 }
],
'parse': [
'{num}{unit}{sign}',
'{shift}{unit:5-7}',
'{year?}{month}',
'{year}'
],
'timeParse': [
'{day|weekday}',
'{shift}{weekday}',
'{year?}{month?}{date}'
]
});
// This package does not export anything as it is
// simply registering the "zh-TW" locale.
/***/ }),
/***/ "./node_modules/sugar-date/number/day.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/number/day.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.day;
/***/ }),
/***/ "./node_modules/sugar-date/number/dayAfter.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/number/dayAfter.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.dayAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/dayAgo.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/number/dayAgo.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.dayAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/dayBefore.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/number/dayBefore.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.dayBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/dayFromNow.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/dayFromNow.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.dayFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/days.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/number/days.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.days;
/***/ }),
/***/ "./node_modules/sugar-date/number/daysAfter.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/number/daysAfter.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.daysAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/daysAgo.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/number/daysAgo.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.daysAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/daysBefore.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/daysBefore.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.daysBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/daysFromNow.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/daysFromNow.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.daysFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/duration.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/number/duration.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js"),
LocaleHelpers = __webpack_require__(/*! ../date/var/LocaleHelpers */ "./node_modules/sugar-date/date/var/LocaleHelpers.js");
var localeManager = LocaleHelpers.localeManager;
Sugar.Number.defineInstance({
'duration': function(n, localeCode) {
return localeManager.get(localeCode).getDuration(n);
}
});
module.exports = Sugar.Number.duration;
/***/ }),
/***/ "./node_modules/sugar-date/number/hour.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/number/hour.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hour;
/***/ }),
/***/ "./node_modules/sugar-date/number/hourAfter.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/number/hourAfter.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hourAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/hourAgo.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/number/hourAgo.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hourAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/hourBefore.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/hourBefore.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hourBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/hourFromNow.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/hourFromNow.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hourFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/hours.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/number/hours.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hours;
/***/ }),
/***/ "./node_modules/sugar-date/number/hoursAfter.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/hoursAfter.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hoursAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/hoursAgo.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/number/hoursAgo.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hoursAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/hoursBefore.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/hoursBefore.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hoursBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/hoursFromNow.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/hoursFromNow.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.hoursFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecond.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/millisecond.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecond;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecondAfter.js":
/*!************************************************************!*\
!*** ./node_modules/sugar-date/number/millisecondAfter.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecondAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecondAgo.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/number/millisecondAgo.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecondAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecondBefore.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/number/millisecondBefore.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecondBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecondFromNow.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/number/millisecondFromNow.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecondFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/milliseconds.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/milliseconds.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.milliseconds;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecondsAfter.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/number/millisecondsAfter.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecondsAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecondsAgo.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/number/millisecondsAgo.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecondsAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecondsBefore.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/number/millisecondsBefore.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecondsBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/millisecondsFromNow.js":
/*!***************************************************************!*\
!*** ./node_modules/sugar-date/number/millisecondsFromNow.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.millisecondsFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/minute.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/number/minute.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minute;
/***/ }),
/***/ "./node_modules/sugar-date/number/minuteAfter.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/minuteAfter.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minuteAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/minuteAgo.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/number/minuteAgo.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minuteAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/minuteBefore.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/minuteBefore.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minuteBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/minuteFromNow.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/number/minuteFromNow.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minuteFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/minutes.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/number/minutes.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minutes;
/***/ }),
/***/ "./node_modules/sugar-date/number/minutesAfter.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/minutesAfter.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minutesAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/minutesAgo.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/minutesAgo.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minutesAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/minutesBefore.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/number/minutesBefore.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minutesBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/minutesFromNow.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/number/minutesFromNow.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.minutesFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/month.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/number/month.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.month;
/***/ }),
/***/ "./node_modules/sugar-date/number/monthAfter.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/monthAfter.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.monthAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/monthAgo.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/number/monthAgo.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.monthAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/monthBefore.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/monthBefore.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.monthBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/monthFromNow.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/monthFromNow.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.monthFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/months.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/number/months.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.months;
/***/ }),
/***/ "./node_modules/sugar-date/number/monthsAfter.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/monthsAfter.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.monthsAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/monthsAgo.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/number/monthsAgo.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.monthsAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/monthsBefore.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/monthsBefore.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.monthsBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/monthsFromNow.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/number/monthsFromNow.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.monthsFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/second.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/number/second.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.second;
/***/ }),
/***/ "./node_modules/sugar-date/number/secondAfter.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/secondAfter.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.secondAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/secondAgo.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/number/secondAgo.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.secondAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/secondBefore.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/secondBefore.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.secondBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/secondFromNow.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/number/secondFromNow.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.secondFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/seconds.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/number/seconds.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.seconds;
/***/ }),
/***/ "./node_modules/sugar-date/number/secondsAfter.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/secondsAfter.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.secondsAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/secondsAgo.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/secondsAgo.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.secondsAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/secondsBefore.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/number/secondsBefore.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.secondsBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/secondsFromNow.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/number/secondsFromNow.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.secondsFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/week.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/number/week.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.week;
/***/ }),
/***/ "./node_modules/sugar-date/number/weekAfter.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/number/weekAfter.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weekAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/weekAgo.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/number/weekAgo.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weekAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/weekBefore.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/weekBefore.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weekBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/weekFromNow.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/weekFromNow.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weekFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/weeks.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/number/weeks.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weeks;
/***/ }),
/***/ "./node_modules/sugar-date/number/weeksAfter.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/weeksAfter.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weeksAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/weeksAgo.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/number/weeksAgo.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weeksAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/weeksBefore.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/weeksBefore.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weeksBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/weeksFromNow.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/weeksFromNow.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.weeksFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/year.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/number/year.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.year;
/***/ }),
/***/ "./node_modules/sugar-date/number/yearAfter.js":
/*!*****************************************************!*\
!*** ./node_modules/sugar-date/number/yearAfter.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.yearAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/yearAgo.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/number/yearAgo.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.yearAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/yearBefore.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/yearBefore.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.yearBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/yearFromNow.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/yearFromNow.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.yearFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/number/years.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/number/years.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.years;
/***/ }),
/***/ "./node_modules/sugar-date/number/yearsAfter.js":
/*!******************************************************!*\
!*** ./node_modules/sugar-date/number/yearsAfter.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.yearsAfter;
/***/ }),
/***/ "./node_modules/sugar-date/number/yearsAgo.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/number/yearsAgo.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.yearsAgo;
/***/ }),
/***/ "./node_modules/sugar-date/number/yearsBefore.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/number/yearsBefore.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.yearsBefore;
/***/ }),
/***/ "./node_modules/sugar-date/number/yearsFromNow.js":
/*!********************************************************!*\
!*** ./node_modules/sugar-date/number/yearsFromNow.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Sugar = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
__webpack_require__(/*! ../date/build/buildNumberUnitMethodsCall */ "./node_modules/sugar-date/date/build/buildNumberUnitMethodsCall.js");
module.exports = Sugar.Number.yearsFromNow;
/***/ }),
/***/ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js":
/*!************************************************************************!*\
!*** ./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var buildDateRangeUnits = __webpack_require__(/*! ../internal/buildDateRangeUnits */ "./node_modules/sugar-date/range/internal/buildDateRangeUnits.js");
buildDateRangeUnits();
/***/ }),
/***/ "./node_modules/sugar-date/range/clamp.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/range/clamp.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
rangeClamp = __webpack_require__(/*! ./internal/rangeClamp */ "./node_modules/sugar-date/range/internal/rangeClamp.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'clamp': function(el) {
return rangeClamp(this, el);
}
});
// This package does not export anything as it is
// simply defining "clamp" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/clone.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/range/clone.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'clone': function() {
return new Range(this.start, this.end);
}
});
// This package does not export anything as it is
// simply defining "clone" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/contains.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/range/contains.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'contains': function(el) {
if (el == null) return false;
if (el.start && el.end) {
return el.start >= this.start && el.start <= this.end &&
el.end >= this.start && el.end <= this.end;
} else {
return el >= this.start && el <= this.end;
}
}
});
// This package does not export anything as it is
// simply defining "contains" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/days.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/range/days.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./build/buildDateRangeUnitsCall */ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js");
// This package does not export anything as it is
// simply defining "days" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/every.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/range/every.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
rangeEvery = __webpack_require__(/*! ./internal/rangeEvery */ "./node_modules/sugar-date/range/internal/rangeEvery.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'every': function(amount, everyFn) {
return rangeEvery(this, amount, false, everyFn);
}
});
// This package does not export anything as it is
// simply defining "every" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/hours.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/range/hours.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./build/buildDateRangeUnitsCall */ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js");
// This package does not export anything as it is
// simply defining "hours" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/index.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/range/index.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// Static Methods
__webpack_require__(/*! ../date/range */ "./node_modules/sugar-date/date/range.js");
// Prototype Methods
__webpack_require__(/*! ./clamp */ "./node_modules/sugar-date/range/clamp.js");
__webpack_require__(/*! ./clone */ "./node_modules/sugar-date/range/clone.js");
__webpack_require__(/*! ./contains */ "./node_modules/sugar-date/range/contains.js");
__webpack_require__(/*! ./days */ "./node_modules/sugar-date/range/days.js");
__webpack_require__(/*! ./every */ "./node_modules/sugar-date/range/every.js");
__webpack_require__(/*! ./hours */ "./node_modules/sugar-date/range/hours.js");
__webpack_require__(/*! ./intersect */ "./node_modules/sugar-date/range/intersect.js");
__webpack_require__(/*! ./isValid */ "./node_modules/sugar-date/range/isValid.js");
__webpack_require__(/*! ./milliseconds */ "./node_modules/sugar-date/range/milliseconds.js");
__webpack_require__(/*! ./minutes */ "./node_modules/sugar-date/range/minutes.js");
__webpack_require__(/*! ./months */ "./node_modules/sugar-date/range/months.js");
__webpack_require__(/*! ./seconds */ "./node_modules/sugar-date/range/seconds.js");
__webpack_require__(/*! ./span */ "./node_modules/sugar-date/range/span.js");
__webpack_require__(/*! ./toArray */ "./node_modules/sugar-date/range/toArray.js");
__webpack_require__(/*! ./toString */ "./node_modules/sugar-date/range/toString.js");
__webpack_require__(/*! ./union */ "./node_modules/sugar-date/range/union.js");
__webpack_require__(/*! ./weeks */ "./node_modules/sugar-date/range/weeks.js");
__webpack_require__(/*! ./years */ "./node_modules/sugar-date/range/years.js");
module.exports = __webpack_require__(/*! sugar-core */ "./node_modules/sugar-core/sugar-core.js");
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/Range.js":
/*!*********************************************************!*\
!*** ./node_modules/sugar-date/range/internal/Range.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var cloneRangeMember = __webpack_require__(/*! ./cloneRangeMember */ "./node_modules/sugar-date/range/internal/cloneRangeMember.js");
function Range(start, end) {
this.start = cloneRangeMember(start);
this.end = cloneRangeMember(end);
}
module.exports = Range;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/buildDateRangeUnits.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/buildDateRangeUnits.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var MULTIPLIERS = __webpack_require__(/*! ../var/MULTIPLIERS */ "./node_modules/sugar-date/range/var/MULTIPLIERS.js"),
DURATION_UNITS = __webpack_require__(/*! ../var/DURATION_UNITS */ "./node_modules/sugar-date/range/var/DURATION_UNITS.js"),
Range = __webpack_require__(/*! ./Range */ "./node_modules/sugar-date/range/internal/Range.js"),
trunc = __webpack_require__(/*! ../../common/var/trunc */ "./node_modules/sugar-date/common/var/trunc.js"),
forEach = __webpack_require__(/*! ../../common/internal/forEach */ "./node_modules/sugar-date/common/internal/forEach.js"),
rangeEvery = __webpack_require__(/*! ./rangeEvery */ "./node_modules/sugar-date/range/internal/rangeEvery.js"),
simpleCapitalize = __webpack_require__(/*! ../../common/internal/simpleCapitalize */ "./node_modules/sugar-date/common/internal/simpleCapitalize.js"),
defineOnPrototype = __webpack_require__(/*! ../../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
function buildDateRangeUnits() {
var methods = {};
forEach(DURATION_UNITS.split('|'), function(unit, i) {
var name = unit + 's', mult, fn;
if (i < 4) {
fn = function() {
return rangeEvery(this, unit, true);
};
} else {
mult = MULTIPLIERS[simpleCapitalize(name)];
fn = function() {
return trunc((this.end - this.start) / mult);
};
}
methods[name] = fn;
});
defineOnPrototype(Range, methods);
}
module.exports = buildDateRangeUnits;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/cloneRangeMember.js":
/*!********************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/cloneRangeMember.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
getRangeMemberPrimitiveValue = __webpack_require__(/*! ./getRangeMemberPrimitiveValue */ "./node_modules/sugar-date/range/internal/getRangeMemberPrimitiveValue.js");
var isDate = classChecks.isDate;
function cloneRangeMember(m) {
if (isDate(m)) {
return new Date(m.getTime());
} else {
return getRangeMemberPrimitiveValue(m);
}
}
module.exports = cloneRangeMember;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/createDateRangeFromString.js":
/*!*****************************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/createDateRangeFromString.js ***!
\*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./Range */ "./node_modules/sugar-date/range/internal/Range.js"),
DurationTextFormats = __webpack_require__(/*! ../var/DurationTextFormats */ "./node_modules/sugar-date/range/var/DurationTextFormats.js"),
incrementDate = __webpack_require__(/*! ./incrementDate */ "./node_modules/sugar-date/range/internal/incrementDate.js"),
getDateForRange = __webpack_require__(/*! ./getDateForRange */ "./node_modules/sugar-date/range/internal/getDateForRange.js"),
namespaceAliases = __webpack_require__(/*! ../../common/var/namespaceAliases */ "./node_modules/sugar-date/common/var/namespaceAliases.js"),
getDateIncrementObject = __webpack_require__(/*! ./getDateIncrementObject */ "./node_modules/sugar-date/range/internal/getDateIncrementObject.js");
var sugarDate = namespaceAliases.sugarDate,
RANGE_REG_FROM_TO = DurationTextFormats.RANGE_REG_FROM_TO,
RANGE_REG_REAR_DURATION = DurationTextFormats.RANGE_REG_REAR_DURATION,
RANGE_REG_FRONT_DURATION = DurationTextFormats.RANGE_REG_FRONT_DURATION;
function createDateRangeFromString(str) {
var match, datetime, duration, dio, start, end;
if (sugarDate.get && (match = str.match(RANGE_REG_FROM_TO))) {
start = getDateForRange(match[1].replace('from', 'at'));
end = sugarDate.get(start, match[2]);
return new Range(start, end);
}
if (match = str.match(RANGE_REG_FRONT_DURATION)) {
duration = match[1];
datetime = match[2];
}
if (match = str.match(RANGE_REG_REAR_DURATION)) {
datetime = match[1];
duration = match[2];
}
if (datetime && duration) {
start = getDateForRange(datetime);
dio = getDateIncrementObject(duration);
end = incrementDate(start, dio[0], dio[1]);
} else {
start = str;
}
return new Range(getDateForRange(start), getDateForRange(end));
}
module.exports = createDateRangeFromString;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/getDateForRange.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/getDateForRange.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
namespaceAliases = __webpack_require__(/*! ../../common/var/namespaceAliases */ "./node_modules/sugar-date/common/var/namespaceAliases.js");
var isDate = classChecks.isDate,
sugarDate = namespaceAliases.sugarDate;
function getDateForRange(d) {
if (isDate(d)) {
return d;
} else if (d == null) {
return new Date();
} else if (sugarDate.create) {
return sugarDate.create(d);
}
return new Date(d);
}
module.exports = getDateForRange;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/getDateIncrementObject.js":
/*!**************************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/getDateIncrementObject.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DURATION_REG = __webpack_require__(/*! ../var/DURATION_REG */ "./node_modules/sugar-date/range/var/DURATION_REG.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
simpleCapitalize = __webpack_require__(/*! ../../common/internal/simpleCapitalize */ "./node_modules/sugar-date/common/internal/simpleCapitalize.js");
var isNumber = classChecks.isNumber;
function getDateIncrementObject(amt) {
var match, val, unit;
if (isNumber(amt)) {
return [amt, 'Milliseconds'];
}
match = amt.match(DURATION_REG);
val = +match[1] || 1;
unit = simpleCapitalize(match[2].toLowerCase());
if (unit.match(/hour|minute|second/i)) {
unit += 's';
} else if (unit === 'Year') {
unit = 'FullYear';
} else if (unit === 'Week') {
unit = 'Date';
val *= 7;
} else if (unit === 'Day') {
unit = 'Date';
}
return [val, unit];
}
module.exports = getDateIncrementObject;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/getGreaterPrecision.js":
/*!***********************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/getGreaterPrecision.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var mathAliases = __webpack_require__(/*! ../../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
getPrecision = __webpack_require__(/*! ./getPrecision */ "./node_modules/sugar-date/range/internal/getPrecision.js");
var max = mathAliases.max;
function getGreaterPrecision(n1, n2) {
return max(getPrecision(n1), getPrecision(n2));
}
module.exports = getGreaterPrecision;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/getPrecision.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/getPrecision.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var periodSplit = __webpack_require__(/*! ../../common/internal/periodSplit */ "./node_modules/sugar-date/common/internal/periodSplit.js");
function getPrecision(n) {
var split = periodSplit(n.toString());
return split[1] ? split[1].length : 0;
}
module.exports = getPrecision;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/getRangeMemberNumericValue.js":
/*!******************************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/getRangeMemberNumericValue.js ***!
\******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js");
var isString = classChecks.isString;
function getRangeMemberNumericValue(m) {
return isString(m) ? m.charCodeAt(0) : m;
}
module.exports = getRangeMemberNumericValue;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/getRangeMemberPrimitiveValue.js":
/*!********************************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/getRangeMemberPrimitiveValue.js ***!
\********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js");
var isDate = classChecks.isDate;
function getRangeMemberPrimitiveValue(m) {
if (m == null) return m;
return isDate(m) ? m.getTime() : m.valueOf();
}
module.exports = getRangeMemberPrimitiveValue;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/incrementDate.js":
/*!*****************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/incrementDate.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var MULTIPLIERS = __webpack_require__(/*! ../var/MULTIPLIERS */ "./node_modules/sugar-date/range/var/MULTIPLIERS.js"),
callDateSet = __webpack_require__(/*! ../../common/internal/callDateSet */ "./node_modules/sugar-date/common/internal/callDateSet.js"),
callDateGet = __webpack_require__(/*! ../../common/internal/callDateGet */ "./node_modules/sugar-date/common/internal/callDateGet.js");
function incrementDate(src, amount, unit) {
var mult = MULTIPLIERS[unit], d;
if (mult) {
d = new Date(src.getTime() + (amount * mult));
} else {
d = new Date(src);
callDateSet(d, unit, callDateGet(src, unit) + amount);
}
return d;
}
module.exports = incrementDate;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/incrementNumber.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/incrementNumber.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var withPrecision = __webpack_require__(/*! ../../common/internal/withPrecision */ "./node_modules/sugar-date/common/internal/withPrecision.js");
function incrementNumber(current, amount, precision) {
return withPrecision(current + amount, precision);
}
module.exports = incrementNumber;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/incrementString.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/incrementString.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var chr = __webpack_require__(/*! ../../common/var/chr */ "./node_modules/sugar-date/common/var/chr.js");
function incrementString(current, amount) {
return chr(current.charCodeAt(0) + amount);
}
module.exports = incrementString;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/isValidRangeMember.js":
/*!**********************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/isValidRangeMember.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var valueIsNotInfinite = __webpack_require__(/*! ./valueIsNotInfinite */ "./node_modules/sugar-date/range/internal/valueIsNotInfinite.js"),
getRangeMemberPrimitiveValue = __webpack_require__(/*! ./getRangeMemberPrimitiveValue */ "./node_modules/sugar-date/range/internal/getRangeMemberPrimitiveValue.js");
function isValidRangeMember(m) {
var val = getRangeMemberPrimitiveValue(m);
return (!!val || val === 0) && valueIsNotInfinite(m);
}
module.exports = isValidRangeMember;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/rangeClamp.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/rangeClamp.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var cloneRangeMember = __webpack_require__(/*! ./cloneRangeMember */ "./node_modules/sugar-date/range/internal/cloneRangeMember.js");
function rangeClamp(range, obj) {
var clamped,
start = range.start,
end = range.end,
min = end < start ? end : start,
max = start > end ? start : end;
if (obj < min) {
clamped = min;
} else if (obj > max) {
clamped = max;
} else {
clamped = obj;
}
return cloneRangeMember(clamped);
}
module.exports = rangeClamp;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/rangeEvery.js":
/*!**************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/rangeEvery.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
rangeIsValid = __webpack_require__(/*! ./rangeIsValid */ "./node_modules/sugar-date/range/internal/rangeIsValid.js"),
incrementDate = __webpack_require__(/*! ./incrementDate */ "./node_modules/sugar-date/range/internal/incrementDate.js"),
incrementNumber = __webpack_require__(/*! ./incrementNumber */ "./node_modules/sugar-date/range/internal/incrementNumber.js"),
incrementString = __webpack_require__(/*! ./incrementString */ "./node_modules/sugar-date/range/internal/incrementString.js"),
getGreaterPrecision = __webpack_require__(/*! ./getGreaterPrecision */ "./node_modules/sugar-date/range/internal/getGreaterPrecision.js"),
getDateIncrementObject = __webpack_require__(/*! ./getDateIncrementObject */ "./node_modules/sugar-date/range/internal/getDateIncrementObject.js");
var isNumber = classChecks.isNumber,
isString = classChecks.isString,
isDate = classChecks.isDate,
isFunction = classChecks.isFunction;
function rangeEvery(range, step, countOnly, fn) {
var increment,
precision,
dio,
unit,
start = range.start,
end = range.end,
inverse = end < start,
current = start,
index = 0,
result = [];
if (!rangeIsValid(range)) {
return countOnly ? NaN : [];
}
if (isFunction(step)) {
fn = step;
step = null;
}
step = step || 1;
if (isNumber(start)) {
precision = getGreaterPrecision(start, step);
increment = function() {
return incrementNumber(current, step, precision);
};
} else if (isString(start)) {
increment = function() {
return incrementString(current, step);
};
} else if (isDate(start)) {
dio = getDateIncrementObject(step);
step = dio[0];
unit = dio[1];
increment = function() {
return incrementDate(current, step, unit);
};
}
// Avoiding infinite loops
if (inverse && step > 0) {
step *= -1;
}
while(inverse ? current >= end : current <= end) {
if (!countOnly) {
result.push(current);
}
if (fn) {
fn(current, index, range);
}
current = increment();
index++;
}
return countOnly ? index - 1 : result;
}
module.exports = rangeEvery;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/rangeIsValid.js":
/*!****************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/rangeIsValid.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var isValidRangeMember = __webpack_require__(/*! ./isValidRangeMember */ "./node_modules/sugar-date/range/internal/isValidRangeMember.js");
function rangeIsValid(range) {
return isValidRangeMember(range.start) &&
isValidRangeMember(range.end) &&
typeof range.start === typeof range.end;
}
module.exports = rangeIsValid;
/***/ }),
/***/ "./node_modules/sugar-date/range/internal/valueIsNotInfinite.js":
/*!**********************************************************************!*\
!*** ./node_modules/sugar-date/range/internal/valueIsNotInfinite.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function valueIsNotInfinite(m) {
return m !== -Infinity && m !== Infinity;
}
module.exports = valueIsNotInfinite;
/***/ }),
/***/ "./node_modules/sugar-date/range/intersect.js":
/*!****************************************************!*\
!*** ./node_modules/sugar-date/range/intersect.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'intersect': function(range) {
if (range.start > this.end || range.end < this.start) {
return new Range(NaN, NaN);
}
return new Range(
this.start > range.start ? this.start : range.start,
this.end < range.end ? this.end : range.end
);
}
});
// This package does not export anything as it is
// simply defining "intersect" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/isValid.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/range/isValid.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
rangeIsValid = __webpack_require__(/*! ./internal/rangeIsValid */ "./node_modules/sugar-date/range/internal/rangeIsValid.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'isValid': function() {
return rangeIsValid(this);
}
});
// This package does not export anything as it is
// simply defining "isValid" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/milliseconds.js":
/*!*******************************************************!*\
!*** ./node_modules/sugar-date/range/milliseconds.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./build/buildDateRangeUnitsCall */ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js");
// This package does not export anything as it is
// simply defining "milliseconds" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/minutes.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/range/minutes.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./build/buildDateRangeUnitsCall */ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js");
// This package does not export anything as it is
// simply defining "minutes" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/months.js":
/*!*************************************************!*\
!*** ./node_modules/sugar-date/range/months.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./build/buildDateRangeUnitsCall */ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js");
// This package does not export anything as it is
// simply defining "months" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/seconds.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/range/seconds.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./build/buildDateRangeUnitsCall */ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js");
// This package does not export anything as it is
// simply defining "seconds" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/span.js":
/*!***********************************************!*\
!*** ./node_modules/sugar-date/range/span.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
mathAliases = __webpack_require__(/*! ../common/var/mathAliases */ "./node_modules/sugar-date/common/var/mathAliases.js"),
rangeIsValid = __webpack_require__(/*! ./internal/rangeIsValid */ "./node_modules/sugar-date/range/internal/rangeIsValid.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js"),
getRangeMemberNumericValue = __webpack_require__(/*! ./internal/getRangeMemberNumericValue */ "./node_modules/sugar-date/range/internal/getRangeMemberNumericValue.js");
var abs = mathAliases.abs;
defineOnPrototype(Range, {
'span': function() {
var n = getRangeMemberNumericValue(this.end) - getRangeMemberNumericValue(this.start);
return rangeIsValid(this) ? abs(n) + 1 : NaN;
}
});
// This package does not export anything as it is
// simply defining "span" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/toArray.js":
/*!**************************************************!*\
!*** ./node_modules/sugar-date/range/toArray.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
rangeEvery = __webpack_require__(/*! ./internal/rangeEvery */ "./node_modules/sugar-date/range/internal/rangeEvery.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'toArray': function() {
return rangeEvery(this);
}
});
// This package does not export anything as it is
// simply defining "toArray" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/toString.js":
/*!***************************************************!*\
!*** ./node_modules/sugar-date/range/toString.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
rangeIsValid = __webpack_require__(/*! ./internal/rangeIsValid */ "./node_modules/sugar-date/range/internal/rangeIsValid.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'toString': function() {
return rangeIsValid(this) ? this.start + '..' + this.end : 'Invalid Range';
}
});
// This package does not export anything as it is
// simply defining "toString" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/union.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/range/union.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ./internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
defineOnPrototype = __webpack_require__(/*! ../common/internal/defineOnPrototype */ "./node_modules/sugar-date/common/internal/defineOnPrototype.js");
defineOnPrototype(Range, {
'union': function(range) {
return new Range(
this.start < range.start ? this.start : range.start,
this.end > range.end ? this.end : range.end
);
}
});
// This package does not export anything as it is
// simply defining "union" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/var/DURATION_REG.js":
/*!***********************************************************!*\
!*** ./node_modules/sugar-date/range/var/DURATION_REG.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DURATION_UNITS = __webpack_require__(/*! ./DURATION_UNITS */ "./node_modules/sugar-date/range/var/DURATION_UNITS.js");
module.exports = RegExp('(\\d+)?\\s*('+ DURATION_UNITS +')s?', 'i');
/***/ }),
/***/ "./node_modules/sugar-date/range/var/DURATION_UNITS.js":
/*!*************************************************************!*\
!*** ./node_modules/sugar-date/range/var/DURATION_UNITS.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = 'year|month|week|day|hour|minute|second|millisecond';
/***/ }),
/***/ "./node_modules/sugar-date/range/var/DateRangeConstructor.js":
/*!*******************************************************************!*\
!*** ./node_modules/sugar-date/range/var/DateRangeConstructor.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Range = __webpack_require__(/*! ../internal/Range */ "./node_modules/sugar-date/range/internal/Range.js"),
classChecks = __webpack_require__(/*! ../../common/var/classChecks */ "./node_modules/sugar-date/common/var/classChecks.js"),
getDateForRange = __webpack_require__(/*! ../internal/getDateForRange */ "./node_modules/sugar-date/range/internal/getDateForRange.js"),
createDateRangeFromString = __webpack_require__(/*! ../internal/createDateRangeFromString */ "./node_modules/sugar-date/range/internal/createDateRangeFromString.js");
var isString = classChecks.isString;
var DateRangeConstructor = function(start, end) {
if (arguments.length === 1 && isString(start)) {
return createDateRangeFromString(start);
}
return new Range(getDateForRange(start), getDateForRange(end));
};
module.exports = DateRangeConstructor;
/***/ }),
/***/ "./node_modules/sugar-date/range/var/DurationTextFormats.js":
/*!******************************************************************!*\
!*** ./node_modules/sugar-date/range/var/DurationTextFormats.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var FULL_CAPTURED_DURATION = __webpack_require__(/*! ./FULL_CAPTURED_DURATION */ "./node_modules/sugar-date/range/var/FULL_CAPTURED_DURATION.js");
module.exports = {
RANGE_REG_FROM_TO: /(?:from)?\s*(.+)\s+(?:to|until)\s+(.+)$/i,
RANGE_REG_REAR_DURATION: RegExp('(.+)\\s*for\\s*' + FULL_CAPTURED_DURATION, 'i'),
RANGE_REG_FRONT_DURATION: RegExp('(?:for)?\\s*'+ FULL_CAPTURED_DURATION +'\\s*(?:starting)?\\s(?:at\\s)?(.+)', 'i')
};
/***/ }),
/***/ "./node_modules/sugar-date/range/var/FULL_CAPTURED_DURATION.js":
/*!*********************************************************************!*\
!*** ./node_modules/sugar-date/range/var/FULL_CAPTURED_DURATION.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DURATION_UNITS = __webpack_require__(/*! ./DURATION_UNITS */ "./node_modules/sugar-date/range/var/DURATION_UNITS.js");
module.exports = '((?:\\d+)?\\s*(?:' + DURATION_UNITS + '))s?';
/***/ }),
/***/ "./node_modules/sugar-date/range/var/MULTIPLIERS.js":
/*!**********************************************************!*\
!*** ./node_modules/sugar-date/range/var/MULTIPLIERS.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var MULTIPLIERS = {
'Hours': 60 * 60 * 1000,
'Minutes': 60 * 1000,
'Seconds': 1000,
'Milliseconds': 1
};
module.exports = MULTIPLIERS;
/***/ }),
/***/ "./node_modules/sugar-date/range/weeks.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/range/weeks.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./build/buildDateRangeUnitsCall */ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js");
// This package does not export anything as it is
// simply defining "weeks" on Range.prototype.
/***/ }),
/***/ "./node_modules/sugar-date/range/years.js":
/*!************************************************!*\
!*** ./node_modules/sugar-date/range/years.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./build/buildDateRangeUnitsCall */ "./node_modules/sugar-date/range/build/buildDateRangeUnitsCall.js");
// This package does not export anything as it is
// simply defining "years" on Range.prototype.
/***/ }),
/***/ "./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
!*** (webpack)/buildin/global.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
var g;
// This works in non-strict mode
g = (function() {
return this;
})();
try {
// This works if eval is allowed (see CSP)
g = g || new Function("return this")();
} catch (e) {
// This works if the window reference is available
if (typeof window === "object") g = window;
}
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
module.exports = g;
/***/ }),
/***/ "./src/array.js":
/*!**********************!*\
!*** ./src/array.js ***!
\**********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_f6wQETgKEFjphVXDZimJpA = (Function('return this'))();
if (!__cov_f6wQETgKEFjphVXDZimJpA.__coverage__) { __cov_f6wQETgKEFjphVXDZimJpA.__coverage__ = {}; }
__cov_f6wQETgKEFjphVXDZimJpA = __cov_f6wQETgKEFjphVXDZimJpA.__coverage__;
if (!(__cov_f6wQETgKEFjphVXDZimJpA['C:\\dev\\javascript\\github\\TableFilter\\src\\array.js'])) {
__cov_f6wQETgKEFjphVXDZimJpA['C:\\dev\\javascript\\github\\TableFilter\\src\\array.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\array.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"b":{"1":[0,0]},"f":{"1":0},"fnMap":{"1":{"name":"has","line":17,"loc":{"start":{"line":14,"column":19},"end":{"line":14,"column":48}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"4":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"5":{"start":{"line":15,"column":4},"end":{"line":15,"column":4}},"6":{"start":{"line":16,"column":4},"end":{"line":20,"column":5}},"7":{"start":{"line":17,"column":8},"end":{"line":19,"column":9}},"8":{"start":{"line":18,"column":12},"end":{"line":18,"column":12}},"9":{"start":{"line":21,"column":4},"end":{"line":21,"column":4}}},"branchMap":{"1":{"line":20,"type":"if","locations":[{"start":{"line":17,"column":8},"end":{"line":17,"column":8}},{"start":{"line":17,"column":8},"end":{"line":17,"column":8}}]}},"code":["/**"," * Array utilities"," */","","import {matchCase} from './string';","","/**"," * Checks if given item can be found in the passed collection"," * @param {Array} arr collection"," * @param {Any} val item to search"," * @param {Boolean} caseSensitive respects case if true"," * @return {Boolean}"," */","export const has = (arr, val, caseSensitive) => {"," let sCase = Boolean(caseSensitive);"," for (var i = 0, l = arr.length; i < l; i++) {"," if (matchCase(arr[i].toString(), sCase) === val) {"," return true;"," }"," }"," return false;","};",""]};
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_f6wQETgKEFjphVXDZimJpA = __cov_f6wQETgKEFjphVXDZimJpA['C:\\dev\\javascript\\github\\TableFilter\\src\\array.js'];
__cov_f6wQETgKEFjphVXDZimJpA.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_f6wQETgKEFjphVXDZimJpA.s['2']++;exports.has=undefined;__cov_f6wQETgKEFjphVXDZimJpA.s['3']++;var _string=__webpack_require__(/*! ./string */ "./src/string.js");__cov_f6wQETgKEFjphVXDZimJpA.s['4']++;var has=exports.has=function has(arr,val,caseSensitive){__cov_f6wQETgKEFjphVXDZimJpA.f['1']++;__cov_f6wQETgKEFjphVXDZimJpA.s['5']++;var sCase=Boolean(caseSensitive);__cov_f6wQETgKEFjphVXDZimJpA.s['6']++;for(var i=0,l=arr.length;i<l;i++){__cov_f6wQETgKEFjphVXDZimJpA.s['7']++;if((0,_string.matchCase)(arr[i].toString(),sCase)===val){__cov_f6wQETgKEFjphVXDZimJpA.b['1'][0]++;__cov_f6wQETgKEFjphVXDZimJpA.s['8']++;return true;}else{__cov_f6wQETgKEFjphVXDZimJpA.b['1'][1]++;}}__cov_f6wQETgKEFjphVXDZimJpA.s['9']++;return false;};
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/const.js":
/*!**********************!*\
!*** ./src/const.js ***!
\**********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_pcPYs_ti997jvATUQOZFzg = (Function('return this'))();
if (!__cov_pcPYs_ti997jvATUQOZFzg.__coverage__) { __cov_pcPYs_ti997jvATUQOZFzg.__coverage__ = {}; }
__cov_pcPYs_ti997jvATUQOZFzg = __cov_pcPYs_ti997jvATUQOZFzg.__coverage__;
if (!(__cov_pcPYs_ti997jvATUQOZFzg['C:\\dev\\javascript\\github\\TableFilter\\src\\const.js'])) {
__cov_pcPYs_ti997jvATUQOZFzg['C:\\dev\\javascript\\github\\TableFilter\\src\\const.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\const.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":9,"column":7},"end":{"line":9,"column":7}},"3":{"start":{"line":14,"column":7},"end":{"line":14,"column":7}},"4":{"start":{"line":19,"column":7},"end":{"line":19,"column":7}},"5":{"start":{"line":24,"column":7},"end":{"line":24,"column":7}},"6":{"start":{"line":29,"column":7},"end":{"line":29,"column":7}},"7":{"start":{"line":39,"column":7},"end":{"line":39,"column":7}},"8":{"start":{"line":44,"column":7},"end":{"line":44,"column":7}},"9":{"start":{"line":49,"column":7},"end":{"line":49,"column":7}},"10":{"start":{"line":54,"column":7},"end":{"line":54,"column":7}},"11":{"start":{"line":59,"column":7},"end":{"line":59,"column":7}},"12":{"start":{"line":69,"column":7},"end":{"line":69,"column":7}},"13":{"start":{"line":74,"column":7},"end":{"line":74,"column":7}},"14":{"start":{"line":84,"column":7},"end":{"line":84,"column":7}},"15":{"start":{"line":90,"column":7},"end":{"line":90,"column":7}},"16":{"start":{"line":96,"column":7},"end":{"line":96,"column":7}},"17":{"start":{"line":102,"column":7},"end":{"line":102,"column":7}},"18":{"start":{"line":108,"column":7},"end":{"line":108,"column":7}},"19":{"start":{"line":118,"column":7},"end":{"line":118,"column":7}}},"branchMap":{},"code":["/**"," * Filter types"," */","","/**"," * Input filter type"," * @type {String}"," */","export const INPUT = 'input';","/**"," * Select filter type"," * @type {String}"," */","export const SELECT = 'select';","/**"," * Multiple select filter type"," * @type {String}"," */","export const MULTIPLE = 'multiple';","/**"," * Checklist filter type"," * @type {String}"," */","export const CHECKLIST = 'checklist';","/**"," * None filter type"," * @type {String}"," */","export const NONE = 'none';","","/**"," * Key codes"," */","","/**"," * Enter key code"," * @type {Number}"," */","export const ENTER_KEY = 13;","/**"," * Tab key code"," * @type {Number}"," */","export const TAB_KEY = 9;","/**"," * Escape key code"," * @type {Number}"," */","export const ESC_KEY = 27;","/**"," * Up arrow key code"," * @type {Number}"," */","export const UP_ARROW_KEY = 38;","/**"," * Down arrow key code"," * @type {Number}"," */","export const DOWN_ARROW_KEY = 40;","","/**"," * HTML tags"," */","","/**"," * Header cell tag"," * @type {String}"," */","export const HEADER_TAG = 'TH';","/**"," * Cell tag"," * @type {String}"," */","export const CELL_TAG = 'TD';","","/**"," * Data types"," */","","/**"," * String"," * @type {String}"," */","export const STRING = 'string';","","/**"," * Number"," * @type {String}"," */","export const NUMBER = 'number';","","/**"," * Formatted number"," * @type {String}"," */","export const FORMATTED_NUMBER = 'formatted-number';","","/**"," * Date"," * @type {String}"," */","export const DATE = 'date';","","/**"," * IP address"," * @type {String}"," */","export const IP_ADDRESS = 'ipaddress';","","/**"," * Default values"," */","","/**"," * Auto filter delay in milliseconds"," * @type {Number}"," */","export const AUTO_FILTER_DELAY = 750;",""]};
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_pcPYs_ti997jvATUQOZFzg = __cov_pcPYs_ti997jvATUQOZFzg['C:\\dev\\javascript\\github\\TableFilter\\src\\const.js'];
__cov_pcPYs_ti997jvATUQOZFzg.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_pcPYs_ti997jvATUQOZFzg.s['2']++;var INPUT=exports.INPUT='input';__cov_pcPYs_ti997jvATUQOZFzg.s['3']++;var SELECT=exports.SELECT='select';__cov_pcPYs_ti997jvATUQOZFzg.s['4']++;var MULTIPLE=exports.MULTIPLE='multiple';__cov_pcPYs_ti997jvATUQOZFzg.s['5']++;var CHECKLIST=exports.CHECKLIST='checklist';__cov_pcPYs_ti997jvATUQOZFzg.s['6']++;var NONE=exports.NONE='none';__cov_pcPYs_ti997jvATUQOZFzg.s['7']++;var ENTER_KEY=exports.ENTER_KEY=13;__cov_pcPYs_ti997jvATUQOZFzg.s['8']++;var TAB_KEY=exports.TAB_KEY=9;__cov_pcPYs_ti997jvATUQOZFzg.s['9']++;var ESC_KEY=exports.ESC_KEY=27;__cov_pcPYs_ti997jvATUQOZFzg.s['10']++;var UP_ARROW_KEY=exports.UP_ARROW_KEY=38;__cov_pcPYs_ti997jvATUQOZFzg.s['11']++;var DOWN_ARROW_KEY=exports.DOWN_ARROW_KEY=40;__cov_pcPYs_ti997jvATUQOZFzg.s['12']++;var HEADER_TAG=exports.HEADER_TAG='TH';__cov_pcPYs_ti997jvATUQOZFzg.s['13']++;var CELL_TAG=exports.CELL_TAG='TD';__cov_pcPYs_ti997jvATUQOZFzg.s['14']++;var STRING=exports.STRING='string';__cov_pcPYs_ti997jvATUQOZFzg.s['15']++;var NUMBER=exports.NUMBER='number';__cov_pcPYs_ti997jvATUQOZFzg.s['16']++;var FORMATTED_NUMBER=exports.FORMATTED_NUMBER='formatted-number';__cov_pcPYs_ti997jvATUQOZFzg.s['17']++;var DATE=exports.DATE='date';__cov_pcPYs_ti997jvATUQOZFzg.s['18']++;var IP_ADDRESS=exports.IP_ADDRESS='ipaddress';__cov_pcPYs_ti997jvATUQOZFzg.s['19']++;var AUTO_FILTER_DELAY=exports.AUTO_FILTER_DELAY=750;
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/cookie.js":
/*!***********************!*\
!*** ./src/cookie.js ***!
\***********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_rfL0ZMqzEvtlNtmIIERxPQ = (Function('return this'))();
if (!__cov_rfL0ZMqzEvtlNtmIIERxPQ.__coverage__) { __cov_rfL0ZMqzEvtlNtmIIERxPQ.__coverage__ = {}; }
__cov_rfL0ZMqzEvtlNtmIIERxPQ = __cov_rfL0ZMqzEvtlNtmIIERxPQ.__coverage__;
if (!(__cov_rfL0ZMqzEvtlNtmIIERxPQ['C:\\dev\\javascript\\github\\TableFilter\\src\\cookie.js'])) {
__cov_rfL0ZMqzEvtlNtmIIERxPQ['C:\\dev\\javascript\\github\\TableFilter\\src\\cookie.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\cookie.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"f":{"1":0,"2":0,"3":0},"fnMap":{"1":{"name":"write","line":23,"loc":{"start":{"line":9,"column":15},"end":{"line":17,"column":30}}},"2":{"name":"read","line":38,"loc":{"start":{"line":9,"column":15},"end":{"line":31,"column":15}}},"3":{"name":"remove","line":61,"loc":{"start":{"line":9,"column":15},"end":{"line":53,"column":17}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"3":{"start":{"line":7,"column":0},"end":{"line":7,"column":0}},"4":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"5":{"start":{"line":18,"column":8},"end":{"line":18,"column":8}},"6":{"start":{"line":19,"column":8},"end":{"line":22,"column":9}},"7":{"start":{"line":20,"column":12},"end":{"line":20,"column":12}},"8":{"start":{"line":21,"column":12},"end":{"line":21,"column":12}},"9":{"start":{"line":23,"column":8},"end":{"line":23,"column":8}},"10":{"start":{"line":32,"column":8},"end":{"line":32,"column":8}},"11":{"start":{"line":34,"column":8},"end":{"line":45,"column":9}},"12":{"start":{"line":35,"column":12},"end":{"line":35,"column":12}},"13":{"start":{"line":37,"column":12},"end":{"line":44,"column":13}},"14":{"start":{"line":38,"column":16},"end":{"line":38,"column":16}},"15":{"start":{"line":39,"column":16},"end":{"line":39,"column":16}},"16":{"start":{"line":40,"column":16},"end":{"line":42,"column":17}},"17":{"start":{"line":41,"column":20},"end":{"line":41,"column":20}},"18":{"start":{"line":43,"column":16},"end":{"line":43,"column":16}},"19":{"start":{"line":46,"column":8},"end":{"line":46,"column":8}},"20":{"start":{"line":54,"column":8},"end":{"line":54,"column":8}}},"branchMap":{"1":{"line":25,"type":"if","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":8}},{"start":{"line":19,"column":8},"end":{"line":19,"column":8}}]},"2":{"line":41,"type":"if","locations":[{"start":{"line":34,"column":8},"end":{"line":34,"column":8}},{"start":{"line":34,"column":8},"end":{"line":34,"column":8}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":37,"column":12},"end":{"line":37,"column":12}},{"start":{"line":37,"column":12},"end":{"line":37,"column":12}}]},"4":{"line":47,"type":"if","locations":[{"start":{"line":40,"column":16},"end":{"line":40,"column":16}},{"start":{"line":40,"column":16},"end":{"line":40,"column":16}}]}},"code":["import {root} from './root';","","/**"," * Cookie utilities"," */","","const doc = root.document;","","export default {",""," /**"," * Write a cookie"," * @param {String} name Name of the cookie"," * @param {String} value Value of the cookie"," * @param {Number} hours Cookie duration in hours"," */"," write(name, value, hours) {"," let expire = '';"," if (hours) {"," expire = new Date((new Date()).getTime() + hours * 3600000);"," expire = '; expires=' + expire.toGMTString();"," }"," doc.cookie = name + '=' + escape(value) + expire;"," },",""," /**"," * Read a cookie"," * @param {String} name Name of the cookie"," * @returns {String} Value of the cookie"," */"," read(name) {"," let cookieValue = '',"," search = name + '=';"," if (doc.cookie.length > 0) {"," let cookie = doc.cookie,"," offset = cookie.indexOf(search);"," if (offset !== -1) {"," offset += search.length;"," let end = cookie.indexOf(';', offset);"," if (end === -1) {"," end = cookie.length;"," }"," cookieValue = unescape(cookie.substring(offset, end));"," }"," }"," return cookieVa
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_rfL0ZMqzEvtlNtmIIERxPQ = __cov_rfL0ZMqzEvtlNtmIIERxPQ['C:\\dev\\javascript\\github\\TableFilter\\src\\cookie.js'];
__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['2']++;var _root=__webpack_require__(/*! ./root */ "./src/root.js");__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['3']++;var doc=_root.root.document;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['4']++;exports.default={write:function write(name,value,hours){__cov_rfL0ZMqzEvtlNtmIIERxPQ.f['1']++;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['5']++;var expire='';__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['6']++;if(hours){__cov_rfL0ZMqzEvtlNtmIIERxPQ.b['1'][0]++;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['7']++;expire=new Date(new Date().getTime()+hours*3600000);__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['8']++;expire='; expires='+expire.toGMTString();}else{__cov_rfL0ZMqzEvtlNtmIIERxPQ.b['1'][1]++;}__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['9']++;doc.cookie=name+'='+escape(value)+expire;},read:function read(name){__cov_rfL0ZMqzEvtlNtmIIERxPQ.f['2']++;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['10']++;var cookieValue='',search=name+'=';__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['11']++;if(doc.cookie.length>0){__cov_rfL0ZMqzEvtlNtmIIERxPQ.b['2'][0]++;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['12']++;var cookie=doc.cookie,offset=cookie.indexOf(search);__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['13']++;if(offset!==-1){__cov_rfL0ZMqzEvtlNtmIIERxPQ.b['3'][0]++;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['14']++;offset+=search.length;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['15']++;var end=cookie.indexOf(';',offset);__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['16']++;if(end===-1){__cov_rfL0ZMqzEvtlNtmIIERxPQ.b['4'][0]++;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['17']++;end=cookie.length;}else{__cov_rfL0ZMqzEvtlNtmIIERxPQ.b['4'][1]++;}__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['18']++;cookieValue=unescape(cookie.substring(offset,end));}else{__cov_rfL0ZMqzEvtlNtmIIERxPQ.b['3'][1]++;}}else{__cov_rfL0ZMqzEvtlNtmIIERxPQ.b['2'][1]++;}__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['19']++;return cookieValue;},remove:function remove(name){__cov_rfL0ZMqzEvtlNtmIIERxPQ.f['3']++;__cov_rfL0ZMqzEvtlNtmIIERxPQ.s['20']++;this.write(name,'',-1);}};
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/dom.js":
/*!********************!*\
!*** ./src/dom.js ***!
\********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_qIj_wcR8xUa7Y9LcnxxozQ = (Function('return this'))();
if (!__cov_qIj_wcR8xUa7Y9LcnxxozQ.__coverage__) { __cov_qIj_wcR8xUa7Y9LcnxxozQ.__coverage__ = {}; }
__cov_qIj_wcR8xUa7Y9LcnxxozQ = __cov_qIj_wcR8xUa7Y9LcnxxozQ.__coverage__;
if (!(__cov_qIj_wcR8xUa7Y9LcnxxozQ['C:\\dev\\javascript\\github\\TableFilter\\src\\dom.js'])) {
__cov_qIj_wcR8xUa7Y9LcnxxozQ['C:\\dev\\javascript\\github\\TableFilter\\src\\dom.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\dom.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":1,"77":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"fnMap":{"1":{"name":"getText","line":25,"loc":{"start":{"line":16,"column":23},"end":{"line":16,"column":33}}},"2":{"name":"getFirstTextNode","line":37,"loc":{"start":{"line":28,"column":32},"end":{"line":28,"column":42}}},"3":{"name":"createElm","line":53,"loc":{"start":{"line":44,"column":25},"end":{"line":44,"column":38}}},"4":{"name":"removeElm","line":79,"loc":{"start":{"line":66,"column":25},"end":{"line":66,"column":25}}},"5":{"name":"createText","line":88,"loc":{"start":{"line":73,"column":26},"end":{"line":73,"column":26}}},"6":{"name":"hasClass","line":98,"loc":{"start":{"line":81,"column":24},"end":{"line":81,"column":38}}},"7":{"name":"addClass","line":114,"loc":{"start":{"line":97,"column":24},"end":{"line":97,"column":38}}},"8":{"name":"removeClass","line":136,"loc":{"start":{"line":120,"column":27},"end":{"line":120,"column":41}}},"9":{"name":"createOpt","line":156,"loc":{"start":{"line":140,"column":25},"end":{"line":140,"column":49}}},"10":{"name":"createCheckItem","line":171,"loc":{"start":{"line":157,"column":31},"end":{"line":157,"column":76}}},"11":{"name":"elm","line":190,"loc":{"start":{"line":180,"column":19},"end":{"line":180,"column":19}}},"12":{"name":"tag","line":199,"loc":{"start":{"line":187,"column":19},"end":{"line":187,"column":19}}},"13":{"name":"supportsClassList","line":204,"loc":{"start":{"line":190,"column":0},"end":{"line":190,"column":29}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":9,"column":0},"end":{"line":9,"column":0}},"7":{"start":{"line":16,"column":7},"end":{"line":16,"column":7}},"8":{"start":{"line":17,"column":4},"end":{"line":19,"column":5}},"9":{"start":{"line":18,"column":8},"end":{"line":18,"column":8}},"10":{"start":{"line":20,"column":4},"end":{"line":20,"column":4}},"11":{"start":{"line":28,"column":7},"end":{"line":28,"column":7}},"12":{"start":{"line":29,"column":4},"end":{"line":34,"column":5}},"13":{"start":{"line":30,"column":8},"end":{"line":30,"column":8}},"14":{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},"15":{"start":{"line":32,"column":12},"end":{"line":32,"column":12}},"16":{"start":{"line":44,"column":7},"end":{"line":44,"column":7}},"17":{"start":{"line":44,"column":38},"end":{"line":44,"column":38}},"18":{"start":{"line":44,"column":29},"end":{"line":44,"column":38}},"19":{"start":{"line":45,"column":4},"end":{"line":45,"column":4}},"20":{"start":{"line":46,"column":4},"end":{"line":48,"column":5}},"21":{"start":{"line":47,"column":8},"end":{"line":47,"column":8}},"22":{"start":{"line":50,"column":4},"end":{"line":50,"column":4}},"23":{"start":{"line":51,"column":4},"end":{"line":57,"column":5}},"24":{"start":{"line":52,"column":8},"end":{"line":52,"column":8}},"25":{"start":{"line":54,"column":8},"end":{"line":56,"column":9}},"26":{"start":{"line":55,"c
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_qIj_wcR8xUa7Y9LcnxxozQ = __cov_qIj_wcR8xUa7Y9LcnxxozQ['C:\\dev\\javascript\\github\\TableFilter\\src\\dom.js'];
__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['2']++;exports.tag=exports.elm=exports.createCheckItem=exports.createOpt=exports.removeClass=exports.addClass=exports.hasClass=exports.createText=exports.removeElm=exports.createElm=exports.getFirstTextNode=exports.getText=undefined;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['3']++;var _root=__webpack_require__(/*! ./root */ "./src/root.js");__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['4']++;var _types=__webpack_require__(/*! ./types */ "./src/types.js");__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['5']++;var _string=__webpack_require__(/*! ./string */ "./src/string.js");__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['6']++;var doc=_root.root.document;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['7']++;var getText=exports.getText=function getText(node){__cov_qIj_wcR8xUa7Y9LcnxxozQ.f['1']++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['8']++;if((0,_types.isUndef)(node.textContent)){__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['1'][0]++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['9']++;return(0,_string.trim)(node.innerText);}else{__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['1'][1]++;}__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['10']++;return(0,_string.trim)(node.textContent);};__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['11']++;var getFirstTextNode=exports.getFirstTextNode=function getFirstTextNode(node){__cov_qIj_wcR8xUa7Y9LcnxxozQ.f['2']++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['12']++;for(var i=0;i<node.childNodes.length;i++){__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['13']++;var n=node.childNodes[i];__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['14']++;if(n.nodeType===3){__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['2'][0]++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['15']++;return n.data;}else{__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['2'][1]++;}}};__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['16']++;var createElm=exports.createElm=function createElm(){__cov_qIj_wcR8xUa7Y9LcnxxozQ.f['3']++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['17']++;for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['18']++;args[_key]=arguments[_key];}__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['19']++;var tag=args[0];__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['20']++;if(!(0,_types.isString)(tag)){__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['3'][0]++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['21']++;return null;}else{__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['3'][1]++;}__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['22']++;var el=doc.createElement(tag);__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['23']++;for(var i=0;i<args.length;i++){__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['24']++;var arg=args[i];__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['25']++;if((__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['5'][0]++,(0,_types.isArray)(arg))&&(__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['5'][1]++,arg.length===2)){__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['4'][0]++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['26']++;el.setAttribute(arg[0],arg[1]);}else{__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['4'][1]++;}}__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['27']++;return el;};__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['28']++;var removeElm=exports.removeElm=function removeElm(node){__cov_qIj_wcR8xUa7Y9LcnxxozQ.f['4']++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['29']++;return node.parentNode.removeChild(node);};__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['30']++;var createText=exports.createText=function createText(txt){__cov_qIj_wcR8xUa7Y9LcnxxozQ.f['5']++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['31']++;return doc.createTextNode(txt);};__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['32']++;var hasClass=exports.hasClass=function hasClass(ele,cls){__cov_qIj_wcR8xUa7Y9LcnxxozQ.f['6']++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['33']++;if((0,_types.isUndef)(ele)){__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['6'][0]++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['34']++;return false;}else{__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['6'][1]++;}__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['35']++;if(supportsClassList()){__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['7'][0]++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['36']++;return ele.classList.contains(cls);}else{__cov_qIj_wcR8xUa7Y9LcnxxozQ.b['7'][1]++;}__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['37']++;return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));};__cov_qIj_wcR8xUa7Y9LcnxxozQ.s['38']++;var addClass=exports.addClass=function addClass(ele,cls){__cov_qIj_wcR8xUa7Y9LcnxxozQ.f['7']++;__cov_qIj_wcR8xUa7Y9LcnxxozQ.s
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/emitter.js":
/*!************************!*\
!*** ./src/emitter.js ***!
\************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_GcfEeLRjuavVEDaapk2ORw = (Function('return this'))();
if (!__cov_GcfEeLRjuavVEDaapk2ORw.__coverage__) { __cov_GcfEeLRjuavVEDaapk2ORw.__coverage__ = {}; }
__cov_GcfEeLRjuavVEDaapk2ORw = __cov_GcfEeLRjuavVEDaapk2ORw.__coverage__;
if (!(__cov_GcfEeLRjuavVEDaapk2ORw['C:\\dev\\javascript\\github\\TableFilter\\src\\emitter.js'])) {
__cov_GcfEeLRjuavVEDaapk2ORw['C:\\dev\\javascript\\github\\TableFilter\\src\\emitter.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\emitter.js","s":{"1":0,"2":1,"3":0,"4":0,"5":0,"6":1,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"fnMap":{"1":{"name":"_classCallCheck","line":7,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"(anonymous_2)","line":12,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"Emitter","line":16,"loc":{"start":{"line":8,"column":4},"end":{"line":8,"column":18}}},"4":{"name":"on","line":33,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"(anonymous_5)","line":36,"loc":{"start":{"line":22,"column":21},"end":{"line":22,"column":30}}},"6":{"name":"off","line":49,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":52,"loc":{"start":{"line":34,"column":21},"end":{"line":34,"column":30}}},"8":{"name":"emit","line":66,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"4":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"5":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"6":{"start":{"line":8,"column":4},"end":{"line":14,"column":5}},"7":{"start":{"line":8,"column":18},"end":{"line":8,"column":18}},"8":{"start":{"line":13,"column":8},"end":{"line":13,"column":8}},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":21,"column":17},"end":{"line":21,"column":17}},"11":{"start":{"line":22,"column":8},"end":{"line":22,"column":8}},"12":{"start":{"line":23,"column":12},"end":{"line":23,"column":12}},"13":{"start":{"line":24,"column":12},"end":{"line":24,"column":12}},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":33,"column":18},"end":{"line":33,"column":18}},"16":{"start":{"line":34,"column":8},"end":{"line":34,"column":8}},"17":{"start":{"line":35,"column":12},"end":{"line":37,"column":13}},"18":{"start":{"line":36,"column":16},"end":{"line":36,"column":16}},"19":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"20":{"start":{"line":47,"column":8},"end":{"line":51,"column":9}},"21":{"start":{"line":48,"column":12},"end":{"line":50,"column":13}},"22":{"start":{"line":49,"column":16},"end":{"line":49,"column":16}},"23":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}},"branchMap":{"1":{"line":7,"type":"if","locations":[{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}]},"2":{"line":37,"type":"binary-expr","locations":[{"start":{"line":23,"column":31},"end":{"line":23,"column":31}},{"start":{"line":23,"column":51},"end":{"line":23,"column":12}}]},"3":{"line":53,"type":"if","locations":[{"start":{"line":35,"column":12},"end":{"line":35,"column":12}},{"start":{"line":35,"column":12},"end":{"line":35,"column":12}}]},"4":{"line":67,"type":"if","locations":[{"start":{"line":47,"column":8},"end":{"line":47,"column":8}},{"start":{"line":47,"column":8},"end":{"line":47,"column":8}}]}},"code":["/**"," * Event emitter class"," */","export class Emitter {"," /**"," * Creates an instance of Emitter."," */"," constructor() {"," /**"," * Events object"," * @type {Object}"," */"," this.events = {};"," }",""," /**"," * Subscribe to an event"," * @param {Array} evts Collection of e
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_GcfEeLRjuavVEDaapk2ORw = __cov_GcfEeLRjuavVEDaapk2ORw['C:\\dev\\javascript\\github\\TableFilter\\src\\emitter.js'];
__cov_GcfEeLRjuavVEDaapk2ORw.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});function _classCallCheck(instance,Constructor){__cov_GcfEeLRjuavVEDaapk2ORw.f['1']++;__cov_GcfEeLRjuavVEDaapk2ORw.s['3']++;if(!(instance instanceof Constructor)){__cov_GcfEeLRjuavVEDaapk2ORw.b['1'][0]++;__cov_GcfEeLRjuavVEDaapk2ORw.s['4']++;throw new TypeError('Cannot call a class as a function');}else{__cov_GcfEeLRjuavVEDaapk2ORw.b['1'][1]++;}}__cov_GcfEeLRjuavVEDaapk2ORw.s['5']++;var Emitter=exports.Emitter=function(){__cov_GcfEeLRjuavVEDaapk2ORw.f['2']++;function Emitter(){__cov_GcfEeLRjuavVEDaapk2ORw.f['3']++;__cov_GcfEeLRjuavVEDaapk2ORw.s['7']++;_classCallCheck(this,Emitter);__cov_GcfEeLRjuavVEDaapk2ORw.s['8']++;this.events={};}__cov_GcfEeLRjuavVEDaapk2ORw.s['9']++;Emitter.prototype.on=function on(evts,fn){__cov_GcfEeLRjuavVEDaapk2ORw.f['4']++;__cov_GcfEeLRjuavVEDaapk2ORw.s['10']++;var _this=this;__cov_GcfEeLRjuavVEDaapk2ORw.s['11']++;evts.forEach(function(evt){__cov_GcfEeLRjuavVEDaapk2ORw.f['5']++;__cov_GcfEeLRjuavVEDaapk2ORw.s['12']++;_this.events[evt]=(__cov_GcfEeLRjuavVEDaapk2ORw.b['2'][0]++,_this.events[evt])||(__cov_GcfEeLRjuavVEDaapk2ORw.b['2'][1]++,[]);__cov_GcfEeLRjuavVEDaapk2ORw.s['13']++;_this.events[evt].push(fn);});};__cov_GcfEeLRjuavVEDaapk2ORw.s['14']++;Emitter.prototype.off=function off(evts,fn){__cov_GcfEeLRjuavVEDaapk2ORw.f['6']++;__cov_GcfEeLRjuavVEDaapk2ORw.s['15']++;var _this2=this;__cov_GcfEeLRjuavVEDaapk2ORw.s['16']++;evts.forEach(function(evt){__cov_GcfEeLRjuavVEDaapk2ORw.f['7']++;__cov_GcfEeLRjuavVEDaapk2ORw.s['17']++;if(evt in _this2.events){__cov_GcfEeLRjuavVEDaapk2ORw.b['3'][0]++;__cov_GcfEeLRjuavVEDaapk2ORw.s['18']++;_this2.events[evt].splice(_this2.events[evt].indexOf(fn),1);}else{__cov_GcfEeLRjuavVEDaapk2ORw.b['3'][1]++;}});};__cov_GcfEeLRjuavVEDaapk2ORw.s['19']++;Emitter.prototype.emit=function emit(evt){__cov_GcfEeLRjuavVEDaapk2ORw.f['8']++;__cov_GcfEeLRjuavVEDaapk2ORw.s['20']++;if(evt in this.events){__cov_GcfEeLRjuavVEDaapk2ORw.b['4'][0]++;__cov_GcfEeLRjuavVEDaapk2ORw.s['21']++;for(var i=0;i<this.events[evt].length;i++){__cov_GcfEeLRjuavVEDaapk2ORw.s['22']++;this.events[evt][i].apply(this,[].slice.call(arguments,1));}}else{__cov_GcfEeLRjuavVEDaapk2ORw.b['4'][1]++;}};__cov_GcfEeLRjuavVEDaapk2ORw.s['23']++;return Emitter;}();
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/event.js":
/*!**********************!*\
!*** ./src/event.js ***!
\**********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_RPBXJ0QGWJbEEStFNqOx8w = (Function('return this'))();
if (!__cov_RPBXJ0QGWJbEEStFNqOx8w.__coverage__) { __cov_RPBXJ0QGWJbEEStFNqOx8w.__coverage__ = {}; }
__cov_RPBXJ0QGWJbEEStFNqOx8w = __cov_RPBXJ0QGWJbEEStFNqOx8w.__coverage__;
if (!(__cov_RPBXJ0QGWJbEEStFNqOx8w['C:\\dev\\javascript\\github\\TableFilter\\src\\event.js'])) {
__cov_RPBXJ0QGWJbEEStFNqOx8w['C:\\dev\\javascript\\github\\TableFilter\\src\\event.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\event.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":1,"39":0,"40":0,"41":0,"42":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"fnMap":{"1":{"name":"addEvt","line":24,"loc":{"start":{"line":16,"column":22},"end":{"line":16,"column":52}}},"2":{"name":"removeEvt","line":43,"loc":{"start":{"line":36,"column":25},"end":{"line":36,"column":55}}},"3":{"name":"stopEvt","line":58,"loc":{"start":{"line":51,"column":23},"end":{"line":51,"column":32}}},"4":{"name":"cancelEvt","line":75,"loc":{"start":{"line":68,"column":25},"end":{"line":68,"column":34}}},"5":{"name":"targetEvt","line":92,"loc":{"start":{"line":85,"column":25},"end":{"line":85,"column":34}}},"6":{"name":"keyCode","line":105,"loc":{"start":{"line":98,"column":23},"end":{"line":98,"column":32}}},"7":{"name":"isKeyPressed","line":115,"loc":{"start":{"line":109,"column":28},"end":{"line":109,"column":52}}},"8":{"name":"bound","line":126,"loc":{"start":{"line":118,"column":7},"end":{"line":118,"column":33}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"4":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"5":{"start":{"line":16,"column":7},"end":{"line":16,"column":7}},"6":{"start":{"line":17,"column":4},"end":{"line":24,"column":5}},"7":{"start":{"line":18,"column":8},"end":{"line":18,"column":8}},"8":{"start":{"line":20,"column":9},"end":{"line":24,"column":5}},"9":{"start":{"line":21,"column":8},"end":{"line":21,"column":8}},"10":{"start":{"line":23,"column":8},"end":{"line":23,"column":8}},"11":{"start":{"line":36,"column":7},"end":{"line":36,"column":7}},"12":{"start":{"line":37,"column":4},"end":{"line":43,"column":5}},"13":{"start":{"line":38,"column":8},"end":{"line":38,"column":8}},"14":{"start":{"line":39,"column":11},"end":{"line":43,"column":5}},"15":{"start":{"line":40,"column":8},"end":{"line":40,"column":8}},"16":{"start":{"line":42,"column":8},"end":{"line":42,"column":8}},"17":{"start":{"line":51,"column":7},"end":{"line":51,"column":7}},"18":{"start":{"line":52,"column":4},"end":{"line":54,"column":5}},"19":{"start":{"line":53,"column":8},"end":{"line":53,"column":8}},"20":{"start":{"line":55,"column":4},"end":{"line":59,"column":5}},"21":{"start":{"line":56,"column":8},"end":{"line":56,"column":8}},"22":{"start":{"line":58,"column":8},"end":{"line":58,"column":8}},"23":{"start":{"line":68,"column":7},"end":{"line":68,"column":7}},"24":{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},"25":{"start":{"line":70,"column":8},"end":{"line":70,"column":8}},"26":{"start":{"line":72,"column":4},"end":{"line":76,"column":5}},"27":{"start":{"line":73,"column":8},"end":{"line":73,"column":8}},"28":{"start":{"line":75,"column":8},"end":{"line":75,"column":8}},"29":{"start":{"line":85,"column":7},"end":{"line":85,"column":7}},"30":{"start":{"line":86,"column":4},"end":{"line":88,"column":5}},"31":{"start":{"line":87,"column":8},"end":{"line":87,"column":8}},"32":{"start":{"line":89,"column":4},"end":{"line":89,"column":4}},"33":{"start":{"line":98,"column":7},"end":{"line":98,"column":7}},"34":{"start":{"line":99,"column":4},"end":{"line":99,"column":4}},"35":{"start":{"line":109,"column":7},"end":{"line":109,"column":7}},"36":{"start":{"line":109,"column":52},"end":{"line":109,"column":52}},"37":{"start":{"line":110,"column":4},"end":{"line":110,"column":4}},"38":{"start":{"line":118,"column":7},"end":{"l
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_RPBXJ0QGWJbEEStFNqOx8w = __cov_RPBXJ0QGWJbEEStFNqOx8w['C:\\dev\\javascript\\github\\TableFilter\\src\\event.js'];
__cov_RPBXJ0QGWJbEEStFNqOx8w.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_RPBXJ0QGWJbEEStFNqOx8w.s['2']++;exports.isKeyPressed=exports.keyCode=exports.targetEvt=exports.cancelEvt=exports.stopEvt=exports.removeEvt=exports.addEvt=undefined;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['3']++;exports.bound=bound;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['4']++;var _root=__webpack_require__(/*! ./root */ "./src/root.js");__cov_RPBXJ0QGWJbEEStFNqOx8w.s['5']++;var addEvt=exports.addEvt=function addEvt(obj,type,func,capture){__cov_RPBXJ0QGWJbEEStFNqOx8w.f['1']++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['6']++;if(obj.addEventListener){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['1'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['7']++;obj.addEventListener(type,func,capture);}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['1'][1]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['8']++;if(obj.attachEvent){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['2'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['9']++;obj.attachEvent('on'+type,func);}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['2'][1]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['10']++;obj['on'+type]=func;}}};__cov_RPBXJ0QGWJbEEStFNqOx8w.s['11']++;var removeEvt=exports.removeEvt=function removeEvt(obj,type,func,capture){__cov_RPBXJ0QGWJbEEStFNqOx8w.f['2']++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['12']++;if(obj.removeEventListener){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['3'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['13']++;obj.removeEventListener(type,func,capture);}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['3'][1]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['14']++;if(obj.detachEvent){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['4'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['15']++;obj.detachEvent('on'+type,func);}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['4'][1]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['16']++;obj['on'+type]=null;}}};__cov_RPBXJ0QGWJbEEStFNqOx8w.s['17']++;var stopEvt=exports.stopEvt=function stopEvt(evt){__cov_RPBXJ0QGWJbEEStFNqOx8w.f['3']++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['18']++;if(!evt){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['5'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['19']++;evt=_root.root.event;}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['5'][1]++;}__cov_RPBXJ0QGWJbEEStFNqOx8w.s['20']++;if(evt.stopPropagation){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['6'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['21']++;evt.stopPropagation();}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['6'][1]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['22']++;evt.cancelBubble=true;}};__cov_RPBXJ0QGWJbEEStFNqOx8w.s['23']++;var cancelEvt=exports.cancelEvt=function cancelEvt(evt){__cov_RPBXJ0QGWJbEEStFNqOx8w.f['4']++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['24']++;if(!evt){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['7'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['25']++;evt=_root.root.event;}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['7'][1]++;}__cov_RPBXJ0QGWJbEEStFNqOx8w.s['26']++;if(evt.preventDefault){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['8'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['27']++;evt.preventDefault();}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['8'][1]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['28']++;evt.returnValue=false;}};__cov_RPBXJ0QGWJbEEStFNqOx8w.s['29']++;var targetEvt=exports.targetEvt=function targetEvt(evt){__cov_RPBXJ0QGWJbEEStFNqOx8w.f['5']++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['30']++;if(!evt){__cov_RPBXJ0QGWJbEEStFNqOx8w.b['9'][0]++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['31']++;evt=_root.root.event;}else{__cov_RPBXJ0QGWJbEEStFNqOx8w.b['9'][1]++;}__cov_RPBXJ0QGWJbEEStFNqOx8w.s['32']++;return(__cov_RPBXJ0QGWJbEEStFNqOx8w.b['10'][0]++,evt.target)||(__cov_RPBXJ0QGWJbEEStFNqOx8w.b['10'][1]++,evt.srcElement);};__cov_RPBXJ0QGWJbEEStFNqOx8w.s['33']++;var keyCode=exports.keyCode=function keyCode(evt){__cov_RPBXJ0QGWJbEEStFNqOx8w.f['6']++;__cov_RPBXJ0QGWJbEEStFNqOx8w.s['34']++;return evt.charCode?(__cov_RPBXJ0QGWJbEEStFNqOx8w.b['11'][0]++,evt.charCode):(__cov_RPBXJ0QGWJbEEStFNqOx8w.b['11'][1]++,evt.keyCode?(__cov_RPBXJ0QGWJbEEStFNqOx8w.b['12'][0]++,evt.keyCode):(__cov_RPBXJ0QGWJbEEStFNqOx8w.b['12'][1]++,evt.which?(__cov_RPBXJ0QGWJbEEStFNqOx8w.b['13'][0]++,evt.which):(__cov_RPBXJ0QGWJbEEStFNqOx8w.b['13'][1]++,0)));};__cov_RPBXJ0QGWJbEEStFNqOx8w.s['35']++;var isKeyPressed=exports.isKeyPressed=function isKeyPressed(evt){__cov_RPBXJ0QGWJbEEStFNqOx8w.f['7']++;__cov_
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/feature.js":
/*!************************!*\
!*** ./src/feature.js ***!
\************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_SjKKw4N_6cGXga1yVUBIEA = (Function('return this'))();
if (!__cov_SjKKw4N_6cGXga1yVUBIEA.__coverage__) { __cov_SjKKw4N_6cGXga1yVUBIEA.__coverage__ = {}; }
__cov_SjKKw4N_6cGXga1yVUBIEA = __cov_SjKKw4N_6cGXga1yVUBIEA.__coverage__;
if (!(__cov_SjKKw4N_6cGXga1yVUBIEA['C:\\dev\\javascript\\github\\TableFilter\\src\\feature.js'])) {
__cov_SjKKw4N_6cGXga1yVUBIEA['C:\\dev\\javascript\\github\\TableFilter\\src\\feature.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\feature.js","s":{"1":0,"2":0,"3":0,"4":1,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"fnMap":{"1":{"name":"_classCallCheck","line":10,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"Feature","line":24,"loc":{"start":{"line":14,"column":4},"end":{"line":14,"column":25}}},"4":{"name":"(anonymous_4)","line":69,"loc":{"start":{"line":56,"column":37},"end":{"line":56,"column":37}}},"5":{"name":"init","line":79,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"6":{"name":"reset","line":88,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"destroy","line":98,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"enable","line":107,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"disable","line":116,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"isEnabled","line":126,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"5":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"6":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"7":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":14,"column":4},"end":{"line":57,"column":5}},"10":{"start":{"line":14,"column":25},"end":{"line":14,"column":25}},"11":{"start":{"line":14,"column":25},"end":{"line":14,"column":25}},"12":{"start":{"line":15,"column":8},"end":{"line":15,"column":8}},"13":{"start":{"line":21,"column":8},"end":{"line":21,"column":8}},"14":{"start":{"line":28,"column":8},"end":{"line":28,"column":8}},"15":{"start":{"line":35,"column":8},"end":{"line":35,"column":8}},"16":{"start":{"line":41,"column":8},"end":{"line":41,"column":8}},"17":{"start":{"line":47,"column":8},"end":{"line":47,"column":8}},"18":{"start":{"line":53,"column":8},"end":{"line":53,"column":8}},"19":{"start":{"line":56,"column":8},"end":{"line":56,"column":8}},"20":{"start":{"line":56,"column":37},"end":{"line":56,"column":37}},"21":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"22":{"start":{"line":63,"column":8},"end":{"line":63,"column":8}},"23":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"24":{"start":{"line":70,"column":8},"end":{"line":70,"column":8}},"25":{"start":{"line":71,"column":8},"end":{"line":71,"column":8}},"26":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"27":{"start":{"line":78,"column":8},"end":{"line":78,"column":8}},"28":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"29":{"start":{"line":85,"column":8},"end":{"line":85,"column":8}},"30":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"31":{"start":{"line":92,"column":8},"end":{"line":92,"column":8}},"32":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"33":{"start":{"line":100,"column":8},"end":{"line":100,"column":8}},"34":{"start":{"line":0,"column
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_SjKKw4N_6cGXga1yVUBIEA = __cov_SjKKw4N_6cGXga1yVUBIEA['C:\\dev\\javascript\\github\\TableFilter\\src\\feature.js'];
__cov_SjKKw4N_6cGXga1yVUBIEA.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_SjKKw4N_6cGXga1yVUBIEA.s['2']++;exports.Feature=undefined;__cov_SjKKw4N_6cGXga1yVUBIEA.s['3']++;var _string=__webpack_require__(/*! ./string */ "./src/string.js");function _classCallCheck(instance,Constructor){__cov_SjKKw4N_6cGXga1yVUBIEA.f['1']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['5']++;if(!(instance instanceof Constructor)){__cov_SjKKw4N_6cGXga1yVUBIEA.b['1'][0]++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['6']++;throw new TypeError('Cannot call a class as a function');}else{__cov_SjKKw4N_6cGXga1yVUBIEA.b['1'][1]++;}}__cov_SjKKw4N_6cGXga1yVUBIEA.s['7']++;var NOT_IMPLEMENTED='Not implemented.';__cov_SjKKw4N_6cGXga1yVUBIEA.s['8']++;var Feature=exports.Feature=function(){__cov_SjKKw4N_6cGXga1yVUBIEA.f['2']++;function Feature(tf,cls){__cov_SjKKw4N_6cGXga1yVUBIEA.f['3']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['10']++;var _this=this;__cov_SjKKw4N_6cGXga1yVUBIEA.s['11']++;_classCallCheck(this,Feature);__cov_SjKKw4N_6cGXga1yVUBIEA.s['12']++;cls.meta=(__cov_SjKKw4N_6cGXga1yVUBIEA.b['2'][0]++,cls.meta)||(__cov_SjKKw4N_6cGXga1yVUBIEA.b['2'][1]++,{});__cov_SjKKw4N_6cGXga1yVUBIEA.s['13']++;this.tf=tf;__cov_SjKKw4N_6cGXga1yVUBIEA.s['14']++;this.feature=(__cov_SjKKw4N_6cGXga1yVUBIEA.b['3'][0]++,cls.meta.altName)||(__cov_SjKKw4N_6cGXga1yVUBIEA.b['3'][1]++,cls.meta.name)||(__cov_SjKKw4N_6cGXga1yVUBIEA.b['3'][2]++,(0,_string.toCamelCase)(cls.name));__cov_SjKKw4N_6cGXga1yVUBIEA.s['15']++;this.enabled=tf[this.feature];__cov_SjKKw4N_6cGXga1yVUBIEA.s['16']++;this.config=tf.config();__cov_SjKKw4N_6cGXga1yVUBIEA.s['17']++;this.emitter=tf.emitter;__cov_SjKKw4N_6cGXga1yVUBIEA.s['18']++;this.initialized=false;__cov_SjKKw4N_6cGXga1yVUBIEA.s['19']++;this.emitter.on(['destroy'],function(){__cov_SjKKw4N_6cGXga1yVUBIEA.f['4']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['20']++;return _this.destroy();});}__cov_SjKKw4N_6cGXga1yVUBIEA.s['21']++;Feature.prototype.init=function init(){__cov_SjKKw4N_6cGXga1yVUBIEA.f['5']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['22']++;throw new Error(NOT_IMPLEMENTED);};__cov_SjKKw4N_6cGXga1yVUBIEA.s['23']++;Feature.prototype.reset=function reset(){__cov_SjKKw4N_6cGXga1yVUBIEA.f['6']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['24']++;this.enable();__cov_SjKKw4N_6cGXga1yVUBIEA.s['25']++;this.init();};__cov_SjKKw4N_6cGXga1yVUBIEA.s['26']++;Feature.prototype.destroy=function destroy(){__cov_SjKKw4N_6cGXga1yVUBIEA.f['7']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['27']++;throw new Error(NOT_IMPLEMENTED);};__cov_SjKKw4N_6cGXga1yVUBIEA.s['28']++;Feature.prototype.enable=function enable(){__cov_SjKKw4N_6cGXga1yVUBIEA.f['8']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['29']++;this.enabled=true;};__cov_SjKKw4N_6cGXga1yVUBIEA.s['30']++;Feature.prototype.disable=function disable(){__cov_SjKKw4N_6cGXga1yVUBIEA.f['9']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['31']++;this.enabled=false;};__cov_SjKKw4N_6cGXga1yVUBIEA.s['32']++;Feature.prototype.isEnabled=function isEnabled(){__cov_SjKKw4N_6cGXga1yVUBIEA.f['10']++;__cov_SjKKw4N_6cGXga1yVUBIEA.s['33']++;return this.enabled===true;};__cov_SjKKw4N_6cGXga1yVUBIEA.s['34']++;return Feature;}();
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/alternateRows.js":
/*!**************************************!*\
!*** ./src/modules/alternateRows.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_3xpjFgYG6p3Z_QkGYJoJvQ = (Function('return this'))();
if (!__cov_3xpjFgYG6p3Z_QkGYJoJvQ.__coverage__) { __cov_3xpjFgYG6p3Z_QkGYJoJvQ.__coverage__ = {}; }
__cov_3xpjFgYG6p3Z_QkGYJoJvQ = __cov_3xpjFgYG6p3Z_QkGYJoJvQ.__coverage__;
if (!(__cov_3xpjFgYG6p3Z_QkGYJoJvQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\alternateRows.js'])) {
__cov_3xpjFgYG6p3Z_QkGYJoJvQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\alternateRows.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\alternateRows.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":1,"8":0,"9":0,"10":1,"11":0,"12":0,"13":0,"14":1,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":1,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"fnMap":{"1":{"name":"_classCallCheck","line":16,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":18,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":25,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"AlternateRows","line":33,"loc":{"start":{"line":16,"column":4},"end":{"line":16,"column":20}}},"6":{"name":"init","line":59,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"processAll","line":79,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"processRow","line":104,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"setRowBg","line":121,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"removeRowBg","line":139,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"11":{"name":"processRowHandler","line":151,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"12":{"name":"destroy","line":160,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"13":{"name":"(anonymous_13)","line":168,"loc":{"start":{"line":134,"column":16},"end":{"line":134,"column":16}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"18":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"19":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"20":{"start":{"line
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_3xpjFgYG6p3Z_QkGYJoJvQ = __cov_3xpjFgYG6p3Z_QkGYJoJvQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\alternateRows.js'];
__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['2']++;exports.AlternateRows=undefined;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['5']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['6']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");function _classCallCheck(instance,Constructor){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.f['1']++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['8']++;if(!(instance instanceof Constructor)){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['1'][0]++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['9']++;throw new TypeError('Cannot call a class as a function');}else{__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.f['2']++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['11']++;if(!self){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['2'][0]++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['12']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['2'][1]++;}__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['13']++;return(__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['4'][0]++,call)&&((__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['4'][1]++,typeof call==='object')||(__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['4'][2]++,typeof call==='function'))?(__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['3'][0]++,call):(__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.f['3']++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['15']++;if((__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['6'][0]++,typeof superClass!=='function')&&(__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['6'][1]++,superClass!==null)){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['5'][0]++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['16']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['5'][1]++;}__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['17']++;subClass.prototype=Object.create((__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['7'][0]++,superClass)&&(__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['18']++;if(superClass){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['8'][0]++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['19']++;Object.setPrototypeOf?(__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['8'][1]++;}}__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['20']++;var AlternateRows=exports.AlternateRows=function(_Feature){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.f['4']++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['21']++;_inherits(AlternateRows,_Feature);function AlternateRows(tf){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.f['5']++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['23']++;_classCallCheck(this,AlternateRows);__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['24']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,AlternateRows));__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['25']++;var config=_this.config;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['26']++;_this.evenCss=(0,_settings.defaultsStr)(config.even_row_css_class,'even');__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['27']++;_this.oddCss=(0,_settings.defaultsStr)(config.odd_row_css_class,'odd');__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['28']++;return _this;}__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['29']++;AlternateRows.prototype.init=function init(){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.f['6']++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['30']++;if(this.initialized){__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['10'][0]++;__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['31']++;return;}else{__cov_3xpjFgYG6p3Z_QkGYJoJvQ.b['10'][1]++;}__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['32']++;this.processAll();__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['33']++;this.emitter.on(['row-processed','row-paged'],(0,_event.bound)(this.processRowHandler,this));__cov_3xpjFgYG6p3Z_QkGYJoJvQ.s['34']++;this.emitte
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/baseDropdown.js":
/*!*************************************!*\
!*** ./src/modules/baseDropdown.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_qTtIp90vZWY1fA78i5Azrg = (Function('return this'))();
if (!__cov_qTtIp90vZWY1fA78i5Azrg.__coverage__) { __cov_qTtIp90vZWY1fA78i5Azrg.__coverage__ = {}; }
__cov_qTtIp90vZWY1fA78i5Azrg = __cov_qTtIp90vZWY1fA78i5Azrg.__coverage__;
if (!(__cov_qTtIp90vZWY1fA78i5Azrg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\baseDropdown.js'])) {
__cov_qTtIp90vZWY1fA78i5Azrg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\baseDropdown.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\baseDropdown.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":1,"8":0,"9":0,"10":1,"11":0,"12":0,"13":0,"14":1,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":1,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0,0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"fnMap":{"1":{"name":"_classCallCheck","line":16,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":18,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":28,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"BaseDropdown","line":35,"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":25}}},"6":{"name":"sortOptions","line":89,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"refreshFilters","line":133,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"(anonymous_8)","line":136,"loc":{"start":{"line":116,"column":27},"end":{"line":116,"column":39}}},"9":{"name":"isValidLinkedValue","line":151,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"linkFilters","line":176,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":0}},"7":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"18":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"19":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"20":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"21":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"22":{"start":{"line":21,"column":4},"end":{"line":65,"column":5}},"23":{"start":{"line":21,"column":25},"end":{"line":
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_qTtIp90vZWY1fA78i5Azrg = __cov_qTtIp90vZWY1fA78i5Azrg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\baseDropdown.js'];
__cov_qTtIp90vZWY1fA78i5Azrg.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_qTtIp90vZWY1fA78i5Azrg.s['2']++;exports.BaseDropdown=undefined;__cov_qTtIp90vZWY1fA78i5Azrg.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_qTtIp90vZWY1fA78i5Azrg.s['4']++;var _sort=__webpack_require__(/*! ../sort */ "./src/sort.js");__cov_qTtIp90vZWY1fA78i5Azrg.s['5']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_qTtIp90vZWY1fA78i5Azrg.s['6']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");function _classCallCheck(instance,Constructor){__cov_qTtIp90vZWY1fA78i5Azrg.f['1']++;__cov_qTtIp90vZWY1fA78i5Azrg.s['8']++;if(!(instance instanceof Constructor)){__cov_qTtIp90vZWY1fA78i5Azrg.b['1'][0]++;__cov_qTtIp90vZWY1fA78i5Azrg.s['9']++;throw new TypeError('Cannot call a class as a function');}else{__cov_qTtIp90vZWY1fA78i5Azrg.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_qTtIp90vZWY1fA78i5Azrg.f['2']++;__cov_qTtIp90vZWY1fA78i5Azrg.s['11']++;if(!self){__cov_qTtIp90vZWY1fA78i5Azrg.b['2'][0]++;__cov_qTtIp90vZWY1fA78i5Azrg.s['12']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_qTtIp90vZWY1fA78i5Azrg.b['2'][1]++;}__cov_qTtIp90vZWY1fA78i5Azrg.s['13']++;return(__cov_qTtIp90vZWY1fA78i5Azrg.b['4'][0]++,call)&&((__cov_qTtIp90vZWY1fA78i5Azrg.b['4'][1]++,typeof call==='object')||(__cov_qTtIp90vZWY1fA78i5Azrg.b['4'][2]++,typeof call==='function'))?(__cov_qTtIp90vZWY1fA78i5Azrg.b['3'][0]++,call):(__cov_qTtIp90vZWY1fA78i5Azrg.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_qTtIp90vZWY1fA78i5Azrg.f['3']++;__cov_qTtIp90vZWY1fA78i5Azrg.s['15']++;if((__cov_qTtIp90vZWY1fA78i5Azrg.b['6'][0]++,typeof superClass!=='function')&&(__cov_qTtIp90vZWY1fA78i5Azrg.b['6'][1]++,superClass!==null)){__cov_qTtIp90vZWY1fA78i5Azrg.b['5'][0]++;__cov_qTtIp90vZWY1fA78i5Azrg.s['16']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_qTtIp90vZWY1fA78i5Azrg.b['5'][1]++;}__cov_qTtIp90vZWY1fA78i5Azrg.s['17']++;subClass.prototype=Object.create((__cov_qTtIp90vZWY1fA78i5Azrg.b['7'][0]++,superClass)&&(__cov_qTtIp90vZWY1fA78i5Azrg.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_qTtIp90vZWY1fA78i5Azrg.s['18']++;if(superClass){__cov_qTtIp90vZWY1fA78i5Azrg.b['8'][0]++;__cov_qTtIp90vZWY1fA78i5Azrg.s['19']++;Object.setPrototypeOf?(__cov_qTtIp90vZWY1fA78i5Azrg.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_qTtIp90vZWY1fA78i5Azrg.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_qTtIp90vZWY1fA78i5Azrg.b['8'][1]++;}}__cov_qTtIp90vZWY1fA78i5Azrg.s['20']++;var BaseDropdown=exports.BaseDropdown=function(_Feature){__cov_qTtIp90vZWY1fA78i5Azrg.f['4']++;__cov_qTtIp90vZWY1fA78i5Azrg.s['21']++;_inherits(BaseDropdown,_Feature);function BaseDropdown(tf,cls){__cov_qTtIp90vZWY1fA78i5Azrg.f['5']++;__cov_qTtIp90vZWY1fA78i5Azrg.s['23']++;_classCallCheck(this,BaseDropdown);__cov_qTtIp90vZWY1fA78i5Azrg.s['24']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,cls));__cov_qTtIp90vZWY1fA78i5Azrg.s['25']++;var f=_this.config;__cov_qTtIp90vZWY1fA78i5Azrg.s['26']++;_this.customSorter=(__cov_qTtIp90vZWY1fA78i5Azrg.b['11'][0]++,(0,_types.isObj)(f.filter_options_sorter))&&(__cov_qTtIp90vZWY1fA78i5Azrg.b['11'][1]++,(0,_types.isArray)(f.filter_options_sorter.col))&&(__cov_qTtIp90vZWY1fA78i5Azrg.b['11'][2]++,(0,_types.isArray)(f.filter_options_sorter.comparer))?(__cov_qTtIp90vZWY1fA78i5Azrg.b['10'][0]++,f.filter_options_sorter):(__cov_qTtIp90vZWY1fA78i5Azrg.b['10'][1]++,null);__cov_qTtIp90vZWY1fA78i5Azrg.s['27']++;_this.isCustom=false;__cov_qTtIp90vZWY1fA78i5Azrg.s['28']++;_this.opts=[];__cov_qTtIp90vZWY1fA78i5Azrg.s['29']++;_this.optsTxt=[];__cov_qTtIp90vZWY1fA78i5Azrg.s['30']++;_this.excludedOpts=[];__cov_qTtIp90vZWY1fA78i5Azrg.s['31']++;return _this;}__cov_qTtIp90vZWY1fA78i5Azrg.s['32']++;BaseDropdown.prototype.sortOptions=function sortOptions(colIndex){__cov_qTtIp90vZWY
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/checkList.js":
/*!**********************************!*\
!*** ./src/modules/checkList.js ***!
\**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_5YHZuPBt1ZyGynBiLUj3Iw = (Function('return this'))();
if (!__cov_5YHZuPBt1ZyGynBiLUj3Iw.__coverage__) { __cov_5YHZuPBt1ZyGynBiLUj3Iw.__coverage__ = {}; }
__cov_5YHZuPBt1ZyGynBiLUj3Iw = __cov_5YHZuPBt1ZyGynBiLUj3Iw.__coverage__;
if (!(__cov_5YHZuPBt1ZyGynBiLUj3Iw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\checkList.js'])) {
__cov_5YHZuPBt1ZyGynBiLUj3Iw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\checkList.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\checkList.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":1,"12":0,"13":0,"14":1,"15":0,"16":0,"17":0,"18":1,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":1,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0,"210":0,"211":0,"212":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"221":0,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0,"230":0,"231":0,"232":0,"233":0,"234":0,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0,"246":0,"247":0,"248":0,"249":0,"250":0,"251":0,"252":0,"253":0,"254":0,"255":0,"256":0,"257":0,"258":0,"259":0,"260":0,"261":0,"262":0,"263":0,"264":0,"265":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0],"54":[0,0],"55":[0,0],"56":[0,0],"57":[0,0],"58":[0,0],"59":[0,0],"60":[0,0],"61":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0},"fnMap":{"1":{"name":"_classCallCheck","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":26,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":28,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"CheckList","line":43,"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":20}}},"6":{"name":"optionClick","line":115,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"onCheckListClick","line":131,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"(anonymous_8)","line":139,"loc":{"start":{"line":124,"column":36},"end"
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_5YHZuPBt1ZyGynBiLUj3Iw = __cov_5YHZuPBt1ZyGynBiLUj3Iw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\checkList.js'];
__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['2']++;exports.CheckList=undefined;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['3']++;var _baseDropdown=__webpack_require__(/*! ./baseDropdown */ "./src/modules/baseDropdown.js");__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['5']++;var _array=__webpack_require__(/*! ../array */ "./src/array.js");__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['6']++;var _string=__webpack_require__(/*! ../string */ "./src/string.js");__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['7']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['8']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['9']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['10']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_5YHZuPBt1ZyGynBiLUj3Iw.f['1']++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['12']++;if(!(instance instanceof Constructor)){__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['1'][0]++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['13']++;throw new TypeError('Cannot call a class as a function');}else{__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_5YHZuPBt1ZyGynBiLUj3Iw.f['2']++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['15']++;if(!self){__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['2'][0]++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['16']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['2'][1]++;}__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['17']++;return(__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['4'][0]++,call)&&((__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['4'][1]++,typeof call==='object')||(__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['4'][2]++,typeof call==='function'))?(__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['3'][0]++,call):(__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_5YHZuPBt1ZyGynBiLUj3Iw.f['3']++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['19']++;if((__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['6'][0]++,typeof superClass!=='function')&&(__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['6'][1]++,superClass!==null)){__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['5'][0]++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['20']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['5'][1]++;}__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['21']++;subClass.prototype=Object.create((__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['7'][0]++,superClass)&&(__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['22']++;if(superClass){__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['8'][0]++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['23']++;Object.setPrototypeOf?(__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_5YHZuPBt1ZyGynBiLUj3Iw.b['8'][1]++;}}__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['24']++;var CheckList=exports.CheckList=function(_BaseDropdown){__cov_5YHZuPBt1ZyGynBiLUj3Iw.f['4']++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['25']++;_inherits(CheckList,_BaseDropdown);function CheckList(tf){__cov_5YHZuPBt1ZyGynBiLUj3Iw.f['5']++;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['27']++;_classCallCheck(this,CheckList);__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['28']++;var _this=_possibleConstructorReturn(this,_BaseDropdown.call(this,tf,CheckList));__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['29']++;var f=_this.config;__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['30']++;_this.containers=[];__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['31']++;_this.containerCssClass=(0,_settings.defaultsStr)(f.div_checklist_css_class,'div_checklist');__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['32']++;_this.filterCssClass=(0,_settings.defaultsStr)(f.checklist_css_class,'flt_checklist');__cov_5YHZuPBt1ZyGynBiLUj3Iw.s['33']++;_this.itemCssClass=(0,_settings.defaultsStr)(f.checklist_
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/clearButton.js":
/*!************************************!*\
!*** ./src/modules/clearButton.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_pxxW$uh7UqBA8_REuEc1_g = (Function('return this'))();
if (!__cov_pxxW$uh7UqBA8_REuEc1_g.__coverage__) { __cov_pxxW$uh7UqBA8_REuEc1_g.__coverage__ = {}; }
__cov_pxxW$uh7UqBA8_REuEc1_g = __cov_pxxW$uh7UqBA8_REuEc1_g.__coverage__;
if (!(__cov_pxxW$uh7UqBA8_REuEc1_g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\clearButton.js'])) {
__cov_pxxW$uh7UqBA8_REuEc1_g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\clearButton.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\clearButton.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":1,"13":0,"14":0,"15":0,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":1,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"fnMap":{"1":{"name":"_classCallCheck","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"ClearButton","line":36,"loc":{"start":{"line":17,"column":4},"end":{"line":17,"column":20}}},"6":{"name":"onClick","line":101,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"init","line":113,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"(anonymous_8)","line":134,"loc":{"start":{"line":111,"column":38},"end":{"line":111,"column":38}}},"9":{"name":"(anonymous_9)","line":140,"loc":{"start":{"line":115,"column":37},"end":{"line":115,"column":37}}},"10":{"name":"destroy","line":158,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"8":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"18":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"19":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"20":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"21":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"22":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"23":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"24":{"start":{"line":17,"column":4},"end":{"line":74,"column":5}},"25":{"start":{"line":17,"column":20},"end":{"line":17,"column":20}},"26":{"start":{"line":17,"column":20},"end":{"li
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_pxxW$uh7UqBA8_REuEc1_g = __cov_pxxW$uh7UqBA8_REuEc1_g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\clearButton.js'];
__cov_pxxW$uh7UqBA8_REuEc1_g.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_pxxW$uh7UqBA8_REuEc1_g.s['2']++;exports.ClearButton=undefined;__cov_pxxW$uh7UqBA8_REuEc1_g.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_pxxW$uh7UqBA8_REuEc1_g.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_pxxW$uh7UqBA8_REuEc1_g.s['5']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");__cov_pxxW$uh7UqBA8_REuEc1_g.s['6']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");__cov_pxxW$uh7UqBA8_REuEc1_g.s['7']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_pxxW$uh7UqBA8_REuEc1_g.s['8']++;var _toolbar=__webpack_require__(/*! ./toolbar */ "./src/modules/toolbar.js");function _classCallCheck(instance,Constructor){__cov_pxxW$uh7UqBA8_REuEc1_g.f['1']++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['10']++;if(!(instance instanceof Constructor)){__cov_pxxW$uh7UqBA8_REuEc1_g.b['1'][0]++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['11']++;throw new TypeError('Cannot call a class as a function');}else{__cov_pxxW$uh7UqBA8_REuEc1_g.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_pxxW$uh7UqBA8_REuEc1_g.f['2']++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['13']++;if(!self){__cov_pxxW$uh7UqBA8_REuEc1_g.b['2'][0]++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['14']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_pxxW$uh7UqBA8_REuEc1_g.b['2'][1]++;}__cov_pxxW$uh7UqBA8_REuEc1_g.s['15']++;return(__cov_pxxW$uh7UqBA8_REuEc1_g.b['4'][0]++,call)&&((__cov_pxxW$uh7UqBA8_REuEc1_g.b['4'][1]++,typeof call==='object')||(__cov_pxxW$uh7UqBA8_REuEc1_g.b['4'][2]++,typeof call==='function'))?(__cov_pxxW$uh7UqBA8_REuEc1_g.b['3'][0]++,call):(__cov_pxxW$uh7UqBA8_REuEc1_g.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_pxxW$uh7UqBA8_REuEc1_g.f['3']++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['17']++;if((__cov_pxxW$uh7UqBA8_REuEc1_g.b['6'][0]++,typeof superClass!=='function')&&(__cov_pxxW$uh7UqBA8_REuEc1_g.b['6'][1]++,superClass!==null)){__cov_pxxW$uh7UqBA8_REuEc1_g.b['5'][0]++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['18']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_pxxW$uh7UqBA8_REuEc1_g.b['5'][1]++;}__cov_pxxW$uh7UqBA8_REuEc1_g.s['19']++;subClass.prototype=Object.create((__cov_pxxW$uh7UqBA8_REuEc1_g.b['7'][0]++,superClass)&&(__cov_pxxW$uh7UqBA8_REuEc1_g.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_pxxW$uh7UqBA8_REuEc1_g.s['20']++;if(superClass){__cov_pxxW$uh7UqBA8_REuEc1_g.b['8'][0]++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['21']++;Object.setPrototypeOf?(__cov_pxxW$uh7UqBA8_REuEc1_g.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_pxxW$uh7UqBA8_REuEc1_g.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_pxxW$uh7UqBA8_REuEc1_g.b['8'][1]++;}}__cov_pxxW$uh7UqBA8_REuEc1_g.s['22']++;var ClearButton=exports.ClearButton=function(_Feature){__cov_pxxW$uh7UqBA8_REuEc1_g.f['4']++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['23']++;_inherits(ClearButton,_Feature);function ClearButton(tf){__cov_pxxW$uh7UqBA8_REuEc1_g.f['5']++;__cov_pxxW$uh7UqBA8_REuEc1_g.s['25']++;_classCallCheck(this,ClearButton);__cov_pxxW$uh7UqBA8_REuEc1_g.s['26']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,ClearButton));__cov_pxxW$uh7UqBA8_REuEc1_g.s['27']++;var f=(__cov_pxxW$uh7UqBA8_REuEc1_g.b['10'][0]++,_this.config.btn_reset)||(__cov_pxxW$uh7UqBA8_REuEc1_g.b['10'][1]++,{});__cov_pxxW$uh7UqBA8_REuEc1_g.s['28']++;_this.targetId=(0,_settings.defaultsStr)(f.target_id,null);__cov_pxxW$uh7UqBA8_REuEc1_g.s['29']++;_this.text=(0,_settings.defaultsStr)(f.text,null);__cov_pxxW$uh7UqBA8_REuEc1_g.s['30']++;_this.cssClass=(0,_settings.defaultsStr)(f.css_class,'reset');__cov_pxxW$uh7UqBA8_REuEc1_g.s['31']++;_this.tooltip=(__cov_pxxW$uh7UqBA8_REuEc1_g.b['11'][0]++,f.tooltip)||(__cov_pxxW$uh7UqBA8_REuEc1_g.b['11'][1]++,'Clear filters');__cov_pxxW$uh7UqBA8_REuEc1_g.s['32']++;_this.html=(0,_settings.defaultsStr
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/dateType.js":
/*!*********************************!*\
!*** ./src/modules/dateType.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_wyAJpPGsn0J7D$4mR070JQ = (Function('return this'))();
if (!__cov_wyAJpPGsn0J7D$4mR070JQ.__coverage__) { __cov_wyAJpPGsn0J7D$4mR070JQ.__coverage__ = {}; }
__cov_wyAJpPGsn0J7D$4mR070JQ = __cov_wyAJpPGsn0J7D$4mR070JQ.__coverage__;
if (!(__cov_wyAJpPGsn0J7D$4mR070JQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\dateType.js'])) {
__cov_wyAJpPGsn0J7D$4mR070JQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\dateType.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\dateType.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":1,"13":0,"14":0,"15":0,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":1,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"fnMap":{"1":{"name":"_classCallCheck","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":31,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"DateType","line":38,"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":20}}},"6":{"name":"init","line":64,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":77,"loc":{"start":{"line":53,"column":12},"end":{"line":53,"column":12}}},"8":{"name":"parse","line":97,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"isValid","line":109,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"getOptions","line":122,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"11":{"name":"getLocale","line":136,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"12":{"name":"addConfigFormats","line":153,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"13":{"name":"(anonymous_13)","line":158,"loc":{"start":{"line":119,"column":22},"end":{"line":119,"column":37}}},"14":{"name":"(anonymous_14)","line":166,"loc":{"start":{"line":130,"column":36},"end":{"line":130,"column":48}}},"15":{"name":"destroy","line":181,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"16":{"name":"(anonymous_16)","line":190,"loc":{"start":{"line":152,"column":12},"end":{"line":152,"column":12}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"8":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_wyAJpPGsn0J7D$4mR070JQ = __cov_wyAJpPGsn0J7D$4mR070JQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\dateType.js'];
__cov_wyAJpPGsn0J7D$4mR070JQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_wyAJpPGsn0J7D$4mR070JQ.s['2']++;exports.DateType=undefined;__cov_wyAJpPGsn0J7D$4mR070JQ.s['3']++;var _sugarDate=__webpack_require__(/*! sugar-date */ "./node_modules/sugar-date/index.js");__cov_wyAJpPGsn0J7D$4mR070JQ.s['4']++;__webpack_require__(/*! sugar-date/locales */ "./node_modules/sugar-date/locales/index.js");__cov_wyAJpPGsn0J7D$4mR070JQ.s['5']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_wyAJpPGsn0J7D$4mR070JQ.s['6']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_wyAJpPGsn0J7D$4mR070JQ.s['7']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_wyAJpPGsn0J7D$4mR070JQ.s['8']++;var _root=__webpack_require__(/*! ../root */ "./src/root.js");function _classCallCheck(instance,Constructor){__cov_wyAJpPGsn0J7D$4mR070JQ.f['1']++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['10']++;if(!(instance instanceof Constructor)){__cov_wyAJpPGsn0J7D$4mR070JQ.b['1'][0]++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['11']++;throw new TypeError('Cannot call a class as a function');}else{__cov_wyAJpPGsn0J7D$4mR070JQ.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_wyAJpPGsn0J7D$4mR070JQ.f['2']++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['13']++;if(!self){__cov_wyAJpPGsn0J7D$4mR070JQ.b['2'][0]++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['14']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_wyAJpPGsn0J7D$4mR070JQ.b['2'][1]++;}__cov_wyAJpPGsn0J7D$4mR070JQ.s['15']++;return(__cov_wyAJpPGsn0J7D$4mR070JQ.b['4'][0]++,call)&&((__cov_wyAJpPGsn0J7D$4mR070JQ.b['4'][1]++,typeof call==='object')||(__cov_wyAJpPGsn0J7D$4mR070JQ.b['4'][2]++,typeof call==='function'))?(__cov_wyAJpPGsn0J7D$4mR070JQ.b['3'][0]++,call):(__cov_wyAJpPGsn0J7D$4mR070JQ.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_wyAJpPGsn0J7D$4mR070JQ.f['3']++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['17']++;if((__cov_wyAJpPGsn0J7D$4mR070JQ.b['6'][0]++,typeof superClass!=='function')&&(__cov_wyAJpPGsn0J7D$4mR070JQ.b['6'][1]++,superClass!==null)){__cov_wyAJpPGsn0J7D$4mR070JQ.b['5'][0]++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['18']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_wyAJpPGsn0J7D$4mR070JQ.b['5'][1]++;}__cov_wyAJpPGsn0J7D$4mR070JQ.s['19']++;subClass.prototype=Object.create((__cov_wyAJpPGsn0J7D$4mR070JQ.b['7'][0]++,superClass)&&(__cov_wyAJpPGsn0J7D$4mR070JQ.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_wyAJpPGsn0J7D$4mR070JQ.s['20']++;if(superClass){__cov_wyAJpPGsn0J7D$4mR070JQ.b['8'][0]++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['21']++;Object.setPrototypeOf?(__cov_wyAJpPGsn0J7D$4mR070JQ.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_wyAJpPGsn0J7D$4mR070JQ.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_wyAJpPGsn0J7D$4mR070JQ.b['8'][1]++;}}__cov_wyAJpPGsn0J7D$4mR070JQ.s['22']++;var DateType=exports.DateType=function(_Feature){__cov_wyAJpPGsn0J7D$4mR070JQ.f['4']++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['23']++;_inherits(DateType,_Feature);function DateType(tf){__cov_wyAJpPGsn0J7D$4mR070JQ.f['5']++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['25']++;_classCallCheck(this,DateType);__cov_wyAJpPGsn0J7D$4mR070JQ.s['26']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,DateType));__cov_wyAJpPGsn0J7D$4mR070JQ.s['27']++;_this.locale=tf.locale;__cov_wyAJpPGsn0J7D$4mR070JQ.s['28']++;_this.datetime=_sugarDate.Date;__cov_wyAJpPGsn0J7D$4mR070JQ.s['29']++;_this.enable();__cov_wyAJpPGsn0J7D$4mR070JQ.s['30']++;return _this;}__cov_wyAJpPGsn0J7D$4mR070JQ.s['31']++;DateType.prototype.init=function init(){__cov_wyAJpPGsn0J7D$4mR070JQ.f['6']++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['32']++;var _this2=this;__cov_wyAJpPGsn0J7D$4mR070JQ.s['33']++;if(this.initialized){__cov_wyAJpPGsn0J7D$4mR070JQ.b['10'][0]++;__cov_wyAJpPGsn0J7D$4mR070JQ.s['34']++;return;}else{__cov_wyAJpPGsn0J7D$4mR070JQ.b['10'][1]++;}__cov_wyAJpPGsn0J7D$4mR070JQ.s['35']++;this.datetime.setLocale(this.l
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/dropdown.js":
/*!*********************************!*\
!*** ./src/modules/dropdown.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_8dQF23OvSu1tbcLWOGiCrA = (Function('return this'))();
if (!__cov_8dQF23OvSu1tbcLWOGiCrA.__coverage__) { __cov_8dQF23OvSu1tbcLWOGiCrA.__coverage__ = {}; }
__cov_8dQF23OvSu1tbcLWOGiCrA = __cov_8dQF23OvSu1tbcLWOGiCrA.__coverage__;
if (!(__cov_8dQF23OvSu1tbcLWOGiCrA['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\dropdown.js'])) {
__cov_8dQF23OvSu1tbcLWOGiCrA['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\dropdown.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\dropdown.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":0,"12":0,"13":1,"14":0,"15":0,"16":0,"17":1,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":1,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0,0],"41":[0,0],"42":[0,0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0],"54":[0,0],"55":[0,0],"56":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0},"fnMap":{"1":{"name":"_classCallCheck","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":26,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":34,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"Dropdown","line":41,"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":20}}},"6":{"name":"onSlcFocus","line":76,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"onSlcChange","line":93,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"refreshAll","line":104,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"init","line":119,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"(anonymous_10)","line":151,"loc":{"start":{"line":126,"column":30},"end":{"line":126,"column":30}}},"11":{"name":"(anonymous_11)","line":154,"loc":{"start":{"line":127,"column":29},"end":{"line":127,"column":29}}},"12":{"name":"(anonymous_12)","line":158,"loc":{"start":{"line":131,"column":12},"end":{"line":131,"column":12}}},"13":{"name":"(anonymous_13)","line":161,"loc":{"start":{"line":136,"column":12},"end":{"line":136,"column":12}}},"14":{"name":"(anonymous_14)","line":164,"loc":{"start":{"line":
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_8dQF23OvSu1tbcLWOGiCrA = __cov_8dQF23OvSu1tbcLWOGiCrA['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\dropdown.js'];
__cov_8dQF23OvSu1tbcLWOGiCrA.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_8dQF23OvSu1tbcLWOGiCrA.s['2']++;exports.Dropdown=undefined;__cov_8dQF23OvSu1tbcLWOGiCrA.s['3']++;var _baseDropdown=__webpack_require__(/*! ./baseDropdown */ "./src/modules/baseDropdown.js");__cov_8dQF23OvSu1tbcLWOGiCrA.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_8dQF23OvSu1tbcLWOGiCrA.s['5']++;var _array=__webpack_require__(/*! ../array */ "./src/array.js");__cov_8dQF23OvSu1tbcLWOGiCrA.s['6']++;var _string=__webpack_require__(/*! ../string */ "./src/string.js");__cov_8dQF23OvSu1tbcLWOGiCrA.s['7']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");__cov_8dQF23OvSu1tbcLWOGiCrA.s['8']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_8dQF23OvSu1tbcLWOGiCrA.s['9']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_8dQF23OvSu1tbcLWOGiCrA.f['1']++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['11']++;if(!(instance instanceof Constructor)){__cov_8dQF23OvSu1tbcLWOGiCrA.b['1'][0]++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['12']++;throw new TypeError('Cannot call a class as a function');}else{__cov_8dQF23OvSu1tbcLWOGiCrA.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_8dQF23OvSu1tbcLWOGiCrA.f['2']++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['14']++;if(!self){__cov_8dQF23OvSu1tbcLWOGiCrA.b['2'][0]++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['15']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_8dQF23OvSu1tbcLWOGiCrA.b['2'][1]++;}__cov_8dQF23OvSu1tbcLWOGiCrA.s['16']++;return(__cov_8dQF23OvSu1tbcLWOGiCrA.b['4'][0]++,call)&&((__cov_8dQF23OvSu1tbcLWOGiCrA.b['4'][1]++,typeof call==='object')||(__cov_8dQF23OvSu1tbcLWOGiCrA.b['4'][2]++,typeof call==='function'))?(__cov_8dQF23OvSu1tbcLWOGiCrA.b['3'][0]++,call):(__cov_8dQF23OvSu1tbcLWOGiCrA.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_8dQF23OvSu1tbcLWOGiCrA.f['3']++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['18']++;if((__cov_8dQF23OvSu1tbcLWOGiCrA.b['6'][0]++,typeof superClass!=='function')&&(__cov_8dQF23OvSu1tbcLWOGiCrA.b['6'][1]++,superClass!==null)){__cov_8dQF23OvSu1tbcLWOGiCrA.b['5'][0]++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['19']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_8dQF23OvSu1tbcLWOGiCrA.b['5'][1]++;}__cov_8dQF23OvSu1tbcLWOGiCrA.s['20']++;subClass.prototype=Object.create((__cov_8dQF23OvSu1tbcLWOGiCrA.b['7'][0]++,superClass)&&(__cov_8dQF23OvSu1tbcLWOGiCrA.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_8dQF23OvSu1tbcLWOGiCrA.s['21']++;if(superClass){__cov_8dQF23OvSu1tbcLWOGiCrA.b['8'][0]++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['22']++;Object.setPrototypeOf?(__cov_8dQF23OvSu1tbcLWOGiCrA.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_8dQF23OvSu1tbcLWOGiCrA.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_8dQF23OvSu1tbcLWOGiCrA.b['8'][1]++;}}__cov_8dQF23OvSu1tbcLWOGiCrA.s['23']++;var Dropdown=exports.Dropdown=function(_BaseDropdown){__cov_8dQF23OvSu1tbcLWOGiCrA.f['4']++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['24']++;_inherits(Dropdown,_BaseDropdown);function Dropdown(tf){__cov_8dQF23OvSu1tbcLWOGiCrA.f['5']++;__cov_8dQF23OvSu1tbcLWOGiCrA.s['26']++;_classCallCheck(this,Dropdown);__cov_8dQF23OvSu1tbcLWOGiCrA.s['27']++;var _this=_possibleConstructorReturn(this,_BaseDropdown.call(this,tf,Dropdown));__cov_8dQF23OvSu1tbcLWOGiCrA.s['28']++;var f=_this.config;__cov_8dQF23OvSu1tbcLWOGiCrA.s['29']++;_this.enableSlcResetFilter=(0,_settings.defaultsBool)(f.enable_slc_reset_filter,true);__cov_8dQF23OvSu1tbcLWOGiCrA.s['30']++;_this.nonEmptyText=(0,_settings.defaultsStr)(f.non_empty_text,'(Non empty)');__cov_8dQF23OvSu1tbcLWOGiCrA.s['31']++;_this.multipleSlcTooltip=(0,_settings.defaultsStr)(f.multiple_slc_tooltip,'Use Ctrl/Cmd key for multiple selections');__cov_8dQF23OvSu1tbcLWOGiCrA.s['32']++;return _this;}__cov_8dQF23OvSu1tbcLWOGiCrA.s['33']++;Dropdown.prototype.onSlcFocus=fun
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/gridLayout.js":
/*!***********************************!*\
!*** ./src/modules/gridLayout.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_KuEDWFcsdey9NSaH$Q6low = (Function('return this'))();
if (!__cov_KuEDWFcsdey9NSaH$Q6low.__coverage__) { __cov_KuEDWFcsdey9NSaH$Q6low.__coverage__ = {}; }
__cov_KuEDWFcsdey9NSaH$Q6low = __cov_KuEDWFcsdey9NSaH$Q6low.__coverage__;
if (!(__cov_KuEDWFcsdey9NSaH$Q6low['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\gridLayout.js'])) {
__cov_KuEDWFcsdey9NSaH$Q6low['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\gridLayout.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\gridLayout.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":1,"13":0,"14":0,"15":0,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":1,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0},"fnMap":{"1":{"name":"_classCallCheck","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"GridLayout","line":36,"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":20}}},"6":{"name":"init","line":179,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":268,"loc":{"start":{"line":248,"column":39},"end":{"line":248,"column":48}}},"8":{"name":"setOverrides","line":314,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"setDefaultColWidths","line":327,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"(anonymous_10)","line":335,"loc":{"start":{"line":309,"column":19},"end":{"line":309,"column":26}}},"11":{"name":"initialTableWidth","line":358,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"12":{"name":"createContainer","line":381,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"13":{"name":"createFiltersRow","line":394,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"14":{"name":"(anonymous_14)","line":401,"loc":{"start":{"line":368,"column":23},"end":{"line":368,"column":30}}},"15":{"name":"setColumnElements","line":417,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_KuEDWFcsdey9NSaH$Q6low = __cov_KuEDWFcsdey9NSaH$Q6low['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\gridLayout.js'];
__cov_KuEDWFcsdey9NSaH$Q6low.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_KuEDWFcsdey9NSaH$Q6low.s['2']++;exports.GridLayout=undefined;__cov_KuEDWFcsdey9NSaH$Q6low.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_KuEDWFcsdey9NSaH$Q6low.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_KuEDWFcsdey9NSaH$Q6low.s['5']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");__cov_KuEDWFcsdey9NSaH$Q6low.s['6']++;var _string=__webpack_require__(/*! ../string */ "./src/string.js");__cov_KuEDWFcsdey9NSaH$Q6low.s['7']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_KuEDWFcsdey9NSaH$Q6low.s['8']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_KuEDWFcsdey9NSaH$Q6low.f['1']++;__cov_KuEDWFcsdey9NSaH$Q6low.s['10']++;if(!(instance instanceof Constructor)){__cov_KuEDWFcsdey9NSaH$Q6low.b['1'][0]++;__cov_KuEDWFcsdey9NSaH$Q6low.s['11']++;throw new TypeError('Cannot call a class as a function');}else{__cov_KuEDWFcsdey9NSaH$Q6low.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_KuEDWFcsdey9NSaH$Q6low.f['2']++;__cov_KuEDWFcsdey9NSaH$Q6low.s['13']++;if(!self){__cov_KuEDWFcsdey9NSaH$Q6low.b['2'][0]++;__cov_KuEDWFcsdey9NSaH$Q6low.s['14']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_KuEDWFcsdey9NSaH$Q6low.b['2'][1]++;}__cov_KuEDWFcsdey9NSaH$Q6low.s['15']++;return(__cov_KuEDWFcsdey9NSaH$Q6low.b['4'][0]++,call)&&((__cov_KuEDWFcsdey9NSaH$Q6low.b['4'][1]++,typeof call==='object')||(__cov_KuEDWFcsdey9NSaH$Q6low.b['4'][2]++,typeof call==='function'))?(__cov_KuEDWFcsdey9NSaH$Q6low.b['3'][0]++,call):(__cov_KuEDWFcsdey9NSaH$Q6low.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_KuEDWFcsdey9NSaH$Q6low.f['3']++;__cov_KuEDWFcsdey9NSaH$Q6low.s['17']++;if((__cov_KuEDWFcsdey9NSaH$Q6low.b['6'][0]++,typeof superClass!=='function')&&(__cov_KuEDWFcsdey9NSaH$Q6low.b['6'][1]++,superClass!==null)){__cov_KuEDWFcsdey9NSaH$Q6low.b['5'][0]++;__cov_KuEDWFcsdey9NSaH$Q6low.s['18']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_KuEDWFcsdey9NSaH$Q6low.b['5'][1]++;}__cov_KuEDWFcsdey9NSaH$Q6low.s['19']++;subClass.prototype=Object.create((__cov_KuEDWFcsdey9NSaH$Q6low.b['7'][0]++,superClass)&&(__cov_KuEDWFcsdey9NSaH$Q6low.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_KuEDWFcsdey9NSaH$Q6low.s['20']++;if(superClass){__cov_KuEDWFcsdey9NSaH$Q6low.b['8'][0]++;__cov_KuEDWFcsdey9NSaH$Q6low.s['21']++;Object.setPrototypeOf?(__cov_KuEDWFcsdey9NSaH$Q6low.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_KuEDWFcsdey9NSaH$Q6low.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_KuEDWFcsdey9NSaH$Q6low.b['8'][1]++;}}__cov_KuEDWFcsdey9NSaH$Q6low.s['22']++;var GridLayout=exports.GridLayout=function(_Feature){__cov_KuEDWFcsdey9NSaH$Q6low.f['4']++;__cov_KuEDWFcsdey9NSaH$Q6low.s['23']++;_inherits(GridLayout,_Feature);function GridLayout(tf){__cov_KuEDWFcsdey9NSaH$Q6low.f['5']++;__cov_KuEDWFcsdey9NSaH$Q6low.s['25']++;_classCallCheck(this,GridLayout);__cov_KuEDWFcsdey9NSaH$Q6low.s['26']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,GridLayout));__cov_KuEDWFcsdey9NSaH$Q6low.s['27']++;var f=(__cov_KuEDWFcsdey9NSaH$Q6low.b['10'][0]++,_this.config.grid_layout)||(__cov_KuEDWFcsdey9NSaH$Q6low.b['10'][1]++,{});__cov_KuEDWFcsdey9NSaH$Q6low.s['28']++;_this.width=(0,_settings.defaultsStr)(f.width,null);__cov_KuEDWFcsdey9NSaH$Q6low.s['29']++;_this.height=(0,_settings.defaultsStr)(f.height,null);__cov_KuEDWFcsdey9NSaH$Q6low.s['30']++;_this.mainContCssClass=(0,_settings.defaultsStr)(f.cont_css_class,'grd_Cont');__cov_KuEDWFcsdey9NSaH$Q6low.s['31']++;_this.contCssClass=(0,_settings.defaultsStr)(f.tbl_cont_css_class,'grd_tblCont');__cov_KuEDWFcsdey9NSaH$Q6low.s['32']++;_this.headContCssClass=(0,_settings.defaultsStr)(f.tbl_head_css_class,'grd_headTblCon
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/hash.js":
/*!*****************************!*\
!*** ./src/modules/hash.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_P_zpbwUq0fVJ_KUXTKLTCg = (Function('return this'))();
if (!__cov_P_zpbwUq0fVJ_KUXTKLTCg.__coverage__) { __cov_P_zpbwUq0fVJ_KUXTKLTCg.__coverage__ = {}; }
__cov_P_zpbwUq0fVJ_KUXTKLTCg = __cov_P_zpbwUq0fVJ_KUXTKLTCg.__coverage__;
if (!(__cov_P_zpbwUq0fVJ_KUXTKLTCg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\hash.js'])) {
__cov_P_zpbwUq0fVJ_KUXTKLTCg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\hash.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\hash.js","s":{"1":0,"2":0,"3":0,"4":0,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0},"b":{"1":[0,0],"2":[0,0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"fnMap":{"1":{"name":"_classCallCheck","line":12,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"hasHashChange","line":22,"loc":{"start":{"line":12,"column":29},"end":{"line":12,"column":35}}},"3":{"name":"(anonymous_3)","line":34,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"Hash","line":41,"loc":{"start":{"line":30,"column":4},"end":{"line":30,"column":23}}},"5":{"name":"init","line":75,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"6":{"name":"(anonymous_6)","line":85,"loc":{"start":{"line":68,"column":43},"end":{"line":68,"column":43}}},"7":{"name":"update","line":99,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"parse","line":117,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"sync","line":130,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"destroy","line":144,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"11":{"name":"(anonymous_11)","line":147,"loc":{"start":{"line":118,"column":44},"end":{"line":118,"column":44}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"6":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"7":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"8":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"9":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"10":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"11":{"start":{"line":7,"column":0},"end":{"line":7,"column":0}},"12":{"start":{"line":12,"column":7},"end":{"line":12,"column":7}},"13":{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},"14":{"start":{"line":14,"column":4},"end":{"line":14,"column":4}},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":30,"column":4},"end":{"line":55,"column":5}},"17":{"start":{"line":30,"column":23},"end":{"line":30,"column":23}},"18":{"start":{"line":35,"column":8},"end":{"line":35,"column":8}},"19":{"start":{"line":42,"column":8},"end":{"line":42,"column":8}},"20":{"start":{"line":48,"column":8},"end":{"line":48,"column":8}},"21":{"start":{"line":54,"column":8},"end":{"line":54,"column":8}},"22":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"23":{"start":{"line":60,"column":11},"end":{"line":60,"column":11}},"24":{"start":{"line":61,"column":8},"end":{"line":63,"column":9}},"25":{"start":{"line":62,"column":12},"end":{"line":62,"column":12}},"26":{"start":{"line":65,"column":8},"end":{"line":65,"column":8}},"27":{"start":{"line":67,"column":8},"end":{"line":67,"column":8}},"28":{"start":{"line":68,"column":8},"end":{"line":68,"column":8}},"29":{"start":{"line":68,"column":43},"end":{"line":68,"column":43}},"30":{"start":{"line":69,"column":8},"end":{"line":69,"
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_P_zpbwUq0fVJ_KUXTKLTCg = __cov_P_zpbwUq0fVJ_KUXTKLTCg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\hash.js'];
__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['2']++;exports.Hash=exports.hasHashChange=undefined;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['3']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['4']++;var _root=__webpack_require__(/*! ../root */ "./src/root.js");function _classCallCheck(instance,Constructor){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['1']++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['6']++;if(!(instance instanceof Constructor)){__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['1'][0]++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['7']++;throw new TypeError('Cannot call a class as a function');}else{__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['1'][1]++;}}__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['8']++;var JSON=_root.root.JSON;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['9']++;var location=_root.root.location;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['10']++;var decodeURIComponent=_root.root.decodeURIComponent;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['11']++;var encodeURIComponent=_root.root.encodeURIComponent;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['12']++;var hasHashChange=exports.hasHashChange=function hasHashChange(){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['2']++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['13']++;var docMode=_root.root.documentMode;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['14']++;return(__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['2'][0]++,'onhashchange'in _root.root)&&((__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['2'][1]++,docMode===undefined)||(__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['2'][2]++,docMode>7));};__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['15']++;var Hash=exports.Hash=function(){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['3']++;function Hash(state){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['4']++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['17']++;_classCallCheck(this,Hash);__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['18']++;this.state=state;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['19']++;this.lastHash=null;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['20']++;this.emitter=state.emitter;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['21']++;this.boundSync=null;}__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['22']++;Hash.prototype.init=function init(){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['5']++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['23']++;var _this=this;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['24']++;if(!hasHashChange()){__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['3'][0]++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['25']++;return;}else{__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['3'][1]++;}__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['26']++;this.lastHash=location.hash;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['27']++;this.boundSync=this.sync.bind(this);__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['28']++;this.emitter.on(['state-changed'],function(tf,state){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['6']++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['29']++;return _this.update(state);});__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['30']++;this.emitter.on(['initialized'],this.boundSync);__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['31']++;(0,_event.addEvt)(_root.root,'hashchange',this.boundSync);};__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['32']++;Hash.prototype.update=function update(state){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['7']++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['33']++;var hash='#'+encodeURIComponent(JSON.stringify(state));__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['34']++;if(this.lastHash===hash){__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['4'][0]++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['35']++;return;}else{__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['4'][1]++;}__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['36']++;location.hash=hash;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['37']++;this.lastHash=hash;};__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['38']++;Hash.prototype.parse=function parse(hash){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['8']++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['39']++;if(hash.indexOf('#')===-1){__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['5'][0]++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['40']++;return null;}else{__cov_P_zpbwUq0fVJ_KUXTKLTCg.b['5'][1]++;}__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['41']++;hash=hash.substr(1);__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['42']++;return JSON.parse(decodeURIComponent(hash));};__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['43']++;Hash.prototype.sync=function sync(){__cov_P_zpbwUq0fVJ_KUXTKLTCg.f['9']++;__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['44']++;var state=this.parse(location.hash);__cov_P_zpbwUq0fVJ_KUXTKLTCg.s['45']++;i
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/help.js":
/*!*****************************!*\
!*** ./src/modules/help.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_ejH_W3dOAIk0zlNnRqjH3g = (Function('return this'))();
if (!__cov_ejH_W3dOAIk0zlNnRqjH3g.__coverage__) { __cov_ejH_W3dOAIk0zlNnRqjH3g.__coverage__ = {}; }
__cov_ejH_W3dOAIk0zlNnRqjH3g = __cov_ejH_W3dOAIk0zlNnRqjH3g.__coverage__;
if (!(__cov_ejH_W3dOAIk0zlNnRqjH3g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\help.js'])) {
__cov_ejH_W3dOAIk0zlNnRqjH3g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\help.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\help.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":1,"12":0,"13":0,"14":1,"15":0,"16":0,"17":0,"18":1,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":1,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"fnMap":{"1":{"name":"_classCallCheck","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":26,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":28,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":37,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"Help","line":44,"loc":{"start":{"line":23,"column":4},"end":{"line":23,"column":20}}},"6":{"name":"(anonymous_6)","line":129,"loc":{"start":{"line":118,"column":39},"end":{"line":118,"column":39}}},"7":{"name":"onMouseup","line":141,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"init","line":160,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"(anonymous_9)","line":188,"loc":{"start":{"line":170,"column":38},"end":{"line":170,"column":38}}},"10":{"name":"(anonymous_10)","line":194,"loc":{"start":{"line":174,"column":36},"end":{"line":174,"column":36}}},"11":{"name":"(anonymous_11)","line":213,"loc":{"start":{"line":191,"column":30},"end":{"line":191,"column":30}}},"12":{"name":"toggle","line":230,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"13":{"name":"destroy","line":254,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"8":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"9":{"start":{"line":7,"column":0},"end":{"line":7,"column":0}},"10":{"start":{"line":8,"column":0},"end":{"line":8,"column":0}},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"lin
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_ejH_W3dOAIk0zlNnRqjH3g = __cov_ejH_W3dOAIk0zlNnRqjH3g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\help.js'];
__cov_ejH_W3dOAIk0zlNnRqjH3g.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_ejH_W3dOAIk0zlNnRqjH3g.s['2']++;exports.Help=undefined;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_ejH_W3dOAIk0zlNnRqjH3g.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_ejH_W3dOAIk0zlNnRqjH3g.s['5']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");__cov_ejH_W3dOAIk0zlNnRqjH3g.s['6']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_ejH_W3dOAIk0zlNnRqjH3g.s['7']++;var _root=__webpack_require__(/*! ../root */ "./src/root.js");__cov_ejH_W3dOAIk0zlNnRqjH3g.s['8']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_ejH_W3dOAIk0zlNnRqjH3g.s['9']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");__cov_ejH_W3dOAIk0zlNnRqjH3g.s['10']++;var _toolbar=__webpack_require__(/*! ./toolbar */ "./src/modules/toolbar.js");function _classCallCheck(instance,Constructor){__cov_ejH_W3dOAIk0zlNnRqjH3g.f['1']++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['12']++;if(!(instance instanceof Constructor)){__cov_ejH_W3dOAIk0zlNnRqjH3g.b['1'][0]++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['13']++;throw new TypeError('Cannot call a class as a function');}else{__cov_ejH_W3dOAIk0zlNnRqjH3g.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_ejH_W3dOAIk0zlNnRqjH3g.f['2']++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['15']++;if(!self){__cov_ejH_W3dOAIk0zlNnRqjH3g.b['2'][0]++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['16']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_ejH_W3dOAIk0zlNnRqjH3g.b['2'][1]++;}__cov_ejH_W3dOAIk0zlNnRqjH3g.s['17']++;return(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['4'][0]++,call)&&((__cov_ejH_W3dOAIk0zlNnRqjH3g.b['4'][1]++,typeof call==='object')||(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['4'][2]++,typeof call==='function'))?(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['3'][0]++,call):(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_ejH_W3dOAIk0zlNnRqjH3g.f['3']++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['19']++;if((__cov_ejH_W3dOAIk0zlNnRqjH3g.b['6'][0]++,typeof superClass!=='function')&&(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['6'][1]++,superClass!==null)){__cov_ejH_W3dOAIk0zlNnRqjH3g.b['5'][0]++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['20']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_ejH_W3dOAIk0zlNnRqjH3g.b['5'][1]++;}__cov_ejH_W3dOAIk0zlNnRqjH3g.s['21']++;subClass.prototype=Object.create((__cov_ejH_W3dOAIk0zlNnRqjH3g.b['7'][0]++,superClass)&&(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_ejH_W3dOAIk0zlNnRqjH3g.s['22']++;if(superClass){__cov_ejH_W3dOAIk0zlNnRqjH3g.b['8'][0]++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['23']++;Object.setPrototypeOf?(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_ejH_W3dOAIk0zlNnRqjH3g.b['8'][1]++;}}__cov_ejH_W3dOAIk0zlNnRqjH3g.s['24']++;var WIKI_URL='https://github.com/koalyptus/TableFilter/wiki/'+'4.-Filter-operators';__cov_ejH_W3dOAIk0zlNnRqjH3g.s['25']++;var WEBSITE_URL='https://www.tablefilter.com/';__cov_ejH_W3dOAIk0zlNnRqjH3g.s['26']++;var Help=exports.Help=function(_Feature){__cov_ejH_W3dOAIk0zlNnRqjH3g.f['4']++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['27']++;_inherits(Help,_Feature);function Help(tf){__cov_ejH_W3dOAIk0zlNnRqjH3g.f['5']++;__cov_ejH_W3dOAIk0zlNnRqjH3g.s['29']++;_classCallCheck(this,Help);__cov_ejH_W3dOAIk0zlNnRqjH3g.s['30']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,Help));__cov_ejH_W3dOAIk0zlNnRqjH3g.s['31']++;var f=(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['10'][0]++,_this.config.help_instructions)||(__cov_ejH_W3dOAIk0zlNnRqjH3g.b['10'][1]++,{});__cov_ejH_W3dOAIk0zlNnRqjH3g.s['32']++;_this.tgtId=(0,_settings.defaultsStr)(f.target_id,null);__cov_ejH_W3dOAIk0zlNnRqjH3g.s['33']++;_this.contTgtId=(0,_sett
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/highlightKeywords.js":
/*!******************************************!*\
!*** ./src/modules/highlightKeywords.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_Gv4hpdePHYG10zLTWYvRyQ = (Function('return this'))();
if (!__cov_Gv4hpdePHYG10zLTWYvRyQ.__coverage__) { __cov_Gv4hpdePHYG10zLTWYvRyQ.__coverage__ = {}; }
__cov_Gv4hpdePHYG10zLTWYvRyQ = __cov_Gv4hpdePHYG10zLTWYvRyQ.__coverage__;
if (!(__cov_Gv4hpdePHYG10zLTWYvRyQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\highlightKeywords.js'])) {
__cov_Gv4hpdePHYG10zLTWYvRyQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\highlightKeywords.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\highlightKeywords.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":1,"8":0,"9":0,"10":0,"11":1,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0,0,0,0],"12":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"fnMap":{"1":{"name":"_classCallCheck","line":16,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"HighlightKeyword","line":30,"loc":{"start":{"line":18,"column":4},"end":{"line":18,"column":20}}},"4":{"name":"init","line":59,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"(anonymous_5)","line":62,"loc":{"start":{"line":46,"column":12},"end":{"line":46,"column":12}}},"6":{"name":"(anonymous_6)","line":65,"loc":{"start":{"line":50,"column":12},"end":{"line":50,"column":12}}},"7":{"name":"highlight","line":80,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"unhighlight","line":123,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"unhighlightAll","line":142,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"destroy","line":153,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"11":{"name":"(anonymous_11)","line":156,"loc":{"start":{"line":132,"column":12},"end":{"line":132,"column":12}}},"12":{"name":"(anonymous_12)","line":159,"loc":{"start":{"line":136,"column":12},"end":{"line":136,"column":12}}},"13":{"name":"_processTerm","line":171,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":18,"column":4},"end":{"line":38,"column":5}},"12":{"start":{"line":18,"column":20},"end":{"line":18,"column":20}},"13":{"start":{"line":19,"column":8},"end":{"line":19,"column":8}},"14":{"start":{"line":25,"column":8},"end":{"line":25,"column":8}},"15":{"start":{"line":31,"column":8},"end":{"line":31,"column":8}},"16":{"start":{"line":37,"column":8},"end":{"line":37,"column":8}},"17":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"18":{"start":{"line":43,"column":11},"end":{"line":43,"column":11}},"19":{"start":{"line":44,"column":8},"end":{"line":44,"column":8}},"20":{"start":{"line":46,"column":12},"end":{"line":46,"column":12}},"21":{"start":{"line":48,"column":8},"end":{"line":48,"column":8}},"22":{"start":{"line":50,"column":12},"end":{"line":50,"colu
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_Gv4hpdePHYG10zLTWYvRyQ = __cov_Gv4hpdePHYG10zLTWYvRyQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\highlightKeywords.js'];
__cov_Gv4hpdePHYG10zLTWYvRyQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_Gv4hpdePHYG10zLTWYvRyQ.s['2']++;exports.HighlightKeyword=undefined;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['3']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_Gv4hpdePHYG10zLTWYvRyQ.s['4']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_Gv4hpdePHYG10zLTWYvRyQ.s['5']++;var _string=__webpack_require__(/*! ../string */ "./src/string.js");__cov_Gv4hpdePHYG10zLTWYvRyQ.s['6']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_Gv4hpdePHYG10zLTWYvRyQ.f['1']++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['8']++;if(!(instance instanceof Constructor)){__cov_Gv4hpdePHYG10zLTWYvRyQ.b['1'][0]++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['9']++;throw new TypeError('Cannot call a class as a function');}else{__cov_Gv4hpdePHYG10zLTWYvRyQ.b['1'][1]++;}}__cov_Gv4hpdePHYG10zLTWYvRyQ.s['10']++;var HighlightKeyword=exports.HighlightKeyword=function(){__cov_Gv4hpdePHYG10zLTWYvRyQ.f['2']++;function HighlightKeyword(tf){__cov_Gv4hpdePHYG10zLTWYvRyQ.f['3']++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['12']++;_classCallCheck(this,HighlightKeyword);__cov_Gv4hpdePHYG10zLTWYvRyQ.s['13']++;var f=tf.config();__cov_Gv4hpdePHYG10zLTWYvRyQ.s['14']++;this.highlightCssClass=(0,_settings.defaultsStr)(f.highlight_css_class,'keyword');__cov_Gv4hpdePHYG10zLTWYvRyQ.s['15']++;this.tf=tf;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['16']++;this.emitter=tf.emitter;}__cov_Gv4hpdePHYG10zLTWYvRyQ.s['17']++;HighlightKeyword.prototype.init=function init(){__cov_Gv4hpdePHYG10zLTWYvRyQ.f['4']++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['18']++;var _this=this;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['19']++;this.emitter.on(['before-filtering','destroy'],function(){__cov_Gv4hpdePHYG10zLTWYvRyQ.f['5']++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['20']++;return _this.unhighlightAll();});__cov_Gv4hpdePHYG10zLTWYvRyQ.s['21']++;this.emitter.on(['highlight-keyword'],function(tf,cell,term){__cov_Gv4hpdePHYG10zLTWYvRyQ.f['6']++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['22']++;return _this._processTerm(cell,term);});};__cov_Gv4hpdePHYG10zLTWYvRyQ.s['23']++;HighlightKeyword.prototype.highlight=function highlight(node,term,cssClass){__cov_Gv4hpdePHYG10zLTWYvRyQ.f['7']++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['24']++;if(node.hasChildNodes){__cov_Gv4hpdePHYG10zLTWYvRyQ.b['2'][0]++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['25']++;var children=node.childNodes;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['26']++;for(var i=0;i<children.length;i++){__cov_Gv4hpdePHYG10zLTWYvRyQ.s['27']++;this.highlight(children[i],term,cssClass);}}else{__cov_Gv4hpdePHYG10zLTWYvRyQ.b['2'][1]++;}__cov_Gv4hpdePHYG10zLTWYvRyQ.s['28']++;if(node.nodeType===3){__cov_Gv4hpdePHYG10zLTWYvRyQ.b['3'][0]++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['29']++;var nodeVal=node.nodeValue.toLowerCase();__cov_Gv4hpdePHYG10zLTWYvRyQ.s['30']++;var termIdx=nodeVal.indexOf(term.toLowerCase());__cov_Gv4hpdePHYG10zLTWYvRyQ.s['31']++;if(termIdx!==-1){__cov_Gv4hpdePHYG10zLTWYvRyQ.b['4'][0]++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['32']++;var pn=node.parentNode;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['33']++;if((__cov_Gv4hpdePHYG10zLTWYvRyQ.b['6'][0]++,pn)&&(__cov_Gv4hpdePHYG10zLTWYvRyQ.b['6'][1]++,pn.className!==cssClass)){__cov_Gv4hpdePHYG10zLTWYvRyQ.b['5'][0]++;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['34']++;var nv=node.nodeValue,before=(0,_dom.createText)(nv.substr(0,termIdx)),value=nv.substr(termIdx,term.length),after=(0,_dom.createText)(nv.substr(termIdx+term.length)),text=(0,_dom.createText)(value),container=(0,_dom.createElm)('span');__cov_Gv4hpdePHYG10zLTWYvRyQ.s['35']++;container.className=cssClass;__cov_Gv4hpdePHYG10zLTWYvRyQ.s['36']++;container.appendChild(text);__cov_Gv4hpdePHYG10zLTWYvRyQ.s['37']++;pn.insertBefore(before,node);__cov_Gv4hpdePHYG10zLTWYvRyQ.s['38']++;pn.insertBefore(container,node);__cov_Gv4hpdePHYG10zLTWYvRyQ.s['39']++;pn.insertBefore(after,node);__cov_Gv4hpdePHYG10zLTWYvRyQ.s['40']++;pn.removeChild(node);}else{__cov_Gv4hpdePHYG10zLTWYvRyQ.b['5'][1]++;}}else{__cov_Gv4hpdePHYG10zLTWYvRyQ.b['4'][1]++;}}else{__cov_Gv4hpdePHYG10zLTWYvRyQ.b['3'][1]++;}};__cov_Gv4h
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/loader.js":
/*!*******************************!*\
!*** ./src/modules/loader.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_lDq7oBZ8w0CV6u90GPVTOg = (Function('return this'))();
if (!__cov_lDq7oBZ8w0CV6u90GPVTOg.__coverage__) { __cov_lDq7oBZ8w0CV6u90GPVTOg.__coverage__ = {}; }
__cov_lDq7oBZ8w0CV6u90GPVTOg = __cov_lDq7oBZ8w0CV6u90GPVTOg.__coverage__;
if (!(__cov_lDq7oBZ8w0CV6u90GPVTOg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\loader.js'])) {
__cov_lDq7oBZ8w0CV6u90GPVTOg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\loader.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\loader.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":1,"13":0,"14":0,"15":0,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":1,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":1,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"fnMap":{"1":{"name":"_classCallCheck","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":38,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"Loader","line":46,"loc":{"start":{"line":46,"column":4},"end":{"line":46,"column":20}}},"6":{"name":"init","line":108,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":137,"loc":{"start":{"line":131,"column":41},"end":{"line":131,"column":41}}},"8":{"name":"(anonymous_8)","line":140,"loc":{"start":{"line":132,"column":40},"end":{"line":132,"column":40}}},"9":{"name":"show","line":154,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"displayLoader","line":159,"loc":{"start":{"line":147,"column":8},"end":{"line":147,"column":33}}},"11":{"name":"destroy","line":181,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"12":{"name":"(anonymous_12)","line":194,"loc":{"start":{"line":178,"column":42},"end":{"line":178,"column":42}}},"13":{"name":"(anonymous_13)","line":197,"loc":{"start":{"line":179,"column":41},"end":{"line":179,"column":41}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"8":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"18":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"19":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"20":{"start":{"line":0,"column":0},"end":{
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_lDq7oBZ8w0CV6u90GPVTOg = __cov_lDq7oBZ8w0CV6u90GPVTOg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\loader.js'];
__cov_lDq7oBZ8w0CV6u90GPVTOg.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_lDq7oBZ8w0CV6u90GPVTOg.s['2']++;exports.Loader=undefined;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_lDq7oBZ8w0CV6u90GPVTOg.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_lDq7oBZ8w0CV6u90GPVTOg.s['5']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_lDq7oBZ8w0CV6u90GPVTOg.s['6']++;var _root=__webpack_require__(/*! ../root */ "./src/root.js");__cov_lDq7oBZ8w0CV6u90GPVTOg.s['7']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_lDq7oBZ8w0CV6u90GPVTOg.s['8']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_lDq7oBZ8w0CV6u90GPVTOg.f['1']++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['10']++;if(!(instance instanceof Constructor)){__cov_lDq7oBZ8w0CV6u90GPVTOg.b['1'][0]++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['11']++;throw new TypeError('Cannot call a class as a function');}else{__cov_lDq7oBZ8w0CV6u90GPVTOg.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_lDq7oBZ8w0CV6u90GPVTOg.f['2']++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['13']++;if(!self){__cov_lDq7oBZ8w0CV6u90GPVTOg.b['2'][0]++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['14']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_lDq7oBZ8w0CV6u90GPVTOg.b['2'][1]++;}__cov_lDq7oBZ8w0CV6u90GPVTOg.s['15']++;return(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['4'][0]++,call)&&((__cov_lDq7oBZ8w0CV6u90GPVTOg.b['4'][1]++,typeof call==='object')||(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['4'][2]++,typeof call==='function'))?(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['3'][0]++,call):(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_lDq7oBZ8w0CV6u90GPVTOg.f['3']++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['17']++;if((__cov_lDq7oBZ8w0CV6u90GPVTOg.b['6'][0]++,typeof superClass!=='function')&&(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['6'][1]++,superClass!==null)){__cov_lDq7oBZ8w0CV6u90GPVTOg.b['5'][0]++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['18']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_lDq7oBZ8w0CV6u90GPVTOg.b['5'][1]++;}__cov_lDq7oBZ8w0CV6u90GPVTOg.s['19']++;subClass.prototype=Object.create((__cov_lDq7oBZ8w0CV6u90GPVTOg.b['7'][0]++,superClass)&&(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_lDq7oBZ8w0CV6u90GPVTOg.s['20']++;if(superClass){__cov_lDq7oBZ8w0CV6u90GPVTOg.b['8'][0]++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['21']++;Object.setPrototypeOf?(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_lDq7oBZ8w0CV6u90GPVTOg.b['8'][1]++;}}__cov_lDq7oBZ8w0CV6u90GPVTOg.s['22']++;var BEFORE_ACTION_EVENTS=['before-filtering','before-populating-filter','before-page-change','before-clearing-filters','before-page-length-change','before-reset-page','before-reset-page-length','before-loading-extensions','before-loading-themes'];__cov_lDq7oBZ8w0CV6u90GPVTOg.s['23']++;var AFTER_ACTION_EVENTS=['after-filtering','after-populating-filter','after-page-change','after-clearing-filters','after-page-length-change','after-reset-page','after-reset-page-length','after-loading-extensions','after-loading-themes'];__cov_lDq7oBZ8w0CV6u90GPVTOg.s['24']++;var Loader=exports.Loader=function(_Feature){__cov_lDq7oBZ8w0CV6u90GPVTOg.f['4']++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['25']++;_inherits(Loader,_Feature);function Loader(tf){__cov_lDq7oBZ8w0CV6u90GPVTOg.f['5']++;__cov_lDq7oBZ8w0CV6u90GPVTOg.s['27']++;_classCallCheck(this,Loader);__cov_lDq7oBZ8w0CV6u90GPVTOg.s['28']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,Loader));__cov_lDq7oBZ8w0CV6u90GPVTOg.s['29']++;var f=(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['10'][0]++,_this.config.loader)||(__cov_lDq7oBZ8w0CV6u90GPVTOg.b['10'][1]++,{});__cov_lDq7oBZ8w0CV6u90
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/markActiveColumns.js":
/*!******************************************!*\
!*** ./src/modules/markActiveColumns.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_LwmJWoV4ipyHtL9IQFVJbQ = (Function('return this'))();
if (!__cov_LwmJWoV4ipyHtL9IQFVJbQ.__coverage__) { __cov_LwmJWoV4ipyHtL9IQFVJbQ.__coverage__ = {}; }
__cov_LwmJWoV4ipyHtL9IQFVJbQ = __cov_LwmJWoV4ipyHtL9IQFVJbQ.__coverage__;
if (!(__cov_LwmJWoV4ipyHtL9IQFVJbQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\markActiveColumns.js'])) {
__cov_LwmJWoV4ipyHtL9IQFVJbQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\markActiveColumns.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\markActiveColumns.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":1,"8":0,"9":0,"10":1,"11":0,"12":0,"13":0,"14":1,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":1,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0},"fnMap":{"1":{"name":"_classCallCheck","line":16,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":18,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":28,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"MarkActiveColumns","line":35,"loc":{"start":{"line":18,"column":4},"end":{"line":18,"column":20}}},"6":{"name":"init","line":79,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":86,"loc":{"start":{"line":66,"column":46},"end":{"line":66,"column":46}}},"8":{"name":"(anonymous_8)","line":89,"loc":{"start":{"line":69,"column":12},"end":{"line":69,"column":12}}},"9":{"name":"clearActiveColumns","line":102,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"(anonymous_10)","line":106,"loc":{"start":{"line":81,"column":19},"end":{"line":81,"column":28}}},"11":{"name":"(anonymous_11)","line":110,"loc":{"start":{"line":86,"column":20},"end":{"line":86,"column":20}}},"12":{"name":"markActiveColumn","line":123,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"13":{"name":"(anonymous_13)","line":137,"loc":{"start":{"line":108,"column":16},"end":{"line":108,"column":16}}},"14":{"name":"eachColumnCell","line":155,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"15":{"name":"destroy","line":168,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"16":{"name":"(anonymous_16)","line":176,"loc":{"start":{"line":137,"column":47},"end":{"line":137,"column":47}}},"17":{"name":"(anonymous_17)","line":179,"loc":{"start":{"line":140,"column":12},"end":{"line":140,"column":12}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"st
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_LwmJWoV4ipyHtL9IQFVJbQ = __cov_LwmJWoV4ipyHtL9IQFVJbQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\markActiveColumns.js'];
__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['2']++;exports.MarkActiveColumns=undefined;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['5']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['6']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_LwmJWoV4ipyHtL9IQFVJbQ.f['1']++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['8']++;if(!(instance instanceof Constructor)){__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['1'][0]++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['9']++;throw new TypeError('Cannot call a class as a function');}else{__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_LwmJWoV4ipyHtL9IQFVJbQ.f['2']++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['11']++;if(!self){__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['2'][0]++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['12']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['2'][1]++;}__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['13']++;return(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['4'][0]++,call)&&((__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['4'][1]++,typeof call==='object')||(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['4'][2]++,typeof call==='function'))?(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['3'][0]++,call):(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_LwmJWoV4ipyHtL9IQFVJbQ.f['3']++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['15']++;if((__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['6'][0]++,typeof superClass!=='function')&&(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['6'][1]++,superClass!==null)){__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['5'][0]++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['16']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['5'][1]++;}__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['17']++;subClass.prototype=Object.create((__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['7'][0]++,superClass)&&(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['18']++;if(superClass){__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['8'][0]++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['19']++;Object.setPrototypeOf?(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['8'][1]++;}}__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['20']++;var MarkActiveColumns=exports.MarkActiveColumns=function(_Feature){__cov_LwmJWoV4ipyHtL9IQFVJbQ.f['4']++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['21']++;_inherits(MarkActiveColumns,_Feature);function MarkActiveColumns(tf){__cov_LwmJWoV4ipyHtL9IQFVJbQ.f['5']++;__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['23']++;_classCallCheck(this,MarkActiveColumns);__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['24']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,MarkActiveColumns));__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['25']++;var config=(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['10'][0]++,_this.config.mark_active_columns)||(__cov_LwmJWoV4ipyHtL9IQFVJbQ.b['10'][1]++,{});__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['26']++;_this.headerCssClass=(0,_settings.defaultsStr)(config.header_css_class,'activeHeader');__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['27']++;_this.cellCssClass=(0,_settings.defaultsStr)(config.cell_css_class,'activeCell');__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['28']++;_this.highlightColumn=Boolean(config.highlight_column);__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['29']++;_this.onBeforeActiveColumn=(0,_settings.defaultsFn)(config.on_before_active_column,_types.EMPTY_FN);__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['30']++;_this.onAfterActiveColumn=(0,_settings.defaultsFn)(config.on_after_active_column,_types.EMPTY_FN);__cov_LwmJWoV4ipyHtL9IQFVJbQ.s['31']++;return _this;}__cov_LwmJWoV4ipyHtL9IQFV
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/noResults.js":
/*!**********************************!*\
!*** ./src/modules/noResults.js ***!
\**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_0cSAxDagcY$D5y$4uAoRlQ = (Function('return this'))();
if (!__cov_0cSAxDagcY$D5y$4uAoRlQ.__coverage__) { __cov_0cSAxDagcY$D5y$4uAoRlQ.__coverage__ = {}; }
__cov_0cSAxDagcY$D5y$4uAoRlQ = __cov_0cSAxDagcY$D5y$4uAoRlQ.__coverage__;
if (!(__cov_0cSAxDagcY$D5y$4uAoRlQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\noResults.js'])) {
__cov_0cSAxDagcY$D5y$4uAoRlQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\noResults.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\noResults.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":1,"9":0,"10":0,"11":1,"12":0,"13":0,"14":0,"15":1,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":1,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0,0],"22":[0,0],"23":[0,0],"24":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"fnMap":{"1":{"name":"_classCallCheck","line":18,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":30,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"NoResults","line":37,"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":20}}},"6":{"name":"init","line":113,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":136,"loc":{"start":{"line":115,"column":12},"end":{"line":115,"column":12}}},"8":{"name":"toggle","line":149,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"show","line":162,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"hide","line":179,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"11":{"name":"setWidth","line":196,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"12":{"name":"destroy","line":212,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"13":{"name":"(anonymous_13)","line":221,"loc":{"start":{"line":189,"column":46},"end":{"line":189,"column":46}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"18":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"19"
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_0cSAxDagcY$D5y$4uAoRlQ = __cov_0cSAxDagcY$D5y$4uAoRlQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\noResults.js'];
__cov_0cSAxDagcY$D5y$4uAoRlQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_0cSAxDagcY$D5y$4uAoRlQ.s['2']++;exports.NoResults=undefined;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_0cSAxDagcY$D5y$4uAoRlQ.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_0cSAxDagcY$D5y$4uAoRlQ.s['5']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_0cSAxDagcY$D5y$4uAoRlQ.s['6']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_0cSAxDagcY$D5y$4uAoRlQ.s['7']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_0cSAxDagcY$D5y$4uAoRlQ.f['1']++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['9']++;if(!(instance instanceof Constructor)){__cov_0cSAxDagcY$D5y$4uAoRlQ.b['1'][0]++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['10']++;throw new TypeError('Cannot call a class as a function');}else{__cov_0cSAxDagcY$D5y$4uAoRlQ.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_0cSAxDagcY$D5y$4uAoRlQ.f['2']++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['12']++;if(!self){__cov_0cSAxDagcY$D5y$4uAoRlQ.b['2'][0]++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['13']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_0cSAxDagcY$D5y$4uAoRlQ.b['2'][1]++;}__cov_0cSAxDagcY$D5y$4uAoRlQ.s['14']++;return(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['4'][0]++,call)&&((__cov_0cSAxDagcY$D5y$4uAoRlQ.b['4'][1]++,typeof call==='object')||(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['4'][2]++,typeof call==='function'))?(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['3'][0]++,call):(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_0cSAxDagcY$D5y$4uAoRlQ.f['3']++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['16']++;if((__cov_0cSAxDagcY$D5y$4uAoRlQ.b['6'][0]++,typeof superClass!=='function')&&(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['6'][1]++,superClass!==null)){__cov_0cSAxDagcY$D5y$4uAoRlQ.b['5'][0]++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['17']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_0cSAxDagcY$D5y$4uAoRlQ.b['5'][1]++;}__cov_0cSAxDagcY$D5y$4uAoRlQ.s['18']++;subClass.prototype=Object.create((__cov_0cSAxDagcY$D5y$4uAoRlQ.b['7'][0]++,superClass)&&(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_0cSAxDagcY$D5y$4uAoRlQ.s['19']++;if(superClass){__cov_0cSAxDagcY$D5y$4uAoRlQ.b['8'][0]++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['20']++;Object.setPrototypeOf?(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_0cSAxDagcY$D5y$4uAoRlQ.b['8'][1]++;}}__cov_0cSAxDagcY$D5y$4uAoRlQ.s['21']++;var NoResults=exports.NoResults=function(_Feature){__cov_0cSAxDagcY$D5y$4uAoRlQ.f['4']++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['22']++;_inherits(NoResults,_Feature);function NoResults(tf){__cov_0cSAxDagcY$D5y$4uAoRlQ.f['5']++;__cov_0cSAxDagcY$D5y$4uAoRlQ.s['24']++;_classCallCheck(this,NoResults);__cov_0cSAxDagcY$D5y$4uAoRlQ.s['25']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,NoResults));__cov_0cSAxDagcY$D5y$4uAoRlQ.s['26']++;var f=(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['10'][0]++,_this.config.no_results_message)||(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['10'][1]++,{});__cov_0cSAxDagcY$D5y$4uAoRlQ.s['27']++;_this.content=(0,_settings.defaultsStr)(f.content,'No results');__cov_0cSAxDagcY$D5y$4uAoRlQ.s['28']++;_this.customContainer=(0,_settings.defaultsStr)(f.custom_container,null);__cov_0cSAxDagcY$D5y$4uAoRlQ.s['29']++;_this.customContainerId=(0,_settings.defaultsStr)(f.custom_container_id,null);__cov_0cSAxDagcY$D5y$4uAoRlQ.s['30']++;_this.isExternal=(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['11'][0]++,!(0,_types.isEmpty)(_this.customContainer))||(__cov_0cSAxDagcY$D5y$4uAoRlQ.b['11'][1]++,!(0,_types.isEmpty)(_this.customContainerId));__cov_0cSAxDagcY$D5y$4uAoRlQ.s['31']++;_this.cssClass=(0,_settings.defaultsStr)(f.css_c
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/paging.js":
/*!*******************************!*\
!*** ./src/modules/paging.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_BTN0vHeNMJfK7TsLZhRNZg = (Function('return this'))();
if (!__cov_BTN0vHeNMJfK7TsLZhRNZg.__coverage__) { __cov_BTN0vHeNMJfK7TsLZhRNZg.__coverage__ = {}; }
__cov_BTN0vHeNMJfK7TsLZhRNZg = __cov_BTN0vHeNMJfK7TsLZhRNZg.__coverage__;
if (!(__cov_BTN0vHeNMJfK7TsLZhRNZg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\paging.js'])) {
__cov_BTN0vHeNMJfK7TsLZhRNZg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\paging.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\paging.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":1,"14":0,"15":0,"16":1,"17":0,"18":0,"19":0,"20":1,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":1,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0,"210":0,"211":0,"212":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"221":0,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0,"230":0,"231":0,"232":0,"233":0,"234":0,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0,"246":0,"247":0,"248":0,"249":0,"250":0,"251":0,"252":0,"253":0,"254":0,"255":0,"256":0,"257":0,"258":0,"259":0,"260":0,"261":0,"262":0,"263":0,"264":0,"265":0,"266":0,"267":0,"268":0,"269":0,"270":0,"271":0,"272":0,"273":0,"274":0,"275":0,"276":0,"277":0,"278":0,"279":0,"280":0,"281":0,"282":0,"283":0,"284":0,"285":0,"286":0,"287":0,"288":0,"289":0,"290":0,"291":0,"292":0,"293":0,"294":0,"295":0,"296":0,"297":0,"298":0,"299":0,"300":0,"301":0,"302":0,"303":0,"304":0,"305":0,"306":0,"307":0,"308":0,"309":0,"310":0,"311":0,"312":0,"313":0,"314":0,"315":0,"316":0,"317":0,"318":0,"319":0,"320":0,"321":0,"322":0,"323":0,"324":0,"325":0,"326":0,"327":0,"328":0,"329":0,"330":0,"331":0,"332":0,"333":0,"334":0,"335":0,"336":0,"337":0,"338":0,"339":0,"340":0,"341":0,"342":0,"343":0,"344":0,"345":0,"346":0,"347":0,"348":0,"349":0,"350":0,"351":0,"352":0,"353":0,"354":0,"355":0,"356":0,"357":0,"358":0,"359":0,"360":0,"361":0,"362":0,"363":0,"364":0,"365":0,"366":0,"367":0,"368":0,"369":0,"370":0,"371":0,"372":0,"373":0,"374":0,"375":0,"376":0,"377":0,"378":0,"379":0,"380":0,"381":0,"382":0,"383":0,"384":0,"385":0,"386":0,"387":0,"388":0,"389":0,"390":0,"391":0,"392":0,"393":0,"394":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0],"54":[0,0,0,0,0],"55":[0,0],"56":[0,0],"57":[0,0],"58":[0,0],"59":[0,0],"60":[0,0],"61":[0,0],"62":[0,0,0],"63":[0,0],"64":[0,0],"65":[0,0],"66":[0,0],"67":[0,0],"68":[0,0],"69":[0,0],"70":[0,0],"71":[0,0],"72":[0,0],"73":[0,0],"74":[0,0],"75":[0,0],"76":[0,0],"77":[0,0],"78":[0,0
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_BTN0vHeNMJfK7TsLZhRNZg = __cov_BTN0vHeNMJfK7TsLZhRNZg['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\paging.js'];
__cov_BTN0vHeNMJfK7TsLZhRNZg.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_BTN0vHeNMJfK7TsLZhRNZg.s['2']++;exports.Paging=undefined;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['3']++;var _typeof=(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['2'][0]++,typeof Symbol==='function')&&(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['2'][1]++,typeof Symbol.iterator==='symbol')?(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['1'][0]++,function(obj){__cov_BTN0vHeNMJfK7TsLZhRNZg.f['1']++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['4']++;return typeof obj;}):(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['1'][1]++,function(obj){__cov_BTN0vHeNMJfK7TsLZhRNZg.f['2']++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['5']++;return(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['4'][0]++,obj)&&(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['4'][1]++,typeof Symbol==='function')&&(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['4'][2]++,obj.constructor===Symbol)&&(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['4'][3]++,obj!==Symbol.prototype)?(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['3'][0]++,'symbol'):(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['3'][1]++,typeof obj);});__cov_BTN0vHeNMJfK7TsLZhRNZg.s['6']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_BTN0vHeNMJfK7TsLZhRNZg.s['7']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_BTN0vHeNMJfK7TsLZhRNZg.s['8']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_BTN0vHeNMJfK7TsLZhRNZg.s['9']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");__cov_BTN0vHeNMJfK7TsLZhRNZg.s['10']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_BTN0vHeNMJfK7TsLZhRNZg.s['11']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");__cov_BTN0vHeNMJfK7TsLZhRNZg.s['12']++;var _toolbar=__webpack_require__(/*! ./toolbar */ "./src/modules/toolbar.js");function _classCallCheck(instance,Constructor){__cov_BTN0vHeNMJfK7TsLZhRNZg.f['3']++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['14']++;if(!(instance instanceof Constructor)){__cov_BTN0vHeNMJfK7TsLZhRNZg.b['5'][0]++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['15']++;throw new TypeError('Cannot call a class as a function');}else{__cov_BTN0vHeNMJfK7TsLZhRNZg.b['5'][1]++;}}function _possibleConstructorReturn(self,call){__cov_BTN0vHeNMJfK7TsLZhRNZg.f['4']++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['17']++;if(!self){__cov_BTN0vHeNMJfK7TsLZhRNZg.b['6'][0]++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['18']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_BTN0vHeNMJfK7TsLZhRNZg.b['6'][1]++;}__cov_BTN0vHeNMJfK7TsLZhRNZg.s['19']++;return(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['8'][0]++,call)&&((__cov_BTN0vHeNMJfK7TsLZhRNZg.b['8'][1]++,typeof call==='object')||(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['8'][2]++,typeof call==='function'))?(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['7'][0]++,call):(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['7'][1]++,self);}function _inherits(subClass,superClass){__cov_BTN0vHeNMJfK7TsLZhRNZg.f['5']++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['21']++;if((__cov_BTN0vHeNMJfK7TsLZhRNZg.b['10'][0]++,typeof superClass!=='function')&&(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['10'][1]++,superClass!==null)){__cov_BTN0vHeNMJfK7TsLZhRNZg.b['9'][0]++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['22']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_BTN0vHeNMJfK7TsLZhRNZg.b['9'][1]++;}__cov_BTN0vHeNMJfK7TsLZhRNZg.s['23']++;subClass.prototype=Object.create((__cov_BTN0vHeNMJfK7TsLZhRNZg.b['11'][0]++,superClass)&&(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['11'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_BTN0vHeNMJfK7TsLZhRNZg.s['24']++;if(superClass){__cov_BTN0vHeNMJfK7TsLZhRNZg.b['12'][0]++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['25']++;Object.setPrototypeOf?(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['13'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_BTN0vHeNMJfK7TsLZhRNZg.b['13'][1]++,subClass.__proto__=superClass);}else{__cov_BTN0vHeNMJfK7TsLZhRNZg.b['12'][1]++;}}__cov_BTN0vHeNMJfK7TsLZhRNZg.s['26']++;var Paging=exports.Paging=function(_Feature){__cov_BTN0vHeNMJfK7TsLZhRNZg.f['6']++;__cov_BTN0vHeNMJfK7TsLZhRNZg.s['27']++;_inherits(Paging,_Featur
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/popupFilter.js":
/*!************************************!*\
!*** ./src/modules/popupFilter.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_ABCbvbcTHcN3BmDXnWt87g = (Function('return this'))();
if (!__cov_ABCbvbcTHcN3BmDXnWt87g.__coverage__) { __cov_ABCbvbcTHcN3BmDXnWt87g.__coverage__ = {}; }
__cov_ABCbvbcTHcN3BmDXnWt87g = __cov_ABCbvbcTHcN3BmDXnWt87g.__coverage__;
if (!(__cov_ABCbvbcTHcN3BmDXnWt87g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\popupFilter.js'])) {
__cov_ABCbvbcTHcN3BmDXnWt87g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\popupFilter.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\popupFilter.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":0,"12":0,"13":1,"14":0,"15":0,"16":0,"17":1,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":1,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0},"fnMap":{"1":{"name":"_classCallCheck","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":26,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":34,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"PopupFilter","line":41,"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":20}}},"6":{"name":"onClick","line":166,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"onMouseup","line":189,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"init","line":217,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"(anonymous_9)","line":248,"loc":{"start":{"line":221,"column":46},"end":{"line":221,"column":46}}},"10":{"name":"(anonymous_10)","line":251,"loc":{"start":{"line":222,"column":45},"end":{"line":222,"column":45}}},"11":{"name":"(anonymous_11)","line":254,"loc":{"start":{"line":224,"column":12},"end":{"line":224,"column":12}}},"12":{"name":"(anonymous_12)","line":257,"loc":{"start":{"line":225,"column":50},"end":{"line":225,"column":50}}},"13":{"name":"(anonymous_13)","line":260,"loc":{"start":{"line":227,"column":12},"end":{"line":227,"column":12}}},"14":{"name":"reset","line":273,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"sk
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_ABCbvbcTHcN3BmDXnWt87g = __cov_ABCbvbcTHcN3BmDXnWt87g['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\popupFilter.js'];
__cov_ABCbvbcTHcN3BmDXnWt87g.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_ABCbvbcTHcN3BmDXnWt87g.s['2']++;exports.PopupFilter=undefined;__cov_ABCbvbcTHcN3BmDXnWt87g.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_ABCbvbcTHcN3BmDXnWt87g.s['4']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_ABCbvbcTHcN3BmDXnWt87g.s['5']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_ABCbvbcTHcN3BmDXnWt87g.s['6']++;var _event=__webpack_require__(/*! ../event */ "./src/event.js");__cov_ABCbvbcTHcN3BmDXnWt87g.s['7']++;var _const=__webpack_require__(/*! ../const */ "./src/const.js");__cov_ABCbvbcTHcN3BmDXnWt87g.s['8']++;var _root=__webpack_require__(/*! ../root */ "./src/root.js");__cov_ABCbvbcTHcN3BmDXnWt87g.s['9']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_ABCbvbcTHcN3BmDXnWt87g.f['1']++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['11']++;if(!(instance instanceof Constructor)){__cov_ABCbvbcTHcN3BmDXnWt87g.b['1'][0]++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['12']++;throw new TypeError('Cannot call a class as a function');}else{__cov_ABCbvbcTHcN3BmDXnWt87g.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_ABCbvbcTHcN3BmDXnWt87g.f['2']++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['14']++;if(!self){__cov_ABCbvbcTHcN3BmDXnWt87g.b['2'][0]++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['15']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_ABCbvbcTHcN3BmDXnWt87g.b['2'][1]++;}__cov_ABCbvbcTHcN3BmDXnWt87g.s['16']++;return(__cov_ABCbvbcTHcN3BmDXnWt87g.b['4'][0]++,call)&&((__cov_ABCbvbcTHcN3BmDXnWt87g.b['4'][1]++,typeof call==='object')||(__cov_ABCbvbcTHcN3BmDXnWt87g.b['4'][2]++,typeof call==='function'))?(__cov_ABCbvbcTHcN3BmDXnWt87g.b['3'][0]++,call):(__cov_ABCbvbcTHcN3BmDXnWt87g.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_ABCbvbcTHcN3BmDXnWt87g.f['3']++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['18']++;if((__cov_ABCbvbcTHcN3BmDXnWt87g.b['6'][0]++,typeof superClass!=='function')&&(__cov_ABCbvbcTHcN3BmDXnWt87g.b['6'][1]++,superClass!==null)){__cov_ABCbvbcTHcN3BmDXnWt87g.b['5'][0]++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['19']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_ABCbvbcTHcN3BmDXnWt87g.b['5'][1]++;}__cov_ABCbvbcTHcN3BmDXnWt87g.s['20']++;subClass.prototype=Object.create((__cov_ABCbvbcTHcN3BmDXnWt87g.b['7'][0]++,superClass)&&(__cov_ABCbvbcTHcN3BmDXnWt87g.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_ABCbvbcTHcN3BmDXnWt87g.s['21']++;if(superClass){__cov_ABCbvbcTHcN3BmDXnWt87g.b['8'][0]++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['22']++;Object.setPrototypeOf?(__cov_ABCbvbcTHcN3BmDXnWt87g.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_ABCbvbcTHcN3BmDXnWt87g.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_ABCbvbcTHcN3BmDXnWt87g.b['8'][1]++;}}__cov_ABCbvbcTHcN3BmDXnWt87g.s['23']++;var PopupFilter=exports.PopupFilter=function(_Feature){__cov_ABCbvbcTHcN3BmDXnWt87g.f['4']++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['24']++;_inherits(PopupFilter,_Feature);function PopupFilter(tf){__cov_ABCbvbcTHcN3BmDXnWt87g.f['5']++;__cov_ABCbvbcTHcN3BmDXnWt87g.s['26']++;_classCallCheck(this,PopupFilter);__cov_ABCbvbcTHcN3BmDXnWt87g.s['27']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,PopupFilter));__cov_ABCbvbcTHcN3BmDXnWt87g.s['28']++;var f=(__cov_ABCbvbcTHcN3BmDXnWt87g.b['10'][0]++,_this.config.popup_filters)||(__cov_ABCbvbcTHcN3BmDXnWt87g.b['10'][1]++,{});__cov_ABCbvbcTHcN3BmDXnWt87g.s['29']++;_this.closeOnFiltering=(0,_settings.defaultsBool)(f.close_on_filtering,true);__cov_ABCbvbcTHcN3BmDXnWt87g.s['30']++;_this.iconPath=(0,_settings.defaultsStr)(f.image,tf.themesPath+'icn_filter.gif');__cov_ABCbvbcTHcN3BmDXnWt87g.s['31']++;_this.activeIconPath=(0,_settings.defaultsStr)(f.image_active,tf.themesPath+'icn_filterActive.gif');__cov_ABCbvbcTHcN3BmDXnWt87g.s['32']++;_this.iconHtml=(0,_settin
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/rowsCounter.js":
/*!************************************!*\
!*** ./src/modules/rowsCounter.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_BguvyGCEzNq5WXiOywPrAA = (Function('return this'))();
if (!__cov_BguvyGCEzNq5WXiOywPrAA.__coverage__) { __cov_BguvyGCEzNq5WXiOywPrAA.__coverage__ = {}; }
__cov_BguvyGCEzNq5WXiOywPrAA = __cov_BguvyGCEzNq5WXiOywPrAA.__coverage__;
if (!(__cov_BguvyGCEzNq5WXiOywPrAA['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\rowsCounter.js'])) {
__cov_BguvyGCEzNq5WXiOywPrAA['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\rowsCounter.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\rowsCounter.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":1,"9":0,"10":0,"11":1,"12":0,"13":0,"14":0,"15":1,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":1,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0},"fnMap":{"1":{"name":"_classCallCheck","line":18,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":30,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"RowsCounter","line":37,"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":20}}},"6":{"name":"init","line":117,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":153,"loc":{"start":{"line":133,"column":12},"end":{"line":133,"column":12}}},"8":{"name":"(anonymous_8)","line":156,"loc":{"start":{"line":134,"column":42},"end":{"line":134,"column":42}}},"9":{"name":"refresh","line":173,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"destroy","line":209,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"11":{"name":"(anonymous_11)","line":225,"loc":{"start":{"line":202,"column":12},"end":{"line":202,"column":12}}},"12":{"name":"(anonymous_12)","line":228,"loc":{"start":{"line":203,"column":43},"end":{"line":203,"column":43}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"18":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"19":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"20":{"star
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_BguvyGCEzNq5WXiOywPrAA = __cov_BguvyGCEzNq5WXiOywPrAA['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\rowsCounter.js'];
__cov_BguvyGCEzNq5WXiOywPrAA.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_BguvyGCEzNq5WXiOywPrAA.s['2']++;exports.RowsCounter=undefined;__cov_BguvyGCEzNq5WXiOywPrAA.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_BguvyGCEzNq5WXiOywPrAA.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_BguvyGCEzNq5WXiOywPrAA.s['5']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_BguvyGCEzNq5WXiOywPrAA.s['6']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");__cov_BguvyGCEzNq5WXiOywPrAA.s['7']++;var _toolbar=__webpack_require__(/*! ./toolbar */ "./src/modules/toolbar.js");function _classCallCheck(instance,Constructor){__cov_BguvyGCEzNq5WXiOywPrAA.f['1']++;__cov_BguvyGCEzNq5WXiOywPrAA.s['9']++;if(!(instance instanceof Constructor)){__cov_BguvyGCEzNq5WXiOywPrAA.b['1'][0]++;__cov_BguvyGCEzNq5WXiOywPrAA.s['10']++;throw new TypeError('Cannot call a class as a function');}else{__cov_BguvyGCEzNq5WXiOywPrAA.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_BguvyGCEzNq5WXiOywPrAA.f['2']++;__cov_BguvyGCEzNq5WXiOywPrAA.s['12']++;if(!self){__cov_BguvyGCEzNq5WXiOywPrAA.b['2'][0]++;__cov_BguvyGCEzNq5WXiOywPrAA.s['13']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_BguvyGCEzNq5WXiOywPrAA.b['2'][1]++;}__cov_BguvyGCEzNq5WXiOywPrAA.s['14']++;return(__cov_BguvyGCEzNq5WXiOywPrAA.b['4'][0]++,call)&&((__cov_BguvyGCEzNq5WXiOywPrAA.b['4'][1]++,typeof call==='object')||(__cov_BguvyGCEzNq5WXiOywPrAA.b['4'][2]++,typeof call==='function'))?(__cov_BguvyGCEzNq5WXiOywPrAA.b['3'][0]++,call):(__cov_BguvyGCEzNq5WXiOywPrAA.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_BguvyGCEzNq5WXiOywPrAA.f['3']++;__cov_BguvyGCEzNq5WXiOywPrAA.s['16']++;if((__cov_BguvyGCEzNq5WXiOywPrAA.b['6'][0]++,typeof superClass!=='function')&&(__cov_BguvyGCEzNq5WXiOywPrAA.b['6'][1]++,superClass!==null)){__cov_BguvyGCEzNq5WXiOywPrAA.b['5'][0]++;__cov_BguvyGCEzNq5WXiOywPrAA.s['17']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_BguvyGCEzNq5WXiOywPrAA.b['5'][1]++;}__cov_BguvyGCEzNq5WXiOywPrAA.s['18']++;subClass.prototype=Object.create((__cov_BguvyGCEzNq5WXiOywPrAA.b['7'][0]++,superClass)&&(__cov_BguvyGCEzNq5WXiOywPrAA.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_BguvyGCEzNq5WXiOywPrAA.s['19']++;if(superClass){__cov_BguvyGCEzNq5WXiOywPrAA.b['8'][0]++;__cov_BguvyGCEzNq5WXiOywPrAA.s['20']++;Object.setPrototypeOf?(__cov_BguvyGCEzNq5WXiOywPrAA.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_BguvyGCEzNq5WXiOywPrAA.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_BguvyGCEzNq5WXiOywPrAA.b['8'][1]++;}}__cov_BguvyGCEzNq5WXiOywPrAA.s['21']++;var RowsCounter=exports.RowsCounter=function(_Feature){__cov_BguvyGCEzNq5WXiOywPrAA.f['4']++;__cov_BguvyGCEzNq5WXiOywPrAA.s['22']++;_inherits(RowsCounter,_Feature);function RowsCounter(tf){__cov_BguvyGCEzNq5WXiOywPrAA.f['5']++;__cov_BguvyGCEzNq5WXiOywPrAA.s['24']++;_classCallCheck(this,RowsCounter);__cov_BguvyGCEzNq5WXiOywPrAA.s['25']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,RowsCounter));__cov_BguvyGCEzNq5WXiOywPrAA.s['26']++;var f=(__cov_BguvyGCEzNq5WXiOywPrAA.b['10'][0]++,_this.config.rows_counter)||(__cov_BguvyGCEzNq5WXiOywPrAA.b['10'][1]++,{});__cov_BguvyGCEzNq5WXiOywPrAA.s['27']++;_this.targetId=(0,_settings.defaultsStr)(f.target_id,null);__cov_BguvyGCEzNq5WXiOywPrAA.s['28']++;_this.container=null;__cov_BguvyGCEzNq5WXiOywPrAA.s['29']++;_this.label=null;__cov_BguvyGCEzNq5WXiOywPrAA.s['30']++;_this.text=(0,_settings.defaultsStr)(f.text,'Rows: ');__cov_BguvyGCEzNq5WXiOywPrAA.s['31']++;_this.fromToTextSeparator=(0,_settings.defaultsStr)(f.separator,'-');__cov_BguvyGCEzNq5WXiOywPrAA.s['32']++;_this.overText=(0,_settings.defaultsStr)(f.over_text,' / ');__cov_BguvyGCEzNq5WXiOywPrAA.s['33']++;_this.cssClass=(0,_settings.defaultsStr)(f.css_class,'tot');__cov_BguvyGCEzNq5
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/state.js":
/*!******************************!*\
!*** ./src/modules/state.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_mPP0cZhLXiPL2$L3ii$mDQ = (Function('return this'))();
if (!__cov_mPP0cZhLXiPL2$L3ii$mDQ.__coverage__) { __cov_mPP0cZhLXiPL2$L3ii$mDQ.__coverage__ = {}; }
__cov_mPP0cZhLXiPL2$L3ii$mDQ = __cov_mPP0cZhLXiPL2$L3ii$mDQ.__coverage__;
if (!(__cov_mPP0cZhLXiPL2$L3ii$mDQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\state.js'])) {
__cov_mPP0cZhLXiPL2$L3ii$mDQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\state.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\state.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":1,"13":0,"14":0,"15":0,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":1,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0,"210":0,"211":0,"212":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"221":0,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0,"230":0,"231":0,"232":0,"233":0,"234":0,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0},"fnMap":{"1":{"name":"_classCallCheck","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":33,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"State","line":40,"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":20}}},"6":{"name":"init","line":205,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":212,"loc":{"start":{"line":190,"column":45},"end":{"line":190,"column":45}}},"8":{"name":"(anonymous_8)","line":215,"loc":{"start":{"line":192,"column":12},"end":{"line":192,"column":12}}},"9":{"name":"(anonymous_9)","line":218,"loc":{"start":{"line":194,"column":12},"end":{"line":194,"column":12}}},"10":{"name":"(anonymous_10)","line":221,"loc":{"start":{"line":196,"column":12},"end":{"line":19
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_mPP0cZhLXiPL2$L3ii$mDQ = __cov_mPP0cZhLXiPL2$L3ii$mDQ['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\state.js'];
__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['2']++;exports.State=undefined;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['4']++;var _hash=__webpack_require__(/*! ./hash */ "./src/modules/hash.js");__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['5']++;var _storage=__webpack_require__(/*! ./storage */ "./src/modules/storage.js");__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['6']++;var _string=__webpack_require__(/*! ../string */ "./src/string.js");__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['7']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['8']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");function _classCallCheck(instance,Constructor){__cov_mPP0cZhLXiPL2$L3ii$mDQ.f['1']++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['10']++;if(!(instance instanceof Constructor)){__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['1'][0]++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['11']++;throw new TypeError('Cannot call a class as a function');}else{__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_mPP0cZhLXiPL2$L3ii$mDQ.f['2']++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['13']++;if(!self){__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['2'][0]++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['14']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['2'][1]++;}__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['15']++;return(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['4'][0]++,call)&&((__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['4'][1]++,typeof call==='object')||(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['4'][2]++,typeof call==='function'))?(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['3'][0]++,call):(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_mPP0cZhLXiPL2$L3ii$mDQ.f['3']++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['17']++;if((__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['6'][0]++,typeof superClass!=='function')&&(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['6'][1]++,superClass!==null)){__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['5'][0]++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['18']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['5'][1]++;}__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['19']++;subClass.prototype=Object.create((__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['7'][0]++,superClass)&&(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['20']++;if(superClass){__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['8'][0]++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['21']++;Object.setPrototypeOf?(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['8'][1]++;}}__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['22']++;var State=exports.State=function(_Feature){__cov_mPP0cZhLXiPL2$L3ii$mDQ.f['4']++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['23']++;_inherits(State,_Feature);function State(tf){__cov_mPP0cZhLXiPL2$L3ii$mDQ.f['5']++;__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['25']++;_classCallCheck(this,State);__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['26']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,State));__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['27']++;var cfg=(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['10'][0]++,_this.config.state)||(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['10'][1]++,{});__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['28']++;_this.enableHash=(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['11'][0]++,cfg===true)||(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['11'][1]++,(0,_types.isArray)(cfg.types))&&(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['11'][2]++,cfg.types.indexOf('hash')!==-1);__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['29']++;_this.enableLocalStorage=(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['12'][0]++,(0,_types.isArray)(cfg.types))&&(__cov_mPP0cZhLXiPL2$L3ii$mDQ.b['12'][1]++,cfg.types.indexOf('local_storage')!==-1);__cov_mPP0cZhLXiPL2$L3ii$mDQ.s['30']++;_this.enableCookie=(__cov_mPP0cZhLXiP
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/statusBar.js":
/*!**********************************!*\
!*** ./src/modules/statusBar.js ***!
\**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_Ox0usAvL8x$uxFSzluM8vw = (Function('return this'))();
if (!__cov_Ox0usAvL8x$uxFSzluM8vw.__coverage__) { __cov_Ox0usAvL8x$uxFSzluM8vw.__coverage__ = {}; }
__cov_Ox0usAvL8x$uxFSzluM8vw = __cov_Ox0usAvL8x$uxFSzluM8vw.__coverage__;
if (!(__cov_Ox0usAvL8x$uxFSzluM8vw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\statusBar.js'])) {
__cov_Ox0usAvL8x$uxFSzluM8vw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\statusBar.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\statusBar.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":1,"13":0,"14":0,"15":0,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":1,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0},"fnMap":{"1":{"name":"_classCallCheck","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":22,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":24,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":35,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"StatusBar","line":42,"loc":{"start":{"line":32,"column":4},"end":{"line":32,"column":20}}},"6":{"name":"init","line":187,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":228,"loc":{"start":{"line":219,"column":41},"end":{"line":219,"column":41}}},"8":{"name":"(anonymous_8)","line":231,"loc":{"start":{"line":221,"column":12},"end":{"line":221,"column":12}}},"9":{"name":"(anonymous_9)","line":234,"loc":{"start":{"line":223,"column":12},"end":{"line":223,"column":12}}},"10":{"name":"(anonymous_10)","line":237,"loc":{"start":{"line":224,"column":48},"end":{"line":224,"column":48}}},"11":{"name":"(anonymous_11)","line":240,"loc":{"start":{"line":227,"column":12},"end":{"line":227,"column":12}}},"12":{"name":"(anonymous_12)","line":243,"loc":{"start":{"line":229,"column":12},"end":{"line":229,"column":12}}},"13":{"name":"(anonymous_13)","line":246,"loc":{"start":{"line":231,"column":12},"end":{"line":231,"column":12}}},"14":{"name":"(anonymous_14)","line":249,"loc":{"start":{"line":233,"column":12},"end":{"line":233,"column":12}}},"15":{"name":"(anonymous_15)","line":252,"loc":{"start":{"line":235,"column":12},"end":{"line":235,"column":12}}},"16":{"name":"(anonymous_16)","line":256,"loc":{"start":{"line":237,"column":27},"end":{"line":237,"column":27}}},"17":{"name":"message","line":272,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"18":{"name":"(anonymous_18)","line":284,"loc":{"start":{"line":257,"column":24},"end":{"line":257,"column":30}}},"19":{"name":"destroy","line":299,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"20":{"name":"(anonymous_20)","line":317,"loc":{"start":{"line":286,"column":42},"end":{"line":286,"column":42}}},"21":{"name":"(anonymous_21)","line":320,"loc":{"start":{"line":288,"column":12},"end":{"line":288,"column":
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_Ox0usAvL8x$uxFSzluM8vw = __cov_Ox0usAvL8x$uxFSzluM8vw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\statusBar.js'];
__cov_Ox0usAvL8x$uxFSzluM8vw.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_Ox0usAvL8x$uxFSzluM8vw.s['2']++;exports.StatusBar=undefined;__cov_Ox0usAvL8x$uxFSzluM8vw.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_Ox0usAvL8x$uxFSzluM8vw.s['4']++;var _root=__webpack_require__(/*! ../root */ "./src/root.js");__cov_Ox0usAvL8x$uxFSzluM8vw.s['5']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_Ox0usAvL8x$uxFSzluM8vw.s['6']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");__cov_Ox0usAvL8x$uxFSzluM8vw.s['7']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");__cov_Ox0usAvL8x$uxFSzluM8vw.s['8']++;var _toolbar=__webpack_require__(/*! ./toolbar */ "./src/modules/toolbar.js");function _classCallCheck(instance,Constructor){__cov_Ox0usAvL8x$uxFSzluM8vw.f['1']++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['10']++;if(!(instance instanceof Constructor)){__cov_Ox0usAvL8x$uxFSzluM8vw.b['1'][0]++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['11']++;throw new TypeError('Cannot call a class as a function');}else{__cov_Ox0usAvL8x$uxFSzluM8vw.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_Ox0usAvL8x$uxFSzluM8vw.f['2']++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['13']++;if(!self){__cov_Ox0usAvL8x$uxFSzluM8vw.b['2'][0]++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['14']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_Ox0usAvL8x$uxFSzluM8vw.b['2'][1]++;}__cov_Ox0usAvL8x$uxFSzluM8vw.s['15']++;return(__cov_Ox0usAvL8x$uxFSzluM8vw.b['4'][0]++,call)&&((__cov_Ox0usAvL8x$uxFSzluM8vw.b['4'][1]++,typeof call==='object')||(__cov_Ox0usAvL8x$uxFSzluM8vw.b['4'][2]++,typeof call==='function'))?(__cov_Ox0usAvL8x$uxFSzluM8vw.b['3'][0]++,call):(__cov_Ox0usAvL8x$uxFSzluM8vw.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_Ox0usAvL8x$uxFSzluM8vw.f['3']++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['17']++;if((__cov_Ox0usAvL8x$uxFSzluM8vw.b['6'][0]++,typeof superClass!=='function')&&(__cov_Ox0usAvL8x$uxFSzluM8vw.b['6'][1]++,superClass!==null)){__cov_Ox0usAvL8x$uxFSzluM8vw.b['5'][0]++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['18']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_Ox0usAvL8x$uxFSzluM8vw.b['5'][1]++;}__cov_Ox0usAvL8x$uxFSzluM8vw.s['19']++;subClass.prototype=Object.create((__cov_Ox0usAvL8x$uxFSzluM8vw.b['7'][0]++,superClass)&&(__cov_Ox0usAvL8x$uxFSzluM8vw.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_Ox0usAvL8x$uxFSzluM8vw.s['20']++;if(superClass){__cov_Ox0usAvL8x$uxFSzluM8vw.b['8'][0]++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['21']++;Object.setPrototypeOf?(__cov_Ox0usAvL8x$uxFSzluM8vw.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_Ox0usAvL8x$uxFSzluM8vw.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_Ox0usAvL8x$uxFSzluM8vw.b['8'][1]++;}}__cov_Ox0usAvL8x$uxFSzluM8vw.s['22']++;var EVENTS=['after-filtering','after-populating-filter','after-page-change','after-clearing-filters','after-page-length-change','after-reset-page','after-reset-page-length','after-loading-extensions','after-loading-themes'];__cov_Ox0usAvL8x$uxFSzluM8vw.s['23']++;var StatusBar=exports.StatusBar=function(_Feature){__cov_Ox0usAvL8x$uxFSzluM8vw.f['4']++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['24']++;_inherits(StatusBar,_Feature);function StatusBar(tf){__cov_Ox0usAvL8x$uxFSzluM8vw.f['5']++;__cov_Ox0usAvL8x$uxFSzluM8vw.s['26']++;_classCallCheck(this,StatusBar);__cov_Ox0usAvL8x$uxFSzluM8vw.s['27']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,StatusBar));__cov_Ox0usAvL8x$uxFSzluM8vw.s['28']++;var f=(__cov_Ox0usAvL8x$uxFSzluM8vw.b['10'][0]++,_this.config.status_bar)||(__cov_Ox0usAvL8x$uxFSzluM8vw.b['10'][1]++,{});__cov_Ox0usAvL8x$uxFSzluM8vw.s['29']++;_this.targetId=(0,_settings.defaultsStr)(f.target_id,null);__cov_Ox0usAvL8x$uxFSzluM8vw.s['30']++;_this.container=null;__cov_Ox0usAvL8x$uxFSzluM8vw.s['31']++;_this.msgContainer=null;__cov_Ox0usAvL8x$uxFSzluM8vw.s['32']++;_this.labelContainer=nu
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/storage.js":
/*!********************************!*\
!*** ./src/modules/storage.js ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_jIY6a24Shc7cdZ_UYNsAGw = (Function('return this'))();
if (!__cov_jIY6a24Shc7cdZ_UYNsAGw.__coverage__) { __cov_jIY6a24Shc7cdZ_UYNsAGw.__coverage__ = {}; }
__cov_jIY6a24Shc7cdZ_UYNsAGw = __cov_jIY6a24Shc7cdZ_UYNsAGw.__coverage__;
if (!(__cov_jIY6a24Shc7cdZ_UYNsAGw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\storage.js'])) {
__cov_jIY6a24Shc7cdZ_UYNsAGw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\storage.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\storage.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":1,"7":0,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":1,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"fnMap":{"1":{"name":"_interopRequireDefault","line":14,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_classCallCheck","line":16,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"hasStorage","line":25,"loc":{"start":{"line":11,"column":26},"end":{"line":11,"column":32}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"Storage","line":43,"loc":{"start":{"line":28,"column":4},"end":{"line":28,"column":23}}},"6":{"name":"init","line":94,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"7":{"name":"(anonymous_7)","line":97,"loc":{"start":{"line":78,"column":43},"end":{"line":78,"column":43}}},"8":{"name":"(anonymous_8)","line":100,"loc":{"start":{"line":79,"column":41},"end":{"line":79,"column":41}}},"9":{"name":"save","line":112,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"retrieve","line":127,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"11":{"name":"remove","line":146,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"12":{"name":"sync","line":159,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"13":{"name":"getKey","line":175,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"14":{"name":"destroy","line":187,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"15":{"name":"(anonymous_15)","line":190,"loc":{"start":{"line":153,"column":44},"end":{"line":153,"column":44}}},"16":{"name":"(anonymous_16)","line":193,"loc":{"start":{"line":154,"column":42},"end":{"line":154,"column":42}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"5":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"6":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"7":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"12":{"start":{"line":5,"column":0},"end":{"line":5,"column":0}},"13":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"14":{"start":{"line":11,"column":7},"end":{"line":11,"column":7}},"15":{"start":{"line":12,"column":4},"end":{"line":12,"column":4}},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":28,"column":4},"end":{"line":71,"column":5}},"18":{"start":{"line":28,"column":23},"end":{"line":28,"column":23}},"19":{"start":{"line":35,"column":8},"en
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_jIY6a24Shc7cdZ_UYNsAGw = __cov_jIY6a24Shc7cdZ_UYNsAGw['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\storage.js'];
__cov_jIY6a24Shc7cdZ_UYNsAGw.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_jIY6a24Shc7cdZ_UYNsAGw.s['2']++;exports.Storage=exports.hasStorage=undefined;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['3']++;var _cookie=__webpack_require__(/*! ../cookie */ "./src/cookie.js");__cov_jIY6a24Shc7cdZ_UYNsAGw.s['4']++;var _cookie2=_interopRequireDefault(_cookie);__cov_jIY6a24Shc7cdZ_UYNsAGw.s['5']++;var _root=__webpack_require__(/*! ../root */ "./src/root.js");function _interopRequireDefault(obj){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['1']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['7']++;return(__cov_jIY6a24Shc7cdZ_UYNsAGw.b['2'][0]++,obj)&&(__cov_jIY6a24Shc7cdZ_UYNsAGw.b['2'][1]++,obj.__esModule)?(__cov_jIY6a24Shc7cdZ_UYNsAGw.b['1'][0]++,obj):(__cov_jIY6a24Shc7cdZ_UYNsAGw.b['1'][1]++,{default:obj});}function _classCallCheck(instance,Constructor){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['2']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['9']++;if(!(instance instanceof Constructor)){__cov_jIY6a24Shc7cdZ_UYNsAGw.b['3'][0]++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['10']++;throw new TypeError('Cannot call a class as a function');}else{__cov_jIY6a24Shc7cdZ_UYNsAGw.b['3'][1]++;}}__cov_jIY6a24Shc7cdZ_UYNsAGw.s['11']++;var JSON=_root.root.JSON;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['12']++;var localStorage=_root.root.localStorage;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['13']++;var location=_root.root.location;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['14']++;var hasStorage=exports.hasStorage=function hasStorage(){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['3']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['15']++;return'Storage'in _root.root;};__cov_jIY6a24Shc7cdZ_UYNsAGw.s['16']++;var Storage=exports.Storage=function(){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['4']++;function Storage(state){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['5']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['18']++;_classCallCheck(this,Storage);__cov_jIY6a24Shc7cdZ_UYNsAGw.s['19']++;this.state=state;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['20']++;this.tf=state.tf;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['21']++;this.enableLocalStorage=(__cov_jIY6a24Shc7cdZ_UYNsAGw.b['4'][0]++,state.enableLocalStorage)&&(__cov_jIY6a24Shc7cdZ_UYNsAGw.b['4'][1]++,hasStorage());__cov_jIY6a24Shc7cdZ_UYNsAGw.s['22']++;this.enableCookie=(__cov_jIY6a24Shc7cdZ_UYNsAGw.b['5'][0]++,state.enableCookie)&&(__cov_jIY6a24Shc7cdZ_UYNsAGw.b['5'][1]++,!this.enableLocalStorage);__cov_jIY6a24Shc7cdZ_UYNsAGw.s['23']++;this.emitter=state.emitter;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['24']++;this.duration=state.cookieDuration;}__cov_jIY6a24Shc7cdZ_UYNsAGw.s['25']++;Storage.prototype.init=function init(){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['6']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['26']++;var _this=this;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['27']++;this.emitter.on(['state-changed'],function(tf,state){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['7']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['28']++;return _this.save(state);});__cov_jIY6a24Shc7cdZ_UYNsAGw.s['29']++;this.emitter.on(['initialized'],function(){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['8']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['30']++;return _this.sync();});};__cov_jIY6a24Shc7cdZ_UYNsAGw.s['31']++;Storage.prototype.save=function save(state){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['9']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['32']++;if(this.enableLocalStorage){__cov_jIY6a24Shc7cdZ_UYNsAGw.b['6'][0]++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['33']++;localStorage[this.getKey()]=JSON.stringify(state);}else{__cov_jIY6a24Shc7cdZ_UYNsAGw.b['6'][1]++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['34']++;_cookie2.default.write(this.getKey(),JSON.stringify(state),this.duration);}};__cov_jIY6a24Shc7cdZ_UYNsAGw.s['35']++;Storage.prototype.retrieve=function retrieve(){__cov_jIY6a24Shc7cdZ_UYNsAGw.f['10']++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['36']++;var state=null;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['37']++;if(this.enableLocalStorage){__cov_jIY6a24Shc7cdZ_UYNsAGw.b['7'][0]++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['38']++;state=localStorage[this.getKey()];}else{__cov_jIY6a24Shc7cdZ_UYNsAGw.b['7'][1]++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['39']++;state=_cookie2.default.read(this.getKey());}__cov_jIY6a24Shc7cdZ_UYNsAGw.s['40']++;if(!state){__cov_jIY6a24Shc7cdZ_UYNsAGw.b['8'][0]++;__cov_jIY6a24Shc7cdZ_UYNsAGw.s['41']++;ret
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/modules/toolbar.js":
/*!********************************!*\
!*** ./src/modules/toolbar.js ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_hEX6BbLMdq2rbI0sO95X2A = (Function('return this'))();
if (!__cov_hEX6BbLMdq2rbI0sO95X2A.__coverage__) { __cov_hEX6BbLMdq2rbI0sO95X2A.__coverage__ = {}; }
__cov_hEX6BbLMdq2rbI0sO95X2A = __cov_hEX6BbLMdq2rbI0sO95X2A.__coverage__;
if (!(__cov_hEX6BbLMdq2rbI0sO95X2A['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\toolbar.js'])) {
__cov_hEX6BbLMdq2rbI0sO95X2A['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\toolbar.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\toolbar.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":1,"8":0,"9":0,"10":1,"11":0,"12":0,"13":0,"14":1,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":1,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"fnMap":{"1":{"name":"_classCallCheck","line":16,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"_possibleConstructorReturn","line":18,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"3":{"name":"_inherits","line":20,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"4":{"name":"(anonymous_4)","line":38,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"5":{"name":"Toolbar","line":46,"loc":{"start":{"line":31,"column":4},"end":{"line":31,"column":20}}},"6":{"name":"(anonymous_6)","line":123,"loc":{"start":{"line":107,"column":12},"end":{"line":107,"column":12}}},"7":{"name":"init","line":139,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"8":{"name":"container","line":204,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"9":{"name":"createContainer","line":223,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"10":{"name":"destroy","line":234,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"11":{"name":"(anonymous_11)","line":246,"loc":{"start":{"line":216,"column":34},"end":{"line":216,"column":34}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":3,"column":0},"end":{"line":3,"column":0}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"7":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"8":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"9":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"10":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"11":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"12":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"13":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"14":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"15":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"16":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"17":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"18":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"19":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"20":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"21":{"start":{"line":12,"column":7},"end":{"line":12,"column":7}},"22":{"start":{"line":14,"column":7},"end":{"line":14,"column":7}},"23":{"s
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_hEX6BbLMdq2rbI0sO95X2A = __cov_hEX6BbLMdq2rbI0sO95X2A['C:\\dev\\javascript\\github\\TableFilter\\src\\modules\\toolbar.js'];
__cov_hEX6BbLMdq2rbI0sO95X2A.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_hEX6BbLMdq2rbI0sO95X2A.s['2']++;exports.Toolbar=exports.CENTER=exports.RIGHT=exports.LEFT=undefined;__cov_hEX6BbLMdq2rbI0sO95X2A.s['3']++;var _feature=__webpack_require__(/*! ../feature */ "./src/feature.js");__cov_hEX6BbLMdq2rbI0sO95X2A.s['4']++;var _dom=__webpack_require__(/*! ../dom */ "./src/dom.js");__cov_hEX6BbLMdq2rbI0sO95X2A.s['5']++;var _settings=__webpack_require__(/*! ../settings */ "./src/settings.js");__cov_hEX6BbLMdq2rbI0sO95X2A.s['6']++;var _types=__webpack_require__(/*! ../types */ "./src/types.js");function _classCallCheck(instance,Constructor){__cov_hEX6BbLMdq2rbI0sO95X2A.f['1']++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['8']++;if(!(instance instanceof Constructor)){__cov_hEX6BbLMdq2rbI0sO95X2A.b['1'][0]++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['9']++;throw new TypeError('Cannot call a class as a function');}else{__cov_hEX6BbLMdq2rbI0sO95X2A.b['1'][1]++;}}function _possibleConstructorReturn(self,call){__cov_hEX6BbLMdq2rbI0sO95X2A.f['2']++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['11']++;if(!self){__cov_hEX6BbLMdq2rbI0sO95X2A.b['2'][0]++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['12']++;throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');}else{__cov_hEX6BbLMdq2rbI0sO95X2A.b['2'][1]++;}__cov_hEX6BbLMdq2rbI0sO95X2A.s['13']++;return(__cov_hEX6BbLMdq2rbI0sO95X2A.b['4'][0]++,call)&&((__cov_hEX6BbLMdq2rbI0sO95X2A.b['4'][1]++,typeof call==='object')||(__cov_hEX6BbLMdq2rbI0sO95X2A.b['4'][2]++,typeof call==='function'))?(__cov_hEX6BbLMdq2rbI0sO95X2A.b['3'][0]++,call):(__cov_hEX6BbLMdq2rbI0sO95X2A.b['3'][1]++,self);}function _inherits(subClass,superClass){__cov_hEX6BbLMdq2rbI0sO95X2A.f['3']++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['15']++;if((__cov_hEX6BbLMdq2rbI0sO95X2A.b['6'][0]++,typeof superClass!=='function')&&(__cov_hEX6BbLMdq2rbI0sO95X2A.b['6'][1]++,superClass!==null)){__cov_hEX6BbLMdq2rbI0sO95X2A.b['5'][0]++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['16']++;throw new TypeError('Super expression must either be null or a function, not '+typeof superClass);}else{__cov_hEX6BbLMdq2rbI0sO95X2A.b['5'][1]++;}__cov_hEX6BbLMdq2rbI0sO95X2A.s['17']++;subClass.prototype=Object.create((__cov_hEX6BbLMdq2rbI0sO95X2A.b['7'][0]++,superClass)&&(__cov_hEX6BbLMdq2rbI0sO95X2A.b['7'][1]++,superClass.prototype),{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});__cov_hEX6BbLMdq2rbI0sO95X2A.s['18']++;if(superClass){__cov_hEX6BbLMdq2rbI0sO95X2A.b['8'][0]++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['19']++;Object.setPrototypeOf?(__cov_hEX6BbLMdq2rbI0sO95X2A.b['9'][0]++,Object.setPrototypeOf(subClass,superClass)):(__cov_hEX6BbLMdq2rbI0sO95X2A.b['9'][1]++,subClass.__proto__=superClass);}else{__cov_hEX6BbLMdq2rbI0sO95X2A.b['8'][1]++;}}__cov_hEX6BbLMdq2rbI0sO95X2A.s['20']++;var EVENTS=['initializing-feature','initializing-extension'];__cov_hEX6BbLMdq2rbI0sO95X2A.s['21']++;var LEFT=exports.LEFT='left';__cov_hEX6BbLMdq2rbI0sO95X2A.s['22']++;var RIGHT=exports.RIGHT='right';__cov_hEX6BbLMdq2rbI0sO95X2A.s['23']++;var CENTER=exports.CENTER='center';__cov_hEX6BbLMdq2rbI0sO95X2A.s['24']++;var Toolbar=exports.Toolbar=function(_Feature){__cov_hEX6BbLMdq2rbI0sO95X2A.f['4']++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['25']++;_inherits(Toolbar,_Feature);function Toolbar(tf){__cov_hEX6BbLMdq2rbI0sO95X2A.f['5']++;__cov_hEX6BbLMdq2rbI0sO95X2A.s['27']++;_classCallCheck(this,Toolbar);__cov_hEX6BbLMdq2rbI0sO95X2A.s['28']++;var _this=_possibleConstructorReturn(this,_Feature.call(this,tf,Toolbar));__cov_hEX6BbLMdq2rbI0sO95X2A.s['29']++;var f=(__cov_hEX6BbLMdq2rbI0sO95X2A.b['10'][0]++,_this.config.toolbar)||(__cov_hEX6BbLMdq2rbI0sO95X2A.b['10'][1]++,{});__cov_hEX6BbLMdq2rbI0sO95X2A.s['30']++;_this.contCssClass=(0,_settings.defaultsStr)(f.container_css_class,'inf');__cov_hEX6BbLMdq2rbI0sO95X2A.s['31']++;_this.lContCssClass=(0,_settings.defaultsStr)(f.left_cont_css_class,'ldiv');__cov_hEX6BbLMdq2rbI0sO95X2A.s['32']++;_this.rContCssClass=(0,_settings.defaultsStr)(f.right_cont_css_class,'rdiv');__cov_hEX6BbLMdq2rbI0sO95X2A.s['33']++;_this.cContCssClass=(0,_settings.defaultsSt
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/number.js":
/*!***********************!*\
!*** ./src/number.js ***!
\***********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_sz0j8VrA29vdWsiAnp3sew = (Function('return this'))();
if (!__cov_sz0j8VrA29vdWsiAnp3sew.__coverage__) { __cov_sz0j8VrA29vdWsiAnp3sew.__coverage__ = {}; }
__cov_sz0j8VrA29vdWsiAnp3sew = __cov_sz0j8VrA29vdWsiAnp3sew.__coverage__;
if (!(__cov_sz0j8VrA29vdWsiAnp3sew['C:\\dev\\javascript\\github\\TableFilter\\src\\number.js'])) {
__cov_sz0j8VrA29vdWsiAnp3sew['C:\\dev\\javascript\\github\\TableFilter\\src\\number.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\number.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"f":{"1":0},"fnMap":{"1":{"name":"parse","line":18,"loc":{"start":{"line":11,"column":21},"end":{"line":11,"column":47}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":11,"column":7},"end":{"line":11,"column":7}},"5":{"start":{"line":11,"column":47},"end":{"line":11,"column":47}},"6":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"7":{"start":{"line":14,"column":8},"end":{"line":14,"column":8}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":4}},"9":{"start":{"line":20,"column":4},"end":{"line":20,"column":4}},"10":{"start":{"line":31,"column":4},"end":{"line":31,"column":4}}},"branchMap":{"1":{"line":19,"type":"cond-expr","locations":[{"start":{"line":11,"column":47},"end":{"line":11,"column":47}},{"start":{"line":11,"column":39},"end":{"line":11,"column":47}}]},"2":{"line":19,"type":"binary-expr","locations":[{"start":{"line":11,"column":47},"end":{"line":11,"column":47}},{"start":{"line":11,"column":47},"end":{"line":11,"column":47}}]},"3":{"line":22,"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},{"start":{"line":13,"column":4},"end":{"line":13,"column":4}}]},"4":{"line":38,"type":"cond-expr","locations":[{"start":{"line":31,"column":33},"end":{"line":31,"column":11}},{"start":{"line":31,"column":47},"end":{"line":31,"column":4}}]}},"code":["import {isNumber} from './types';","","/**"," * Takes a string, removes all formatting/cruft and returns the raw float value"," * @param {String} Formatted number"," * @param {String} Decimal type '.' or ','"," * @return {Number} Unformatted number"," *"," * https://github.com/openexchangerates/accounting.js/blob/master/accounting.js"," */","export const parse = (value, decimal = '.') => {"," // Return the value as-is if it's already a number"," if (isNumber(value)) {"," return value;"," }",""," // Build regex to strip out everything except digits, decimal point and"," // minus sign"," let regex = new RegExp('[^0-9-' + decimal + ']', ['g']);"," let unformatted = parseFloat("," ('' + value)"," // replace bracketed values with negatives"," .replace(/\\((.*)\\)/, '-$1')"," // strip out any cruft"," .replace(regex, '')"," // make sure decimal point is standard"," .replace(decimal, '.')"," );",""," // This will fail silently"," return !isNaN(unformatted) ? unformatted : 0;","};",""]};
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_sz0j8VrA29vdWsiAnp3sew = __cov_sz0j8VrA29vdWsiAnp3sew['C:\\dev\\javascript\\github\\TableFilter\\src\\number.js'];
__cov_sz0j8VrA29vdWsiAnp3sew.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_sz0j8VrA29vdWsiAnp3sew.s['2']++;exports.parse=undefined;__cov_sz0j8VrA29vdWsiAnp3sew.s['3']++;var _types=__webpack_require__(/*! ./types */ "./src/types.js");__cov_sz0j8VrA29vdWsiAnp3sew.s['4']++;var parse=exports.parse=function parse(value){__cov_sz0j8VrA29vdWsiAnp3sew.f['1']++;__cov_sz0j8VrA29vdWsiAnp3sew.s['5']++;var decimal=(__cov_sz0j8VrA29vdWsiAnp3sew.b['2'][0]++,arguments.length>1)&&(__cov_sz0j8VrA29vdWsiAnp3sew.b['2'][1]++,arguments[1]!==undefined)?(__cov_sz0j8VrA29vdWsiAnp3sew.b['1'][0]++,arguments[1]):(__cov_sz0j8VrA29vdWsiAnp3sew.b['1'][1]++,'.');__cov_sz0j8VrA29vdWsiAnp3sew.s['6']++;if((0,_types.isNumber)(value)){__cov_sz0j8VrA29vdWsiAnp3sew.b['3'][0]++;__cov_sz0j8VrA29vdWsiAnp3sew.s['7']++;return value;}else{__cov_sz0j8VrA29vdWsiAnp3sew.b['3'][1]++;}__cov_sz0j8VrA29vdWsiAnp3sew.s['8']++;var regex=new RegExp('[^0-9-'+decimal+']',['g']);__cov_sz0j8VrA29vdWsiAnp3sew.s['9']++;var unformatted=parseFloat((''+value).replace(/\((.*)\)/,'-$1').replace(regex,'').replace(decimal,'.'));__cov_sz0j8VrA29vdWsiAnp3sew.s['10']++;return!isNaN(unformatted)?(__cov_sz0j8VrA29vdWsiAnp3sew.b['4'][0]++,unformatted):(__cov_sz0j8VrA29vdWsiAnp3sew.b['4'][1]++,0);};
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/root.js":
/*!*********************!*\
!*** ./src/root.js ***!
\*********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(global) {
2019-10-21 05:20:42 +02:00
var __cov_DKNHVUji8m3YZaM7xerpmQ = (Function('return this'))();
if (!__cov_DKNHVUji8m3YZaM7xerpmQ.__coverage__) { __cov_DKNHVUji8m3YZaM7xerpmQ.__coverage__ = {}; }
__cov_DKNHVUji8m3YZaM7xerpmQ = __cov_DKNHVUji8m3YZaM7xerpmQ.__coverage__;
if (!(__cov_DKNHVUji8m3YZaM7xerpmQ['C:\\dev\\javascript\\github\\TableFilter\\src\\root.js'])) {
__cov_DKNHVUji8m3YZaM7xerpmQ['C:\\dev\\javascript\\github\\TableFilter\\src\\root.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\root.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0,0],"5":[0,0,0,0,0,0,0],"6":[0,0],"7":[0,0]},"f":{"1":0,"2":0},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true},"2":{"name":"(anonymous_2)","line":7,"loc":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"skip":true}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"4":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"5":{"start":{"line":4,"column":7},"end":{"line":4,"column":7}}},"branchMap":{"1":{"line":7,"type":"cond-expr","locations":[{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}]},"2":{"line":7,"type":"binary-expr","locations":[{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}]},"3":{"line":7,"type":"cond-expr","locations":[{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}]},"4":{"line":7,"type":"binary-expr","locations":[{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}]},"5":{"line":12,"type":"binary-expr","locations":[{"start":{"line":4,"column":21},"end":{"line":4,"column":21}},{"start":{"line":4,"column":49},"end":{"line":4,"column":21}},{"start":{"line":4,"column":71},"end":{"line":4,"column":20}},{"start":{"line":5,"column":5},"end":{"line":5,"column":5}},{"start":{"line":5,"column":35},"end":{"line":5,"column":5}},{"start":{"line":5,"column":63},"end":{"line":4,"column":20}},{"start":{"line":4,"column":20},"end":{"line":4,"column":7}}]},"6":{"line":12,"type":"cond-expr","locations":[{"start":{"line":4,"column":21},"end":{"line":4,"column":21}},{"start":{"line":4,"column":21},"end":{"line":4,"column":21}}]},"7":{"line":12,"type":"cond-expr","locations":[{"start":{"line":5,"column":5},"end":{"line":5,"column":5}},{"start":{"line":5,"column":5},"end":{"line":5,"column":5}}]}},"code":["/**"," * Export window or global object depending on the environment"," */","export const root = (typeof self === 'object' && self.self === self && self) ||"," (typeof global === 'object' && global.global === global && global) ||"," this;",""]};
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_DKNHVUji8m3YZaM7xerpmQ = __cov_DKNHVUji8m3YZaM7xerpmQ['C:\\dev\\javascript\\github\\TableFilter\\src\\root.js'];
__cov_DKNHVUji8m3YZaM7xerpmQ.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_DKNHVUji8m3YZaM7xerpmQ.s['2']++;var _typeof=(__cov_DKNHVUji8m3YZaM7xerpmQ.b['2'][0]++,typeof Symbol==='function')&&(__cov_DKNHVUji8m3YZaM7xerpmQ.b['2'][1]++,typeof Symbol.iterator==='symbol')?(__cov_DKNHVUji8m3YZaM7xerpmQ.b['1'][0]++,function(obj){__cov_DKNHVUji8m3YZaM7xerpmQ.f['1']++;__cov_DKNHVUji8m3YZaM7xerpmQ.s['3']++;return typeof obj;}):(__cov_DKNHVUji8m3YZaM7xerpmQ.b['1'][1]++,function(obj){__cov_DKNHVUji8m3YZaM7xerpmQ.f['2']++;__cov_DKNHVUji8m3YZaM7xerpmQ.s['4']++;return(__cov_DKNHVUji8m3YZaM7xerpmQ.b['4'][0]++,obj)&&(__cov_DKNHVUji8m3YZaM7xerpmQ.b['4'][1]++,typeof Symbol==='function')&&(__cov_DKNHVUji8m3YZaM7xerpmQ.b['4'][2]++,obj.constructor===Symbol)&&(__cov_DKNHVUji8m3YZaM7xerpmQ.b['4'][3]++,obj!==Symbol.prototype)?(__cov_DKNHVUji8m3YZaM7xerpmQ.b['3'][0]++,'symbol'):(__cov_DKNHVUji8m3YZaM7xerpmQ.b['3'][1]++,typeof obj);});__cov_DKNHVUji8m3YZaM7xerpmQ.s['5']++;var root=exports.root=(__cov_DKNHVUji8m3YZaM7xerpmQ.b['5'][0]++,(typeof self==='undefined'?(__cov_DKNHVUji8m3YZaM7xerpmQ.b['6'][0]++,'undefined'):(__cov_DKNHVUji8m3YZaM7xerpmQ.b['6'][1]++,_typeof(self)))==='object')&&(__cov_DKNHVUji8m3YZaM7xerpmQ.b['5'][1]++,self.self===self)&&(__cov_DKNHVUji8m3YZaM7xerpmQ.b['5'][2]++,self)||(__cov_DKNHVUji8m3YZaM7xerpmQ.b['5'][3]++,(typeof global==='undefined'?(__cov_DKNHVUji8m3YZaM7xerpmQ.b['7'][0]++,'undefined'):(__cov_DKNHVUji8m3YZaM7xerpmQ.b['7'][1]++,_typeof(global)))==='object')&&(__cov_DKNHVUji8m3YZaM7xerpmQ.b['5'][4]++,global.global===global)&&(__cov_DKNHVUji8m3YZaM7xerpmQ.b['5'][5]++,global)||(__cov_DKNHVUji8m3YZaM7xerpmQ.b['5'][6]++,undefined);
2019-09-06 06:15:54 +02:00
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node_modules/webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
/***/ }),
/***/ "./src/settings.js":
/*!*************************!*\
!*** ./src/settings.js ***!
\*************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_GGsfnKjtPI5UZSKz6SpDvw = (Function('return this'))();
if (!__cov_GGsfnKjtPI5UZSKz6SpDvw.__coverage__) { __cov_GGsfnKjtPI5UZSKz6SpDvw.__coverage__ = {}; }
__cov_GGsfnKjtPI5UZSKz6SpDvw = __cov_GGsfnKjtPI5UZSKz6SpDvw.__coverage__;
if (!(__cov_GGsfnKjtPI5UZSKz6SpDvw['C:\\dev\\javascript\\github\\TableFilter\\src\\settings.js'])) {
__cov_GGsfnKjtPI5UZSKz6SpDvw['C:\\dev\\javascript\\github\\TableFilter\\src\\settings.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\settings.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0},"fnMap":{"1":{"name":"defaultsBool","line":19,"loc":{"start":{"line":13,"column":4},"end":{"line":13,"column":4}}},"2":{"name":"defaultsStr","line":30,"loc":{"start":{"line":23,"column":4},"end":{"line":23,"column":4}}},"3":{"name":"defaultsNb","line":41,"loc":{"start":{"line":33,"column":4},"end":{"line":33,"column":4}}},"4":{"name":"defaultsArr","line":52,"loc":{"start":{"line":43,"column":4},"end":{"line":43,"column":4}}},"5":{"name":"defaultsFn","line":63,"loc":{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":12,"column":7},"end":{"line":12,"column":7}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},"6":{"start":{"line":22,"column":7},"end":{"line":22,"column":7}},"7":{"start":{"line":23,"column":4},"end":{"line":23,"column":4}},"8":{"start":{"line":32,"column":7},"end":{"line":32,"column":7}},"9":{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},"10":{"start":{"line":42,"column":7},"end":{"line":42,"column":7}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":4}},"12":{"start":{"line":52,"column":7},"end":{"line":52,"column":7}},"13":{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}},"branchMap":{"1":{"line":20,"type":"cond-expr","locations":[{"start":{"line":13,"column":42},"end":{"line":13,"column":25}},{"start":{"line":13,"column":48},"end":{"line":13,"column":4}}]},"2":{"line":31,"type":"cond-expr","locations":[{"start":{"line":23,"column":41},"end":{"line":23,"column":25}},{"start":{"line":23,"column":47},"end":{"line":23,"column":4}}]},"3":{"line":42,"type":"cond-expr","locations":[{"start":{"line":33,"column":38},"end":{"line":33,"column":25}},{"start":{"line":33,"column":51},"end":{"line":33,"column":4}}]},"4":{"line":53,"type":"cond-expr","locations":[{"start":{"line":43,"column":40},"end":{"line":43,"column":25}},{"start":{"line":43,"column":46},"end":{"line":43,"column":4}}]},"5":{"line":64,"type":"cond-expr","locations":[{"start":{"line":53,"column":37},"end":{"line":53,"column":25}},{"start":{"line":53,"column":43},"end":{"line":53,"column":4}}]}},"code":["import {isBoolean, isString, isFn, isArray} from './types';","","/** Configuration settings helpers */","","/**"," * If passed value is not of boolean type return the default value"," * otherwise return the value itself"," * @param {Boolean|Any} value"," * @param {Boolean} default value"," * @return {Boolean|Any}"," */","export const defaultsBool ="," (val, defaultVal) => isBoolean(val) ? val : defaultVal;","","/**"," * If passed value is not of string type return the default value"," * otherwise return the value itself"," * @param {String|Any} value"," * @param {String} default value"," * @return {String|Any}"," */","export const defaultsStr ="," (val, defaultVal) => isString(val) ? val : defaultVal;","","/**"," * If passed value is not of number type return the default value"," * otherwise return the value itself"," * @param {Number|Any} value"," * @param {Number} default value"," * @return {Number|Any}"," */","export const defaultsNb ="," (val, defaultVal) => isNaN(val) ? defaultVal : val;","","/**"," * If passed value is not of array type return the default value"," * otherwise return the value itself"," * @param {Array|Any} value"," * @param {Array} default value"," * @return {Array|Any}"," */","export const defaultsArr ="," (val, defaultVal) => isArray(val) ? val : defaultVal;","","/**"," * If passed value is not of function type return the default value"," * oth
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_GGsfnKjtPI5UZSKz6SpDvw = __cov_GGsfnKjtPI5UZSKz6SpDvw['C:\\dev\\javascript\\github\\TableFilter\\src\\settings.js'];
__cov_GGsfnKjtPI5UZSKz6SpDvw.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_GGsfnKjtPI5UZSKz6SpDvw.s['2']++;exports.defaultsFn=exports.defaultsArr=exports.defaultsNb=exports.defaultsStr=exports.defaultsBool=undefined;__cov_GGsfnKjtPI5UZSKz6SpDvw.s['3']++;var _types=__webpack_require__(/*! ./types */ "./src/types.js");__cov_GGsfnKjtPI5UZSKz6SpDvw.s['4']++;var defaultsBool=exports.defaultsBool=function defaultsBool(val,defaultVal){__cov_GGsfnKjtPI5UZSKz6SpDvw.f['1']++;__cov_GGsfnKjtPI5UZSKz6SpDvw.s['5']++;return(0,_types.isBoolean)(val)?(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['1'][0]++,val):(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['1'][1]++,defaultVal);};__cov_GGsfnKjtPI5UZSKz6SpDvw.s['6']++;var defaultsStr=exports.defaultsStr=function defaultsStr(val,defaultVal){__cov_GGsfnKjtPI5UZSKz6SpDvw.f['2']++;__cov_GGsfnKjtPI5UZSKz6SpDvw.s['7']++;return(0,_types.isString)(val)?(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['2'][0]++,val):(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['2'][1]++,defaultVal);};__cov_GGsfnKjtPI5UZSKz6SpDvw.s['8']++;var defaultsNb=exports.defaultsNb=function defaultsNb(val,defaultVal){__cov_GGsfnKjtPI5UZSKz6SpDvw.f['3']++;__cov_GGsfnKjtPI5UZSKz6SpDvw.s['9']++;return isNaN(val)?(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['3'][0]++,defaultVal):(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['3'][1]++,val);};__cov_GGsfnKjtPI5UZSKz6SpDvw.s['10']++;var defaultsArr=exports.defaultsArr=function defaultsArr(val,defaultVal){__cov_GGsfnKjtPI5UZSKz6SpDvw.f['4']++;__cov_GGsfnKjtPI5UZSKz6SpDvw.s['11']++;return(0,_types.isArray)(val)?(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['4'][0]++,val):(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['4'][1]++,defaultVal);};__cov_GGsfnKjtPI5UZSKz6SpDvw.s['12']++;var defaultsFn=exports.defaultsFn=function defaultsFn(val,defaultVal){__cov_GGsfnKjtPI5UZSKz6SpDvw.f['5']++;__cov_GGsfnKjtPI5UZSKz6SpDvw.s['13']++;return(0,_types.isFn)(val)?(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['5'][0]++,val):(__cov_GGsfnKjtPI5UZSKz6SpDvw.b['5'][1]++,defaultVal);};
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/sort.js":
/*!*********************!*\
!*** ./src/sort.js ***!
\*********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_jD8KexAXmMnougemgGWp_A = (Function('return this'))();
if (!__cov_jD8KexAXmMnougemgGWp_A.__coverage__) { __cov_jD8KexAXmMnougemgGWp_A.__coverage__ = {}; }
__cov_jD8KexAXmMnougemgGWp_A = __cov_jD8KexAXmMnougemgGWp_A.__coverage__;
if (!(__cov_jD8KexAXmMnougemgGWp_A['C:\\dev\\javascript\\github\\TableFilter\\src\\sort.js'])) {
__cov_jD8KexAXmMnougemgGWp_A['C:\\dev\\javascript\\github\\TableFilter\\src\\sort.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\sort.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"fnMap":{"1":{"name":"ignoreCase","line":22,"loc":{"start":{"line":14,"column":26},"end":{"line":14,"column":36}}},"2":{"name":"numSortAsc","line":34,"loc":{"start":{"line":26,"column":26},"end":{"line":26,"column":26}}},"3":{"name":"numSortDesc","line":44,"loc":{"start":{"line":34,"column":27},"end":{"line":34,"column":27}}},"4":{"name":"dateSortAsc","line":55,"loc":{"start":{"line":43,"column":27},"end":{"line":43,"column":27}}},"5":{"name":"dateSortDesc","line":66,"loc":{"start":{"line":52,"column":28},"end":{"line":52,"column":28}}},"6":{"name":"sortNumberStr","line":77,"loc":{"start":{"line":61,"column":29},"end":{"line":61,"column":59}}},"7":{"name":"(anonymous_7)","line":80,"loc":{"start":{"line":62,"column":11},"end":{"line":62,"column":33}}},"8":{"name":"sortDateStr","line":94,"loc":{"start":{"line":76,"column":27},"end":{"line":76,"column":60}}},"9":{"name":"(anonymous_9)","line":97,"loc":{"start":{"line":77,"column":11},"end":{"line":77,"column":35}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"5":{"start":{"line":14,"column":7},"end":{"line":14,"column":7}},"6":{"start":{"line":15,"column":4},"end":{"line":15,"column":4}},"7":{"start":{"line":16,"column":4},"end":{"line":16,"column":4}},"8":{"start":{"line":17,"column":4},"end":{"line":17,"column":4}},"9":{"start":{"line":26,"column":7},"end":{"line":26,"column":7}},"10":{"start":{"line":26,"column":26},"end":{"line":26,"column":26}},"11":{"start":{"line":34,"column":7},"end":{"line":34,"column":7}},"12":{"start":{"line":34,"column":27},"end":{"line":34,"column":27}},"13":{"start":{"line":43,"column":7},"end":{"line":43,"column":7}},"14":{"start":{"line":43,"column":27},"end":{"line":43,"column":27}},"15":{"start":{"line":52,"column":7},"end":{"line":52,"column":7}},"16":{"start":{"line":52,"column":28},"end":{"line":52,"column":28}},"17":{"start":{"line":61,"column":7},"end":{"line":61,"column":7}},"18":{"start":{"line":61,"column":59},"end":{"line":61,"column":59}},"19":{"start":{"line":62,"column":4},"end":{"line":62,"column":4}},"20":{"start":{"line":63,"column":8},"end":{"line":63,"column":8}},"21":{"start":{"line":64,"column":8},"end":{"line":64,"column":8}},"22":{"start":{"line":65,"column":8},"end":{"line":65,"column":8}},"23":{"start":{"line":76,"column":7},"end":{"line":76,"column":7}},"24":{"start":{"line":76,"column":60},"end":{"line":76,"column":60}},"25":{"start":{"line":77,"column":4},"end":{"line":77,"column":4}},"26":{"start":{"line":78,"column":8},"end":{"line":78,"column":8}},"27":{"start":{"line":79,"column":8},"end":{"line":79,"column":8}},"28":{"start":{"line":80,"column":8},"end":{"line":80,"column":8}}},"branchMap":{"1":{"line":25,"type":"cond-expr","locations":[{"start":{"line":17,"column":19},"end":{"line":17,"column":11}},{"start":{"line":17,"column":25},"end":{"line":17,"column":4}}]},"2":{"line":25,"type":"cond-expr","locations":[{"start":{"line":17,"column":33},"end":{"line":17,"column":25}},{"start":{"line":17,"column":37},"end":{"line":17,"column":4}}]},"3":{"line":78,"type":"cond-expr","locations":[{"start":{"line":61,"column":59},"end":{"line":61,"column":59}},{"start":{"line":61,"column":51},"end":{"line":61,"column":59}}]},"4":{"line":78,"type":"binary-expr","locations":[{"start":{"line":61,"column":59},"end":{"line":61,"column":59}},{"start":{"line":61,"column":59},"end":{"line":61,"column":59}}]},"5":{"li
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_jD8KexAXmMnougemgGWp_A = __cov_jD8KexAXmMnougemgGWp_A['C:\\dev\\javascript\\github\\TableFilter\\src\\sort.js'];
__cov_jD8KexAXmMnougemgGWp_A.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_jD8KexAXmMnougemgGWp_A.s['2']++;exports.sortDateStr=exports.sortNumberStr=exports.dateSortDesc=exports.dateSortAsc=exports.numSortDesc=exports.numSortAsc=exports.ignoreCase=undefined;__cov_jD8KexAXmMnougemgGWp_A.s['3']++;var _number=__webpack_require__(/*! ./number */ "./src/number.js");__cov_jD8KexAXmMnougemgGWp_A.s['4']++;var _sugarDate=__webpack_require__(/*! sugar-date */ "./node_modules/sugar-date/index.js");__cov_jD8KexAXmMnougemgGWp_A.s['5']++;var ignoreCase=exports.ignoreCase=function ignoreCase(a,b){__cov_jD8KexAXmMnougemgGWp_A.f['1']++;__cov_jD8KexAXmMnougemgGWp_A.s['6']++;var x=a.toLowerCase();__cov_jD8KexAXmMnougemgGWp_A.s['7']++;var y=b.toLowerCase();__cov_jD8KexAXmMnougemgGWp_A.s['8']++;return x<y?(__cov_jD8KexAXmMnougemgGWp_A.b['1'][0]++,-1):(__cov_jD8KexAXmMnougemgGWp_A.b['1'][1]++,x>y?(__cov_jD8KexAXmMnougemgGWp_A.b['2'][0]++,1):(__cov_jD8KexAXmMnougemgGWp_A.b['2'][1]++,0));};__cov_jD8KexAXmMnougemgGWp_A.s['9']++;var numSortAsc=exports.numSortAsc=function numSortAsc(a,b){__cov_jD8KexAXmMnougemgGWp_A.f['2']++;__cov_jD8KexAXmMnougemgGWp_A.s['10']++;return a-b;};__cov_jD8KexAXmMnougemgGWp_A.s['11']++;var numSortDesc=exports.numSortDesc=function numSortDesc(a,b){__cov_jD8KexAXmMnougemgGWp_A.f['3']++;__cov_jD8KexAXmMnougemgGWp_A.s['12']++;return b-a;};__cov_jD8KexAXmMnougemgGWp_A.s['13']++;var dateSortAsc=exports.dateSortAsc=function dateSortAsc(date1,date2){__cov_jD8KexAXmMnougemgGWp_A.f['4']++;__cov_jD8KexAXmMnougemgGWp_A.s['14']++;return date1.getTime()-date2.getTime();};__cov_jD8KexAXmMnougemgGWp_A.s['15']++;var dateSortDesc=exports.dateSortDesc=function dateSortDesc(date1,date2){__cov_jD8KexAXmMnougemgGWp_A.f['5']++;__cov_jD8KexAXmMnougemgGWp_A.s['16']++;return date2.getTime()-date1.getTime();};__cov_jD8KexAXmMnougemgGWp_A.s['17']++;var sortNumberStr=exports.sortNumberStr=function sortNumberStr(compareFn){__cov_jD8KexAXmMnougemgGWp_A.f['6']++;__cov_jD8KexAXmMnougemgGWp_A.s['18']++;var decimal=(__cov_jD8KexAXmMnougemgGWp_A.b['4'][0]++,arguments.length>1)&&(__cov_jD8KexAXmMnougemgGWp_A.b['4'][1]++,arguments[1]!==undefined)?(__cov_jD8KexAXmMnougemgGWp_A.b['3'][0]++,arguments[1]):(__cov_jD8KexAXmMnougemgGWp_A.b['3'][1]++,',');__cov_jD8KexAXmMnougemgGWp_A.s['19']++;return function(numStr1,numStr2){__cov_jD8KexAXmMnougemgGWp_A.f['7']++;__cov_jD8KexAXmMnougemgGWp_A.s['20']++;var num1=(0,_number.parse)(numStr1,decimal);__cov_jD8KexAXmMnougemgGWp_A.s['21']++;var num2=(0,_number.parse)(numStr2,decimal);__cov_jD8KexAXmMnougemgGWp_A.s['22']++;return compareFn(num1,num2);};};__cov_jD8KexAXmMnougemgGWp_A.s['23']++;var sortDateStr=exports.sortDateStr=function sortDateStr(compareFn){__cov_jD8KexAXmMnougemgGWp_A.f['8']++;__cov_jD8KexAXmMnougemgGWp_A.s['24']++;var locale=(__cov_jD8KexAXmMnougemgGWp_A.b['6'][0]++,arguments.length>1)&&(__cov_jD8KexAXmMnougemgGWp_A.b['6'][1]++,arguments[1]!==undefined)?(__cov_jD8KexAXmMnougemgGWp_A.b['5'][0]++,arguments[1]):(__cov_jD8KexAXmMnougemgGWp_A.b['5'][1]++,'en-us');__cov_jD8KexAXmMnougemgGWp_A.s['25']++;return function(dateStr1,dateStr2){__cov_jD8KexAXmMnougemgGWp_A.f['9']++;__cov_jD8KexAXmMnougemgGWp_A.s['26']++;var date1=_sugarDate.Date.create(dateStr1,locale);__cov_jD8KexAXmMnougemgGWp_A.s['27']++;var date2=_sugarDate.Date.create(dateStr2,locale);__cov_jD8KexAXmMnougemgGWp_A.s['28']++;return compareFn(date1,date2);};};
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/string.js":
/*!***********************!*\
!*** ./src/string.js ***!
\***********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_OEGd0kug3eb6VrbLSB9XQg = (Function('return this'))();
if (!__cov_OEGd0kug3eb6VrbLSB9XQg.__coverage__) { __cov_OEGd0kug3eb6VrbLSB9XQg.__coverage__ = {}; }
__cov_OEGd0kug3eb6VrbLSB9XQg = __cov_OEGd0kug3eb6VrbLSB9XQg.__coverage__;
if (!(__cov_OEGd0kug3eb6VrbLSB9XQg['C:\\dev\\javascript\\github\\TableFilter\\src\\string.js'])) {
__cov_OEGd0kug3eb6VrbLSB9XQg['C:\\dev\\javascript\\github\\TableFilter\\src\\string.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\string.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"fnMap":{"1":{"name":"trim","line":19,"loc":{"start":{"line":12,"column":20},"end":{"line":12,"column":30}}},"2":{"name":"isEmpty","line":31,"loc":{"start":{"line":24,"column":23},"end":{"line":24,"column":23}}},"3":{"name":"rgxEsc","line":40,"loc":{"start":{"line":31,"column":22},"end":{"line":31,"column":32}}},"4":{"name":"matchCase","line":52,"loc":{"start":{"line":43,"column":25},"end":{"line":43,"column":58}}},"5":{"name":"contains","line":70,"loc":{"start":{"line":59,"column":24},"end":{"line":60,"column":33}}},"6":{"name":"toCamelCase","line":97,"loc":{"start":{"line":84,"column":27},"end":{"line":84,"column":42}}},"7":{"name":"(anonymous_7)","line":100,"loc":{"start":{"line":85,"column":49},"end":{"line":85,"column":68}}},"8":{"name":"uuid","line":118,"loc":{"start":{"line":103,"column":20},"end":{"line":103,"column":26}}},"9":{"name":"chr4","line":119,"loc":{"start":{"line":104,"column":17},"end":{"line":104,"column":17}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"3":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"4":{"start":{"line":12,"column":7},"end":{"line":12,"column":7}},"5":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"6":{"start":{"line":14,"column":8},"end":{"line":14,"column":8}},"7":{"start":{"line":16,"column":4},"end":{"line":16,"column":4}},"8":{"start":{"line":24,"column":7},"end":{"line":24,"column":7}},"9":{"start":{"line":24,"column":23},"end":{"line":24,"column":23}},"10":{"start":{"line":31,"column":7},"end":{"line":31,"column":7}},"11":{"start":{"line":32,"column":4},"end":{"line":32,"column":4}},"12":{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},"13":{"start":{"line":34,"column":4},"end":{"line":34,"column":4}},"14":{"start":{"line":43,"column":7},"end":{"line":43,"column":7}},"15":{"start":{"line":43,"column":58},"end":{"line":43,"column":58}},"16":{"start":{"line":44,"column":4},"end":{"line":46,"column":5}},"17":{"start":{"line":45,"column":8},"end":{"line":45,"column":8}},"18":{"start":{"line":47,"column":4},"end":{"line":47,"column":4}},"19":{"start":{"line":59,"column":7},"end":{"line":59,"column":7}},"20":{"start":{"line":60,"column":33},"end":{"line":60,"column":33}},"21":{"start":{"line":60,"column":33},"end":{"line":60,"column":33}},"22":{"start":{"line":60,"column":33},"end":{"line":60,"column":33}},"23":{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},"24":{"start":{"line":64,"column":4},"end":{"line":64,"column":4}},"25":{"start":{"line":65,"column":4},"end":{"line":68,"column":5}},"26":{"start":{"line":66,"column":8},"end":{"line":66,"column":8}},"27":{"start":{"line":67,"column":8},"end":{"line":67,"column":8}},"28":{"start":{"line":69,"column":4},"end":{"line":74,"column":5}},"29":{"start":{"line":70,"column":8},"end":{"line":70,"column":8}},"30":{"start":{"line":73,"column":8},"end":{"line":73,"column":8}},"31":{"start":{"line":75,"column":4},"end":{"line":75,"column":4}},"32":{"start":{"line":84,"column":7},"end":{"line":84,"column":7}},"33":{"start":{"line":84,"column":42},"end":{"line":84,"column":42}},"34":{"start":{"line":85,"column":4},"end":{"line":85,"column":4}},"35":{"start":{"line":86,"column":8},"end":{"line":88,"column":9}},"36":{"start":{"line":87,"column":12},"end":{"line":87,"column":12}},"37":{"start":{"lin
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_OEGd0kug3eb6VrbLSB9XQg = __cov_OEGd0kug3eb6VrbLSB9XQg['C:\\dev\\javascript\\github\\TableFilter\\src\\string.js'];
__cov_OEGd0kug3eb6VrbLSB9XQg.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_OEGd0kug3eb6VrbLSB9XQg.s['2']++;exports.uuid=exports.toCamelCase=exports.contains=exports.matchCase=exports.rgxEsc=exports.isEmpty=exports.trim=undefined;__cov_OEGd0kug3eb6VrbLSB9XQg.s['3']++;var _diacritics=__webpack_require__(/*! diacritics */ "./node_modules/diacritics/index.js");__cov_OEGd0kug3eb6VrbLSB9XQg.s['4']++;var trim=exports.trim=function trim(text){__cov_OEGd0kug3eb6VrbLSB9XQg.f['1']++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['5']++;if(text.trim){__cov_OEGd0kug3eb6VrbLSB9XQg.b['1'][0]++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['6']++;return text.trim();}else{__cov_OEGd0kug3eb6VrbLSB9XQg.b['1'][1]++;}__cov_OEGd0kug3eb6VrbLSB9XQg.s['7']++;return text.replace(/^\s*|\s*$/g,'');};__cov_OEGd0kug3eb6VrbLSB9XQg.s['8']++;var isEmpty=exports.isEmpty=function isEmpty(text){__cov_OEGd0kug3eb6VrbLSB9XQg.f['2']++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['9']++;return trim(text)==='';};__cov_OEGd0kug3eb6VrbLSB9XQg.s['10']++;var rgxEsc=exports.rgxEsc=function rgxEsc(text){__cov_OEGd0kug3eb6VrbLSB9XQg.f['3']++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['11']++;var chars=/[-\/\\^$*+?.()|[\]{}]/g;__cov_OEGd0kug3eb6VrbLSB9XQg.s['12']++;var escMatch='\\$&';__cov_OEGd0kug3eb6VrbLSB9XQg.s['13']++;return String(text).replace(chars,escMatch);};__cov_OEGd0kug3eb6VrbLSB9XQg.s['14']++;var matchCase=exports.matchCase=function matchCase(text){__cov_OEGd0kug3eb6VrbLSB9XQg.f['4']++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['15']++;var caseSensitive=(__cov_OEGd0kug3eb6VrbLSB9XQg.b['3'][0]++,arguments.length>1)&&(__cov_OEGd0kug3eb6VrbLSB9XQg.b['3'][1]++,arguments[1]!==undefined)?(__cov_OEGd0kug3eb6VrbLSB9XQg.b['2'][0]++,arguments[1]):(__cov_OEGd0kug3eb6VrbLSB9XQg.b['2'][1]++,false);__cov_OEGd0kug3eb6VrbLSB9XQg.s['16']++;if(!caseSensitive){__cov_OEGd0kug3eb6VrbLSB9XQg.b['4'][0]++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['17']++;return text.toLowerCase();}else{__cov_OEGd0kug3eb6VrbLSB9XQg.b['4'][1]++;}__cov_OEGd0kug3eb6VrbLSB9XQg.s['18']++;return text;};__cov_OEGd0kug3eb6VrbLSB9XQg.s['19']++;var contains=exports.contains=function contains(term,data){__cov_OEGd0kug3eb6VrbLSB9XQg.f['5']++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['20']++;var exactMatch=(__cov_OEGd0kug3eb6VrbLSB9XQg.b['6'][0]++,arguments.length>2)&&(__cov_OEGd0kug3eb6VrbLSB9XQg.b['6'][1]++,arguments[2]!==undefined)?(__cov_OEGd0kug3eb6VrbLSB9XQg.b['5'][0]++,arguments[2]):(__cov_OEGd0kug3eb6VrbLSB9XQg.b['5'][1]++,false);__cov_OEGd0kug3eb6VrbLSB9XQg.s['21']++;var caseSensitive=(__cov_OEGd0kug3eb6VrbLSB9XQg.b['8'][0]++,arguments.length>3)&&(__cov_OEGd0kug3eb6VrbLSB9XQg.b['8'][1]++,arguments[3]!==undefined)?(__cov_OEGd0kug3eb6VrbLSB9XQg.b['7'][0]++,arguments[3]):(__cov_OEGd0kug3eb6VrbLSB9XQg.b['7'][1]++,false);__cov_OEGd0kug3eb6VrbLSB9XQg.s['22']++;var ignoreDiacritics=(__cov_OEGd0kug3eb6VrbLSB9XQg.b['10'][0]++,arguments.length>4)&&(__cov_OEGd0kug3eb6VrbLSB9XQg.b['10'][1]++,arguments[4]!==undefined)?(__cov_OEGd0kug3eb6VrbLSB9XQg.b['9'][0]++,arguments[4]):(__cov_OEGd0kug3eb6VrbLSB9XQg.b['9'][1]++,false);__cov_OEGd0kug3eb6VrbLSB9XQg.s['23']++;var regexp=void 0;__cov_OEGd0kug3eb6VrbLSB9XQg.s['24']++;var modifier=caseSensitive?(__cov_OEGd0kug3eb6VrbLSB9XQg.b['11'][0]++,'g'):(__cov_OEGd0kug3eb6VrbLSB9XQg.b['11'][1]++,'gi');__cov_OEGd0kug3eb6VrbLSB9XQg.s['25']++;if(ignoreDiacritics){__cov_OEGd0kug3eb6VrbLSB9XQg.b['12'][0]++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['26']++;term=(0,_diacritics.remove)(term);__cov_OEGd0kug3eb6VrbLSB9XQg.s['27']++;data=(0,_diacritics.remove)(data);}else{__cov_OEGd0kug3eb6VrbLSB9XQg.b['12'][1]++;}__cov_OEGd0kug3eb6VrbLSB9XQg.s['28']++;if(exactMatch){__cov_OEGd0kug3eb6VrbLSB9XQg.b['13'][0]++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['29']++;regexp=new RegExp('(^\\s*)'+rgxEsc(term)+'(\\s*$)',modifier);}else{__cov_OEGd0kug3eb6VrbLSB9XQg.b['13'][1]++;__cov_OEGd0kug3eb6VrbLSB9XQg.s['30']++;regexp=new RegExp(rgxEsc(term),modifier);}__cov_OEGd0kug3eb6VrbLSB9XQg.s['31']++;return regexp.test(data);};__cov_OEGd0kug3eb6VrbLSB9XQg.s['32']++;var toCamelCase=exports.toCamelCase=function toCamelCase(){__cov_OEGd0kug3eb6VrbLSB9XQg.f['6']++;__cov_OEGd0kug3eb6VrbLSB9XQg.s[
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/tablefilter.js":
/*!****************************!*\
!*** ./src/tablefilter.js ***!
\****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_8N9Huwy_AskRmNRbz_kSUA = (Function('return this'))();
if (!__cov_8N9Huwy_AskRmNRbz_kSUA.__coverage__) { __cov_8N9Huwy_AskRmNRbz_kSUA.__coverage__ = {}; }
__cov_8N9Huwy_AskRmNRbz_kSUA = __cov_8N9Huwy_AskRmNRbz_kSUA.__coverage__;
if (!(__cov_8N9Huwy_AskRmNRbz_kSUA['C:\\dev\\javascript\\github\\TableFilter\\src\\tablefilter.js'])) {
__cov_8N9Huwy_AskRmNRbz_kSUA['C:\\dev\\javascript\\github\\TableFilter\\src\\tablefilter.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\tablefilter.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":0,"34":0,"35":0,"36":0,"37":0,"38":1,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0,"210":0,"211":0,"212":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"221":0,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0,"230":0,"231":0,"232":0,"233":0,"234":0,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0,"246":0,"247":0,"248":0,"249":0,"250":0,"251":0,"252":0,"253":0,"254":0,"255":0,"256":0,"257":0,"258":1,"259":0,"260":0,"261":0,"262":0,"263":0,"264":0,"265":0,"266":0,"267":0,"268":0,"269":0,"270":0,"271":0,"272":0,"273":0,"274":0,"275":0,"276":0,"277":0,"278":0,"279":0,"280":0,"281":0,"282":0,"283":0,"284":0,"285":0,"286":0,"287":0,"288":0,"289":0,"290":0,"291":0,"292":0,"293":0,"294":0,"295":0,"296":0,"297":0,"298":0,"299":0,"300":0,"301":0,"302":0,"303":0,"304":0,"305":0,"306":0,"307":0,"308":0,"309":0,"310":0,"311":0,"312":0,"313":0,"314":0,"315":0,"316":0,"317":0,"318":0,"319":0,"320":0,"321":0,"322":0,"323":0,"324":0,"325":0,"326":0,"327":0,"328":0,"329":0,"330":0,"331":0,"332":0,"333":0,"334":0,"335":0,"336":0,"337":0,"338":0,"339":0,"340":0,"341":0,"342":0,"343":0,"344":0,"345":0,"346":0,"347":0,"348":0,"349":0,"350":0,"351":0,"352":0,"353":0,"354":0,"355":0,"356":0,"357":0,"358":0,"359":0,"360":0,"361":0,"362":0,"363":0,"364":0,"365":0,"366":0,"367":0,"368":0,"369":0,"370":0,"371":0,"372":0,"373":0,"374":0,"375":0,"376":0,"377":0,"378":0,"379":0,"380":0,"381":0,"382":0,"383":0,"384":0,"385":0,"386":0,"387":0,"388":0,"389":0,"390":0,"391":0,"392":0,"393":0,"394":0,"395":0,"396":0,"397":0,"398":0,"399":0,"400":0,"401":0,"402":0,"403":0,"404":0,"405":0,"406":0,"407":0,"408":0,"409":0,"410":0,"411":0,"412":0,"413":0,"414":0,"415":0,"416":0,"417":0,"418":0,"419":0,"420":0,"421":0,"422":0,"423":0,"424":0,"425":0,"426":0,"427":0,"428":0,"429":0,"430":0,"431":0,"432":0,"433":0,"434":0,"435":0,"436":0,"437":0,"438":0,"439":0,"440":0,"441":0,"442":0,"443":0,"444":0,"445":0,"446":0,"447":0,"448":0,"449":0,"450":0,"451":0,"452":0,"453":0,"454":0,"455":0,"456":0,"457":0,"458":0,"459":0,"460":0,"461":0,"462":0,"463":0,"464":0,"465":0,"466":0,"467":0,"468":0,"469":0,"470":0,"471":0,"472":0,"473":0,"474":0,"475":0,"476":0,"477":0,"478":0,"479":0,"480":0,"481":0,"482":0,"483":0,"484":0,"485":0,"486":0,"487":0,"488":0,"489":0,"490":0,"491":0,"492":0,"493":0,"494":0,"495":0,"496":0,"497":0,"498":0,"499":0,"500":0,"501":0,"502":0,"503":0,"50
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_8N9Huwy_AskRmNRbz_kSUA = __cov_8N9Huwy_AskRmNRbz_kSUA['C:\\dev\\javascript\\github\\TableFilter\\src\\tablefilter.js'];
__cov_8N9Huwy_AskRmNRbz_kSUA.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_8N9Huwy_AskRmNRbz_kSUA.s['2']++;exports.TableFilter=undefined;__cov_8N9Huwy_AskRmNRbz_kSUA.s['3']++;var _typeof=(__cov_8N9Huwy_AskRmNRbz_kSUA.b['2'][0]++,typeof Symbol==='function')&&(__cov_8N9Huwy_AskRmNRbz_kSUA.b['2'][1]++,typeof Symbol.iterator==='symbol')?(__cov_8N9Huwy_AskRmNRbz_kSUA.b['1'][0]++,function(obj){__cov_8N9Huwy_AskRmNRbz_kSUA.f['1']++;__cov_8N9Huwy_AskRmNRbz_kSUA.s['4']++;return typeof obj;}):(__cov_8N9Huwy_AskRmNRbz_kSUA.b['1'][1]++,function(obj){__cov_8N9Huwy_AskRmNRbz_kSUA.f['2']++;__cov_8N9Huwy_AskRmNRbz_kSUA.s['5']++;return(__cov_8N9Huwy_AskRmNRbz_kSUA.b['4'][0]++,obj)&&(__cov_8N9Huwy_AskRmNRbz_kSUA.b['4'][1]++,typeof Symbol==='function')&&(__cov_8N9Huwy_AskRmNRbz_kSUA.b['4'][2]++,obj.constructor===Symbol)&&(__cov_8N9Huwy_AskRmNRbz_kSUA.b['4'][3]++,obj!==Symbol.prototype)?(__cov_8N9Huwy_AskRmNRbz_kSUA.b['3'][0]++,'symbol'):(__cov_8N9Huwy_AskRmNRbz_kSUA.b['3'][1]++,typeof obj);});__cov_8N9Huwy_AskRmNRbz_kSUA.s['6']++;var _event=__webpack_require__(/*! ./event */ "./src/event.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['7']++;var _dom=__webpack_require__(/*! ./dom */ "./src/dom.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['8']++;var _string=__webpack_require__(/*! ./string */ "./src/string.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['9']++;var _types=__webpack_require__(/*! ./types */ "./src/types.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['10']++;var _number=__webpack_require__(/*! ./number */ "./src/number.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['11']++;var _settings=__webpack_require__(/*! ./settings */ "./src/settings.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['12']++;var _root=__webpack_require__(/*! ./root */ "./src/root.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['13']++;var _emitter=__webpack_require__(/*! ./emitter */ "./src/emitter.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['14']++;var _dropdown=__webpack_require__(/*! ./modules/dropdown */ "./src/modules/dropdown.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['15']++;var _checkList=__webpack_require__(/*! ./modules/checkList */ "./src/modules/checkList.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['16']++;var _dateType=__webpack_require__(/*! ./modules/dateType */ "./src/modules/dateType.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['17']++;var _help=__webpack_require__(/*! ./modules/help */ "./src/modules/help.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['18']++;var _state=__webpack_require__(/*! ./modules/state */ "./src/modules/state.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['19']++;var _gridLayout=__webpack_require__(/*! ./modules/gridLayout */ "./src/modules/gridLayout.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['20']++;var _loader=__webpack_require__(/*! ./modules/loader */ "./src/modules/loader.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['21']++;var _highlightKeywords=__webpack_require__(/*! ./modules/highlightKeywords */ "./src/modules/highlightKeywords.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['22']++;var _popupFilter=__webpack_require__(/*! ./modules/popupFilter */ "./src/modules/popupFilter.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['23']++;var _markActiveColumns=__webpack_require__(/*! ./modules/markActiveColumns */ "./src/modules/markActiveColumns.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['24']++;var _rowsCounter=__webpack_require__(/*! ./modules/rowsCounter */ "./src/modules/rowsCounter.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['25']++;var _statusBar=__webpack_require__(/*! ./modules/statusBar */ "./src/modules/statusBar.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['26']++;var _clearButton=__webpack_require__(/*! ./modules/clearButton */ "./src/modules/clearButton.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['27']++;var _alternateRows=__webpack_require__(/*! ./modules/alternateRows */ "./src/modules/alternateRows.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['28']++;var _noResults=__webpack_require__(/*! ./modules/noResults */ "./src/modules/noResults.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['29']++;var _paging=__webpack_require__(/*! ./modules/paging */ "./src/modules/paging.js");__cov_8N9Huwy_AskRmNRbz_kSUA.s['30']++;var _toolbar=__webpack_require__(/*! ./modules/toolbar */ "./src/modules/toolbar.js
2019-09-06 06:15:54 +02:00
/***/ }),
/***/ "./src/types.js":
/*!**********************!*\
!*** ./src/types.js ***!
\**********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2019-10-21 05:20:42 +02:00
var __cov_EI74EPidrolky0giMLu9Bw = (Function('return this'))();
if (!__cov_EI74EPidrolky0giMLu9Bw.__coverage__) { __cov_EI74EPidrolky0giMLu9Bw.__coverage__ = {}; }
__cov_EI74EPidrolky0giMLu9Bw = __cov_EI74EPidrolky0giMLu9Bw.__coverage__;
if (!(__cov_EI74EPidrolky0giMLu9Bw['C:\\dev\\javascript\\github\\TableFilter\\src\\types.js'])) {
__cov_EI74EPidrolky0giMLu9Bw['C:\\dev\\javascript\\github\\TableFilter\\src\\types.js'] = {"path":"C:\\dev\\javascript\\github\\TableFilter\\src\\types.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0},"b":{"1":[0,0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"fnMap":{"1":{"name":"EMPTY_FN","line":17,"loc":{"start":{"line":12,"column":24},"end":{"line":12,"column":35}}},"2":{"name":"isObj","line":24,"loc":{"start":{"line":20,"column":4},"end":{"line":20,"column":4}}},"3":{"name":"isFn","line":33,"loc":{"start":{"line":28,"column":4},"end":{"line":28,"column":4}}},"4":{"name":"isArray","line":42,"loc":{"start":{"line":36,"column":4},"end":{"line":36,"column":4}}},"5":{"name":"isString","line":51,"loc":{"start":{"line":44,"column":4},"end":{"line":44,"column":4}}},"6":{"name":"isNumber","line":60,"loc":{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}},"7":{"name":"isBoolean","line":69,"loc":{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}},"8":{"name":"isUndef","line":78,"loc":{"start":{"line":67,"column":23},"end":{"line":67,"column":23}}},"9":{"name":"isNull","line":87,"loc":{"start":{"line":74,"column":22},"end":{"line":74,"column":22}}},"10":{"name":"isEmpty","line":96,"loc":{"start":{"line":81,"column":23},"end":{"line":81,"column":23}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":0}},"3":{"start":{"line":12,"column":7},"end":{"line":12,"column":7}},"4":{"start":{"line":19,"column":7},"end":{"line":19,"column":7}},"5":{"start":{"line":20,"column":4},"end":{"line":20,"column":4}},"6":{"start":{"line":27,"column":7},"end":{"line":27,"column":7}},"7":{"start":{"line":28,"column":4},"end":{"line":28,"column":4}},"8":{"start":{"line":35,"column":7},"end":{"line":35,"column":7}},"9":{"start":{"line":36,"column":4},"end":{"line":36,"column":4}},"10":{"start":{"line":43,"column":7},"end":{"line":43,"column":7}},"11":{"start":{"line":44,"column":4},"end":{"line":44,"column":4}},"12":{"start":{"line":51,"column":7},"end":{"line":51,"column":7}},"13":{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},"14":{"start":{"line":59,"column":7},"end":{"line":59,"column":7}},"15":{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},"16":{"start":{"line":67,"column":7},"end":{"line":67,"column":7}},"17":{"start":{"line":67,"column":23},"end":{"line":67,"column":23}},"18":{"start":{"line":74,"column":7},"end":{"line":74,"column":7}},"19":{"start":{"line":74,"column":22},"end":{"line":74,"column":22}},"20":{"start":{"line":81,"column":7},"end":{"line":81,"column":7}},"21":{"start":{"line":81,"column":23},"end":{"line":81,"column":23}}},"branchMap":{"1":{"line":97,"type":"binary-expr","locations":[{"start":{"line":81,"column":32},"end":{"line":81,"column":32}},{"start":{"line":81,"column":48},"end":{"line":81,"column":32}},{"start":{"line":81,"column":63},"end":{"line":81,"column":23}}]}},"code":["","/**"," * Types utilities"," */","","const UNDEFINED = void 0;","","/**"," * Return an empty function"," * @return {Function}"," */","export const EMPTY_FN = function() {};","","/**"," * Check passed argument is an object"," * @param {Object} obj"," * @return {Boolean}"," */","export const isObj ="," (obj) => Object.prototype.toString.call(obj) === '[object Object]';","","/**"," * Check passed argument is a function"," * @param {Function} obj"," * @return {Boolean}"," */","export const isFn ="," (obj) => Object.prototype.toString.call(obj) === '[object Function]';","","/**"," * Check passed argument is an array"," * @param {Array} obj"," * @return {Boolean}"," */","export const isArray ="," (obj) => Object.prototype.toString.call(obj) === '[object Array]';","","/**"," * Check passed argument is a string"," * @param {String} obj obj"," * @returns {Boolean}"," */","export const isString ="," (obj) => Object.prototype.toString.call(obj) === '[object Stri
2019-09-06 06:15:54 +02:00
}
2019-10-21 05:20:42 +02:00
__cov_EI74EPidrolky0giMLu9Bw = __cov_EI74EPidrolky0giMLu9Bw['C:\\dev\\javascript\\github\\TableFilter\\src\\types.js'];
__cov_EI74EPidrolky0giMLu9Bw.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_EI74EPidrolky0giMLu9Bw.s['2']++;var UNDEFINED=void 0;__cov_EI74EPidrolky0giMLu9Bw.s['3']++;var EMPTY_FN=exports.EMPTY_FN=function EMPTY_FN(){__cov_EI74EPidrolky0giMLu9Bw.f['1']++;};__cov_EI74EPidrolky0giMLu9Bw.s['4']++;var isObj=exports.isObj=function isObj(obj){__cov_EI74EPidrolky0giMLu9Bw.f['2']++;__cov_EI74EPidrolky0giMLu9Bw.s['5']++;return Object.prototype.toString.call(obj)==='[object Object]';};__cov_EI74EPidrolky0giMLu9Bw.s['6']++;var isFn=exports.isFn=function isFn(obj){__cov_EI74EPidrolky0giMLu9Bw.f['3']++;__cov_EI74EPidrolky0giMLu9Bw.s['7']++;return Object.prototype.toString.call(obj)==='[object Function]';};__cov_EI74EPidrolky0giMLu9Bw.s['8']++;var isArray=exports.isArray=function isArray(obj){__cov_EI74EPidrolky0giMLu9Bw.f['4']++;__cov_EI74EPidrolky0giMLu9Bw.s['9']++;return Object.prototype.toString.call(obj)==='[object Array]';};__cov_EI74EPidrolky0giMLu9Bw.s['10']++;var isString=exports.isString=function isString(obj){__cov_EI74EPidrolky0giMLu9Bw.f['5']++;__cov_EI74EPidrolky0giMLu9Bw.s['11']++;return Object.prototype.toString.call(obj)==='[object String]';};__cov_EI74EPidrolky0giMLu9Bw.s['12']++;var isNumber=exports.isNumber=function isNumber(obj){__cov_EI74EPidrolky0giMLu9Bw.f['6']++;__cov_EI74EPidrolky0giMLu9Bw.s['13']++;return Object.prototype.toString.call(obj)==='[object Number]';};__cov_EI74EPidrolky0giMLu9Bw.s['14']++;var isBoolean=exports.isBoolean=function isBoolean(obj){__cov_EI74EPidrolky0giMLu9Bw.f['7']++;__cov_EI74EPidrolky0giMLu9Bw.s['15']++;return Object.prototype.toString.call(obj)==='[object Boolean]';};__cov_EI74EPidrolky0giMLu9Bw.s['16']++;var isUndef=exports.isUndef=function isUndef(obj){__cov_EI74EPidrolky0giMLu9Bw.f['8']++;__cov_EI74EPidrolky0giMLu9Bw.s['17']++;return obj===UNDEFINED;};__cov_EI74EPidrolky0giMLu9Bw.s['18']++;var isNull=exports.isNull=function isNull(obj){__cov_EI74EPidrolky0giMLu9Bw.f['9']++;__cov_EI74EPidrolky0giMLu9Bw.s['19']++;return obj===null;};__cov_EI74EPidrolky0giMLu9Bw.s['20']++;var isEmpty=exports.isEmpty=function isEmpty(obj){__cov_EI74EPidrolky0giMLu9Bw.f['10']++;__cov_EI74EPidrolky0giMLu9Bw.s['21']++;return(__cov_EI74EPidrolky0giMLu9Bw.b['1'][0]++,isUndef(obj))||(__cov_EI74EPidrolky0giMLu9Bw.b['1'][1]++,isNull(obj))||(__cov_EI74EPidrolky0giMLu9Bw.b['1'][2]++,obj.length===0);};
2019-09-06 06:15:54 +02:00
/***/ })
/******/ });
});
2018-06-15 12:47:30 +02:00
//# sourceMappingURL=tablefilter.js.map